diff --git a/api/mycel/epochs/module/v1/module.pulsar.go b/api/mycel/epochs/module/v1/module.pulsar.go index e1c49cc8..6de2629f 100644 --- a/api/mycel/epochs/module/v1/module.pulsar.go +++ b/api/mycel/epochs/module/v1/module.pulsar.go @@ -13,13 +13,63 @@ import ( sync "sync" ) +var _ protoreflect.List = (*_Module_2_list)(nil) + +type _Module_2_list struct { + list *[]string +} + +func (x *_Module_2_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_Module_2_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfString((*x.list)[i]) +} + +func (x *_Module_2_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.String() + concreteValue := valueUnwrapped + (*x.list)[i] = concreteValue +} + +func (x *_Module_2_list) Append(value protoreflect.Value) { + valueUnwrapped := value.String() + concreteValue := valueUnwrapped + *x.list = append(*x.list, concreteValue) +} + +func (x *_Module_2_list) AppendMutable() protoreflect.Value { + panic(fmt.Errorf("AppendMutable can not be called on message Module at list field HooksOrder as it is not of Message kind")) +} + +func (x *_Module_2_list) Truncate(n int) { + *x.list = (*x.list)[:n] +} + +func (x *_Module_2_list) NewElement() protoreflect.Value { + v := "" + return protoreflect.ValueOfString(v) +} + +func (x *_Module_2_list) IsValid() bool { + return x.list != nil +} + var ( - md_Module protoreflect.MessageDescriptor + md_Module protoreflect.MessageDescriptor + fd_Module_authority protoreflect.FieldDescriptor + fd_Module_hooks_order protoreflect.FieldDescriptor ) func init() { file_mycel_epochs_module_v1_module_proto_init() md_Module = File_mycel_epochs_module_v1_module_proto.Messages().ByName("Module") + fd_Module_authority = md_Module.Fields().ByName("authority") + fd_Module_hooks_order = md_Module.Fields().ByName("hooks_order") } var _ protoreflect.Message = (*fastReflection_Module)(nil) @@ -87,6 +137,18 @@ func (x *fastReflection_Module) Interface() protoreflect.ProtoMessage { // While iterating, mutating operations may only be performed // on the current field descriptor. func (x *fastReflection_Module) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Authority != "" { + value := protoreflect.ValueOfString(x.Authority) + if !f(fd_Module_authority, value) { + return + } + } + if len(x.HooksOrder) != 0 { + value := protoreflect.ValueOfList(&_Module_2_list{list: &x.HooksOrder}) + if !f(fd_Module_hooks_order, value) { + return + } + } } // Has reports whether a field is populated. @@ -102,6 +164,10 @@ func (x *fastReflection_Module) Range(f func(protoreflect.FieldDescriptor, proto // a repeated field is populated if it is non-empty. func (x *fastReflection_Module) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { + case "mycel.epochs.module.v1.Module.authority": + return x.Authority != "" + case "mycel.epochs.module.v1.Module.hooks_order": + return len(x.HooksOrder) != 0 default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.epochs.module.v1.Module")) @@ -118,6 +184,10 @@ func (x *fastReflection_Module) Has(fd protoreflect.FieldDescriptor) bool { // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_Module) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { + case "mycel.epochs.module.v1.Module.authority": + x.Authority = "" + case "mycel.epochs.module.v1.Module.hooks_order": + x.HooksOrder = nil default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.epochs.module.v1.Module")) @@ -134,6 +204,15 @@ func (x *fastReflection_Module) Clear(fd protoreflect.FieldDescriptor) { // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_Module) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { + case "mycel.epochs.module.v1.Module.authority": + value := x.Authority + return protoreflect.ValueOfString(value) + case "mycel.epochs.module.v1.Module.hooks_order": + if len(x.HooksOrder) == 0 { + return protoreflect.ValueOfList(&_Module_2_list{}) + } + listValue := &_Module_2_list{list: &x.HooksOrder} + return protoreflect.ValueOfList(listValue) default: if descriptor.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.epochs.module.v1.Module")) @@ -154,6 +233,12 @@ func (x *fastReflection_Module) Get(descriptor protoreflect.FieldDescriptor) pro // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_Module) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { + case "mycel.epochs.module.v1.Module.authority": + x.Authority = value.Interface().(string) + case "mycel.epochs.module.v1.Module.hooks_order": + lv := value.List() + clv := lv.(*_Module_2_list) + x.HooksOrder = *clv.list default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.epochs.module.v1.Module")) @@ -174,6 +259,14 @@ func (x *fastReflection_Module) Set(fd protoreflect.FieldDescriptor, value proto // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_Module) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { + case "mycel.epochs.module.v1.Module.hooks_order": + if x.HooksOrder == nil { + x.HooksOrder = []string{} + } + value := &_Module_2_list{list: &x.HooksOrder} + return protoreflect.ValueOfList(value) + case "mycel.epochs.module.v1.Module.authority": + panic(fmt.Errorf("field authority of message mycel.epochs.module.v1.Module is not mutable")) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.epochs.module.v1.Module")) @@ -187,6 +280,11 @@ func (x *fastReflection_Module) Mutable(fd protoreflect.FieldDescriptor) protore // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_Module) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { + case "mycel.epochs.module.v1.Module.authority": + return protoreflect.ValueOfString("") + case "mycel.epochs.module.v1.Module.hooks_order": + list := []string{} + return protoreflect.ValueOfList(&_Module_2_list{list: &list}) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.epochs.module.v1.Module")) @@ -256,6 +354,16 @@ func (x *fastReflection_Module) ProtoMethods() *protoiface.Methods { var n int var l int _ = l + l = len(x.Authority) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if len(x.HooksOrder) > 0 { + for _, s := range x.HooksOrder { + l = len(s) + n += 1 + l + runtime.Sov(uint64(l)) + } + } if x.unknownFields != nil { n += len(x.unknownFields) } @@ -285,6 +393,22 @@ func (x *fastReflection_Module) ProtoMethods() *protoiface.Methods { i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } + if len(x.HooksOrder) > 0 { + for iNdEx := len(x.HooksOrder) - 1; iNdEx >= 0; iNdEx-- { + i -= len(x.HooksOrder[iNdEx]) + copy(dAtA[i:], x.HooksOrder[iNdEx]) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.HooksOrder[iNdEx]))) + i-- + dAtA[i] = 0x12 + } + } + if len(x.Authority) > 0 { + i -= len(x.Authority) + copy(dAtA[i:], x.Authority) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Authority))) + i-- + dAtA[i] = 0xa + } if input.Buf != nil { input.Buf = append(input.Buf, dAtA...) } else { @@ -334,6 +458,70 @@ func (x *fastReflection_Module) ProtoMethods() *protoiface.Methods { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Module: 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 Authority", 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.Authority = 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 HooksOrder", 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.HooksOrder = append(x.HooksOrder, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -387,6 +575,10 @@ type Module struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + + // authority defines the custom module authority. If not set, defaults to the governance module. + Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` + HooksOrder []string `protobuf:"bytes,2,rep,name=hooks_order,json=hooksOrder,proto3" json:"hooks_order,omitempty"` } func (x *Module) Reset() { @@ -409,6 +601,20 @@ func (*Module) Descriptor() ([]byte, []int) { return file_mycel_epochs_module_v1_module_proto_rawDescGZIP(), []int{0} } +func (x *Module) GetAuthority() string { + if x != nil { + return x.Authority + } + return "" +} + +func (x *Module) GetHooksOrder() []string { + if x != nil { + return x.HooksOrder + } + return nil +} + var File_mycel_epochs_module_v1_module_proto protoreflect.FileDescriptor var file_mycel_epochs_module_v1_module_proto_rawDesc = []byte{ @@ -418,23 +624,27 @@ var file_mycel_epochs_module_v1_module_proto_rawDesc = []byte{ 0x63, 0x68, 0x73, 0x2e, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2e, 0x76, 0x31, 0x1a, 0x20, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x61, 0x70, 0x70, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, - 0x38, 0x0a, 0x06, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x3a, 0x2e, 0xba, 0xc0, 0x96, 0xda, 0x01, - 0x28, 0x0a, 0x26, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6d, 0x79, - 0x63, 0x65, 0x6c, 0x2d, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x2f, 0x6d, 0x79, 0x63, 0x65, 0x6c, - 0x2f, 0x78, 0x2f, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x73, 0x42, 0xcc, 0x01, 0x0a, 0x1a, 0x63, 0x6f, - 0x6d, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x73, 0x2e, 0x6d, - 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2e, 0x76, 0x31, 0x42, 0x0b, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, - 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x26, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, - 0x63, 0x6f, 0x6d, 0x2f, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2d, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, - 0x2f, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2f, 0x78, 0x2f, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x73, 0xa2, - 0x02, 0x03, 0x4d, 0x45, 0x4d, 0xaa, 0x02, 0x16, 0x4d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x45, 0x70, - 0x6f, 0x63, 0x68, 0x73, 0x2e, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2e, 0x56, 0x31, 0xca, 0x02, - 0x16, 0x4d, 0x79, 0x63, 0x65, 0x6c, 0x5c, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x73, 0x5c, 0x4d, 0x6f, - 0x64, 0x75, 0x6c, 0x65, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x22, 0x4d, 0x79, 0x63, 0x65, 0x6c, 0x5c, - 0x45, 0x70, 0x6f, 0x63, 0x68, 0x73, 0x5c, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x5c, 0x56, 0x31, - 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x19, 0x4d, - 0x79, 0x63, 0x65, 0x6c, 0x3a, 0x3a, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x73, 0x3a, 0x3a, 0x4d, 0x6f, - 0x64, 0x75, 0x6c, 0x65, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x77, 0x0a, 0x06, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x61, 0x75, 0x74, + 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x61, 0x75, + 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x12, 0x1f, 0x0a, 0x0b, 0x68, 0x6f, 0x6f, 0x6b, 0x73, + 0x5f, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0a, 0x68, 0x6f, + 0x6f, 0x6b, 0x73, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x3a, 0x2e, 0xba, 0xc0, 0x96, 0xda, 0x01, 0x28, + 0x0a, 0x26, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6d, 0x79, 0x63, + 0x65, 0x6c, 0x2d, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x2f, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2f, + 0x78, 0x2f, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x73, 0x42, 0xcc, 0x01, 0x0a, 0x1a, 0x63, 0x6f, 0x6d, + 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x73, 0x2e, 0x6d, 0x6f, + 0x64, 0x75, 0x6c, 0x65, 0x2e, 0x76, 0x31, 0x42, 0x0b, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x50, + 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x26, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, + 0x6f, 0x6d, 0x2f, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2d, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x2f, + 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2f, 0x78, 0x2f, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x73, 0xa2, 0x02, + 0x03, 0x4d, 0x45, 0x4d, 0xaa, 0x02, 0x16, 0x4d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x45, 0x70, 0x6f, + 0x63, 0x68, 0x73, 0x2e, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x16, + 0x4d, 0x79, 0x63, 0x65, 0x6c, 0x5c, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x73, 0x5c, 0x4d, 0x6f, 0x64, + 0x75, 0x6c, 0x65, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x22, 0x4d, 0x79, 0x63, 0x65, 0x6c, 0x5c, 0x45, + 0x70, 0x6f, 0x63, 0x68, 0x73, 0x5c, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x5c, 0x56, 0x31, 0x5c, + 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x19, 0x4d, 0x79, + 0x63, 0x65, 0x6c, 0x3a, 0x3a, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x73, 0x3a, 0x3a, 0x4d, 0x6f, 0x64, + 0x75, 0x6c, 0x65, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( diff --git a/api/mycel/epochs/v1beta1/query.pulsar.go b/api/mycel/epochs/v1beta1/query.pulsar.go index b7e71a29..533adde5 100644 --- a/api/mycel/epochs/v1beta1/query.pulsar.go +++ b/api/mycel/epochs/v1beta1/query.pulsar.go @@ -2,7 +2,6 @@ package types import ( - v1beta1 "cosmossdk.io/api/cosmos/base/query/v1beta1" fmt "fmt" runtime "github.com/cosmos/cosmos-proto/runtime" _ "github.com/cosmos/gogoproto/gogoproto" @@ -16,23 +15,23 @@ import ( ) var ( - md_QueryParamsRequest protoreflect.MessageDescriptor + md_QueryEpochsInfoRequest protoreflect.MessageDescriptor ) func init() { file_mycel_epochs_v1beta1_query_proto_init() - md_QueryParamsRequest = File_mycel_epochs_v1beta1_query_proto.Messages().ByName("QueryParamsRequest") + md_QueryEpochsInfoRequest = File_mycel_epochs_v1beta1_query_proto.Messages().ByName("QueryEpochsInfoRequest") } -var _ protoreflect.Message = (*fastReflection_QueryParamsRequest)(nil) +var _ protoreflect.Message = (*fastReflection_QueryEpochsInfoRequest)(nil) -type fastReflection_QueryParamsRequest QueryParamsRequest +type fastReflection_QueryEpochsInfoRequest QueryEpochsInfoRequest -func (x *QueryParamsRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryParamsRequest)(x) +func (x *QueryEpochsInfoRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryEpochsInfoRequest)(x) } -func (x *QueryParamsRequest) slowProtoReflect() protoreflect.Message { +func (x *QueryEpochsInfoRequest) slowProtoReflect() protoreflect.Message { mi := &file_mycel_epochs_v1beta1_query_proto_msgTypes[0] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -44,43 +43,43 @@ func (x *QueryParamsRequest) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_QueryParamsRequest_messageType fastReflection_QueryParamsRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryParamsRequest_messageType{} +var _fastReflection_QueryEpochsInfoRequest_messageType fastReflection_QueryEpochsInfoRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryEpochsInfoRequest_messageType{} -type fastReflection_QueryParamsRequest_messageType struct{} +type fastReflection_QueryEpochsInfoRequest_messageType struct{} -func (x fastReflection_QueryParamsRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryParamsRequest)(nil) +func (x fastReflection_QueryEpochsInfoRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryEpochsInfoRequest)(nil) } -func (x fastReflection_QueryParamsRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryParamsRequest) +func (x fastReflection_QueryEpochsInfoRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryEpochsInfoRequest) } -func (x fastReflection_QueryParamsRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryParamsRequest +func (x fastReflection_QueryEpochsInfoRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryEpochsInfoRequest } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryParamsRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryParamsRequest +func (x *fastReflection_QueryEpochsInfoRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryEpochsInfoRequest } // 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_QueryParamsRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryParamsRequest_messageType +func (x *fastReflection_QueryEpochsInfoRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryEpochsInfoRequest_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryParamsRequest) New() protoreflect.Message { - return new(fastReflection_QueryParamsRequest) +func (x *fastReflection_QueryEpochsInfoRequest) New() protoreflect.Message { + return new(fastReflection_QueryEpochsInfoRequest) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryParamsRequest) Interface() protoreflect.ProtoMessage { - return (*QueryParamsRequest)(x) +func (x *fastReflection_QueryEpochsInfoRequest) Interface() protoreflect.ProtoMessage { + return (*QueryEpochsInfoRequest)(x) } // Range iterates over every populated field in an undefined order, @@ -88,7 +87,7 @@ func (x *fastReflection_QueryParamsRequest) Interface() protoreflect.ProtoMessag // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryParamsRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_QueryEpochsInfoRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { } // Has reports whether a field is populated. @@ -102,13 +101,13 @@ func (x *fastReflection_QueryParamsRequest) Range(f func(protoreflect.FieldDescr // 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_QueryParamsRequest) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryEpochsInfoRequest) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.epochs.v1beta1.QueryParamsRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.epochs.v1beta1.QueryEpochsInfoRequest")) } - panic(fmt.Errorf("message mycel.epochs.v1beta1.QueryParamsRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.epochs.v1beta1.QueryEpochsInfoRequest does not contain field %s", fd.FullName())) } } @@ -118,13 +117,13 @@ func (x *fastReflection_QueryParamsRequest) Has(fd protoreflect.FieldDescriptor) // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryParamsRequest) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryEpochsInfoRequest) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.epochs.v1beta1.QueryParamsRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.epochs.v1beta1.QueryEpochsInfoRequest")) } - panic(fmt.Errorf("message mycel.epochs.v1beta1.QueryParamsRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.epochs.v1beta1.QueryEpochsInfoRequest does not contain field %s", fd.FullName())) } } @@ -134,13 +133,13 @@ func (x *fastReflection_QueryParamsRequest) Clear(fd protoreflect.FieldDescripto // 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_QueryParamsRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryEpochsInfoRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.epochs.v1beta1.QueryParamsRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.epochs.v1beta1.QueryEpochsInfoRequest")) } - panic(fmt.Errorf("message mycel.epochs.v1beta1.QueryParamsRequest does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message mycel.epochs.v1beta1.QueryEpochsInfoRequest does not contain field %s", descriptor.FullName())) } } @@ -154,13 +153,13 @@ func (x *fastReflection_QueryParamsRequest) Get(descriptor protoreflect.FieldDes // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryParamsRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryEpochsInfoRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.epochs.v1beta1.QueryParamsRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.epochs.v1beta1.QueryEpochsInfoRequest")) } - panic(fmt.Errorf("message mycel.epochs.v1beta1.QueryParamsRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.epochs.v1beta1.QueryEpochsInfoRequest does not contain field %s", fd.FullName())) } } @@ -174,36 +173,36 @@ func (x *fastReflection_QueryParamsRequest) Set(fd protoreflect.FieldDescriptor, // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryParamsRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryEpochsInfoRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.epochs.v1beta1.QueryParamsRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.epochs.v1beta1.QueryEpochsInfoRequest")) } - panic(fmt.Errorf("message mycel.epochs.v1beta1.QueryParamsRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.epochs.v1beta1.QueryEpochsInfoRequest 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_QueryParamsRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryEpochsInfoRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.epochs.v1beta1.QueryParamsRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.epochs.v1beta1.QueryEpochsInfoRequest")) } - panic(fmt.Errorf("message mycel.epochs.v1beta1.QueryParamsRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.epochs.v1beta1.QueryEpochsInfoRequest 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_QueryParamsRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryEpochsInfoRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in mycel.epochs.v1beta1.QueryParamsRequest", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in mycel.epochs.v1beta1.QueryEpochsInfoRequest", d.FullName())) } panic("unreachable") } @@ -211,7 +210,7 @@ func (x *fastReflection_QueryParamsRequest) WhichOneof(d protoreflect.OneofDescr // 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_QueryParamsRequest) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryEpochsInfoRequest) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -222,7 +221,7 @@ func (x *fastReflection_QueryParamsRequest) 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_QueryParamsRequest) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryEpochsInfoRequest) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -234,7 +233,7 @@ func (x *fastReflection_QueryParamsRequest) SetUnknown(fields protoreflect.RawFi // 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_QueryParamsRequest) IsValid() bool { +func (x *fastReflection_QueryEpochsInfoRequest) IsValid() bool { return x != nil } @@ -244,9 +243,9 @@ func (x *fastReflection_QueryParamsRequest) 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_QueryParamsRequest) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryEpochsInfoRequest) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryParamsRequest) + x := input.Message.Interface().(*QueryEpochsInfoRequest) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -268,7 +267,7 @@ func (x *fastReflection_QueryParamsRequest) ProtoMethods() *protoiface.Methods { } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryParamsRequest) + x := input.Message.Interface().(*QueryEpochsInfoRequest) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -298,7 +297,7 @@ func (x *fastReflection_QueryParamsRequest) ProtoMethods() *protoiface.Methods { }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryParamsRequest) + x := input.Message.Interface().(*QueryEpochsInfoRequest) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -330,10 +329,10 @@ func (x *fastReflection_QueryParamsRequest) 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: QueryParamsRequest: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryEpochsInfoRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryParamsRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryEpochsInfoRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: @@ -371,26 +370,77 @@ func (x *fastReflection_QueryParamsRequest) ProtoMethods() *protoiface.Methods { } } +var _ protoreflect.List = (*_QueryEpochsInfoResponse_1_list)(nil) + +type _QueryEpochsInfoResponse_1_list struct { + list *[]*EpochInfo +} + +func (x *_QueryEpochsInfoResponse_1_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_QueryEpochsInfoResponse_1_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_QueryEpochsInfoResponse_1_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*EpochInfo) + (*x.list)[i] = concreteValue +} + +func (x *_QueryEpochsInfoResponse_1_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*EpochInfo) + *x.list = append(*x.list, concreteValue) +} + +func (x *_QueryEpochsInfoResponse_1_list) AppendMutable() protoreflect.Value { + v := new(EpochInfo) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_QueryEpochsInfoResponse_1_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_QueryEpochsInfoResponse_1_list) NewElement() protoreflect.Value { + v := new(EpochInfo) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_QueryEpochsInfoResponse_1_list) IsValid() bool { + return x.list != nil +} + var ( - md_QueryParamsResponse protoreflect.MessageDescriptor - fd_QueryParamsResponse_params protoreflect.FieldDescriptor + md_QueryEpochsInfoResponse protoreflect.MessageDescriptor + fd_QueryEpochsInfoResponse_epochs protoreflect.FieldDescriptor ) func init() { file_mycel_epochs_v1beta1_query_proto_init() - md_QueryParamsResponse = File_mycel_epochs_v1beta1_query_proto.Messages().ByName("QueryParamsResponse") - fd_QueryParamsResponse_params = md_QueryParamsResponse.Fields().ByName("params") + md_QueryEpochsInfoResponse = File_mycel_epochs_v1beta1_query_proto.Messages().ByName("QueryEpochsInfoResponse") + fd_QueryEpochsInfoResponse_epochs = md_QueryEpochsInfoResponse.Fields().ByName("epochs") } -var _ protoreflect.Message = (*fastReflection_QueryParamsResponse)(nil) +var _ protoreflect.Message = (*fastReflection_QueryEpochsInfoResponse)(nil) -type fastReflection_QueryParamsResponse QueryParamsResponse +type fastReflection_QueryEpochsInfoResponse QueryEpochsInfoResponse -func (x *QueryParamsResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryParamsResponse)(x) +func (x *QueryEpochsInfoResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryEpochsInfoResponse)(x) } -func (x *QueryParamsResponse) slowProtoReflect() protoreflect.Message { +func (x *QueryEpochsInfoResponse) slowProtoReflect() protoreflect.Message { mi := &file_mycel_epochs_v1beta1_query_proto_msgTypes[1] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -402,43 +452,43 @@ func (x *QueryParamsResponse) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_QueryParamsResponse_messageType fastReflection_QueryParamsResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryParamsResponse_messageType{} +var _fastReflection_QueryEpochsInfoResponse_messageType fastReflection_QueryEpochsInfoResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryEpochsInfoResponse_messageType{} -type fastReflection_QueryParamsResponse_messageType struct{} +type fastReflection_QueryEpochsInfoResponse_messageType struct{} -func (x fastReflection_QueryParamsResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryParamsResponse)(nil) +func (x fastReflection_QueryEpochsInfoResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryEpochsInfoResponse)(nil) } -func (x fastReflection_QueryParamsResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryParamsResponse) +func (x fastReflection_QueryEpochsInfoResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryEpochsInfoResponse) } -func (x fastReflection_QueryParamsResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryParamsResponse +func (x fastReflection_QueryEpochsInfoResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryEpochsInfoResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryParamsResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryParamsResponse +func (x *fastReflection_QueryEpochsInfoResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryEpochsInfoResponse } // 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_QueryParamsResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryParamsResponse_messageType +func (x *fastReflection_QueryEpochsInfoResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryEpochsInfoResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryParamsResponse) New() protoreflect.Message { - return new(fastReflection_QueryParamsResponse) +func (x *fastReflection_QueryEpochsInfoResponse) New() protoreflect.Message { + return new(fastReflection_QueryEpochsInfoResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryParamsResponse) Interface() protoreflect.ProtoMessage { - return (*QueryParamsResponse)(x) +func (x *fastReflection_QueryEpochsInfoResponse) Interface() protoreflect.ProtoMessage { + return (*QueryEpochsInfoResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -446,10 +496,10 @@ func (x *fastReflection_QueryParamsResponse) Interface() protoreflect.ProtoMessa // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryParamsResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Params != nil { - value := protoreflect.ValueOfMessage(x.Params.ProtoReflect()) - if !f(fd_QueryParamsResponse_params, value) { +func (x *fastReflection_QueryEpochsInfoResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if len(x.Epochs) != 0 { + value := protoreflect.ValueOfList(&_QueryEpochsInfoResponse_1_list{list: &x.Epochs}) + if !f(fd_QueryEpochsInfoResponse_epochs, value) { return } } @@ -466,15 +516,15 @@ func (x *fastReflection_QueryParamsResponse) Range(f func(protoreflect.FieldDesc // 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_QueryParamsResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryEpochsInfoResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "mycel.epochs.v1beta1.QueryParamsResponse.params": - return x.Params != nil + case "mycel.epochs.v1beta1.QueryEpochsInfoResponse.epochs": + return len(x.Epochs) != 0 default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.epochs.v1beta1.QueryParamsResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.epochs.v1beta1.QueryEpochsInfoResponse")) } - panic(fmt.Errorf("message mycel.epochs.v1beta1.QueryParamsResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.epochs.v1beta1.QueryEpochsInfoResponse does not contain field %s", fd.FullName())) } } @@ -484,15 +534,15 @@ func (x *fastReflection_QueryParamsResponse) Has(fd protoreflect.FieldDescriptor // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryParamsResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryEpochsInfoResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "mycel.epochs.v1beta1.QueryParamsResponse.params": - x.Params = nil + case "mycel.epochs.v1beta1.QueryEpochsInfoResponse.epochs": + x.Epochs = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.epochs.v1beta1.QueryParamsResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.epochs.v1beta1.QueryEpochsInfoResponse")) } - panic(fmt.Errorf("message mycel.epochs.v1beta1.QueryParamsResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.epochs.v1beta1.QueryEpochsInfoResponse does not contain field %s", fd.FullName())) } } @@ -502,16 +552,19 @@ func (x *fastReflection_QueryParamsResponse) Clear(fd protoreflect.FieldDescript // 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_QueryParamsResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryEpochsInfoResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "mycel.epochs.v1beta1.QueryParamsResponse.params": - value := x.Params - return protoreflect.ValueOfMessage(value.ProtoReflect()) + case "mycel.epochs.v1beta1.QueryEpochsInfoResponse.epochs": + if len(x.Epochs) == 0 { + return protoreflect.ValueOfList(&_QueryEpochsInfoResponse_1_list{}) + } + listValue := &_QueryEpochsInfoResponse_1_list{list: &x.Epochs} + return protoreflect.ValueOfList(listValue) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.epochs.v1beta1.QueryParamsResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.epochs.v1beta1.QueryEpochsInfoResponse")) } - panic(fmt.Errorf("message mycel.epochs.v1beta1.QueryParamsResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message mycel.epochs.v1beta1.QueryEpochsInfoResponse does not contain field %s", descriptor.FullName())) } } @@ -525,15 +578,17 @@ func (x *fastReflection_QueryParamsResponse) Get(descriptor protoreflect.FieldDe // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryParamsResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryEpochsInfoResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "mycel.epochs.v1beta1.QueryParamsResponse.params": - x.Params = value.Message().Interface().(*Params) + case "mycel.epochs.v1beta1.QueryEpochsInfoResponse.epochs": + lv := value.List() + clv := lv.(*_QueryEpochsInfoResponse_1_list) + x.Epochs = *clv.list default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.epochs.v1beta1.QueryParamsResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.epochs.v1beta1.QueryEpochsInfoResponse")) } - panic(fmt.Errorf("message mycel.epochs.v1beta1.QueryParamsResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.epochs.v1beta1.QueryEpochsInfoResponse does not contain field %s", fd.FullName())) } } @@ -547,44 +602,45 @@ func (x *fastReflection_QueryParamsResponse) Set(fd protoreflect.FieldDescriptor // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryParamsResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryEpochsInfoResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "mycel.epochs.v1beta1.QueryParamsResponse.params": - if x.Params == nil { - x.Params = new(Params) + case "mycel.epochs.v1beta1.QueryEpochsInfoResponse.epochs": + if x.Epochs == nil { + x.Epochs = []*EpochInfo{} } - return protoreflect.ValueOfMessage(x.Params.ProtoReflect()) + value := &_QueryEpochsInfoResponse_1_list{list: &x.Epochs} + return protoreflect.ValueOfList(value) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.epochs.v1beta1.QueryParamsResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.epochs.v1beta1.QueryEpochsInfoResponse")) } - panic(fmt.Errorf("message mycel.epochs.v1beta1.QueryParamsResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.epochs.v1beta1.QueryEpochsInfoResponse 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_QueryParamsResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryEpochsInfoResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "mycel.epochs.v1beta1.QueryParamsResponse.params": - m := new(Params) - return protoreflect.ValueOfMessage(m.ProtoReflect()) + case "mycel.epochs.v1beta1.QueryEpochsInfoResponse.epochs": + list := []*EpochInfo{} + return protoreflect.ValueOfList(&_QueryEpochsInfoResponse_1_list{list: &list}) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.epochs.v1beta1.QueryParamsResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.epochs.v1beta1.QueryEpochsInfoResponse")) } - panic(fmt.Errorf("message mycel.epochs.v1beta1.QueryParamsResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.epochs.v1beta1.QueryEpochsInfoResponse 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_QueryParamsResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryEpochsInfoResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in mycel.epochs.v1beta1.QueryParamsResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in mycel.epochs.v1beta1.QueryEpochsInfoResponse", d.FullName())) } panic("unreachable") } @@ -592,7 +648,7 @@ func (x *fastReflection_QueryParamsResponse) WhichOneof(d protoreflect.OneofDesc // 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_QueryParamsResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryEpochsInfoResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -603,7 +659,7 @@ func (x *fastReflection_QueryParamsResponse) 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_QueryParamsResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryEpochsInfoResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -615,7 +671,7 @@ func (x *fastReflection_QueryParamsResponse) SetUnknown(fields protoreflect.RawF // 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_QueryParamsResponse) IsValid() bool { +func (x *fastReflection_QueryEpochsInfoResponse) IsValid() bool { return x != nil } @@ -625,9 +681,9 @@ func (x *fastReflection_QueryParamsResponse) 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_QueryParamsResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryEpochsInfoResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryParamsResponse) + x := input.Message.Interface().(*QueryEpochsInfoResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -639,9 +695,11 @@ func (x *fastReflection_QueryParamsResponse) ProtoMethods() *protoiface.Methods var n int var l int _ = l - if x.Params != nil { - l = options.Size(x.Params) - n += 1 + l + runtime.Sov(uint64(l)) + if len(x.Epochs) > 0 { + for _, e := range x.Epochs { + l = options.Size(e) + n += 1 + l + runtime.Sov(uint64(l)) + } } if x.unknownFields != nil { n += len(x.unknownFields) @@ -653,7 +711,7 @@ func (x *fastReflection_QueryParamsResponse) ProtoMethods() *protoiface.Methods } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryParamsResponse) + x := input.Message.Interface().(*QueryEpochsInfoResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -672,19 +730,21 @@ func (x *fastReflection_QueryParamsResponse) ProtoMethods() *protoiface.Methods i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if x.Params != nil { - encoded, err := options.Marshal(x.Params) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err + if len(x.Epochs) > 0 { + for iNdEx := len(x.Epochs) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.Epochs[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 } - 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...) @@ -697,7 +757,7 @@ func (x *fastReflection_QueryParamsResponse) ProtoMethods() *protoiface.Methods }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryParamsResponse) + x := input.Message.Interface().(*QueryEpochsInfoResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -729,15 +789,15 @@ func (x *fastReflection_QueryParamsResponse) 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: QueryParamsResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryEpochsInfoResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryParamsResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryEpochsInfoResponse: 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 Params", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Epochs", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -764,10 +824,8 @@ func (x *fastReflection_QueryParamsResponse) ProtoMethods() *protoiface.Methods if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - if x.Params == nil { - x.Params = &Params{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Params); err != nil { + x.Epochs = append(x.Epochs, &EpochInfo{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Epochs[len(x.Epochs)-1]); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } iNdEx = postIndex @@ -807,25 +865,25 @@ func (x *fastReflection_QueryParamsResponse) ProtoMethods() *protoiface.Methods } var ( - md_QueryGetEpochInfoRequest protoreflect.MessageDescriptor - fd_QueryGetEpochInfoRequest_identifier protoreflect.FieldDescriptor + md_QueryCurrentEpochRequest protoreflect.MessageDescriptor + fd_QueryCurrentEpochRequest_identifier protoreflect.FieldDescriptor ) func init() { file_mycel_epochs_v1beta1_query_proto_init() - md_QueryGetEpochInfoRequest = File_mycel_epochs_v1beta1_query_proto.Messages().ByName("QueryGetEpochInfoRequest") - fd_QueryGetEpochInfoRequest_identifier = md_QueryGetEpochInfoRequest.Fields().ByName("identifier") + md_QueryCurrentEpochRequest = File_mycel_epochs_v1beta1_query_proto.Messages().ByName("QueryCurrentEpochRequest") + fd_QueryCurrentEpochRequest_identifier = md_QueryCurrentEpochRequest.Fields().ByName("identifier") } -var _ protoreflect.Message = (*fastReflection_QueryGetEpochInfoRequest)(nil) +var _ protoreflect.Message = (*fastReflection_QueryCurrentEpochRequest)(nil) -type fastReflection_QueryGetEpochInfoRequest QueryGetEpochInfoRequest +type fastReflection_QueryCurrentEpochRequest QueryCurrentEpochRequest -func (x *QueryGetEpochInfoRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryGetEpochInfoRequest)(x) +func (x *QueryCurrentEpochRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryCurrentEpochRequest)(x) } -func (x *QueryGetEpochInfoRequest) slowProtoReflect() protoreflect.Message { +func (x *QueryCurrentEpochRequest) slowProtoReflect() protoreflect.Message { mi := &file_mycel_epochs_v1beta1_query_proto_msgTypes[2] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -837,43 +895,43 @@ func (x *QueryGetEpochInfoRequest) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_QueryGetEpochInfoRequest_messageType fastReflection_QueryGetEpochInfoRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryGetEpochInfoRequest_messageType{} +var _fastReflection_QueryCurrentEpochRequest_messageType fastReflection_QueryCurrentEpochRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryCurrentEpochRequest_messageType{} -type fastReflection_QueryGetEpochInfoRequest_messageType struct{} +type fastReflection_QueryCurrentEpochRequest_messageType struct{} -func (x fastReflection_QueryGetEpochInfoRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryGetEpochInfoRequest)(nil) +func (x fastReflection_QueryCurrentEpochRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryCurrentEpochRequest)(nil) } -func (x fastReflection_QueryGetEpochInfoRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryGetEpochInfoRequest) +func (x fastReflection_QueryCurrentEpochRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryCurrentEpochRequest) } -func (x fastReflection_QueryGetEpochInfoRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryGetEpochInfoRequest +func (x fastReflection_QueryCurrentEpochRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryCurrentEpochRequest } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryGetEpochInfoRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryGetEpochInfoRequest +func (x *fastReflection_QueryCurrentEpochRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryCurrentEpochRequest } // 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_QueryGetEpochInfoRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryGetEpochInfoRequest_messageType +func (x *fastReflection_QueryCurrentEpochRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryCurrentEpochRequest_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryGetEpochInfoRequest) New() protoreflect.Message { - return new(fastReflection_QueryGetEpochInfoRequest) +func (x *fastReflection_QueryCurrentEpochRequest) New() protoreflect.Message { + return new(fastReflection_QueryCurrentEpochRequest) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryGetEpochInfoRequest) Interface() protoreflect.ProtoMessage { - return (*QueryGetEpochInfoRequest)(x) +func (x *fastReflection_QueryCurrentEpochRequest) Interface() protoreflect.ProtoMessage { + return (*QueryCurrentEpochRequest)(x) } // Range iterates over every populated field in an undefined order, @@ -881,10 +939,10 @@ func (x *fastReflection_QueryGetEpochInfoRequest) Interface() protoreflect.Proto // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryGetEpochInfoRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_QueryCurrentEpochRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.Identifier != "" { value := protoreflect.ValueOfString(x.Identifier) - if !f(fd_QueryGetEpochInfoRequest_identifier, value) { + if !f(fd_QueryCurrentEpochRequest_identifier, value) { return } } @@ -901,15 +959,15 @@ func (x *fastReflection_QueryGetEpochInfoRequest) Range(f func(protoreflect.Fiel // 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_QueryGetEpochInfoRequest) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryCurrentEpochRequest) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "mycel.epochs.v1beta1.QueryGetEpochInfoRequest.identifier": + case "mycel.epochs.v1beta1.QueryCurrentEpochRequest.identifier": return x.Identifier != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.epochs.v1beta1.QueryGetEpochInfoRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.epochs.v1beta1.QueryCurrentEpochRequest")) } - panic(fmt.Errorf("message mycel.epochs.v1beta1.QueryGetEpochInfoRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.epochs.v1beta1.QueryCurrentEpochRequest does not contain field %s", fd.FullName())) } } @@ -919,15 +977,15 @@ func (x *fastReflection_QueryGetEpochInfoRequest) Has(fd protoreflect.FieldDescr // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGetEpochInfoRequest) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryCurrentEpochRequest) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "mycel.epochs.v1beta1.QueryGetEpochInfoRequest.identifier": + case "mycel.epochs.v1beta1.QueryCurrentEpochRequest.identifier": x.Identifier = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.epochs.v1beta1.QueryGetEpochInfoRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.epochs.v1beta1.QueryCurrentEpochRequest")) } - panic(fmt.Errorf("message mycel.epochs.v1beta1.QueryGetEpochInfoRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.epochs.v1beta1.QueryCurrentEpochRequest does not contain field %s", fd.FullName())) } } @@ -937,16 +995,16 @@ func (x *fastReflection_QueryGetEpochInfoRequest) Clear(fd protoreflect.FieldDes // 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_QueryGetEpochInfoRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryCurrentEpochRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "mycel.epochs.v1beta1.QueryGetEpochInfoRequest.identifier": + case "mycel.epochs.v1beta1.QueryCurrentEpochRequest.identifier": value := x.Identifier return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.epochs.v1beta1.QueryGetEpochInfoRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.epochs.v1beta1.QueryCurrentEpochRequest")) } - panic(fmt.Errorf("message mycel.epochs.v1beta1.QueryGetEpochInfoRequest does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message mycel.epochs.v1beta1.QueryCurrentEpochRequest does not contain field %s", descriptor.FullName())) } } @@ -960,15 +1018,15 @@ func (x *fastReflection_QueryGetEpochInfoRequest) Get(descriptor protoreflect.Fi // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGetEpochInfoRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryCurrentEpochRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "mycel.epochs.v1beta1.QueryGetEpochInfoRequest.identifier": + case "mycel.epochs.v1beta1.QueryCurrentEpochRequest.identifier": x.Identifier = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.epochs.v1beta1.QueryGetEpochInfoRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.epochs.v1beta1.QueryCurrentEpochRequest")) } - panic(fmt.Errorf("message mycel.epochs.v1beta1.QueryGetEpochInfoRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.epochs.v1beta1.QueryCurrentEpochRequest does not contain field %s", fd.FullName())) } } @@ -982,40 +1040,40 @@ func (x *fastReflection_QueryGetEpochInfoRequest) Set(fd protoreflect.FieldDescr // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGetEpochInfoRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryCurrentEpochRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "mycel.epochs.v1beta1.QueryGetEpochInfoRequest.identifier": - panic(fmt.Errorf("field identifier of message mycel.epochs.v1beta1.QueryGetEpochInfoRequest is not mutable")) + case "mycel.epochs.v1beta1.QueryCurrentEpochRequest.identifier": + panic(fmt.Errorf("field identifier of message mycel.epochs.v1beta1.QueryCurrentEpochRequest is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.epochs.v1beta1.QueryGetEpochInfoRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.epochs.v1beta1.QueryCurrentEpochRequest")) } - panic(fmt.Errorf("message mycel.epochs.v1beta1.QueryGetEpochInfoRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.epochs.v1beta1.QueryCurrentEpochRequest 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_QueryGetEpochInfoRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryCurrentEpochRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "mycel.epochs.v1beta1.QueryGetEpochInfoRequest.identifier": + case "mycel.epochs.v1beta1.QueryCurrentEpochRequest.identifier": return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.epochs.v1beta1.QueryGetEpochInfoRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.epochs.v1beta1.QueryCurrentEpochRequest")) } - panic(fmt.Errorf("message mycel.epochs.v1beta1.QueryGetEpochInfoRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.epochs.v1beta1.QueryCurrentEpochRequest 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_QueryGetEpochInfoRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryCurrentEpochRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in mycel.epochs.v1beta1.QueryGetEpochInfoRequest", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in mycel.epochs.v1beta1.QueryCurrentEpochRequest", d.FullName())) } panic("unreachable") } @@ -1023,7 +1081,7 @@ func (x *fastReflection_QueryGetEpochInfoRequest) WhichOneof(d protoreflect.Oneo // 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_QueryGetEpochInfoRequest) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryCurrentEpochRequest) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -1034,7 +1092,7 @@ func (x *fastReflection_QueryGetEpochInfoRequest) GetUnknown() protoreflect.RawF // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGetEpochInfoRequest) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryCurrentEpochRequest) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -1046,7 +1104,7 @@ func (x *fastReflection_QueryGetEpochInfoRequest) SetUnknown(fields protoreflect // 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_QueryGetEpochInfoRequest) IsValid() bool { +func (x *fastReflection_QueryCurrentEpochRequest) IsValid() bool { return x != nil } @@ -1056,9 +1114,9 @@ func (x *fastReflection_QueryGetEpochInfoRequest) 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_QueryGetEpochInfoRequest) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryCurrentEpochRequest) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryGetEpochInfoRequest) + x := input.Message.Interface().(*QueryCurrentEpochRequest) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -1084,7 +1142,7 @@ func (x *fastReflection_QueryGetEpochInfoRequest) ProtoMethods() *protoiface.Met } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryGetEpochInfoRequest) + x := input.Message.Interface().(*QueryCurrentEpochRequest) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -1121,7 +1179,7 @@ func (x *fastReflection_QueryGetEpochInfoRequest) ProtoMethods() *protoiface.Met }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryGetEpochInfoRequest) + x := input.Message.Interface().(*QueryCurrentEpochRequest) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -1153,10 +1211,10 @@ func (x *fastReflection_QueryGetEpochInfoRequest) ProtoMethods() *protoiface.Met fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetEpochInfoRequest: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryCurrentEpochRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetEpochInfoRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryCurrentEpochRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -1227,25 +1285,25 @@ func (x *fastReflection_QueryGetEpochInfoRequest) ProtoMethods() *protoiface.Met } var ( - md_QueryGetEpochInfoResponse protoreflect.MessageDescriptor - fd_QueryGetEpochInfoResponse_epoch_info protoreflect.FieldDescriptor + md_QueryCurrentEpochResponse protoreflect.MessageDescriptor + fd_QueryCurrentEpochResponse_epoch_info protoreflect.FieldDescriptor ) func init() { file_mycel_epochs_v1beta1_query_proto_init() - md_QueryGetEpochInfoResponse = File_mycel_epochs_v1beta1_query_proto.Messages().ByName("QueryGetEpochInfoResponse") - fd_QueryGetEpochInfoResponse_epoch_info = md_QueryGetEpochInfoResponse.Fields().ByName("epoch_info") + md_QueryCurrentEpochResponse = File_mycel_epochs_v1beta1_query_proto.Messages().ByName("QueryCurrentEpochResponse") + fd_QueryCurrentEpochResponse_epoch_info = md_QueryCurrentEpochResponse.Fields().ByName("epoch_info") } -var _ protoreflect.Message = (*fastReflection_QueryGetEpochInfoResponse)(nil) +var _ protoreflect.Message = (*fastReflection_QueryCurrentEpochResponse)(nil) -type fastReflection_QueryGetEpochInfoResponse QueryGetEpochInfoResponse +type fastReflection_QueryCurrentEpochResponse QueryCurrentEpochResponse -func (x *QueryGetEpochInfoResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryGetEpochInfoResponse)(x) +func (x *QueryCurrentEpochResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryCurrentEpochResponse)(x) } -func (x *QueryGetEpochInfoResponse) slowProtoReflect() protoreflect.Message { +func (x *QueryCurrentEpochResponse) slowProtoReflect() protoreflect.Message { mi := &file_mycel_epochs_v1beta1_query_proto_msgTypes[3] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -1257,43 +1315,43 @@ func (x *QueryGetEpochInfoResponse) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_QueryGetEpochInfoResponse_messageType fastReflection_QueryGetEpochInfoResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryGetEpochInfoResponse_messageType{} +var _fastReflection_QueryCurrentEpochResponse_messageType fastReflection_QueryCurrentEpochResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryCurrentEpochResponse_messageType{} -type fastReflection_QueryGetEpochInfoResponse_messageType struct{} +type fastReflection_QueryCurrentEpochResponse_messageType struct{} -func (x fastReflection_QueryGetEpochInfoResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryGetEpochInfoResponse)(nil) +func (x fastReflection_QueryCurrentEpochResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryCurrentEpochResponse)(nil) } -func (x fastReflection_QueryGetEpochInfoResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryGetEpochInfoResponse) +func (x fastReflection_QueryCurrentEpochResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryCurrentEpochResponse) } -func (x fastReflection_QueryGetEpochInfoResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryGetEpochInfoResponse +func (x fastReflection_QueryCurrentEpochResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryCurrentEpochResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryGetEpochInfoResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryGetEpochInfoResponse +func (x *fastReflection_QueryCurrentEpochResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryCurrentEpochResponse } // 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_QueryGetEpochInfoResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryGetEpochInfoResponse_messageType +func (x *fastReflection_QueryCurrentEpochResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryCurrentEpochResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryGetEpochInfoResponse) New() protoreflect.Message { - return new(fastReflection_QueryGetEpochInfoResponse) +func (x *fastReflection_QueryCurrentEpochResponse) New() protoreflect.Message { + return new(fastReflection_QueryCurrentEpochResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryGetEpochInfoResponse) Interface() protoreflect.ProtoMessage { - return (*QueryGetEpochInfoResponse)(x) +func (x *fastReflection_QueryCurrentEpochResponse) Interface() protoreflect.ProtoMessage { + return (*QueryCurrentEpochResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -1301,10 +1359,10 @@ func (x *fastReflection_QueryGetEpochInfoResponse) Interface() protoreflect.Prot // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryGetEpochInfoResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_QueryCurrentEpochResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.EpochInfo != nil { value := protoreflect.ValueOfMessage(x.EpochInfo.ProtoReflect()) - if !f(fd_QueryGetEpochInfoResponse_epoch_info, value) { + if !f(fd_QueryCurrentEpochResponse_epoch_info, value) { return } } @@ -1321,15 +1379,15 @@ func (x *fastReflection_QueryGetEpochInfoResponse) Range(f func(protoreflect.Fie // 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_QueryGetEpochInfoResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryCurrentEpochResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "mycel.epochs.v1beta1.QueryGetEpochInfoResponse.epoch_info": + case "mycel.epochs.v1beta1.QueryCurrentEpochResponse.epoch_info": return x.EpochInfo != nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.epochs.v1beta1.QueryGetEpochInfoResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.epochs.v1beta1.QueryCurrentEpochResponse")) } - panic(fmt.Errorf("message mycel.epochs.v1beta1.QueryGetEpochInfoResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.epochs.v1beta1.QueryCurrentEpochResponse does not contain field %s", fd.FullName())) } } @@ -1339,15 +1397,15 @@ func (x *fastReflection_QueryGetEpochInfoResponse) Has(fd protoreflect.FieldDesc // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGetEpochInfoResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryCurrentEpochResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "mycel.epochs.v1beta1.QueryGetEpochInfoResponse.epoch_info": + case "mycel.epochs.v1beta1.QueryCurrentEpochResponse.epoch_info": x.EpochInfo = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.epochs.v1beta1.QueryGetEpochInfoResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.epochs.v1beta1.QueryCurrentEpochResponse")) } - panic(fmt.Errorf("message mycel.epochs.v1beta1.QueryGetEpochInfoResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.epochs.v1beta1.QueryCurrentEpochResponse does not contain field %s", fd.FullName())) } } @@ -1357,16 +1415,16 @@ func (x *fastReflection_QueryGetEpochInfoResponse) Clear(fd protoreflect.FieldDe // 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_QueryGetEpochInfoResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryCurrentEpochResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "mycel.epochs.v1beta1.QueryGetEpochInfoResponse.epoch_info": + case "mycel.epochs.v1beta1.QueryCurrentEpochResponse.epoch_info": value := x.EpochInfo return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.epochs.v1beta1.QueryGetEpochInfoResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.epochs.v1beta1.QueryCurrentEpochResponse")) } - panic(fmt.Errorf("message mycel.epochs.v1beta1.QueryGetEpochInfoResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message mycel.epochs.v1beta1.QueryCurrentEpochResponse does not contain field %s", descriptor.FullName())) } } @@ -1380,15 +1438,15 @@ func (x *fastReflection_QueryGetEpochInfoResponse) Get(descriptor protoreflect.F // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGetEpochInfoResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryCurrentEpochResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "mycel.epochs.v1beta1.QueryGetEpochInfoResponse.epoch_info": + case "mycel.epochs.v1beta1.QueryCurrentEpochResponse.epoch_info": x.EpochInfo = value.Message().Interface().(*EpochInfo) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.epochs.v1beta1.QueryGetEpochInfoResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.epochs.v1beta1.QueryCurrentEpochResponse")) } - panic(fmt.Errorf("message mycel.epochs.v1beta1.QueryGetEpochInfoResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.epochs.v1beta1.QueryCurrentEpochResponse does not contain field %s", fd.FullName())) } } @@ -1402,44 +1460,44 @@ func (x *fastReflection_QueryGetEpochInfoResponse) Set(fd protoreflect.FieldDesc // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGetEpochInfoResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryCurrentEpochResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "mycel.epochs.v1beta1.QueryGetEpochInfoResponse.epoch_info": + case "mycel.epochs.v1beta1.QueryCurrentEpochResponse.epoch_info": if x.EpochInfo == nil { x.EpochInfo = new(EpochInfo) } return protoreflect.ValueOfMessage(x.EpochInfo.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.epochs.v1beta1.QueryGetEpochInfoResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.epochs.v1beta1.QueryCurrentEpochResponse")) } - panic(fmt.Errorf("message mycel.epochs.v1beta1.QueryGetEpochInfoResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.epochs.v1beta1.QueryCurrentEpochResponse 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_QueryGetEpochInfoResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryCurrentEpochResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "mycel.epochs.v1beta1.QueryGetEpochInfoResponse.epoch_info": + case "mycel.epochs.v1beta1.QueryCurrentEpochResponse.epoch_info": m := new(EpochInfo) return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.epochs.v1beta1.QueryGetEpochInfoResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.epochs.v1beta1.QueryCurrentEpochResponse")) } - panic(fmt.Errorf("message mycel.epochs.v1beta1.QueryGetEpochInfoResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.epochs.v1beta1.QueryCurrentEpochResponse 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_QueryGetEpochInfoResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryCurrentEpochResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in mycel.epochs.v1beta1.QueryGetEpochInfoResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in mycel.epochs.v1beta1.QueryCurrentEpochResponse", d.FullName())) } panic("unreachable") } @@ -1447,7 +1505,7 @@ func (x *fastReflection_QueryGetEpochInfoResponse) WhichOneof(d protoreflect.One // 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_QueryGetEpochInfoResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryCurrentEpochResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -1458,7 +1516,7 @@ func (x *fastReflection_QueryGetEpochInfoResponse) GetUnknown() protoreflect.Raw // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGetEpochInfoResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryCurrentEpochResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -1470,7 +1528,7 @@ func (x *fastReflection_QueryGetEpochInfoResponse) SetUnknown(fields protoreflec // 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_QueryGetEpochInfoResponse) IsValid() bool { +func (x *fastReflection_QueryCurrentEpochResponse) IsValid() bool { return x != nil } @@ -1480,9 +1538,9 @@ func (x *fastReflection_QueryGetEpochInfoResponse) 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_QueryGetEpochInfoResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryCurrentEpochResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryGetEpochInfoResponse) + x := input.Message.Interface().(*QueryCurrentEpochResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -1508,7 +1566,7 @@ func (x *fastReflection_QueryGetEpochInfoResponse) ProtoMethods() *protoiface.Me } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryGetEpochInfoResponse) + x := input.Message.Interface().(*QueryCurrentEpochResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -1552,7 +1610,7 @@ func (x *fastReflection_QueryGetEpochInfoResponse) ProtoMethods() *protoiface.Me }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryGetEpochInfoResponse) + x := input.Message.Interface().(*QueryCurrentEpochResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -1584,10 +1642,10 @@ func (x *fastReflection_QueryGetEpochInfoResponse) ProtoMethods() *protoiface.Me fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetEpochInfoResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryCurrentEpochResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetEpochInfoResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryCurrentEpochResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -1661,1332 +1719,213 @@ func (x *fastReflection_QueryGetEpochInfoResponse) ProtoMethods() *protoiface.Me } } -var ( - md_QueryAllEpochInfoRequest protoreflect.MessageDescriptor - fd_QueryAllEpochInfoRequest_pagination protoreflect.FieldDescriptor -) - -func init() { - file_mycel_epochs_v1beta1_query_proto_init() - md_QueryAllEpochInfoRequest = File_mycel_epochs_v1beta1_query_proto.Messages().ByName("QueryAllEpochInfoRequest") - fd_QueryAllEpochInfoRequest_pagination = md_QueryAllEpochInfoRequest.Fields().ByName("pagination") -} - -var _ protoreflect.Message = (*fastReflection_QueryAllEpochInfoRequest)(nil) +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.27.0 +// protoc (unknown) +// source: mycel/epochs/v1beta1/query.proto -type fastReflection_QueryAllEpochInfoRequest QueryAllEpochInfoRequest +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) +) -func (x *QueryAllEpochInfoRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryAllEpochInfoRequest)(x) +type QueryEpochsInfoRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (x *QueryAllEpochInfoRequest) slowProtoReflect() protoreflect.Message { - mi := &file_mycel_epochs_v1beta1_query_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { +func (x *QueryEpochsInfoRequest) Reset() { + *x = QueryEpochsInfoRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_mycel_epochs_v1beta1_query_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms + ms.StoreMessageInfo(mi) } - return mi.MessageOf(x) } -var _fastReflection_QueryAllEpochInfoRequest_messageType fastReflection_QueryAllEpochInfoRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryAllEpochInfoRequest_messageType{} +func (x *QueryEpochsInfoRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} -type fastReflection_QueryAllEpochInfoRequest_messageType struct{} +func (*QueryEpochsInfoRequest) ProtoMessage() {} -func (x fastReflection_QueryAllEpochInfoRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryAllEpochInfoRequest)(nil) -} -func (x fastReflection_QueryAllEpochInfoRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryAllEpochInfoRequest) -} -func (x fastReflection_QueryAllEpochInfoRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryAllEpochInfoRequest +// Deprecated: Use QueryEpochsInfoRequest.ProtoReflect.Descriptor instead. +func (*QueryEpochsInfoRequest) Descriptor() ([]byte, []int) { + return file_mycel_epochs_v1beta1_query_proto_rawDescGZIP(), []int{0} } -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_QueryAllEpochInfoRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryAllEpochInfoRequest +type QueryEpochsInfoResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Epochs []*EpochInfo `protobuf:"bytes,1,rep,name=epochs,proto3" json:"epochs,omitempty"` } -// 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_QueryAllEpochInfoRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryAllEpochInfoRequest_messageType +func (x *QueryEpochsInfoResponse) Reset() { + *x = QueryEpochsInfoResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_mycel_epochs_v1beta1_query_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryAllEpochInfoRequest) New() protoreflect.Message { - return new(fastReflection_QueryAllEpochInfoRequest) +func (x *QueryEpochsInfoResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryAllEpochInfoRequest) Interface() protoreflect.ProtoMessage { - return (*QueryAllEpochInfoRequest)(x) +func (*QueryEpochsInfoResponse) ProtoMessage() {} + +// Deprecated: Use QueryEpochsInfoResponse.ProtoReflect.Descriptor instead. +func (*QueryEpochsInfoResponse) Descriptor() ([]byte, []int) { + return file_mycel_epochs_v1beta1_query_proto_rawDescGZIP(), []int{1} } -// 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_QueryAllEpochInfoRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Pagination != nil { - value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) - if !f(fd_QueryAllEpochInfoRequest_pagination, value) { - return - } +func (x *QueryEpochsInfoResponse) GetEpochs() []*EpochInfo { + if x != nil { + return x.Epochs } + return nil } -// 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_QueryAllEpochInfoRequest) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "mycel.epochs.v1beta1.QueryAllEpochInfoRequest.pagination": - return x.Pagination != nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.epochs.v1beta1.QueryAllEpochInfoRequest")) - } - panic(fmt.Errorf("message mycel.epochs.v1beta1.QueryAllEpochInfoRequest does not contain field %s", fd.FullName())) - } +type QueryCurrentEpochRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Identifier string `protobuf:"bytes,1,opt,name=identifier,proto3" json:"identifier,omitempty"` } -// 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_QueryAllEpochInfoRequest) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "mycel.epochs.v1beta1.QueryAllEpochInfoRequest.pagination": - x.Pagination = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.epochs.v1beta1.QueryAllEpochInfoRequest")) - } - panic(fmt.Errorf("message mycel.epochs.v1beta1.QueryAllEpochInfoRequest does not contain field %s", fd.FullName())) +func (x *QueryCurrentEpochRequest) Reset() { + *x = QueryCurrentEpochRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_mycel_epochs_v1beta1_query_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -// 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_QueryAllEpochInfoRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "mycel.epochs.v1beta1.QueryAllEpochInfoRequest.pagination": - value := x.Pagination - return protoreflect.ValueOfMessage(value.ProtoReflect()) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.epochs.v1beta1.QueryAllEpochInfoRequest")) - } - panic(fmt.Errorf("message mycel.epochs.v1beta1.QueryAllEpochInfoRequest does not contain field %s", descriptor.FullName())) - } +func (x *QueryCurrentEpochRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -// 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_QueryAllEpochInfoRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "mycel.epochs.v1beta1.QueryAllEpochInfoRequest.pagination": - x.Pagination = value.Message().Interface().(*v1beta1.PageRequest) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.epochs.v1beta1.QueryAllEpochInfoRequest")) - } - panic(fmt.Errorf("message mycel.epochs.v1beta1.QueryAllEpochInfoRequest does not contain field %s", fd.FullName())) - } +func (*QueryCurrentEpochRequest) ProtoMessage() {} + +// Deprecated: Use QueryCurrentEpochRequest.ProtoReflect.Descriptor instead. +func (*QueryCurrentEpochRequest) Descriptor() ([]byte, []int) { + return file_mycel_epochs_v1beta1_query_proto_rawDescGZIP(), []int{2} } -// 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_QueryAllEpochInfoRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "mycel.epochs.v1beta1.QueryAllEpochInfoRequest.pagination": - if x.Pagination == nil { - x.Pagination = new(v1beta1.PageRequest) - } - return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.epochs.v1beta1.QueryAllEpochInfoRequest")) - } - panic(fmt.Errorf("message mycel.epochs.v1beta1.QueryAllEpochInfoRequest does not contain field %s", fd.FullName())) +func (x *QueryCurrentEpochRequest) GetIdentifier() string { + if x != nil { + return x.Identifier } + return "" } -// 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_QueryAllEpochInfoRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "mycel.epochs.v1beta1.QueryAllEpochInfoRequest.pagination": - m := new(v1beta1.PageRequest) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.epochs.v1beta1.QueryAllEpochInfoRequest")) - } - panic(fmt.Errorf("message mycel.epochs.v1beta1.QueryAllEpochInfoRequest does not contain field %s", fd.FullName())) - } +type QueryCurrentEpochResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + EpochInfo *EpochInfo `protobuf:"bytes,1,opt,name=epoch_info,json=epochInfo,proto3" json:"epoch_info,omitempty"` } -// 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_QueryAllEpochInfoRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in mycel.epochs.v1beta1.QueryAllEpochInfoRequest", d.FullName())) +func (x *QueryCurrentEpochResponse) Reset() { + *x = QueryCurrentEpochResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_mycel_epochs_v1beta1_query_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - 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_QueryAllEpochInfoRequest) GetUnknown() protoreflect.RawFields { - return x.unknownFields +func (x *QueryCurrentEpochResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -// 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_QueryAllEpochInfoRequest) 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_QueryAllEpochInfoRequest) 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_QueryAllEpochInfoRequest) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryAllEpochInfoRequest) - 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.Pagination != nil { - l = options.Size(x.Pagination) - 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().(*QueryAllEpochInfoRequest) - 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.Pagination != nil { - encoded, err := options.Marshal(x.Pagination) - 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().(*QueryAllEpochInfoRequest) - 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: QueryAllEpochInfoRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryAllEpochInfoRequest: 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 Pagination", 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.Pagination == nil { - x.Pagination = &v1beta1.PageRequest{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Pagination); 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 _ protoreflect.List = (*_QueryAllEpochInfoResponse_1_list)(nil) - -type _QueryAllEpochInfoResponse_1_list struct { - list *[]*EpochInfo -} - -func (x *_QueryAllEpochInfoResponse_1_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_QueryAllEpochInfoResponse_1_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) -} - -func (x *_QueryAllEpochInfoResponse_1_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*EpochInfo) - (*x.list)[i] = concreteValue -} - -func (x *_QueryAllEpochInfoResponse_1_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*EpochInfo) - *x.list = append(*x.list, concreteValue) -} - -func (x *_QueryAllEpochInfoResponse_1_list) AppendMutable() protoreflect.Value { - v := new(EpochInfo) - *x.list = append(*x.list, v) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_QueryAllEpochInfoResponse_1_list) Truncate(n int) { - for i := n; i < len(*x.list); i++ { - (*x.list)[i] = nil - } - *x.list = (*x.list)[:n] -} - -func (x *_QueryAllEpochInfoResponse_1_list) NewElement() protoreflect.Value { - v := new(EpochInfo) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_QueryAllEpochInfoResponse_1_list) IsValid() bool { - return x.list != nil -} - -var ( - md_QueryAllEpochInfoResponse protoreflect.MessageDescriptor - fd_QueryAllEpochInfoResponse_epoch_info protoreflect.FieldDescriptor - fd_QueryAllEpochInfoResponse_pagination protoreflect.FieldDescriptor -) - -func init() { - file_mycel_epochs_v1beta1_query_proto_init() - md_QueryAllEpochInfoResponse = File_mycel_epochs_v1beta1_query_proto.Messages().ByName("QueryAllEpochInfoResponse") - fd_QueryAllEpochInfoResponse_epoch_info = md_QueryAllEpochInfoResponse.Fields().ByName("epoch_info") - fd_QueryAllEpochInfoResponse_pagination = md_QueryAllEpochInfoResponse.Fields().ByName("pagination") -} - -var _ protoreflect.Message = (*fastReflection_QueryAllEpochInfoResponse)(nil) - -type fastReflection_QueryAllEpochInfoResponse QueryAllEpochInfoResponse - -func (x *QueryAllEpochInfoResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryAllEpochInfoResponse)(x) -} - -func (x *QueryAllEpochInfoResponse) slowProtoReflect() protoreflect.Message { - mi := &file_mycel_epochs_v1beta1_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_QueryAllEpochInfoResponse_messageType fastReflection_QueryAllEpochInfoResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryAllEpochInfoResponse_messageType{} - -type fastReflection_QueryAllEpochInfoResponse_messageType struct{} - -func (x fastReflection_QueryAllEpochInfoResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryAllEpochInfoResponse)(nil) -} -func (x fastReflection_QueryAllEpochInfoResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryAllEpochInfoResponse) -} -func (x fastReflection_QueryAllEpochInfoResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryAllEpochInfoResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_QueryAllEpochInfoResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryAllEpochInfoResponse -} - -// 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_QueryAllEpochInfoResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryAllEpochInfoResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryAllEpochInfoResponse) New() protoreflect.Message { - return new(fastReflection_QueryAllEpochInfoResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryAllEpochInfoResponse) Interface() protoreflect.ProtoMessage { - return (*QueryAllEpochInfoResponse)(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_QueryAllEpochInfoResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if len(x.EpochInfo) != 0 { - value := protoreflect.ValueOfList(&_QueryAllEpochInfoResponse_1_list{list: &x.EpochInfo}) - if !f(fd_QueryAllEpochInfoResponse_epoch_info, value) { - return - } - } - if x.Pagination != nil { - value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) - if !f(fd_QueryAllEpochInfoResponse_pagination, 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_QueryAllEpochInfoResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "mycel.epochs.v1beta1.QueryAllEpochInfoResponse.epoch_info": - return len(x.EpochInfo) != 0 - case "mycel.epochs.v1beta1.QueryAllEpochInfoResponse.pagination": - return x.Pagination != nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.epochs.v1beta1.QueryAllEpochInfoResponse")) - } - panic(fmt.Errorf("message mycel.epochs.v1beta1.QueryAllEpochInfoResponse 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_QueryAllEpochInfoResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "mycel.epochs.v1beta1.QueryAllEpochInfoResponse.epoch_info": - x.EpochInfo = nil - case "mycel.epochs.v1beta1.QueryAllEpochInfoResponse.pagination": - x.Pagination = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.epochs.v1beta1.QueryAllEpochInfoResponse")) - } - panic(fmt.Errorf("message mycel.epochs.v1beta1.QueryAllEpochInfoResponse 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_QueryAllEpochInfoResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "mycel.epochs.v1beta1.QueryAllEpochInfoResponse.epoch_info": - if len(x.EpochInfo) == 0 { - return protoreflect.ValueOfList(&_QueryAllEpochInfoResponse_1_list{}) - } - listValue := &_QueryAllEpochInfoResponse_1_list{list: &x.EpochInfo} - return protoreflect.ValueOfList(listValue) - case "mycel.epochs.v1beta1.QueryAllEpochInfoResponse.pagination": - value := x.Pagination - return protoreflect.ValueOfMessage(value.ProtoReflect()) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.epochs.v1beta1.QueryAllEpochInfoResponse")) - } - panic(fmt.Errorf("message mycel.epochs.v1beta1.QueryAllEpochInfoResponse 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_QueryAllEpochInfoResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "mycel.epochs.v1beta1.QueryAllEpochInfoResponse.epoch_info": - lv := value.List() - clv := lv.(*_QueryAllEpochInfoResponse_1_list) - x.EpochInfo = *clv.list - case "mycel.epochs.v1beta1.QueryAllEpochInfoResponse.pagination": - x.Pagination = value.Message().Interface().(*v1beta1.PageResponse) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.epochs.v1beta1.QueryAllEpochInfoResponse")) - } - panic(fmt.Errorf("message mycel.epochs.v1beta1.QueryAllEpochInfoResponse 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_QueryAllEpochInfoResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "mycel.epochs.v1beta1.QueryAllEpochInfoResponse.epoch_info": - if x.EpochInfo == nil { - x.EpochInfo = []*EpochInfo{} - } - value := &_QueryAllEpochInfoResponse_1_list{list: &x.EpochInfo} - return protoreflect.ValueOfList(value) - case "mycel.epochs.v1beta1.QueryAllEpochInfoResponse.pagination": - if x.Pagination == nil { - x.Pagination = new(v1beta1.PageResponse) - } - return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.epochs.v1beta1.QueryAllEpochInfoResponse")) - } - panic(fmt.Errorf("message mycel.epochs.v1beta1.QueryAllEpochInfoResponse 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_QueryAllEpochInfoResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "mycel.epochs.v1beta1.QueryAllEpochInfoResponse.epoch_info": - list := []*EpochInfo{} - return protoreflect.ValueOfList(&_QueryAllEpochInfoResponse_1_list{list: &list}) - case "mycel.epochs.v1beta1.QueryAllEpochInfoResponse.pagination": - m := new(v1beta1.PageResponse) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.epochs.v1beta1.QueryAllEpochInfoResponse")) - } - panic(fmt.Errorf("message mycel.epochs.v1beta1.QueryAllEpochInfoResponse 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_QueryAllEpochInfoResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in mycel.epochs.v1beta1.QueryAllEpochInfoResponse", 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_QueryAllEpochInfoResponse) 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_QueryAllEpochInfoResponse) 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_QueryAllEpochInfoResponse) 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_QueryAllEpochInfoResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryAllEpochInfoResponse) - 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.EpochInfo) > 0 { - for _, e := range x.EpochInfo { - l = options.Size(e) - n += 1 + l + runtime.Sov(uint64(l)) - } - } - if x.Pagination != nil { - l = options.Size(x.Pagination) - 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().(*QueryAllEpochInfoResponse) - 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.Pagination != nil { - encoded, err := options.Marshal(x.Pagination) - 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] = 0x12 - } - if len(x.EpochInfo) > 0 { - for iNdEx := len(x.EpochInfo) - 1; iNdEx >= 0; iNdEx-- { - encoded, err := options.Marshal(x.EpochInfo[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().(*QueryAllEpochInfoResponse) - 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: QueryAllEpochInfoResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryAllEpochInfoResponse: 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 EpochInfo", 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.EpochInfo = append(x.EpochInfo, &EpochInfo{}) - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.EpochInfo[len(x.EpochInfo)-1]); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Pagination", 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.Pagination == nil { - x.Pagination = &v1beta1.PageResponse{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Pagination); 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 -// protoc (unknown) -// source: mycel/epochs/v1beta1/query.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) -) - -// QueryParamsRequest is request type for the Query/Params RPC method. -type QueryParamsRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *QueryParamsRequest) Reset() { - *x = QueryParamsRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_mycel_epochs_v1beta1_query_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QueryParamsRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QueryParamsRequest) ProtoMessage() {} - -// Deprecated: Use QueryParamsRequest.ProtoReflect.Descriptor instead. -func (*QueryParamsRequest) Descriptor() ([]byte, []int) { - return file_mycel_epochs_v1beta1_query_proto_rawDescGZIP(), []int{0} -} - -// QueryParamsResponse is response type for the Query/Params RPC method. -type QueryParamsResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // params holds all the parameters of this module. - Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"` -} - -func (x *QueryParamsResponse) Reset() { - *x = QueryParamsResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_mycel_epochs_v1beta1_query_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QueryParamsResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} +func (*QueryCurrentEpochResponse) ProtoMessage() {} -func (*QueryParamsResponse) ProtoMessage() {} - -// Deprecated: Use QueryParamsResponse.ProtoReflect.Descriptor instead. -func (*QueryParamsResponse) Descriptor() ([]byte, []int) { - return file_mycel_epochs_v1beta1_query_proto_rawDescGZIP(), []int{1} -} - -func (x *QueryParamsResponse) GetParams() *Params { - if x != nil { - return x.Params - } - return nil -} - -type QueryGetEpochInfoRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Identifier string `protobuf:"bytes,1,opt,name=identifier,proto3" json:"identifier,omitempty"` -} - -func (x *QueryGetEpochInfoRequest) Reset() { - *x = QueryGetEpochInfoRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_mycel_epochs_v1beta1_query_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QueryGetEpochInfoRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QueryGetEpochInfoRequest) ProtoMessage() {} - -// Deprecated: Use QueryGetEpochInfoRequest.ProtoReflect.Descriptor instead. -func (*QueryGetEpochInfoRequest) Descriptor() ([]byte, []int) { - return file_mycel_epochs_v1beta1_query_proto_rawDescGZIP(), []int{2} -} - -func (x *QueryGetEpochInfoRequest) GetIdentifier() string { - if x != nil { - return x.Identifier - } - return "" -} - -type QueryGetEpochInfoResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - EpochInfo *EpochInfo `protobuf:"bytes,1,opt,name=epoch_info,json=epochInfo,proto3" json:"epoch_info,omitempty"` -} - -func (x *QueryGetEpochInfoResponse) Reset() { - *x = QueryGetEpochInfoResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_mycel_epochs_v1beta1_query_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QueryGetEpochInfoResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QueryGetEpochInfoResponse) ProtoMessage() {} - -// Deprecated: Use QueryGetEpochInfoResponse.ProtoReflect.Descriptor instead. -func (*QueryGetEpochInfoResponse) Descriptor() ([]byte, []int) { +// Deprecated: Use QueryCurrentEpochResponse.ProtoReflect.Descriptor instead. +func (*QueryCurrentEpochResponse) Descriptor() ([]byte, []int) { return file_mycel_epochs_v1beta1_query_proto_rawDescGZIP(), []int{3} } -func (x *QueryGetEpochInfoResponse) GetEpochInfo() *EpochInfo { - if x != nil { - return x.EpochInfo - } - return nil -} - -type QueryAllEpochInfoRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Pagination *v1beta1.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` -} - -func (x *QueryAllEpochInfoRequest) Reset() { - *x = QueryAllEpochInfoRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_mycel_epochs_v1beta1_query_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QueryAllEpochInfoRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QueryAllEpochInfoRequest) ProtoMessage() {} - -// Deprecated: Use QueryAllEpochInfoRequest.ProtoReflect.Descriptor instead. -func (*QueryAllEpochInfoRequest) Descriptor() ([]byte, []int) { - return file_mycel_epochs_v1beta1_query_proto_rawDescGZIP(), []int{4} -} - -func (x *QueryAllEpochInfoRequest) GetPagination() *v1beta1.PageRequest { - if x != nil { - return x.Pagination - } - return nil -} - -type QueryAllEpochInfoResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - EpochInfo []*EpochInfo `protobuf:"bytes,1,rep,name=epoch_info,json=epochInfo,proto3" json:"epoch_info,omitempty"` - Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` -} - -func (x *QueryAllEpochInfoResponse) Reset() { - *x = QueryAllEpochInfoResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_mycel_epochs_v1beta1_query_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QueryAllEpochInfoResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QueryAllEpochInfoResponse) ProtoMessage() {} - -// Deprecated: Use QueryAllEpochInfoResponse.ProtoReflect.Descriptor instead. -func (*QueryAllEpochInfoResponse) Descriptor() ([]byte, []int) { - return file_mycel_epochs_v1beta1_query_proto_rawDescGZIP(), []int{5} -} - -func (x *QueryAllEpochInfoResponse) GetEpochInfo() []*EpochInfo { +func (x *QueryCurrentEpochResponse) GetEpochInfo() *EpochInfo { if x != nil { return x.EpochInfo } return nil } -func (x *QueryAllEpochInfoResponse) GetPagination() *v1beta1.PageResponse { - if x != nil { - return x.Pagination - } - return nil -} - var File_mycel_epochs_v1beta1_query_proto protoreflect.FileDescriptor var file_mycel_epochs_v1beta1_query_proto_rawDesc = []byte{ 0x0a, 0x20, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2f, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x73, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x14, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x73, - 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x1a, 0x2a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, - 0x2f, 0x62, 0x61, 0x73, 0x65, 0x2f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x62, 0x65, - 0x74, 0x61, 0x31, 0x2f, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 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, 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, 0x25, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2f, - 0x65, 0x70, 0x6f, 0x63, 0x68, 0x73, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x65, - 0x70, 0x6f, 0x63, 0x68, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, - 0x21, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2f, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x73, 0x2f, 0x76, 0x31, - 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x22, 0x14, 0x0a, 0x12, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, - 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x51, 0x0a, 0x13, 0x51, 0x75, 0x65, 0x72, - 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x3a, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x1c, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x73, 0x2e, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x42, 0x04, 0xc8, - 0xde, 0x1f, 0x00, 0x52, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x22, 0x3a, 0x0a, 0x18, 0x51, - 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x49, 0x6e, 0x66, 0x6f, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1e, 0x0a, 0x0a, 0x69, 0x64, 0x65, 0x6e, 0x74, - 0x69, 0x66, 0x69, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x69, 0x64, 0x65, - 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x22, 0x61, 0x0a, 0x19, 0x51, 0x75, 0x65, 0x72, 0x79, - 0x47, 0x65, 0x74, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x44, 0x0a, 0x0a, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x5f, 0x69, 0x6e, - 0x66, 0x6f, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, + 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x1a, 0x14, 0x67, 0x6f, 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, 0x25, 0x6d, 0x79, + 0x63, 0x65, 0x6c, 0x2f, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x73, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, + 0x61, 0x31, 0x2f, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x22, 0x18, 0x0a, 0x16, 0x51, 0x75, 0x65, 0x72, 0x79, 0x45, 0x70, 0x6f, 0x63, + 0x68, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x58, 0x0a, + 0x17, 0x51, 0x75, 0x65, 0x72, 0x79, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x73, 0x49, 0x6e, 0x66, 0x6f, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3d, 0x0a, 0x06, 0x65, 0x70, 0x6f, 0x63, + 0x68, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x49, 0x6e, 0x66, 0x6f, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, - 0x09, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x49, 0x6e, 0x66, 0x6f, 0x22, 0x62, 0x0a, 0x18, 0x51, 0x75, - 0x65, 0x72, 0x79, 0x41, 0x6c, 0x6c, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x49, 0x6e, 0x66, 0x6f, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x46, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x63, 0x6f, 0x73, - 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xaa, - 0x01, 0x0a, 0x19, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x6c, 0x6c, 0x45, 0x70, 0x6f, 0x63, 0x68, - 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x44, 0x0a, 0x0a, - 0x65, 0x70, 0x6f, 0x63, 0x68, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x1f, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x73, 0x2e, - 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x49, 0x6e, 0x66, - 0x6f, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x09, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x49, 0x6e, - 0x66, 0x6f, 0x12, 0x47, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, - 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, - 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, - 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x32, 0xcf, 0x03, 0x0a, 0x05, - 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x83, 0x01, 0x0a, 0x06, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, - 0x12, 0x28, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x73, 0x2e, - 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, - 0x61, 0x6d, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x6d, 0x79, 0x63, - 0x65, 0x6c, 0x2e, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, - 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x24, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1e, 0x12, 0x1c, 0x2f, - 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2f, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x73, 0x2f, 0x76, 0x31, 0x62, - 0x65, 0x74, 0x61, 0x31, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0xa3, 0x01, 0x0a, 0x09, - 0x45, 0x70, 0x6f, 0x63, 0x68, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x2e, 0x2e, 0x6d, 0x79, 0x63, 0x65, - 0x6c, 0x2e, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, - 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x49, 0x6e, - 0x66, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2f, 0x2e, 0x6d, 0x79, 0x63, 0x65, - 0x6c, 0x2e, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, - 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x49, 0x6e, - 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x35, 0x82, 0xd3, 0xe4, 0x93, - 0x02, 0x2f, 0x12, 0x2d, 0x2f, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2f, 0x65, 0x70, 0x6f, 0x63, 0x68, - 0x73, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x5f, - 0x69, 0x6e, 0x66, 0x6f, 0x2f, 0x7b, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, - 0x7d, 0x12, 0x99, 0x01, 0x0a, 0x0c, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x49, 0x6e, 0x66, 0x6f, 0x41, - 0x6c, 0x6c, 0x12, 0x2e, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x65, 0x70, 0x6f, 0x63, 0x68, - 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, - 0x6c, 0x6c, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x2f, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x65, 0x70, 0x6f, 0x63, 0x68, - 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, - 0x6c, 0x6c, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x22, 0x28, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x22, 0x12, 0x20, 0x2f, 0x6d, 0x79, - 0x63, 0x65, 0x6c, 0x2f, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x73, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, - 0x61, 0x31, 0x2f, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x42, 0xc6, 0x01, - 0x0a, 0x18, 0x63, 0x6f, 0x6d, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x65, 0x70, 0x6f, 0x63, - 0x68, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x42, 0x0a, 0x51, 0x75, 0x65, 0x72, - 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2c, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, - 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2d, 0x64, 0x6f, 0x6d, 0x61, 0x69, - 0x6e, 0x2f, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2f, 0x78, 0x2f, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x73, - 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0xa2, 0x02, 0x03, 0x4d, 0x45, 0x58, 0xaa, 0x02, 0x14, 0x4d, - 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x73, 0x2e, 0x56, 0x31, 0x62, 0x65, - 0x74, 0x61, 0x31, 0xca, 0x02, 0x14, 0x4d, 0x79, 0x63, 0x65, 0x6c, 0x5c, 0x45, 0x70, 0x6f, 0x63, - 0x68, 0x73, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xe2, 0x02, 0x20, 0x4d, 0x79, 0x63, - 0x65, 0x6c, 0x5c, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x73, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, - 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x16, - 0x4d, 0x79, 0x63, 0x65, 0x6c, 0x3a, 0x3a, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x73, 0x3a, 0x3a, 0x56, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x06, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x73, 0x22, 0x3a, 0x0a, 0x18, 0x51, 0x75, 0x65, 0x72, 0x79, + 0x43, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x1e, 0x0a, 0x0a, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, + 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, + 0x69, 0x65, 0x72, 0x22, 0x61, 0x0a, 0x19, 0x51, 0x75, 0x65, 0x72, 0x79, 0x43, 0x75, 0x72, 0x72, + 0x65, 0x6e, 0x74, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x44, 0x0a, 0x0a, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x65, 0x70, 0x6f, + 0x63, 0x68, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x45, 0x70, 0x6f, 0x63, + 0x68, 0x49, 0x6e, 0x66, 0x6f, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x09, 0x65, 0x70, 0x6f, + 0x63, 0x68, 0x49, 0x6e, 0x66, 0x6f, 0x32, 0xb8, 0x02, 0x0a, 0x05, 0x51, 0x75, 0x65, 0x72, 0x79, + 0x12, 0x8f, 0x01, 0x0a, 0x0a, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x49, 0x6e, 0x66, 0x6f, 0x73, 0x12, + 0x2c, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x73, 0x2e, 0x76, + 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x45, 0x70, 0x6f, 0x63, + 0x68, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2d, 0x2e, + 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x73, 0x2e, 0x76, 0x31, 0x62, + 0x65, 0x74, 0x61, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x73, + 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x24, 0x82, 0xd3, + 0xe4, 0x93, 0x02, 0x1e, 0x12, 0x1c, 0x2f, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2f, 0x65, 0x70, 0x6f, + 0x63, 0x68, 0x73, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x65, 0x70, 0x6f, 0x63, + 0x68, 0x73, 0x12, 0x9c, 0x01, 0x0a, 0x0c, 0x43, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x45, 0x70, + 0x6f, 0x63, 0x68, 0x12, 0x2e, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x65, 0x70, 0x6f, 0x63, + 0x68, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, + 0x43, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x2f, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x65, 0x70, 0x6f, 0x63, + 0x68, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, + 0x43, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x25, 0x12, 0x23, 0x2f, 0x6d, + 0x79, 0x63, 0x65, 0x6c, 0x2f, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x73, 0x2f, 0x76, 0x31, 0x62, 0x65, + 0x74, 0x61, 0x31, 0x2f, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x65, 0x70, 0x6f, 0x63, + 0x68, 0x42, 0xc6, 0x01, 0x0a, 0x18, 0x63, 0x6f, 0x6d, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, + 0x65, 0x70, 0x6f, 0x63, 0x68, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x42, 0x0a, + 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2c, 0x67, 0x69, + 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2d, 0x64, + 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x2f, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2f, 0x78, 0x2f, 0x65, 0x70, + 0x6f, 0x63, 0x68, 0x73, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0xa2, 0x02, 0x03, 0x4d, 0x45, 0x58, + 0xaa, 0x02, 0x14, 0x4d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x73, 0x2e, + 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xca, 0x02, 0x14, 0x4d, 0x79, 0x63, 0x65, 0x6c, 0x5c, + 0x45, 0x70, 0x6f, 0x63, 0x68, 0x73, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xe2, 0x02, + 0x20, 0x4d, 0x79, 0x63, 0x65, 0x6c, 0x5c, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x73, 0x5c, 0x56, 0x31, + 0x62, 0x65, 0x74, 0x61, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, + 0x61, 0xea, 0x02, 0x16, 0x4d, 0x79, 0x63, 0x65, 0x6c, 0x3a, 0x3a, 0x45, 0x70, 0x6f, 0x63, 0x68, + 0x73, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x33, } var ( @@ -3001,36 +1940,26 @@ func file_mycel_epochs_v1beta1_query_proto_rawDescGZIP() []byte { return file_mycel_epochs_v1beta1_query_proto_rawDescData } -var file_mycel_epochs_v1beta1_query_proto_msgTypes = make([]protoimpl.MessageInfo, 6) +var file_mycel_epochs_v1beta1_query_proto_msgTypes = make([]protoimpl.MessageInfo, 4) var file_mycel_epochs_v1beta1_query_proto_goTypes = []interface{}{ - (*QueryParamsRequest)(nil), // 0: mycel.epochs.v1beta1.QueryParamsRequest - (*QueryParamsResponse)(nil), // 1: mycel.epochs.v1beta1.QueryParamsResponse - (*QueryGetEpochInfoRequest)(nil), // 2: mycel.epochs.v1beta1.QueryGetEpochInfoRequest - (*QueryGetEpochInfoResponse)(nil), // 3: mycel.epochs.v1beta1.QueryGetEpochInfoResponse - (*QueryAllEpochInfoRequest)(nil), // 4: mycel.epochs.v1beta1.QueryAllEpochInfoRequest - (*QueryAllEpochInfoResponse)(nil), // 5: mycel.epochs.v1beta1.QueryAllEpochInfoResponse - (*Params)(nil), // 6: mycel.epochs.v1beta1.Params - (*EpochInfo)(nil), // 7: mycel.epochs.v1beta1.EpochInfo - (*v1beta1.PageRequest)(nil), // 8: cosmos.base.query.v1beta1.PageRequest - (*v1beta1.PageResponse)(nil), // 9: cosmos.base.query.v1beta1.PageResponse + (*QueryEpochsInfoRequest)(nil), // 0: mycel.epochs.v1beta1.QueryEpochsInfoRequest + (*QueryEpochsInfoResponse)(nil), // 1: mycel.epochs.v1beta1.QueryEpochsInfoResponse + (*QueryCurrentEpochRequest)(nil), // 2: mycel.epochs.v1beta1.QueryCurrentEpochRequest + (*QueryCurrentEpochResponse)(nil), // 3: mycel.epochs.v1beta1.QueryCurrentEpochResponse + (*EpochInfo)(nil), // 4: mycel.epochs.v1beta1.EpochInfo } var file_mycel_epochs_v1beta1_query_proto_depIdxs = []int32{ - 6, // 0: mycel.epochs.v1beta1.QueryParamsResponse.params:type_name -> mycel.epochs.v1beta1.Params - 7, // 1: mycel.epochs.v1beta1.QueryGetEpochInfoResponse.epoch_info:type_name -> mycel.epochs.v1beta1.EpochInfo - 8, // 2: mycel.epochs.v1beta1.QueryAllEpochInfoRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest - 7, // 3: mycel.epochs.v1beta1.QueryAllEpochInfoResponse.epoch_info:type_name -> mycel.epochs.v1beta1.EpochInfo - 9, // 4: mycel.epochs.v1beta1.QueryAllEpochInfoResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse - 0, // 5: mycel.epochs.v1beta1.Query.Params:input_type -> mycel.epochs.v1beta1.QueryParamsRequest - 2, // 6: mycel.epochs.v1beta1.Query.EpochInfo:input_type -> mycel.epochs.v1beta1.QueryGetEpochInfoRequest - 4, // 7: mycel.epochs.v1beta1.Query.EpochInfoAll:input_type -> mycel.epochs.v1beta1.QueryAllEpochInfoRequest - 1, // 8: mycel.epochs.v1beta1.Query.Params:output_type -> mycel.epochs.v1beta1.QueryParamsResponse - 3, // 9: mycel.epochs.v1beta1.Query.EpochInfo:output_type -> mycel.epochs.v1beta1.QueryGetEpochInfoResponse - 5, // 10: mycel.epochs.v1beta1.Query.EpochInfoAll:output_type -> mycel.epochs.v1beta1.QueryAllEpochInfoResponse - 8, // [8:11] is the sub-list for method output_type - 5, // [5:8] is the sub-list for method input_type - 5, // [5:5] is the sub-list for extension type_name - 5, // [5:5] is the sub-list for extension extendee - 0, // [0:5] is the sub-list for field type_name + 4, // 0: mycel.epochs.v1beta1.QueryEpochsInfoResponse.epochs:type_name -> mycel.epochs.v1beta1.EpochInfo + 4, // 1: mycel.epochs.v1beta1.QueryCurrentEpochResponse.epoch_info:type_name -> mycel.epochs.v1beta1.EpochInfo + 0, // 2: mycel.epochs.v1beta1.Query.EpochInfos:input_type -> mycel.epochs.v1beta1.QueryEpochsInfoRequest + 2, // 3: mycel.epochs.v1beta1.Query.CurrentEpoch:input_type -> mycel.epochs.v1beta1.QueryCurrentEpochRequest + 1, // 4: mycel.epochs.v1beta1.Query.EpochInfos:output_type -> mycel.epochs.v1beta1.QueryEpochsInfoResponse + 3, // 5: mycel.epochs.v1beta1.Query.CurrentEpoch:output_type -> mycel.epochs.v1beta1.QueryCurrentEpochResponse + 4, // [4:6] is the sub-list for method output_type + 2, // [2:4] is the sub-list for method input_type + 2, // [2:2] is the sub-list for extension type_name + 2, // [2:2] is the sub-list for extension extendee + 0, // [0:2] is the sub-list for field type_name } func init() { file_mycel_epochs_v1beta1_query_proto_init() } @@ -3039,10 +1968,9 @@ func file_mycel_epochs_v1beta1_query_proto_init() { return } file_mycel_epochs_v1beta1_epoch_info_proto_init() - file_mycel_epochs_v1beta1_params_proto_init() if !protoimpl.UnsafeEnabled { file_mycel_epochs_v1beta1_query_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryParamsRequest); i { + switch v := v.(*QueryEpochsInfoRequest); i { case 0: return &v.state case 1: @@ -3054,7 +1982,7 @@ func file_mycel_epochs_v1beta1_query_proto_init() { } } file_mycel_epochs_v1beta1_query_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryParamsResponse); i { + switch v := v.(*QueryEpochsInfoResponse); i { case 0: return &v.state case 1: @@ -3066,7 +1994,7 @@ func file_mycel_epochs_v1beta1_query_proto_init() { } } file_mycel_epochs_v1beta1_query_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryGetEpochInfoRequest); i { + switch v := v.(*QueryCurrentEpochRequest); i { case 0: return &v.state case 1: @@ -3078,31 +2006,7 @@ func file_mycel_epochs_v1beta1_query_proto_init() { } } file_mycel_epochs_v1beta1_query_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryGetEpochInfoResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_mycel_epochs_v1beta1_query_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryAllEpochInfoRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_mycel_epochs_v1beta1_query_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryAllEpochInfoResponse); i { + switch v := v.(*QueryCurrentEpochResponse); i { case 0: return &v.state case 1: @@ -3120,7 +2024,7 @@ func file_mycel_epochs_v1beta1_query_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_mycel_epochs_v1beta1_query_proto_rawDesc, NumEnums: 0, - NumMessages: 6, + NumMessages: 4, NumExtensions: 0, NumServices: 1, }, diff --git a/api/mycel/epochs/v1beta1/query_grpc.pb.go b/api/mycel/epochs/v1beta1/query_grpc.pb.go index 745e7454..00c8cc4b 100644 --- a/api/mycel/epochs/v1beta1/query_grpc.pb.go +++ b/api/mycel/epochs/v1beta1/query_grpc.pb.go @@ -19,20 +19,18 @@ import ( const _ = grpc.SupportPackageIsVersion7 const ( - Query_Params_FullMethodName = "/mycel.epochs.v1beta1.Query/Params" - Query_EpochInfo_FullMethodName = "/mycel.epochs.v1beta1.Query/EpochInfo" - Query_EpochInfoAll_FullMethodName = "/mycel.epochs.v1beta1.Query/EpochInfoAll" + Query_EpochInfos_FullMethodName = "/mycel.epochs.v1beta1.Query/EpochInfos" + Query_CurrentEpoch_FullMethodName = "/mycel.epochs.v1beta1.Query/CurrentEpoch" ) // QueryClient is the client API for Query service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. type QueryClient interface { - // Parameters queries the parameters of the module. - Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) - // Queries a list of EpochInfo items. - EpochInfo(ctx context.Context, in *QueryGetEpochInfoRequest, opts ...grpc.CallOption) (*QueryGetEpochInfoResponse, error) - EpochInfoAll(ctx context.Context, in *QueryAllEpochInfoRequest, opts ...grpc.CallOption) (*QueryAllEpochInfoResponse, error) + // EpochInfos provide running epochInfos + EpochInfos(ctx context.Context, in *QueryEpochsInfoRequest, opts ...grpc.CallOption) (*QueryEpochsInfoResponse, error) + // CurrentEpoch provide current epoch of specified identifier + CurrentEpoch(ctx context.Context, in *QueryCurrentEpochRequest, opts ...grpc.CallOption) (*QueryCurrentEpochResponse, error) } type queryClient struct { @@ -43,27 +41,18 @@ func NewQueryClient(cc grpc.ClientConnInterface) QueryClient { return &queryClient{cc} } -func (c *queryClient) Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) { - out := new(QueryParamsResponse) - err := c.cc.Invoke(ctx, Query_Params_FullMethodName, in, out, opts...) +func (c *queryClient) EpochInfos(ctx context.Context, in *QueryEpochsInfoRequest, opts ...grpc.CallOption) (*QueryEpochsInfoResponse, error) { + out := new(QueryEpochsInfoResponse) + err := c.cc.Invoke(ctx, Query_EpochInfos_FullMethodName, in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *queryClient) EpochInfo(ctx context.Context, in *QueryGetEpochInfoRequest, opts ...grpc.CallOption) (*QueryGetEpochInfoResponse, error) { - out := new(QueryGetEpochInfoResponse) - err := c.cc.Invoke(ctx, Query_EpochInfo_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *queryClient) EpochInfoAll(ctx context.Context, in *QueryAllEpochInfoRequest, opts ...grpc.CallOption) (*QueryAllEpochInfoResponse, error) { - out := new(QueryAllEpochInfoResponse) - err := c.cc.Invoke(ctx, Query_EpochInfoAll_FullMethodName, in, out, opts...) +func (c *queryClient) CurrentEpoch(ctx context.Context, in *QueryCurrentEpochRequest, opts ...grpc.CallOption) (*QueryCurrentEpochResponse, error) { + out := new(QueryCurrentEpochResponse) + err := c.cc.Invoke(ctx, Query_CurrentEpoch_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -74,11 +63,10 @@ func (c *queryClient) EpochInfoAll(ctx context.Context, in *QueryAllEpochInfoReq // All implementations must embed UnimplementedQueryServer // for forward compatibility type QueryServer interface { - // Parameters queries the parameters of the module. - Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) - // Queries a list of EpochInfo items. - EpochInfo(context.Context, *QueryGetEpochInfoRequest) (*QueryGetEpochInfoResponse, error) - EpochInfoAll(context.Context, *QueryAllEpochInfoRequest) (*QueryAllEpochInfoResponse, error) + // EpochInfos provide running epochInfos + EpochInfos(context.Context, *QueryEpochsInfoRequest) (*QueryEpochsInfoResponse, error) + // CurrentEpoch provide current epoch of specified identifier + CurrentEpoch(context.Context, *QueryCurrentEpochRequest) (*QueryCurrentEpochResponse, error) mustEmbedUnimplementedQueryServer() } @@ -86,14 +74,11 @@ type QueryServer interface { type UnimplementedQueryServer struct { } -func (UnimplementedQueryServer) Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Params not implemented") +func (UnimplementedQueryServer) EpochInfos(context.Context, *QueryEpochsInfoRequest) (*QueryEpochsInfoResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method EpochInfos not implemented") } -func (UnimplementedQueryServer) EpochInfo(context.Context, *QueryGetEpochInfoRequest) (*QueryGetEpochInfoResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method EpochInfo not implemented") -} -func (UnimplementedQueryServer) EpochInfoAll(context.Context, *QueryAllEpochInfoRequest) (*QueryAllEpochInfoResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method EpochInfoAll not implemented") +func (UnimplementedQueryServer) CurrentEpoch(context.Context, *QueryCurrentEpochRequest) (*QueryCurrentEpochResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CurrentEpoch not implemented") } func (UnimplementedQueryServer) mustEmbedUnimplementedQueryServer() {} @@ -108,56 +93,38 @@ func RegisterQueryServer(s grpc.ServiceRegistrar, srv QueryServer) { s.RegisterService(&Query_ServiceDesc, srv) } -func _Query_Params_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryParamsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).Params(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Query_Params_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).Params(ctx, req.(*QueryParamsRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Query_EpochInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryGetEpochInfoRequest) +func _Query_EpochInfos_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryEpochsInfoRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(QueryServer).EpochInfo(ctx, in) + return srv.(QueryServer).EpochInfos(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: Query_EpochInfo_FullMethodName, + FullMethod: Query_EpochInfos_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).EpochInfo(ctx, req.(*QueryGetEpochInfoRequest)) + return srv.(QueryServer).EpochInfos(ctx, req.(*QueryEpochsInfoRequest)) } return interceptor(ctx, in, info, handler) } -func _Query_EpochInfoAll_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryAllEpochInfoRequest) +func _Query_CurrentEpoch_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryCurrentEpochRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(QueryServer).EpochInfoAll(ctx, in) + return srv.(QueryServer).CurrentEpoch(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: Query_EpochInfoAll_FullMethodName, + FullMethod: Query_CurrentEpoch_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).EpochInfoAll(ctx, req.(*QueryAllEpochInfoRequest)) + return srv.(QueryServer).CurrentEpoch(ctx, req.(*QueryCurrentEpochRequest)) } return interceptor(ctx, in, info, handler) } @@ -170,16 +137,12 @@ var Query_ServiceDesc = grpc.ServiceDesc{ HandlerType: (*QueryServer)(nil), Methods: []grpc.MethodDesc{ { - MethodName: "Params", - Handler: _Query_Params_Handler, - }, - { - MethodName: "EpochInfo", - Handler: _Query_EpochInfo_Handler, + MethodName: "EpochInfos", + Handler: _Query_EpochInfos_Handler, }, { - MethodName: "EpochInfoAll", - Handler: _Query_EpochInfoAll_Handler, + MethodName: "CurrentEpoch", + Handler: _Query_CurrentEpoch_Handler, }, }, Streams: []grpc.StreamDesc{}, diff --git a/api/mycel/epochs/v1beta1/tx.pulsar.go b/api/mycel/epochs/v1beta1/tx.pulsar.go index 79307416..eab4ea5c 100644 --- a/api/mycel/epochs/v1beta1/tx.pulsar.go +++ b/api/mycel/epochs/v1beta1/tx.pulsar.go @@ -2,6 +2,10 @@ package types import ( + _ "cosmossdk.io/api/amino" + _ "cosmossdk.io/api/cosmos/msg/v1" + _ "github.com/cosmos/cosmos-proto" + _ "github.com/cosmos/gogoproto/gogoproto" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" @@ -26,20 +30,26 @@ var file_mycel_epochs_v1beta1_tx_proto_rawDesc = []byte{ 0x0a, 0x1d, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2f, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x73, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x74, 0x78, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x14, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x73, 0x2e, 0x76, 0x31, - 0x62, 0x65, 0x74, 0x61, 0x31, 0x32, 0x05, 0x0a, 0x03, 0x4d, 0x73, 0x67, 0x42, 0xc3, 0x01, 0x0a, - 0x18, 0x63, 0x6f, 0x6d, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x65, 0x70, 0x6f, 0x63, 0x68, - 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x42, 0x07, 0x54, 0x78, 0x50, 0x72, 0x6f, - 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2c, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, - 0x2f, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2d, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x2f, 0x6d, 0x79, - 0x63, 0x65, 0x6c, 0x2f, 0x78, 0x2f, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x73, 0x2f, 0x74, 0x79, 0x70, - 0x65, 0x73, 0xa2, 0x02, 0x03, 0x4d, 0x45, 0x58, 0xaa, 0x02, 0x14, 0x4d, 0x79, 0x63, 0x65, 0x6c, - 0x2e, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x73, 0x2e, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xca, - 0x02, 0x14, 0x4d, 0x79, 0x63, 0x65, 0x6c, 0x5c, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x73, 0x5c, 0x56, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xe2, 0x02, 0x20, 0x4d, 0x79, 0x63, 0x65, 0x6c, 0x5c, 0x45, - 0x70, 0x6f, 0x63, 0x68, 0x73, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x5c, 0x47, 0x50, - 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x16, 0x4d, 0x79, 0x63, 0x65, - 0x6c, 0x3a, 0x3a, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x73, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x65, 0x74, - 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x62, 0x65, 0x74, 0x61, 0x31, 0x1a, 0x11, 0x61, 0x6d, 0x69, 0x6e, 0x6f, 0x2f, 0x61, 0x6d, 0x69, + 0x6e, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, + 0x2f, 0x6d, 0x73, 0x67, 0x2f, 0x76, 0x31, 0x2f, 0x6d, 0x73, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 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, 0x32, 0x0c, 0x0a, 0x03, 0x4d, 0x73, 0x67, 0x1a, 0x05, 0x80, 0xe7, 0xb0, 0x2a, 0x01, + 0x42, 0xc3, 0x01, 0x0a, 0x18, 0x63, 0x6f, 0x6d, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x65, + 0x70, 0x6f, 0x63, 0x68, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x42, 0x07, 0x54, + 0x78, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2c, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, + 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2d, 0x64, 0x6f, 0x6d, 0x61, 0x69, + 0x6e, 0x2f, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2f, 0x78, 0x2f, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x73, + 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0xa2, 0x02, 0x03, 0x4d, 0x45, 0x58, 0xaa, 0x02, 0x14, 0x4d, + 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x73, 0x2e, 0x56, 0x31, 0x62, 0x65, + 0x74, 0x61, 0x31, 0xca, 0x02, 0x14, 0x4d, 0x79, 0x63, 0x65, 0x6c, 0x5c, 0x45, 0x70, 0x6f, 0x63, + 0x68, 0x73, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xe2, 0x02, 0x20, 0x4d, 0x79, 0x63, + 0x65, 0x6c, 0x5c, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x73, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, + 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x16, + 0x4d, 0x79, 0x63, 0x65, 0x6c, 0x3a, 0x3a, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x73, 0x3a, 0x3a, 0x56, + 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var file_mycel_epochs_v1beta1_tx_proto_goTypes = []interface{}{} diff --git a/api/mycel/furnace/module/v1/module.pulsar.go b/api/mycel/furnace/module/v1/module.pulsar.go index 291c753f..305c2e98 100644 --- a/api/mycel/furnace/module/v1/module.pulsar.go +++ b/api/mycel/furnace/module/v1/module.pulsar.go @@ -14,12 +14,14 @@ import ( ) var ( - md_Module protoreflect.MessageDescriptor + md_Module protoreflect.MessageDescriptor + fd_Module_authority protoreflect.FieldDescriptor ) func init() { file_mycel_furnace_module_v1_module_proto_init() md_Module = File_mycel_furnace_module_v1_module_proto.Messages().ByName("Module") + fd_Module_authority = md_Module.Fields().ByName("authority") } var _ protoreflect.Message = (*fastReflection_Module)(nil) @@ -87,6 +89,12 @@ func (x *fastReflection_Module) Interface() protoreflect.ProtoMessage { // While iterating, mutating operations may only be performed // on the current field descriptor. func (x *fastReflection_Module) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Authority != "" { + value := protoreflect.ValueOfString(x.Authority) + if !f(fd_Module_authority, value) { + return + } + } } // Has reports whether a field is populated. @@ -102,6 +110,8 @@ func (x *fastReflection_Module) Range(f func(protoreflect.FieldDescriptor, proto // a repeated field is populated if it is non-empty. func (x *fastReflection_Module) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { + case "mycel.furnace.module.v1.Module.authority": + return x.Authority != "" default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.furnace.module.v1.Module")) @@ -118,6 +128,8 @@ func (x *fastReflection_Module) Has(fd protoreflect.FieldDescriptor) bool { // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_Module) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { + case "mycel.furnace.module.v1.Module.authority": + x.Authority = "" default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.furnace.module.v1.Module")) @@ -134,6 +146,9 @@ func (x *fastReflection_Module) Clear(fd protoreflect.FieldDescriptor) { // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_Module) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { + case "mycel.furnace.module.v1.Module.authority": + value := x.Authority + return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.furnace.module.v1.Module")) @@ -154,6 +169,8 @@ func (x *fastReflection_Module) Get(descriptor protoreflect.FieldDescriptor) pro // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_Module) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { + case "mycel.furnace.module.v1.Module.authority": + x.Authority = value.Interface().(string) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.furnace.module.v1.Module")) @@ -174,6 +191,8 @@ func (x *fastReflection_Module) Set(fd protoreflect.FieldDescriptor, value proto // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_Module) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { + case "mycel.furnace.module.v1.Module.authority": + panic(fmt.Errorf("field authority of message mycel.furnace.module.v1.Module is not mutable")) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.furnace.module.v1.Module")) @@ -187,6 +206,8 @@ func (x *fastReflection_Module) Mutable(fd protoreflect.FieldDescriptor) protore // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_Module) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { + case "mycel.furnace.module.v1.Module.authority": + return protoreflect.ValueOfString("") default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.furnace.module.v1.Module")) @@ -256,6 +277,10 @@ func (x *fastReflection_Module) ProtoMethods() *protoiface.Methods { var n int var l int _ = l + l = len(x.Authority) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } if x.unknownFields != nil { n += len(x.unknownFields) } @@ -285,6 +310,13 @@ func (x *fastReflection_Module) ProtoMethods() *protoiface.Methods { i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } + if len(x.Authority) > 0 { + i -= len(x.Authority) + copy(dAtA[i:], x.Authority) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Authority))) + i-- + dAtA[i] = 0xa + } if input.Buf != nil { input.Buf = append(input.Buf, dAtA...) } else { @@ -334,6 +366,38 @@ func (x *fastReflection_Module) ProtoMethods() *protoiface.Methods { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Module: 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 Authority", 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.Authority = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -387,6 +451,9 @@ type Module struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + + // authority defines the custom module authority. If not set, defaults to the governance module. + Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` } func (x *Module) Reset() { @@ -409,6 +476,13 @@ func (*Module) Descriptor() ([]byte, []int) { return file_mycel_furnace_module_v1_module_proto_rawDescGZIP(), []int{0} } +func (x *Module) GetAuthority() string { + if x != nil { + return x.Authority + } + return "" +} + var File_mycel_furnace_module_v1_module_proto protoreflect.FileDescriptor var file_mycel_furnace_module_v1_module_proto_rawDesc = []byte{ @@ -418,24 +492,26 @@ var file_mycel_furnace_module_v1_module_proto_rawDesc = []byte{ 0x72, 0x6e, 0x61, 0x63, 0x65, 0x2e, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2e, 0x76, 0x31, 0x1a, 0x20, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x61, 0x70, 0x70, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x22, 0x39, 0x0a, 0x06, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x3a, 0x2f, 0xba, 0xc0, 0x96, - 0xda, 0x01, 0x29, 0x0a, 0x27, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, - 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2d, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x2f, 0x6d, 0x79, 0x63, - 0x65, 0x6c, 0x2f, 0x78, 0x2f, 0x66, 0x75, 0x72, 0x6e, 0x61, 0x63, 0x65, 0x42, 0xd2, 0x01, 0x0a, - 0x1b, 0x63, 0x6f, 0x6d, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x66, 0x75, 0x72, 0x6e, 0x61, - 0x63, 0x65, 0x2e, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2e, 0x76, 0x31, 0x42, 0x0b, 0x4d, 0x6f, - 0x64, 0x75, 0x6c, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x27, 0x67, 0x69, 0x74, - 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2d, 0x64, 0x6f, - 0x6d, 0x61, 0x69, 0x6e, 0x2f, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2f, 0x78, 0x2f, 0x66, 0x75, 0x72, - 0x6e, 0x61, 0x63, 0x65, 0xa2, 0x02, 0x03, 0x4d, 0x46, 0x4d, 0xaa, 0x02, 0x17, 0x4d, 0x79, 0x63, - 0x65, 0x6c, 0x2e, 0x46, 0x75, 0x72, 0x6e, 0x61, 0x63, 0x65, 0x2e, 0x4d, 0x6f, 0x64, 0x75, 0x6c, - 0x65, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x17, 0x4d, 0x79, 0x63, 0x65, 0x6c, 0x5c, 0x46, 0x75, 0x72, - 0x6e, 0x61, 0x63, 0x65, 0x5c, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x5c, 0x56, 0x31, 0xe2, 0x02, - 0x23, 0x4d, 0x79, 0x63, 0x65, 0x6c, 0x5c, 0x46, 0x75, 0x72, 0x6e, 0x61, 0x63, 0x65, 0x5c, 0x4d, - 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, - 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x1a, 0x4d, 0x79, 0x63, 0x65, 0x6c, 0x3a, 0x3a, 0x46, 0x75, - 0x72, 0x6e, 0x61, 0x63, 0x65, 0x3a, 0x3a, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x3a, 0x3a, 0x56, - 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x6f, 0x22, 0x57, 0x0a, 0x06, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x61, + 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, + 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x3a, 0x2f, 0xba, 0xc0, 0x96, 0xda, 0x01, + 0x29, 0x0a, 0x27, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6d, 0x79, + 0x63, 0x65, 0x6c, 0x2d, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x2f, 0x6d, 0x79, 0x63, 0x65, 0x6c, + 0x2f, 0x78, 0x2f, 0x66, 0x75, 0x72, 0x6e, 0x61, 0x63, 0x65, 0x42, 0xd2, 0x01, 0x0a, 0x1b, 0x63, + 0x6f, 0x6d, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x66, 0x75, 0x72, 0x6e, 0x61, 0x63, 0x65, + 0x2e, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2e, 0x76, 0x31, 0x42, 0x0b, 0x4d, 0x6f, 0x64, 0x75, + 0x6c, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x27, 0x67, 0x69, 0x74, 0x68, 0x75, + 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2d, 0x64, 0x6f, 0x6d, 0x61, + 0x69, 0x6e, 0x2f, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2f, 0x78, 0x2f, 0x66, 0x75, 0x72, 0x6e, 0x61, + 0x63, 0x65, 0xa2, 0x02, 0x03, 0x4d, 0x46, 0x4d, 0xaa, 0x02, 0x17, 0x4d, 0x79, 0x63, 0x65, 0x6c, + 0x2e, 0x46, 0x75, 0x72, 0x6e, 0x61, 0x63, 0x65, 0x2e, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2e, + 0x56, 0x31, 0xca, 0x02, 0x17, 0x4d, 0x79, 0x63, 0x65, 0x6c, 0x5c, 0x46, 0x75, 0x72, 0x6e, 0x61, + 0x63, 0x65, 0x5c, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x23, 0x4d, + 0x79, 0x63, 0x65, 0x6c, 0x5c, 0x46, 0x75, 0x72, 0x6e, 0x61, 0x63, 0x65, 0x5c, 0x4d, 0x6f, 0x64, + 0x75, 0x6c, 0x65, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, + 0x74, 0x61, 0xea, 0x02, 0x1a, 0x4d, 0x79, 0x63, 0x65, 0x6c, 0x3a, 0x3a, 0x46, 0x75, 0x72, 0x6e, + 0x61, 0x63, 0x65, 0x3a, 0x3a, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x3a, 0x3a, 0x56, 0x31, 0x62, + 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( diff --git a/api/mycel/registry/module/v1/module.pulsar.go b/api/mycel/registry/module/v1/module.pulsar.go index 8d9c10b4..5837d9b0 100644 --- a/api/mycel/registry/module/v1/module.pulsar.go +++ b/api/mycel/registry/module/v1/module.pulsar.go @@ -14,12 +14,14 @@ import ( ) var ( - md_Module protoreflect.MessageDescriptor + md_Module protoreflect.MessageDescriptor + fd_Module_authority protoreflect.FieldDescriptor ) func init() { file_mycel_registry_module_v1_module_proto_init() md_Module = File_mycel_registry_module_v1_module_proto.Messages().ByName("Module") + fd_Module_authority = md_Module.Fields().ByName("authority") } var _ protoreflect.Message = (*fastReflection_Module)(nil) @@ -87,6 +89,12 @@ func (x *fastReflection_Module) Interface() protoreflect.ProtoMessage { // While iterating, mutating operations may only be performed // on the current field descriptor. func (x *fastReflection_Module) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Authority != "" { + value := protoreflect.ValueOfString(x.Authority) + if !f(fd_Module_authority, value) { + return + } + } } // Has reports whether a field is populated. @@ -102,6 +110,8 @@ func (x *fastReflection_Module) Range(f func(protoreflect.FieldDescriptor, proto // a repeated field is populated if it is non-empty. func (x *fastReflection_Module) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { + case "mycel.registry.module.v1.Module.authority": + return x.Authority != "" default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.module.v1.Module")) @@ -118,6 +128,8 @@ func (x *fastReflection_Module) Has(fd protoreflect.FieldDescriptor) bool { // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_Module) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { + case "mycel.registry.module.v1.Module.authority": + x.Authority = "" default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.module.v1.Module")) @@ -134,6 +146,9 @@ func (x *fastReflection_Module) Clear(fd protoreflect.FieldDescriptor) { // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_Module) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { + case "mycel.registry.module.v1.Module.authority": + value := x.Authority + return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.module.v1.Module")) @@ -154,6 +169,8 @@ func (x *fastReflection_Module) Get(descriptor protoreflect.FieldDescriptor) pro // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_Module) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { + case "mycel.registry.module.v1.Module.authority": + x.Authority = value.Interface().(string) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.module.v1.Module")) @@ -174,6 +191,8 @@ func (x *fastReflection_Module) Set(fd protoreflect.FieldDescriptor, value proto // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_Module) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { + case "mycel.registry.module.v1.Module.authority": + panic(fmt.Errorf("field authority of message mycel.registry.module.v1.Module is not mutable")) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.module.v1.Module")) @@ -187,6 +206,8 @@ func (x *fastReflection_Module) Mutable(fd protoreflect.FieldDescriptor) protore // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_Module) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { + case "mycel.registry.module.v1.Module.authority": + return protoreflect.ValueOfString("") default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.module.v1.Module")) @@ -256,6 +277,10 @@ func (x *fastReflection_Module) ProtoMethods() *protoiface.Methods { var n int var l int _ = l + l = len(x.Authority) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } if x.unknownFields != nil { n += len(x.unknownFields) } @@ -285,6 +310,13 @@ func (x *fastReflection_Module) ProtoMethods() *protoiface.Methods { i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } + if len(x.Authority) > 0 { + i -= len(x.Authority) + copy(dAtA[i:], x.Authority) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Authority))) + i-- + dAtA[i] = 0xa + } if input.Buf != nil { input.Buf = append(input.Buf, dAtA...) } else { @@ -334,6 +366,38 @@ func (x *fastReflection_Module) ProtoMethods() *protoiface.Methods { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Module: 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 Authority", 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.Authority = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -387,6 +451,9 @@ type Module struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + + // authority defines the custom module authority. If not set, defaults to the governance module. + Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` } func (x *Module) Reset() { @@ -409,6 +476,13 @@ func (*Module) Descriptor() ([]byte, []int) { return file_mycel_registry_module_v1_module_proto_rawDescGZIP(), []int{0} } +func (x *Module) GetAuthority() string { + if x != nil { + return x.Authority + } + return "" +} + var File_mycel_registry_module_v1_module_proto protoreflect.FileDescriptor var file_mycel_registry_module_v1_module_proto_rawDesc = []byte{ @@ -418,25 +492,26 @@ var file_mycel_registry_module_v1_module_proto_rawDesc = []byte{ 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2e, 0x76, 0x31, 0x1a, 0x20, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x61, 0x70, 0x70, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x22, 0x3a, 0x0a, 0x06, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x3a, 0x30, 0xba, - 0xc0, 0x96, 0xda, 0x01, 0x2a, 0x0a, 0x28, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, - 0x6d, 0x2f, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2d, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x2f, 0x6d, - 0x79, 0x63, 0x65, 0x6c, 0x2f, 0x78, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x42, - 0xd8, 0x01, 0x0a, 0x1c, 0x63, 0x6f, 0x6d, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x72, 0x65, - 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2e, 0x76, 0x31, - 0x42, 0x0b, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, - 0x28, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6d, 0x79, 0x63, 0x65, - 0x6c, 0x2d, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x2f, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2f, 0x78, - 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0xa2, 0x02, 0x03, 0x4d, 0x52, 0x4d, 0xaa, - 0x02, 0x18, 0x4d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, - 0x2e, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x18, 0x4d, 0x79, 0x63, - 0x65, 0x6c, 0x5c, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x5c, 0x4d, 0x6f, 0x64, 0x75, - 0x6c, 0x65, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x24, 0x4d, 0x79, 0x63, 0x65, 0x6c, 0x5c, 0x52, 0x65, - 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x5c, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x5c, 0x56, 0x31, - 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x1b, 0x4d, - 0x79, 0x63, 0x65, 0x6c, 0x3a, 0x3a, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x3a, 0x3a, - 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x33, + 0x6f, 0x74, 0x6f, 0x22, 0x58, 0x0a, 0x06, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x12, 0x1c, 0x0a, + 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x3a, 0x30, 0xba, 0xc0, 0x96, + 0xda, 0x01, 0x2a, 0x0a, 0x28, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, + 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2d, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x2f, 0x6d, 0x79, 0x63, + 0x65, 0x6c, 0x2f, 0x78, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x42, 0xd8, 0x01, + 0x0a, 0x1c, 0x63, 0x6f, 0x6d, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x72, 0x65, 0x67, 0x69, + 0x73, 0x74, 0x72, 0x79, 0x2e, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2e, 0x76, 0x31, 0x42, 0x0b, + 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x28, 0x67, + 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2d, + 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x2f, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2f, 0x78, 0x2f, 0x72, + 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0xa2, 0x02, 0x03, 0x4d, 0x52, 0x4d, 0xaa, 0x02, 0x18, + 0x4d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x4d, + 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x18, 0x4d, 0x79, 0x63, 0x65, 0x6c, + 0x5c, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x5c, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, + 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x24, 0x4d, 0x79, 0x63, 0x65, 0x6c, 0x5c, 0x52, 0x65, 0x67, 0x69, + 0x73, 0x74, 0x72, 0x79, 0x5c, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x5c, 0x56, 0x31, 0x5c, 0x47, + 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x1b, 0x4d, 0x79, 0x63, + 0x65, 0x6c, 0x3a, 0x3a, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x3a, 0x3a, 0x4d, 0x6f, + 0x64, 0x75, 0x6c, 0x65, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( diff --git a/app/app.go b/app/app.go index aa1815ed..c87f890b 100644 --- a/app/app.go +++ b/app/app.go @@ -5,21 +5,47 @@ import ( "os" "path/filepath" - _ "cosmossdk.io/api/cosmos/tx/config/v1" // import for side-effects + _ "cosmossdk.io/api/cosmos/tx/config/v1" // import for side-effects + _ "cosmossdk.io/x/circuit" // import for side-effects + _ "cosmossdk.io/x/evidence" // import for side-effects + _ "cosmossdk.io/x/feegrant/module" // import for side-effects + _ "cosmossdk.io/x/nft/module" // import for side-effects + _ "cosmossdk.io/x/upgrade" // import for side-effects + _ "github.com/cosmos/cosmos-sdk/x/auth" // import for side-effects + _ "github.com/cosmos/cosmos-sdk/x/auth/tx/config" // import for side-effects + _ "github.com/cosmos/cosmos-sdk/x/auth/vesting" // import for side-effects + _ "github.com/cosmos/cosmos-sdk/x/authz/module" // import for side-effects + _ "github.com/cosmos/cosmos-sdk/x/bank" // import for side-effects + _ "github.com/cosmos/cosmos-sdk/x/consensus" // import for side-effects + _ "github.com/cosmos/cosmos-sdk/x/crisis" // import for side-effects + _ "github.com/cosmos/cosmos-sdk/x/distribution" // import for side-effects + _ "github.com/cosmos/cosmos-sdk/x/group/module" // import for side-effects + _ "github.com/cosmos/cosmos-sdk/x/mint" // import for side-effects + _ "github.com/cosmos/cosmos-sdk/x/params" // import for side-effects + _ "github.com/cosmos/cosmos-sdk/x/slashing" // import for side-effects + _ "github.com/cosmos/cosmos-sdk/x/staking" // import for side-effects + _ "github.com/cosmos/ibc-go/modules/capability" // import for side-effects + _ "github.com/cosmos/ibc-go/v8/modules/apps/27-interchain-accounts" // import for side-effects + _ "github.com/cosmos/ibc-go/v8/modules/apps/29-fee" // import for side-effects + _ "github.com/mycel-domain/mycel/x/epochs/module" + + dbm "github.com/cosmos/cosmos-db" + capabilitykeeper "github.com/cosmos/ibc-go/modules/capability/keeper" + icacontrollerkeeper "github.com/cosmos/ibc-go/v8/modules/apps/27-interchain-accounts/controller/keeper" + icahostkeeper "github.com/cosmos/ibc-go/v8/modules/apps/27-interchain-accounts/host/keeper" + ibcfeekeeper "github.com/cosmos/ibc-go/v8/modules/apps/29-fee/keeper" + ibctransferkeeper "github.com/cosmos/ibc-go/v8/modules/apps/transfer/keeper" + ibckeeper "github.com/cosmos/ibc-go/v8/modules/core/keeper" + "cosmossdk.io/depinject" "cosmossdk.io/log" storetypes "cosmossdk.io/store/types" - _ "cosmossdk.io/x/circuit" // import for side-effects circuitkeeper "cosmossdk.io/x/circuit/keeper" - _ "cosmossdk.io/x/evidence" // import for side-effects evidencekeeper "cosmossdk.io/x/evidence/keeper" feegrantkeeper "cosmossdk.io/x/feegrant/keeper" - _ "cosmossdk.io/x/feegrant/module" // import for side-effects nftkeeper "cosmossdk.io/x/nft/keeper" - _ "cosmossdk.io/x/nft/module" // import for side-effects - _ "cosmossdk.io/x/upgrade" // import for side-effects upgradekeeper "cosmossdk.io/x/upgrade/keeper" - dbm "github.com/cosmos/cosmos-db" + "github.com/cosmos/cosmos-sdk/baseapp" "github.com/cosmos/cosmos-sdk/client" "github.com/cosmos/cosmos-sdk/codec" @@ -31,21 +57,13 @@ import ( servertypes "github.com/cosmos/cosmos-sdk/server/types" "github.com/cosmos/cosmos-sdk/types/module" "github.com/cosmos/cosmos-sdk/x/auth" - _ "github.com/cosmos/cosmos-sdk/x/auth" // import for side-effects authkeeper "github.com/cosmos/cosmos-sdk/x/auth/keeper" authsims "github.com/cosmos/cosmos-sdk/x/auth/simulation" - _ "github.com/cosmos/cosmos-sdk/x/auth/tx/config" // import for side-effects authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" - _ "github.com/cosmos/cosmos-sdk/x/auth/vesting" // import for side-effects authzkeeper "github.com/cosmos/cosmos-sdk/x/authz/keeper" - _ "github.com/cosmos/cosmos-sdk/x/authz/module" // import for side-effects - _ "github.com/cosmos/cosmos-sdk/x/bank" // import for side-effects bankkeeper "github.com/cosmos/cosmos-sdk/x/bank/keeper" - _ "github.com/cosmos/cosmos-sdk/x/consensus" // import for side-effects consensuskeeper "github.com/cosmos/cosmos-sdk/x/consensus/keeper" - _ "github.com/cosmos/cosmos-sdk/x/crisis" // import for side-effects crisiskeeper "github.com/cosmos/cosmos-sdk/x/crisis/keeper" - _ "github.com/cosmos/cosmos-sdk/x/distribution" // import for side-effects distrkeeper "github.com/cosmos/cosmos-sdk/x/distribution/keeper" "github.com/cosmos/cosmos-sdk/x/genutil" genutiltypes "github.com/cosmos/cosmos-sdk/x/genutil/types" @@ -54,40 +72,16 @@ import ( govkeeper "github.com/cosmos/cosmos-sdk/x/gov/keeper" govtypes "github.com/cosmos/cosmos-sdk/x/gov/types" groupkeeper "github.com/cosmos/cosmos-sdk/x/group/keeper" - _ "github.com/cosmos/cosmos-sdk/x/group/module" // import for side-effects - _ "github.com/cosmos/cosmos-sdk/x/mint" // import for side-effects mintkeeper "github.com/cosmos/cosmos-sdk/x/mint/keeper" - _ "github.com/cosmos/cosmos-sdk/x/params" // import for side-effects paramsclient "github.com/cosmos/cosmos-sdk/x/params/client" paramskeeper "github.com/cosmos/cosmos-sdk/x/params/keeper" paramstypes "github.com/cosmos/cosmos-sdk/x/params/types" - _ "github.com/cosmos/cosmos-sdk/x/slashing" // import for side-effects slashingkeeper "github.com/cosmos/cosmos-sdk/x/slashing/keeper" - _ "github.com/cosmos/cosmos-sdk/x/staking" // import for side-effects stakingkeeper "github.com/cosmos/cosmos-sdk/x/staking/keeper" - _ "github.com/cosmos/ibc-go/modules/capability" // import for side-effects - capabilitykeeper "github.com/cosmos/ibc-go/modules/capability/keeper" - _ "github.com/cosmos/ibc-go/v8/modules/apps/27-interchain-accounts" // import for side-effects - icacontrollerkeeper "github.com/cosmos/ibc-go/v8/modules/apps/27-interchain-accounts/controller/keeper" - icahostkeeper "github.com/cosmos/ibc-go/v8/modules/apps/27-interchain-accounts/host/keeper" - _ "github.com/cosmos/ibc-go/v8/modules/apps/29-fee" // import for side-effects - ibcfeekeeper "github.com/cosmos/ibc-go/v8/modules/apps/29-fee/keeper" - ibctransferkeeper "github.com/cosmos/ibc-go/v8/modules/apps/transfer/keeper" - ibckeeper "github.com/cosmos/ibc-go/v8/modules/core/keeper" - - // CosmWasm - wasmkeeper "github.com/CosmWasm/wasmd/x/wasm/keeper" "github.com/mycel-domain/mycel/docs" // Epochs - _ "github.com/mycel-domain/mycel/x/epochs/module" epochsmodulekeeper "github.com/mycel-domain/mycel/x/epochs/keeper" - // Furnace - _ "github.com/mycel-domain/mycel/x/furnace/module" - furnacemodulekeeper "github.com/mycel-domain/mycel/x/furnace/keeper" - // Registry - _ "github.com/mycel-domain/mycel/x/registry/module" - registrymodulekeeper "github.com/mycel-domain/mycel/x/registry/keeper" ) const ( @@ -97,10 +91,8 @@ const ( DefaultVoteExtensionsEnableHeight = 1 ) -var ( - // DefaultNodeHome default home directories for the application daemon - DefaultNodeHome string -) +// DefaultNodeHome default home directories for the application daemon +var DefaultNodeHome string var ( _ runtime.AppI = (*App)(nil) @@ -152,12 +144,12 @@ type App struct { ScopedICAHostKeeper capabilitykeeper.ScopedKeeper // CosmWasm - WasmKeeper wasmkeeper.Keeper + // WasmKeeper wasmkeeper.Keeper // Mycel modules - RegistryKeeper registrymodulekeeper.Keeper - EpochsKeeper epochsmodulekeeper.Keeper - FurnaceKeeper furnacemodulekeeper.Keeper + // RegistryKeeper registrymodulekeeper.Keeper + EpochsKeeper epochsmodulekeeper.Keeper + // FurnaceKeeper furnacemodulekeeper.Keeper // sm is the simulation manager sm *module.SimulationManager @@ -295,11 +287,11 @@ func New( &app.GroupKeeper, &app.CircuitBreakerKeeper, // CosmosWasm - &app.WasmKeeper, + // &app.WasmKeeper, // Mycel Keepers &app.EpochsKeeper, - &app.FurnaceKeeper, - &app.RegistryKeeper, + // &app.FurnaceKeeper, + // &app.RegistryKeeper, // this line is used by starport scaffolding # stargate/app/keeperDefinition ); err != nil { panic(err) diff --git a/app/app_config.go b/app/app_config.go index 2c30cbd0..11e6679b 100644 --- a/app/app_config.go +++ b/app/app_config.go @@ -3,6 +3,16 @@ package app import ( "time" + "google.golang.org/protobuf/types/known/durationpb" + + _ "github.com/mycel-domain/mycel/x/epochs/module" + + capabilitytypes "github.com/cosmos/ibc-go/modules/capability/types" + icatypes "github.com/cosmos/ibc-go/v8/modules/apps/27-interchain-accounts/types" + ibcfeetypes "github.com/cosmos/ibc-go/v8/modules/apps/29-fee/types" + ibctransfertypes "github.com/cosmos/ibc-go/v8/modules/apps/transfer/types" + ibcexported "github.com/cosmos/ibc-go/v8/modules/core/exported" + runtimev1alpha1 "cosmossdk.io/api/cosmos/app/runtime/v1alpha1" appv1alpha1 "cosmossdk.io/api/cosmos/app/v1alpha1" authmodulev1 "cosmossdk.io/api/cosmos/auth/module/v1" @@ -31,6 +41,7 @@ import ( "cosmossdk.io/x/feegrant" "cosmossdk.io/x/nft" upgradetypes "cosmossdk.io/x/upgrade/types" + "github.com/cosmos/cosmos-sdk/runtime" authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" vestingtypes "github.com/cosmos/cosmos-sdk/x/auth/vesting/types" @@ -46,30 +57,11 @@ import ( paramstypes "github.com/cosmos/cosmos-sdk/x/params/types" slashingtypes "github.com/cosmos/cosmos-sdk/x/slashing/types" stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types" - capabilitytypes "github.com/cosmos/ibc-go/modules/capability/types" - icatypes "github.com/cosmos/ibc-go/v8/modules/apps/27-interchain-accounts/types" - ibcfeetypes "github.com/cosmos/ibc-go/v8/modules/apps/29-fee/types" - ibctransfertypes "github.com/cosmos/ibc-go/v8/modules/apps/transfer/types" - ibcexported "github.com/cosmos/ibc-go/v8/modules/core/exported" - "google.golang.org/protobuf/types/known/durationpb" - - // CosmWasm - // "github.com/CosmWasm/wasmd/x/wasm" - wasmtypes "github.com/CosmWasm/wasmd/x/wasm/types" - appparams "github.com/mycel-domain/mycel/app/params" // Epochs epochsmodulev1 "github.com/mycel-domain/mycel/api/mycel/epochs/module/v1" + appparams "github.com/mycel-domain/mycel/app/params" epochsmoduletypes "github.com/mycel-domain/mycel/x/epochs/types" - _ "github.com/mycel-domain/mycel/x/epochs/module" - // Furnace - furnacemodulev1 "github.com/mycel-domain/mycel/api/mycel/furnace/module/v1" - furnacemoduletypes "github.com/mycel-domain/mycel/x/furnace/types" - _ "github.com/mycel-domain/mycel/x/furnace/module" - // Registry - registrymodulev1 "github.com/mycel-domain/mycel/api/mycel/registry/module/v1" - registrymoduletypes "github.com/mycel-domain/mycel/x/registry/types" - _ "github.com/mycel-domain/mycel/x/registry/module" ) var ( @@ -107,11 +99,12 @@ var ( consensustypes.ModuleName, circuittypes.ModuleName, // CosmWasm - wasmtypes.ModuleName, + // wasmtypes.ModuleName, + // Mycel modules epochsmoduletypes.ModuleName, - furnacemoduletypes.ModuleName, - registrymoduletypes.ModuleName, + // furnacemoduletypes.ModuleName, + // registrymoduletypes.ModuleName, // this line is used by starport scaffolding # stargate/app/initGenesis } @@ -136,11 +129,11 @@ var ( icatypes.ModuleName, ibcfeetypes.ModuleName, // CosmWasm - wasmtypes.ModuleName, + // wasmtypes.ModuleName, // Mycel modules epochsmoduletypes.ModuleName, - furnacemoduletypes.ModuleName, - registrymoduletypes.ModuleName, + // furnacemoduletypes.ModuleName, + // registrymoduletypes.ModuleName, // this line is used by starport scaffolding # stargate/app/beginBlockers } @@ -160,11 +153,11 @@ var ( icatypes.ModuleName, ibcfeetypes.ModuleName, // CosmWasm - wasmtypes.ModuleName, + // wasmtypes.ModuleName, // Mycel modules epochsmoduletypes.ModuleName, - furnacemoduletypes.ModuleName, - registrymoduletypes.ModuleName, + // furnacemoduletypes.ModuleName, + // registrymoduletypes.ModuleName, // this line is used by starport scaffolding # stargate/app/endBlockers } @@ -322,17 +315,19 @@ var ( }, // CosmWasm { - Name: epochsmoduletypes.ModuleName, - Config: appconfig.WrapAny(&epochsmodulev1.Module{}), - }, - { - Name: furnacemoduletypes.ModuleName, - Config: appconfig.WrapAny(&furnacemodulev1.Module{}), - }, - { - Name: registrymoduletypes.ModuleName, - Config: appconfig.WrapAny(®istrymodulev1.Module{}), + Name: epochsmoduletypes.ModuleName, + Config: appconfig.WrapAny(&epochsmodulev1.Module{ + HooksOrder: []string{}, + }), }, + // { + // Name: furnacemoduletypes.ModuleName, + // Config: appconfig.WrapAny(&furnacemodulev1.Module{}), + // }, + // { + // Name: registrymoduletypes.ModuleName, + // Config: appconfig.WrapAny(®istrymodulev1.Module{}), + // }, // this line is used by starport scaffolding # stargate/app/moduleConfig }, }) diff --git a/app/export.go b/app/export.go index c69d7eec..67fa8e68 100644 --- a/app/export.go +++ b/app/export.go @@ -5,8 +5,10 @@ import ( "fmt" "log" - storetypes "cosmossdk.io/store/types" cmtproto "github.com/cometbft/cometbft/proto/tendermint/types" + + storetypes "cosmossdk.io/store/types" + servertypes "github.com/cosmos/cosmos-sdk/server/types" sdk "github.com/cosmos/cosmos-sdk/types" slashingtypes "github.com/cosmos/cosmos-sdk/x/slashing/types" @@ -231,5 +233,4 @@ func (app *App) prepForZeroHeightGenesis(ctx sdk.Context, jailAllowedAddrs []str return false }, ) - } diff --git a/app/ibc.go b/app/ibc.go index 2b0bd569..7a01091e 100644 --- a/app/ibc.go +++ b/app/ibc.go @@ -1,13 +1,6 @@ package app import ( - "cosmossdk.io/core/appmodule" - storetypes "cosmossdk.io/store/types" - cdctypes "github.com/cosmos/cosmos-sdk/codec/types" - authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" - govtypes "github.com/cosmos/cosmos-sdk/x/gov/types" - govv1beta1 "github.com/cosmos/cosmos-sdk/x/gov/types/v1beta1" - paramstypes "github.com/cosmos/cosmos-sdk/x/params/types" "github.com/cosmos/ibc-go/modules/capability" capabilitykeeper "github.com/cosmos/ibc-go/modules/capability/keeper" capabilitytypes "github.com/cosmos/ibc-go/modules/capability/types" @@ -33,7 +26,15 @@ import ( ibckeeper "github.com/cosmos/ibc-go/v8/modules/core/keeper" solomachine "github.com/cosmos/ibc-go/v8/modules/light-clients/06-solomachine" ibctm "github.com/cosmos/ibc-go/v8/modules/light-clients/07-tendermint" - // this line is used by starport scaffolding # ibc/app/import + + "cosmossdk.io/core/appmodule" + storetypes "cosmossdk.io/store/types" + + cdctypes "github.com/cosmos/cosmos-sdk/codec/types" + authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" + govtypes "github.com/cosmos/cosmos-sdk/x/gov/types" + govv1beta1 "github.com/cosmos/cosmos-sdk/x/gov/types/v1beta1" + paramstypes "github.com/cosmos/cosmos-sdk/x/params/types" ) // registerIBCModules register IBC keepers and non dependency inject modules. diff --git a/app/test_helpers.go b/app/test_helpers.go index fa08a9c1..28096afc 100644 --- a/app/test_helpers.go +++ b/app/test_helpers.go @@ -42,9 +42,9 @@ func setup(withGenesis bool, invCheckPeriod uint, wasmOpt ...wasmkeeper.Option) appOptions[server.FlagInvCheckPeriod] = invCheckPeriod app, err := New(log.NewNopLogger(), db, nil, true, appOptions) - if err != nil { - panic(err) - } + if err != nil { + panic(err) + } if withGenesis { return app, app.DefaultGenesis() } diff --git a/cmd/myceld/cmd/commands.go b/cmd/myceld/cmd/commands.go index 62d099a8..ab1efec3 100644 --- a/cmd/myceld/cmd/commands.go +++ b/cmd/myceld/cmd/commands.go @@ -4,9 +4,14 @@ import ( "errors" "io" + "github.com/spf13/cobra" + "github.com/spf13/viper" + + dbm "github.com/cosmos/cosmos-db" + "cosmossdk.io/log" confixcmd "cosmossdk.io/tools/confix/cmd" - dbm "github.com/cosmos/cosmos-db" + "github.com/cosmos/cosmos-sdk/client" "github.com/cosmos/cosmos-sdk/client/debug" "github.com/cosmos/cosmos-sdk/client/flags" @@ -22,8 +27,6 @@ import ( authcmd "github.com/cosmos/cosmos-sdk/x/auth/client/cli" "github.com/cosmos/cosmos-sdk/x/crisis" genutilcli "github.com/cosmos/cosmos-sdk/x/genutil/client/cli" - "github.com/spf13/cobra" - "github.com/spf13/viper" "github.com/mycel-domain/mycel/app" ) diff --git a/cmd/myceld/cmd/config.go b/cmd/myceld/cmd/config.go index 943aac81..a276a08e 100644 --- a/cmd/myceld/cmd/config.go +++ b/cmd/myceld/cmd/config.go @@ -2,6 +2,7 @@ package cmd import ( cmtcfg "github.com/cometbft/cometbft/config" + serverconfig "github.com/cosmos/cosmos-sdk/server/config" sdk "github.com/cosmos/cosmos-sdk/types" diff --git a/cmd/myceld/cmd/root.go b/cmd/myceld/cmd/root.go index 9fd3c6bc..f4b7f656 100644 --- a/cmd/myceld/cmd/root.go +++ b/cmd/myceld/cmd/root.go @@ -4,11 +4,15 @@ import ( "os" "strings" + "github.com/spf13/cobra" + "github.com/spf13/pflag" + "cosmossdk.io/client/v2/autocli" clientv2keyring "cosmossdk.io/client/v2/autocli/keyring" "cosmossdk.io/core/address" "cosmossdk.io/depinject" "cosmossdk.io/log" + "github.com/cosmos/cosmos-sdk/client" "github.com/cosmos/cosmos-sdk/client/config" "github.com/cosmos/cosmos-sdk/client/flags" @@ -21,8 +25,6 @@ import ( "github.com/cosmos/cosmos-sdk/x/auth/tx" txmodule "github.com/cosmos/cosmos-sdk/x/auth/tx/config" "github.com/cosmos/cosmos-sdk/x/auth/types" - "github.com/spf13/cobra" - "github.com/spf13/pflag" "github.com/mycel-domain/mycel/app" ) diff --git a/debug_container.dot b/debug_container.dot deleted file mode 100644 index 7a6bac80..00000000 --- a/debug_container.dot +++ /dev/null @@ -1,468 +0,0 @@ -digraph "" { - subgraph "cluster_auth" { - graph [fontsize="12.0", label="Module: auth", penwidth="0.5", style="rounded"]; - "github.com/cosmos/cosmos-sdk/x/auth.ProvideModule"[color="lightgrey", fontcolor="dimgrey", penwidth="0.5", shape="box"]; - } - - subgraph "cluster_authz" { - graph [fontsize="12.0", label="Module: authz", penwidth="0.5", style="rounded"]; - "github.com/cosmos/cosmos-sdk/x/authz/module.ProvideModule"[color="lightgrey", fontcolor="dimgrey", penwidth="0.5", shape="box"]; - } - - subgraph "cluster_bank" { - graph [fontsize="12.0", label="Module: bank", penwidth="0.5", style="rounded"]; - "github.com/cosmos/cosmos-sdk/x/bank.ProvideModule"[color="lightgrey", fontcolor="dimgrey", penwidth="0.5", shape="box"]; - } - - subgraph "cluster_circuit" { - graph [fontsize="12.0", label="Module: circuit", penwidth="0.5", style="rounded"]; - "cosmossdk.io/x/circuit.ProvideModule"[color="lightgrey", fontcolor="dimgrey", penwidth="0.5", shape="box"]; - } - - subgraph "cluster_consensus" { - graph [fontsize="12.0", label="Module: consensus", penwidth="0.5", style="rounded"]; - "github.com/cosmos/cosmos-sdk/x/consensus.ProvideModule"[color="lightgrey", fontcolor="dimgrey", penwidth="0.5", shape="box"]; - } - - subgraph "cluster_crisis" { - graph [fontsize="12.0", label="Module: crisis", penwidth="0.5", style="rounded"]; - "github.com/cosmos/cosmos-sdk/x/crisis.ProvideModule"[color="lightgrey", fontcolor="dimgrey", penwidth="0.5", shape="box"]; - } - - subgraph "cluster_distribution" { - graph [fontsize="12.0", label="Module: distribution", penwidth="0.5", style="rounded"]; - "github.com/cosmos/cosmos-sdk/x/distribution.ProvideModule"[color="lightgrey", fontcolor="dimgrey", penwidth="0.5", shape="box"]; - } - - subgraph "cluster_epochs" { - graph [fontsize="12.0", label="Module: epochs", penwidth="0.5", style="rounded"]; - "github.com/mycel-domain/mycel/x/epochs/module.ProvideModule"[color="lightgrey", fontcolor="dimgrey", penwidth="0.5", shape="box"]; - } - - subgraph "cluster_evidence" { - graph [fontsize="12.0", label="Module: evidence", penwidth="0.5", style="rounded"]; - "cosmossdk.io/x/evidence.ProvideModule"[color="lightgrey", fontcolor="dimgrey", penwidth="0.5", shape="box"]; - } - - subgraph "cluster_feegrant" { - graph [fontsize="12.0", label="Module: feegrant", penwidth="0.5", style="rounded"]; - "cosmossdk.io/x/feegrant/module.ProvideModule"[color="lightgrey", fontcolor="dimgrey", penwidth="0.5", shape="box"]; - } - - subgraph "cluster_genutil" { - graph [fontsize="12.0", label="Module: genutil", penwidth="0.5", style="rounded"]; - "github.com/cosmos/cosmos-sdk/x/genutil.ProvideModule"[color="lightgrey", fontcolor="dimgrey", penwidth="0.5", shape="box"]; - } - - subgraph "cluster_gov" { - graph [fontsize="12.0", label="Module: gov", penwidth="0.5", style="rounded"]; - "github.com/cosmos/cosmos-sdk/x/gov.ProvideKeyTable"[color="lightgrey", fontcolor="dimgrey", penwidth="0.5", shape="box"]; - "github.com/cosmos/cosmos-sdk/x/gov.ProvideModule"[color="lightgrey", fontcolor="dimgrey", penwidth="0.5", shape="box"]; - } - - subgraph "cluster_group" { - graph [fontsize="12.0", label="Module: group", penwidth="0.5", style="rounded"]; - "github.com/cosmos/cosmos-sdk/x/group/module.ProvideModule"[color="lightgrey", fontcolor="dimgrey", penwidth="0.5", shape="box"]; - } - - subgraph "cluster_mint" { - graph [fontsize="12.0", label="Module: mint", penwidth="0.5", style="rounded"]; - "github.com/cosmos/cosmos-sdk/x/mint.ProvideModule"[color="lightgrey", fontcolor="dimgrey", penwidth="0.5", shape="box"]; - } - - subgraph "cluster_nft" { - graph [fontsize="12.0", label="Module: nft", penwidth="0.5", style="rounded"]; - "cosmossdk.io/x/nft/module.ProvideModule"[color="lightgrey", fontcolor="dimgrey", penwidth="0.5", shape="box"]; - } - - subgraph "cluster_params" { - graph [fontsize="12.0", label="Module: params", penwidth="0.5", style="rounded"]; - "github.com/cosmos/cosmos-sdk/x/params.ProvideModule"[color="lightgrey", fontcolor="dimgrey", penwidth="0.5", shape="box"]; - "github.com/cosmos/cosmos-sdk/x/params.ProvideSubspace"[color="lightgrey", fontcolor="dimgrey", penwidth="0.5", shape="box"]; - } - - subgraph "cluster_runtime" { - graph [fontsize="12.0", label="Module: runtime", penwidth="0.5", style="rounded"]; - "github.com/cosmos/cosmos-sdk/runtime.ProvideAddressCodec"[color="lightgrey", fontcolor="dimgrey", penwidth="0.5", shape="box"]; - "github.com/cosmos/cosmos-sdk/runtime.ProvideApp"[color="lightgrey", fontcolor="dimgrey", penwidth="0.5", shape="box"]; - "github.com/cosmos/cosmos-sdk/runtime.ProvideBasicManager"[color="lightgrey", fontcolor="dimgrey", penwidth="0.5", shape="box"]; - "github.com/cosmos/cosmos-sdk/runtime.ProvideCometInfoService"[color="lightgrey", fontcolor="dimgrey", penwidth="0.5", shape="box"]; - "github.com/cosmos/cosmos-sdk/runtime.ProvideEventService"[color="lightgrey", fontcolor="dimgrey", penwidth="0.5", shape="box"]; - "github.com/cosmos/cosmos-sdk/runtime.ProvideGenesisTxHandler"[color="lightgrey", fontcolor="dimgrey", penwidth="0.5", shape="box"]; - "github.com/cosmos/cosmos-sdk/runtime.ProvideHeaderInfoService"[color="lightgrey", fontcolor="dimgrey", penwidth="0.5", shape="box"]; - "github.com/cosmos/cosmos-sdk/runtime.ProvideInterfaceRegistry"[color="lightgrey", fontcolor="dimgrey", penwidth="0.5", shape="box"]; - "github.com/cosmos/cosmos-sdk/runtime.ProvideKVStoreKey"[color="lightgrey", fontcolor="dimgrey", penwidth="0.5", shape="box"]; - "github.com/cosmos/cosmos-sdk/runtime.ProvideKVStoreService"[color="lightgrey", fontcolor="dimgrey", penwidth="0.5", shape="box"]; - "github.com/cosmos/cosmos-sdk/runtime.ProvideMemoryStoreKey"[color="lightgrey", fontcolor="dimgrey", penwidth="0.5", shape="box"]; - "github.com/cosmos/cosmos-sdk/runtime.ProvideMemoryStoreService"[color="lightgrey", fontcolor="dimgrey", penwidth="0.5", shape="box"]; - "github.com/cosmos/cosmos-sdk/runtime.ProvideTransientStoreKey"[color="lightgrey", fontcolor="dimgrey", penwidth="0.5", shape="box"]; - "github.com/cosmos/cosmos-sdk/runtime.ProvideTransientStoreService"[color="lightgrey", fontcolor="dimgrey", penwidth="0.5", shape="box"]; - } - - subgraph "cluster_slashing" { - graph [fontsize="12.0", label="Module: slashing", penwidth="0.5", style="rounded"]; - "github.com/cosmos/cosmos-sdk/x/slashing.ProvideModule"[color="lightgrey", fontcolor="dimgrey", penwidth="0.5", shape="box"]; - } - - subgraph "cluster_staking" { - graph [fontsize="12.0", label="Module: staking", penwidth="0.5", style="rounded"]; - "github.com/cosmos/cosmos-sdk/x/staking.ProvideModule"[color="lightgrey", fontcolor="dimgrey", penwidth="0.5", shape="box"]; - } - - subgraph "cluster_tx" { - graph [fontsize="12.0", label="Module: tx", penwidth="0.5", style="rounded"]; - "github.com/cosmos/cosmos-sdk/x/auth/tx/config.ProvideModule"[color="lightgrey", fontcolor="dimgrey", penwidth="0.5", shape="box"]; - "github.com/cosmos/cosmos-sdk/x/auth/tx/config.ProvideProtoRegistry"[color="lightgrey", fontcolor="dimgrey", penwidth="0.5", shape="box"]; - } - - subgraph "cluster_upgrade" { - graph [fontsize="12.0", label="Module: upgrade", penwidth="0.5", style="rounded"]; - "cosmossdk.io/x/upgrade.ProvideModule"[color="lightgrey", fontcolor="dimgrey", penwidth="0.5", shape="box"]; - } - - subgraph "cluster_vesting" { - graph [fontsize="12.0", label="Module: vesting", penwidth="0.5", style="rounded"]; - "github.com/cosmos/cosmos-sdk/x/auth/vesting.ProvideModule"[color="lightgrey", fontcolor="dimgrey", penwidth="0.5", shape="box"]; - } - - "*cosmossdk.io/api/cosmos/app/runtime/v1alpha1.Module"[color="lightgrey", fontcolor="dimgrey", penwidth="0.5"]; - "*cosmossdk.io/api/cosmos/app/v1alpha1.Config"[color="lightgrey", fontcolor="dimgrey", penwidth="0.5"]; - "*cosmossdk.io/api/cosmos/auth/module/v1.Module"[color="lightgrey", fontcolor="dimgrey", penwidth="0.5"]; - "*cosmossdk.io/api/cosmos/authz/module/v1.Module"[color="lightgrey", fontcolor="dimgrey", penwidth="0.5"]; - "*cosmossdk.io/api/cosmos/bank/module/v1.Module"[color="lightgrey", fontcolor="dimgrey", penwidth="0.5"]; - "*cosmossdk.io/api/cosmos/circuit/module/v1.Module"[color="lightgrey", fontcolor="dimgrey", penwidth="0.5"]; - "*cosmossdk.io/api/cosmos/consensus/module/v1.Module"[color="lightgrey", fontcolor="dimgrey", penwidth="0.5"]; - "*cosmossdk.io/api/cosmos/crisis/module/v1.Module"[color="lightgrey", fontcolor="dimgrey", penwidth="0.5"]; - "*cosmossdk.io/api/cosmos/distribution/module/v1.Module"[color="lightgrey", fontcolor="dimgrey", penwidth="0.5"]; - "*cosmossdk.io/api/cosmos/evidence/module/v1.Module"[color="lightgrey", fontcolor="dimgrey", penwidth="0.5"]; - "*cosmossdk.io/api/cosmos/feegrant/module/v1.Module"[color="lightgrey", fontcolor="dimgrey", penwidth="0.5"]; - "*cosmossdk.io/api/cosmos/genutil/module/v1.Module"[color="lightgrey", fontcolor="dimgrey", penwidth="0.5"]; - "*cosmossdk.io/api/cosmos/gov/module/v1.Module"[color="lightgrey", fontcolor="dimgrey", penwidth="0.5"]; - "*cosmossdk.io/api/cosmos/group/module/v1.Module"[color="lightgrey", fontcolor="dimgrey", penwidth="0.5"]; - "*cosmossdk.io/api/cosmos/mint/module/v1.Module"[color="lightgrey", fontcolor="dimgrey", penwidth="0.5"]; - "*cosmossdk.io/api/cosmos/nft/module/v1.Module"[color="lightgrey", fontcolor="dimgrey", penwidth="0.5"]; - "*cosmossdk.io/api/cosmos/params/module/v1.Module"[color="lightgrey", fontcolor="dimgrey", penwidth="0.5"]; - "*cosmossdk.io/api/cosmos/slashing/module/v1.Module"[color="lightgrey", fontcolor="dimgrey", penwidth="0.5"]; - "*cosmossdk.io/api/cosmos/staking/module/v1.Module"[color="lightgrey", fontcolor="dimgrey", penwidth="0.5"]; - "*cosmossdk.io/api/cosmos/tx/config/v1.Config"[color="lightgrey", fontcolor="dimgrey", penwidth="0.5"]; - "*cosmossdk.io/api/cosmos/upgrade/module/v1.Module"[color="lightgrey", fontcolor="dimgrey", penwidth="0.5"]; - "*cosmossdk.io/api/cosmos/vesting/module/v1.Module"[color="lightgrey", fontcolor="dimgrey", penwidth="0.5"]; - "*cosmossdk.io/store/types.KVStoreKey"[color="lightgrey", fontcolor="dimgrey", penwidth="0.5"]; - "*cosmossdk.io/store/types.MemoryStoreKey"[color="lightgrey", fontcolor="dimgrey", penwidth="0.5"]; - "*cosmossdk.io/store/types.TransientStoreKey"[color="lightgrey", fontcolor="dimgrey", penwidth="0.5"]; - "*cosmossdk.io/x/upgrade/keeper.Keeper"[color="lightgrey", fontcolor="dimgrey", penwidth="0.5"]; - "*github.com/cosmos/cosmos-sdk/baseapp.MsgServiceRouter"[color="lightgrey", fontcolor="dimgrey", penwidth="0.5"]; - "*github.com/cosmos/cosmos-sdk/codec.LegacyAmino"[color="lightgrey", fontcolor="dimgrey", penwidth="0.5"]; - "*github.com/cosmos/cosmos-sdk/runtime.AppBuilder"[color="lightgrey", fontcolor="dimgrey", penwidth="0.5"]; - "*github.com/cosmos/cosmos-sdk/x/crisis/keeper.Keeper"[color="lightgrey", fontcolor="dimgrey", penwidth="0.5"]; - "*github.com/cosmos/cosmos-sdk/x/gov/keeper.Keeper"[color="lightgrey", fontcolor="dimgrey", penwidth="0.5"]; - "*github.com/cosmos/cosmos-sdk/x/staking/keeper.Keeper"[color="lightgrey", fontcolor="dimgrey", penwidth="0.5"]; - "*github.com/mycel-domain/mycel/api/mycel/epochs/module/v1.Module"[color="lightgrey", fontcolor="dimgrey", penwidth="0.5"]; - "[]cosmossdk.io/x/tx/signing.CustomGetSigner"[color="lightgrey", comment="many-per-container", fontcolor="dimgrey", penwidth="0.5"]; - "[]github.com/cosmos/cosmos-sdk/x/gov/types/v1beta1.HandlerRoute"[color="lightgrey", comment="many-per-container", fontcolor="dimgrey", penwidth="0.5"]; - "[]runtime.BaseAppOption"[color="lightgrey", comment="many-per-container", fontcolor="dimgrey", penwidth="0.5"]; - "cosmossdk.io/core/address.Codec"[color="lightgrey", fontcolor="dimgrey", penwidth="0.5"]; - "cosmossdk.io/core/appconfig.Compose"[color="black", fontcolor="black", penwidth="1.5", shape="box"]; - "cosmossdk.io/core/comet.BlockInfoService"[color="lightgrey", fontcolor="dimgrey", penwidth="0.5"]; - "cosmossdk.io/core/event.Service"[color="lightgrey", fontcolor="dimgrey", penwidth="0.5"]; - "cosmossdk.io/core/genesis.TxHandler"[color="lightgrey", fontcolor="dimgrey", penwidth="0.5"]; - "cosmossdk.io/core/header.Service"[color="lightgrey", fontcolor="dimgrey", penwidth="0.5"]; - "cosmossdk.io/core/store.KVStoreService"[color="lightgrey", fontcolor="dimgrey", penwidth="0.5"]; - "cosmossdk.io/core/store.MemoryStoreService"[color="lightgrey", fontcolor="dimgrey", penwidth="0.5"]; - "cosmossdk.io/core/store.TransientStoreService"[color="lightgrey", fontcolor="dimgrey", penwidth="0.5"]; - "cosmossdk.io/depinject.ModuleKey"[color="lightgrey", fontcolor="dimgrey", penwidth="0.5"]; - "cosmossdk.io/depinject.OwnModuleKey"[color="lightgrey", fontcolor="dimgrey", penwidth="0.5"]; - "cosmossdk.io/log.Logger"[color="lightgrey", fontcolor="dimgrey", penwidth="0.5"]; - "cosmossdk.io/x/circuit/keeper.Keeper"[color="lightgrey", fontcolor="dimgrey", penwidth="0.5"]; - "cosmossdk.io/x/evidence/keeper.Keeper"[color="lightgrey", fontcolor="dimgrey", penwidth="0.5"]; - "cosmossdk.io/x/feegrant/keeper.Keeper"[color="lightgrey", fontcolor="dimgrey", penwidth="0.5"]; - "cosmossdk.io/x/nft.BankKeeper"[color="lightgrey", fontcolor="dimgrey", penwidth="0.5"]; - "cosmossdk.io/x/nft/keeper.Keeper"[color="lightgrey", fontcolor="dimgrey", penwidth="0.5"]; - "cosmossdk.io/x/tx/signing.ProtoFileResolver"[color="lightgrey", fontcolor="dimgrey", penwidth="0.5"]; - "func() []signing.SignModeHandler"[color="lightgrey", fontcolor="dimgrey", penwidth="0.5"]; - "func() address.Codec"[color="lightgrey", fontcolor="dimgrey", penwidth="0.5"]; - "func() runtime.ConsensusAddressCodec"[color="lightgrey", fontcolor="dimgrey", penwidth="0.5"]; - "func() runtime.ValidatorAddressCodec"[color="lightgrey", fontcolor="dimgrey", penwidth="0.5"]; - "func() types.AccountI"[color="lightgrey", fontcolor="dimgrey", penwidth="0.5"]; - "github.com/cosmos/cosmos-sdk/client.TxConfig"[color="lightgrey", fontcolor="dimgrey", penwidth="0.5"]; - "github.com/cosmos/cosmos-sdk/codec.Codec"[color="lightgrey", fontcolor="dimgrey", penwidth="0.5"]; - "github.com/cosmos/cosmos-sdk/codec/types.InterfaceRegistry"[color="lightgrey", fontcolor="dimgrey", penwidth="0.5"]; - "github.com/cosmos/cosmos-sdk/runtime.ConsensusAddressCodec"[color="lightgrey", fontcolor="dimgrey", penwidth="0.5"]; - "github.com/cosmos/cosmos-sdk/runtime.ValidatorAddressCodec"[color="lightgrey", fontcolor="dimgrey", penwidth="0.5"]; - "github.com/cosmos/cosmos-sdk/server/types.AppOptions"[color="lightgrey", fontcolor="dimgrey", penwidth="0.5"]; - "github.com/cosmos/cosmos-sdk/x/auth/ante.FeegrantKeeper"[color="lightgrey", fontcolor="dimgrey", penwidth="0.5"]; - "github.com/cosmos/cosmos-sdk/x/auth/exported.Subspace"[color="lightgrey", fontcolor="dimgrey", penwidth="0.5"]; - "github.com/cosmos/cosmos-sdk/x/auth/keeper.AccountKeeper"[color="lightgrey", fontcolor="dimgrey", penwidth="0.5"]; - "github.com/cosmos/cosmos-sdk/x/auth/tx.ConfigOptions"[color="lightgrey", fontcolor="dimgrey", penwidth="0.5"]; - "github.com/cosmos/cosmos-sdk/x/auth/vesting/types.BankKeeper"[color="lightgrey", fontcolor="dimgrey", penwidth="0.5"]; - "github.com/cosmos/cosmos-sdk/x/authz/keeper.Keeper"[color="lightgrey", fontcolor="dimgrey", penwidth="0.5"]; - "github.com/cosmos/cosmos-sdk/x/bank/exported.Subspace"[color="lightgrey", fontcolor="dimgrey", penwidth="0.5"]; - "github.com/cosmos/cosmos-sdk/x/bank/keeper.BaseKeeper"[color="lightgrey", fontcolor="dimgrey", penwidth="0.5"]; - "github.com/cosmos/cosmos-sdk/x/consensus/keeper.Keeper"[color="lightgrey", fontcolor="dimgrey", penwidth="0.5"]; - "github.com/cosmos/cosmos-sdk/x/distribution/keeper.Keeper"[color="lightgrey", fontcolor="dimgrey", penwidth="0.5"]; - "github.com/cosmos/cosmos-sdk/x/group/keeper.Keeper"[color="lightgrey", fontcolor="dimgrey", penwidth="0.5"]; - "github.com/cosmos/cosmos-sdk/x/mint/keeper.Keeper"[color="lightgrey", fontcolor="dimgrey", penwidth="0.5"]; - "github.com/cosmos/cosmos-sdk/x/params/keeper.Keeper"[color="lightgrey", fontcolor="dimgrey", penwidth="0.5"]; - "github.com/cosmos/cosmos-sdk/x/params/types.Subspace"[color="lightgrey", fontcolor="dimgrey", penwidth="0.5"]; - "github.com/cosmos/cosmos-sdk/x/slashing/exported.Subspace"[color="lightgrey", fontcolor="dimgrey", penwidth="0.5"]; - "github.com/cosmos/cosmos-sdk/x/slashing/keeper.Keeper"[color="lightgrey", fontcolor="dimgrey", penwidth="0.5"]; - "github.com/cosmos/cosmos-sdk/x/staking/exported.Subspace"[color="lightgrey", fontcolor="dimgrey", penwidth="0.5"]; - "google.golang.org/protobuf/reflect/protodesc.Resolver"[color="lightgrey", fontcolor="dimgrey", penwidth="0.5"]; - "google.golang.org/protobuf/reflect/protoregistry.MessageTypeResolver"[color="lightgrey", fontcolor="dimgrey", penwidth="0.5"]; - "map[string]cosmossdk.io/core/appmodule.AppModule"[color="lightgrey", comment="one-per-module", fontcolor="dimgrey", penwidth="0.5"]; - "map[string]github.com/cosmos/cosmos-sdk/types/module.AppModuleBasic"[color="lightgrey", fontcolor="dimgrey", penwidth="0.5"]; - "map[string]github.com/cosmos/cosmos-sdk/x/params/types.KeyTable"[color="lightgrey", comment="one-per-module", fontcolor="dimgrey", penwidth="0.5"]; - "map[string]github.com/cosmos/cosmos-sdk/x/staking/types.StakingHooksWrapper"[color="lightgrey", comment="one-per-module", fontcolor="dimgrey", penwidth="0.5"]; - "types.InflationCalculationFn"[color="lightgrey", fontcolor="dimgrey", penwidth="0.5"]; - "types.RandomGenesisAccountsFn"[color="lightgrey", fontcolor="dimgrey", penwidth="0.5"]; - "cosmossdk.io/core/appconfig.Compose" -> "*cosmossdk.io/api/cosmos/app/v1alpha1.Config"; - "cosmossdk.io/core/appconfig.Compose" -> "*cosmossdk.io/api/cosmos/app/runtime/v1alpha1.Module"; - "github.com/cosmos/cosmos-sdk/codec/types.InterfaceRegistry" -> "github.com/cosmos/cosmos-sdk/runtime.ProvideApp"; - "github.com/cosmos/cosmos-sdk/runtime.ProvideApp" -> "github.com/cosmos/cosmos-sdk/codec.Codec"; - "github.com/cosmos/cosmos-sdk/runtime.ProvideApp" -> "*github.com/cosmos/cosmos-sdk/codec.LegacyAmino"; - "github.com/cosmos/cosmos-sdk/runtime.ProvideApp" -> "*github.com/cosmos/cosmos-sdk/runtime.AppBuilder"; - "github.com/cosmos/cosmos-sdk/runtime.ProvideApp" -> "*github.com/cosmos/cosmos-sdk/baseapp.MsgServiceRouter"; - "github.com/cosmos/cosmos-sdk/runtime.ProvideApp" -> "map[string]cosmossdk.io/core/appmodule.AppModule"; - "github.com/cosmos/cosmos-sdk/runtime.ProvideApp" -> "google.golang.org/protobuf/reflect/protodesc.Resolver"; - "github.com/cosmos/cosmos-sdk/runtime.ProvideApp" -> "google.golang.org/protobuf/reflect/protoregistry.MessageTypeResolver"; - "cosmossdk.io/core/address.Codec" -> "github.com/cosmos/cosmos-sdk/runtime.ProvideInterfaceRegistry"; - "github.com/cosmos/cosmos-sdk/runtime.ValidatorAddressCodec" -> "github.com/cosmos/cosmos-sdk/runtime.ProvideInterfaceRegistry"; - "[]cosmossdk.io/x/tx/signing.CustomGetSigner" -> "github.com/cosmos/cosmos-sdk/runtime.ProvideInterfaceRegistry"; - "github.com/cosmos/cosmos-sdk/runtime.ProvideInterfaceRegistry" -> "github.com/cosmos/cosmos-sdk/codec/types.InterfaceRegistry"; - "*cosmossdk.io/api/cosmos/app/runtime/v1alpha1.Module" -> "github.com/cosmos/cosmos-sdk/runtime.ProvideKVStoreKey"; - "cosmossdk.io/depinject.ModuleKey" -> "github.com/cosmos/cosmos-sdk/runtime.ProvideKVStoreKey"; - "*github.com/cosmos/cosmos-sdk/runtime.AppBuilder" -> "github.com/cosmos/cosmos-sdk/runtime.ProvideKVStoreKey"; - "github.com/cosmos/cosmos-sdk/runtime.ProvideKVStoreKey" -> "*cosmossdk.io/store/types.KVStoreKey"; - "cosmossdk.io/depinject.ModuleKey" -> "github.com/cosmos/cosmos-sdk/runtime.ProvideTransientStoreKey"; - "*github.com/cosmos/cosmos-sdk/runtime.AppBuilder" -> "github.com/cosmos/cosmos-sdk/runtime.ProvideTransientStoreKey"; - "github.com/cosmos/cosmos-sdk/runtime.ProvideTransientStoreKey" -> "*cosmossdk.io/store/types.TransientStoreKey"; - "cosmossdk.io/depinject.ModuleKey" -> "github.com/cosmos/cosmos-sdk/runtime.ProvideMemoryStoreKey"; - "*github.com/cosmos/cosmos-sdk/runtime.AppBuilder" -> "github.com/cosmos/cosmos-sdk/runtime.ProvideMemoryStoreKey"; - "github.com/cosmos/cosmos-sdk/runtime.ProvideMemoryStoreKey" -> "*cosmossdk.io/store/types.MemoryStoreKey"; - "*github.com/cosmos/cosmos-sdk/runtime.AppBuilder" -> "github.com/cosmos/cosmos-sdk/runtime.ProvideGenesisTxHandler"; - "github.com/cosmos/cosmos-sdk/runtime.ProvideGenesisTxHandler" -> "cosmossdk.io/core/genesis.TxHandler"; - "*cosmossdk.io/api/cosmos/app/runtime/v1alpha1.Module" -> "github.com/cosmos/cosmos-sdk/runtime.ProvideKVStoreService"; - "cosmossdk.io/depinject.ModuleKey" -> "github.com/cosmos/cosmos-sdk/runtime.ProvideKVStoreService"; - "*github.com/cosmos/cosmos-sdk/runtime.AppBuilder" -> "github.com/cosmos/cosmos-sdk/runtime.ProvideKVStoreService"; - "github.com/cosmos/cosmos-sdk/runtime.ProvideKVStoreService" -> "cosmossdk.io/core/store.KVStoreService"; - "cosmossdk.io/depinject.ModuleKey" -> "github.com/cosmos/cosmos-sdk/runtime.ProvideMemoryStoreService"; - "*github.com/cosmos/cosmos-sdk/runtime.AppBuilder" -> "github.com/cosmos/cosmos-sdk/runtime.ProvideMemoryStoreService"; - "github.com/cosmos/cosmos-sdk/runtime.ProvideMemoryStoreService" -> "cosmossdk.io/core/store.MemoryStoreService"; - "cosmossdk.io/depinject.ModuleKey" -> "github.com/cosmos/cosmos-sdk/runtime.ProvideTransientStoreService"; - "*github.com/cosmos/cosmos-sdk/runtime.AppBuilder" -> "github.com/cosmos/cosmos-sdk/runtime.ProvideTransientStoreService"; - "github.com/cosmos/cosmos-sdk/runtime.ProvideTransientStoreService" -> "cosmossdk.io/core/store.TransientStoreService"; - "github.com/cosmos/cosmos-sdk/runtime.ProvideEventService" -> "cosmossdk.io/core/event.Service"; - "*github.com/cosmos/cosmos-sdk/runtime.AppBuilder" -> "github.com/cosmos/cosmos-sdk/runtime.ProvideHeaderInfoService"; - "github.com/cosmos/cosmos-sdk/runtime.ProvideHeaderInfoService" -> "cosmossdk.io/core/header.Service"; - "github.com/cosmos/cosmos-sdk/runtime.ProvideCometInfoService" -> "cosmossdk.io/core/comet.BlockInfoService"; - "*github.com/cosmos/cosmos-sdk/runtime.AppBuilder" -> "github.com/cosmos/cosmos-sdk/runtime.ProvideBasicManager"; - "github.com/cosmos/cosmos-sdk/runtime.ProvideBasicManager" -> "map[string]github.com/cosmos/cosmos-sdk/types/module.AppModuleBasic"; - "*cosmossdk.io/api/cosmos/auth/module/v1.Module" -> "github.com/cosmos/cosmos-sdk/runtime.ProvideAddressCodec"; - "*cosmossdk.io/api/cosmos/staking/module/v1.Module" -> "github.com/cosmos/cosmos-sdk/runtime.ProvideAddressCodec"; - "func() address.Codec" -> "github.com/cosmos/cosmos-sdk/runtime.ProvideAddressCodec"; - "func() runtime.ValidatorAddressCodec" -> "github.com/cosmos/cosmos-sdk/runtime.ProvideAddressCodec"; - "func() runtime.ConsensusAddressCodec" -> "github.com/cosmos/cosmos-sdk/runtime.ProvideAddressCodec"; - "github.com/cosmos/cosmos-sdk/runtime.ProvideAddressCodec" -> "cosmossdk.io/core/address.Codec"; - "github.com/cosmos/cosmos-sdk/runtime.ProvideAddressCodec" -> "github.com/cosmos/cosmos-sdk/runtime.ValidatorAddressCodec"; - "github.com/cosmos/cosmos-sdk/runtime.ProvideAddressCodec" -> "github.com/cosmos/cosmos-sdk/runtime.ConsensusAddressCodec"; - "cosmossdk.io/core/appconfig.Compose" -> "*cosmossdk.io/api/cosmos/auth/module/v1.Module"; - "*cosmossdk.io/api/cosmos/auth/module/v1.Module" -> "github.com/cosmos/cosmos-sdk/x/auth.ProvideModule"; - "cosmossdk.io/core/store.KVStoreService" -> "github.com/cosmos/cosmos-sdk/x/auth.ProvideModule"; - "github.com/cosmos/cosmos-sdk/codec.Codec" -> "github.com/cosmos/cosmos-sdk/x/auth.ProvideModule"; - "cosmossdk.io/core/address.Codec" -> "github.com/cosmos/cosmos-sdk/x/auth.ProvideModule"; - "types.RandomGenesisAccountsFn" -> "github.com/cosmos/cosmos-sdk/x/auth.ProvideModule"; - "func() types.AccountI" -> "github.com/cosmos/cosmos-sdk/x/auth.ProvideModule"; - "github.com/cosmos/cosmos-sdk/x/auth/exported.Subspace" -> "github.com/cosmos/cosmos-sdk/x/auth.ProvideModule"; - "github.com/cosmos/cosmos-sdk/x/auth.ProvideModule" -> "github.com/cosmos/cosmos-sdk/x/auth/keeper.AccountKeeper"; - "github.com/cosmos/cosmos-sdk/x/auth.ProvideModule" -> "map[string]cosmossdk.io/core/appmodule.AppModule"; - "cosmossdk.io/core/appconfig.Compose" -> "*cosmossdk.io/api/cosmos/nft/module/v1.Module"; - "cosmossdk.io/core/store.KVStoreService" -> "cosmossdk.io/x/nft/module.ProvideModule"; - "github.com/cosmos/cosmos-sdk/codec.Codec" -> "cosmossdk.io/x/nft/module.ProvideModule"; - "github.com/cosmos/cosmos-sdk/codec/types.InterfaceRegistry" -> "cosmossdk.io/x/nft/module.ProvideModule"; - "github.com/cosmos/cosmos-sdk/x/auth/keeper.AccountKeeper" -> "cosmossdk.io/x/nft/module.ProvideModule"; - "cosmossdk.io/x/nft.BankKeeper" -> "cosmossdk.io/x/nft/module.ProvideModule"; - "cosmossdk.io/x/nft/module.ProvideModule" -> "cosmossdk.io/x/nft/keeper.Keeper"; - "cosmossdk.io/x/nft/module.ProvideModule" -> "map[string]cosmossdk.io/core/appmodule.AppModule"; - "cosmossdk.io/core/appconfig.Compose" -> "*cosmossdk.io/api/cosmos/vesting/module/v1.Module"; - "github.com/cosmos/cosmos-sdk/x/auth/keeper.AccountKeeper" -> "github.com/cosmos/cosmos-sdk/x/auth/vesting.ProvideModule"; - "github.com/cosmos/cosmos-sdk/x/auth/vesting/types.BankKeeper" -> "github.com/cosmos/cosmos-sdk/x/auth/vesting.ProvideModule"; - "github.com/cosmos/cosmos-sdk/x/auth/vesting.ProvideModule" -> "map[string]cosmossdk.io/core/appmodule.AppModule"; - "cosmossdk.io/core/appconfig.Compose" -> "*cosmossdk.io/api/cosmos/bank/module/v1.Module"; - "*cosmossdk.io/api/cosmos/bank/module/v1.Module" -> "github.com/cosmos/cosmos-sdk/x/bank.ProvideModule"; - "github.com/cosmos/cosmos-sdk/codec.Codec" -> "github.com/cosmos/cosmos-sdk/x/bank.ProvideModule"; - "cosmossdk.io/core/store.KVStoreService" -> "github.com/cosmos/cosmos-sdk/x/bank.ProvideModule"; - "cosmossdk.io/log.Logger" -> "github.com/cosmos/cosmos-sdk/x/bank.ProvideModule"; - "github.com/cosmos/cosmos-sdk/x/auth/keeper.AccountKeeper" -> "github.com/cosmos/cosmos-sdk/x/bank.ProvideModule"; - "github.com/cosmos/cosmos-sdk/x/bank/exported.Subspace" -> "github.com/cosmos/cosmos-sdk/x/bank.ProvideModule"; - "github.com/cosmos/cosmos-sdk/x/bank.ProvideModule" -> "github.com/cosmos/cosmos-sdk/x/bank/keeper.BaseKeeper"; - "github.com/cosmos/cosmos-sdk/x/bank.ProvideModule" -> "map[string]cosmossdk.io/core/appmodule.AppModule"; - "cosmossdk.io/core/appconfig.Compose" -> "*cosmossdk.io/api/cosmos/staking/module/v1.Module"; - "*cosmossdk.io/api/cosmos/staking/module/v1.Module" -> "github.com/cosmos/cosmos-sdk/x/staking.ProvideModule"; - "github.com/cosmos/cosmos-sdk/runtime.ValidatorAddressCodec" -> "github.com/cosmos/cosmos-sdk/x/staking.ProvideModule"; - "github.com/cosmos/cosmos-sdk/runtime.ConsensusAddressCodec" -> "github.com/cosmos/cosmos-sdk/x/staking.ProvideModule"; - "github.com/cosmos/cosmos-sdk/x/auth/keeper.AccountKeeper" -> "github.com/cosmos/cosmos-sdk/x/staking.ProvideModule"; - "github.com/cosmos/cosmos-sdk/x/bank/keeper.BaseKeeper" -> "github.com/cosmos/cosmos-sdk/x/staking.ProvideModule"; - "github.com/cosmos/cosmos-sdk/codec.Codec" -> "github.com/cosmos/cosmos-sdk/x/staking.ProvideModule"; - "cosmossdk.io/core/store.KVStoreService" -> "github.com/cosmos/cosmos-sdk/x/staking.ProvideModule"; - "github.com/cosmos/cosmos-sdk/x/staking/exported.Subspace" -> "github.com/cosmos/cosmos-sdk/x/staking.ProvideModule"; - "github.com/cosmos/cosmos-sdk/x/staking.ProvideModule" -> "*github.com/cosmos/cosmos-sdk/x/staking/keeper.Keeper"; - "github.com/cosmos/cosmos-sdk/x/staking.ProvideModule" -> "map[string]cosmossdk.io/core/appmodule.AppModule"; - "cosmossdk.io/core/appconfig.Compose" -> "*cosmossdk.io/api/cosmos/slashing/module/v1.Module"; - "*cosmossdk.io/api/cosmos/slashing/module/v1.Module" -> "github.com/cosmos/cosmos-sdk/x/slashing.ProvideModule"; - "cosmossdk.io/core/store.KVStoreService" -> "github.com/cosmos/cosmos-sdk/x/slashing.ProvideModule"; - "github.com/cosmos/cosmos-sdk/codec.Codec" -> "github.com/cosmos/cosmos-sdk/x/slashing.ProvideModule"; - "*github.com/cosmos/cosmos-sdk/codec.LegacyAmino" -> "github.com/cosmos/cosmos-sdk/x/slashing.ProvideModule"; - "github.com/cosmos/cosmos-sdk/codec/types.InterfaceRegistry" -> "github.com/cosmos/cosmos-sdk/x/slashing.ProvideModule"; - "github.com/cosmos/cosmos-sdk/x/auth/keeper.AccountKeeper" -> "github.com/cosmos/cosmos-sdk/x/slashing.ProvideModule"; - "github.com/cosmos/cosmos-sdk/x/bank/keeper.BaseKeeper" -> "github.com/cosmos/cosmos-sdk/x/slashing.ProvideModule"; - "*github.com/cosmos/cosmos-sdk/x/staking/keeper.Keeper" -> "github.com/cosmos/cosmos-sdk/x/slashing.ProvideModule"; - "github.com/cosmos/cosmos-sdk/x/slashing/exported.Subspace" -> "github.com/cosmos/cosmos-sdk/x/slashing.ProvideModule"; - "github.com/cosmos/cosmos-sdk/x/slashing.ProvideModule" -> "github.com/cosmos/cosmos-sdk/x/slashing/keeper.Keeper"; - "github.com/cosmos/cosmos-sdk/x/slashing.ProvideModule" -> "map[string]cosmossdk.io/core/appmodule.AppModule"; - "github.com/cosmos/cosmos-sdk/x/slashing.ProvideModule" -> "map[string]github.com/cosmos/cosmos-sdk/x/staking/types.StakingHooksWrapper"; - "cosmossdk.io/core/appconfig.Compose" -> "*cosmossdk.io/api/cosmos/params/module/v1.Module"; - "*cosmossdk.io/store/types.KVStoreKey" -> "github.com/cosmos/cosmos-sdk/x/params.ProvideModule"; - "*cosmossdk.io/store/types.TransientStoreKey" -> "github.com/cosmos/cosmos-sdk/x/params.ProvideModule"; - "github.com/cosmos/cosmos-sdk/codec.Codec" -> "github.com/cosmos/cosmos-sdk/x/params.ProvideModule"; - "*github.com/cosmos/cosmos-sdk/codec.LegacyAmino" -> "github.com/cosmos/cosmos-sdk/x/params.ProvideModule"; - "github.com/cosmos/cosmos-sdk/x/params.ProvideModule" -> "github.com/cosmos/cosmos-sdk/x/params/keeper.Keeper"; - "github.com/cosmos/cosmos-sdk/x/params.ProvideModule" -> "map[string]cosmossdk.io/core/appmodule.AppModule"; - "github.com/cosmos/cosmos-sdk/x/params.ProvideModule" -> "[]github.com/cosmos/cosmos-sdk/x/gov/types/v1beta1.HandlerRoute"; - "cosmossdk.io/depinject.ModuleKey" -> "github.com/cosmos/cosmos-sdk/x/params.ProvideSubspace"; - "github.com/cosmos/cosmos-sdk/x/params/keeper.Keeper" -> "github.com/cosmos/cosmos-sdk/x/params.ProvideSubspace"; - "map[string]github.com/cosmos/cosmos-sdk/x/params/types.KeyTable" -> "github.com/cosmos/cosmos-sdk/x/params.ProvideSubspace"; - "github.com/cosmos/cosmos-sdk/x/params.ProvideSubspace" -> "github.com/cosmos/cosmos-sdk/x/params/types.Subspace"; - "cosmossdk.io/core/appconfig.Compose" -> "*cosmossdk.io/api/cosmos/tx/config/v1.Config"; - "*cosmossdk.io/api/cosmos/tx/config/v1.Config" -> "github.com/cosmos/cosmos-sdk/x/auth/tx/config.ProvideModule"; - "cosmossdk.io/core/address.Codec" -> "github.com/cosmos/cosmos-sdk/x/auth/tx/config.ProvideModule"; - "github.com/cosmos/cosmos-sdk/runtime.ValidatorAddressCodec" -> "github.com/cosmos/cosmos-sdk/x/auth/tx/config.ProvideModule"; - "github.com/cosmos/cosmos-sdk/codec.Codec" -> "github.com/cosmos/cosmos-sdk/x/auth/tx/config.ProvideModule"; - "cosmossdk.io/x/tx/signing.ProtoFileResolver" -> "github.com/cosmos/cosmos-sdk/x/auth/tx/config.ProvideModule"; - "github.com/cosmos/cosmos-sdk/x/bank/keeper.BaseKeeper" -> "github.com/cosmos/cosmos-sdk/x/auth/tx/config.ProvideModule"; - "github.com/cosmos/cosmos-sdk/x/bank/keeper.BaseKeeper" -> "github.com/cosmos/cosmos-sdk/x/auth/tx/config.ProvideModule"; - "github.com/cosmos/cosmos-sdk/x/auth/keeper.AccountKeeper" -> "github.com/cosmos/cosmos-sdk/x/auth/tx/config.ProvideModule"; - "github.com/cosmos/cosmos-sdk/x/auth/ante.FeegrantKeeper" -> "github.com/cosmos/cosmos-sdk/x/auth/tx/config.ProvideModule"; - "func() []signing.SignModeHandler" -> "github.com/cosmos/cosmos-sdk/x/auth/tx/config.ProvideModule"; - "github.com/cosmos/cosmos-sdk/x/auth/tx/config.ProvideModule" -> "github.com/cosmos/cosmos-sdk/client.TxConfig"; - "github.com/cosmos/cosmos-sdk/x/auth/tx/config.ProvideModule" -> "github.com/cosmos/cosmos-sdk/x/auth/tx.ConfigOptions"; - "github.com/cosmos/cosmos-sdk/x/auth/tx/config.ProvideModule" -> "[]runtime.BaseAppOption"; - "github.com/cosmos/cosmos-sdk/x/auth/tx/config.ProvideProtoRegistry" -> "cosmossdk.io/x/tx/signing.ProtoFileResolver"; - "cosmossdk.io/core/appconfig.Compose" -> "*cosmossdk.io/api/cosmos/genutil/module/v1.Module"; - "github.com/cosmos/cosmos-sdk/x/auth/keeper.AccountKeeper" -> "github.com/cosmos/cosmos-sdk/x/genutil.ProvideModule"; - "*github.com/cosmos/cosmos-sdk/x/staking/keeper.Keeper" -> "github.com/cosmos/cosmos-sdk/x/genutil.ProvideModule"; - "cosmossdk.io/core/genesis.TxHandler" -> "github.com/cosmos/cosmos-sdk/x/genutil.ProvideModule"; - "github.com/cosmos/cosmos-sdk/client.TxConfig" -> "github.com/cosmos/cosmos-sdk/x/genutil.ProvideModule"; - "github.com/cosmos/cosmos-sdk/x/genutil.ProvideModule" -> "map[string]cosmossdk.io/core/appmodule.AppModule"; - "cosmossdk.io/core/appconfig.Compose" -> "*cosmossdk.io/api/cosmos/authz/module/v1.Module"; - "github.com/cosmos/cosmos-sdk/codec.Codec" -> "github.com/cosmos/cosmos-sdk/x/authz/module.ProvideModule"; - "github.com/cosmos/cosmos-sdk/x/auth/keeper.AccountKeeper" -> "github.com/cosmos/cosmos-sdk/x/authz/module.ProvideModule"; - "github.com/cosmos/cosmos-sdk/x/bank/keeper.BaseKeeper" -> "github.com/cosmos/cosmos-sdk/x/authz/module.ProvideModule"; - "github.com/cosmos/cosmos-sdk/codec/types.InterfaceRegistry" -> "github.com/cosmos/cosmos-sdk/x/authz/module.ProvideModule"; - "*github.com/cosmos/cosmos-sdk/baseapp.MsgServiceRouter" -> "github.com/cosmos/cosmos-sdk/x/authz/module.ProvideModule"; - "cosmossdk.io/core/store.KVStoreService" -> "github.com/cosmos/cosmos-sdk/x/authz/module.ProvideModule"; - "github.com/cosmos/cosmos-sdk/x/authz/module.ProvideModule" -> "github.com/cosmos/cosmos-sdk/x/authz/keeper.Keeper"; - "github.com/cosmos/cosmos-sdk/x/authz/module.ProvideModule" -> "map[string]cosmossdk.io/core/appmodule.AppModule"; - "cosmossdk.io/core/appconfig.Compose" -> "*cosmossdk.io/api/cosmos/upgrade/module/v1.Module"; - "*cosmossdk.io/api/cosmos/upgrade/module/v1.Module" -> "cosmossdk.io/x/upgrade.ProvideModule"; - "cosmossdk.io/core/store.KVStoreService" -> "cosmossdk.io/x/upgrade.ProvideModule"; - "github.com/cosmos/cosmos-sdk/codec.Codec" -> "cosmossdk.io/x/upgrade.ProvideModule"; - "cosmossdk.io/core/address.Codec" -> "cosmossdk.io/x/upgrade.ProvideModule"; - "github.com/cosmos/cosmos-sdk/server/types.AppOptions" -> "cosmossdk.io/x/upgrade.ProvideModule"; - "cosmossdk.io/x/upgrade.ProvideModule" -> "*cosmossdk.io/x/upgrade/keeper.Keeper"; - "cosmossdk.io/x/upgrade.ProvideModule" -> "map[string]cosmossdk.io/core/appmodule.AppModule"; - "cosmossdk.io/x/upgrade.ProvideModule" -> "[]runtime.BaseAppOption"; - "cosmossdk.io/core/appconfig.Compose" -> "*cosmossdk.io/api/cosmos/distribution/module/v1.Module"; - "*cosmossdk.io/api/cosmos/distribution/module/v1.Module" -> "github.com/cosmos/cosmos-sdk/x/distribution.ProvideModule"; - "cosmossdk.io/core/store.KVStoreService" -> "github.com/cosmos/cosmos-sdk/x/distribution.ProvideModule"; - "github.com/cosmos/cosmos-sdk/codec.Codec" -> "github.com/cosmos/cosmos-sdk/x/distribution.ProvideModule"; - "github.com/cosmos/cosmos-sdk/x/auth/keeper.AccountKeeper" -> "github.com/cosmos/cosmos-sdk/x/distribution.ProvideModule"; - "github.com/cosmos/cosmos-sdk/x/bank/keeper.BaseKeeper" -> "github.com/cosmos/cosmos-sdk/x/distribution.ProvideModule"; - "*github.com/cosmos/cosmos-sdk/x/staking/keeper.Keeper" -> "github.com/cosmos/cosmos-sdk/x/distribution.ProvideModule"; - "github.com/cosmos/cosmos-sdk/x/params/types.Subspace" -> "github.com/cosmos/cosmos-sdk/x/distribution.ProvideModule"; - "github.com/cosmos/cosmos-sdk/x/distribution.ProvideModule" -> "github.com/cosmos/cosmos-sdk/x/distribution/keeper.Keeper"; - "github.com/cosmos/cosmos-sdk/x/distribution.ProvideModule" -> "map[string]cosmossdk.io/core/appmodule.AppModule"; - "github.com/cosmos/cosmos-sdk/x/distribution.ProvideModule" -> "map[string]github.com/cosmos/cosmos-sdk/x/staking/types.StakingHooksWrapper"; - "cosmossdk.io/core/appconfig.Compose" -> "*cosmossdk.io/api/cosmos/evidence/module/v1.Module"; - "cosmossdk.io/core/store.KVStoreService" -> "cosmossdk.io/x/evidence.ProvideModule"; - "github.com/cosmos/cosmos-sdk/codec.Codec" -> "cosmossdk.io/x/evidence.ProvideModule"; - "*github.com/cosmos/cosmos-sdk/x/staking/keeper.Keeper" -> "cosmossdk.io/x/evidence.ProvideModule"; - "github.com/cosmos/cosmos-sdk/x/slashing/keeper.Keeper" -> "cosmossdk.io/x/evidence.ProvideModule"; - "cosmossdk.io/core/address.Codec" -> "cosmossdk.io/x/evidence.ProvideModule"; - "cosmossdk.io/core/comet.BlockInfoService" -> "cosmossdk.io/x/evidence.ProvideModule"; - "cosmossdk.io/x/evidence.ProvideModule" -> "cosmossdk.io/x/evidence/keeper.Keeper"; - "cosmossdk.io/x/evidence.ProvideModule" -> "map[string]cosmossdk.io/core/appmodule.AppModule"; - "cosmossdk.io/core/appconfig.Compose" -> "*cosmossdk.io/api/cosmos/mint/module/v1.Module"; - "cosmossdk.io/depinject.OwnModuleKey" -> "github.com/cosmos/cosmos-sdk/x/mint.ProvideModule"; - "*cosmossdk.io/api/cosmos/mint/module/v1.Module" -> "github.com/cosmos/cosmos-sdk/x/mint.ProvideModule"; - "cosmossdk.io/core/store.KVStoreService" -> "github.com/cosmos/cosmos-sdk/x/mint.ProvideModule"; - "github.com/cosmos/cosmos-sdk/codec.Codec" -> "github.com/cosmos/cosmos-sdk/x/mint.ProvideModule"; - "types.InflationCalculationFn" -> "github.com/cosmos/cosmos-sdk/x/mint.ProvideModule"; - "github.com/cosmos/cosmos-sdk/x/params/types.Subspace" -> "github.com/cosmos/cosmos-sdk/x/mint.ProvideModule"; - "github.com/cosmos/cosmos-sdk/x/auth/keeper.AccountKeeper" -> "github.com/cosmos/cosmos-sdk/x/mint.ProvideModule"; - "github.com/cosmos/cosmos-sdk/x/bank/keeper.BaseKeeper" -> "github.com/cosmos/cosmos-sdk/x/mint.ProvideModule"; - "*github.com/cosmos/cosmos-sdk/x/staking/keeper.Keeper" -> "github.com/cosmos/cosmos-sdk/x/mint.ProvideModule"; - "github.com/cosmos/cosmos-sdk/x/mint.ProvideModule" -> "github.com/cosmos/cosmos-sdk/x/mint/keeper.Keeper"; - "github.com/cosmos/cosmos-sdk/x/mint.ProvideModule" -> "map[string]cosmossdk.io/core/appmodule.AppModule"; - "cosmossdk.io/core/appconfig.Compose" -> "*cosmossdk.io/api/cosmos/group/module/v1.Module"; - "*cosmossdk.io/api/cosmos/group/module/v1.Module" -> "github.com/cosmos/cosmos-sdk/x/group/module.ProvideModule"; - "*cosmossdk.io/store/types.KVStoreKey" -> "github.com/cosmos/cosmos-sdk/x/group/module.ProvideModule"; - "github.com/cosmos/cosmos-sdk/codec.Codec" -> "github.com/cosmos/cosmos-sdk/x/group/module.ProvideModule"; - "github.com/cosmos/cosmos-sdk/x/auth/keeper.AccountKeeper" -> "github.com/cosmos/cosmos-sdk/x/group/module.ProvideModule"; - "github.com/cosmos/cosmos-sdk/x/bank/keeper.BaseKeeper" -> "github.com/cosmos/cosmos-sdk/x/group/module.ProvideModule"; - "github.com/cosmos/cosmos-sdk/codec/types.InterfaceRegistry" -> "github.com/cosmos/cosmos-sdk/x/group/module.ProvideModule"; - "*github.com/cosmos/cosmos-sdk/baseapp.MsgServiceRouter" -> "github.com/cosmos/cosmos-sdk/x/group/module.ProvideModule"; - "github.com/cosmos/cosmos-sdk/x/group/module.ProvideModule" -> "github.com/cosmos/cosmos-sdk/x/group/keeper.Keeper"; - "github.com/cosmos/cosmos-sdk/x/group/module.ProvideModule" -> "map[string]cosmossdk.io/core/appmodule.AppModule"; - "cosmossdk.io/core/appconfig.Compose" -> "*cosmossdk.io/api/cosmos/feegrant/module/v1.Module"; - "cosmossdk.io/core/store.KVStoreService" -> "cosmossdk.io/x/feegrant/module.ProvideModule"; - "github.com/cosmos/cosmos-sdk/codec.Codec" -> "cosmossdk.io/x/feegrant/module.ProvideModule"; - "github.com/cosmos/cosmos-sdk/x/auth/keeper.AccountKeeper" -> "cosmossdk.io/x/feegrant/module.ProvideModule"; - "github.com/cosmos/cosmos-sdk/x/bank/keeper.BaseKeeper" -> "cosmossdk.io/x/feegrant/module.ProvideModule"; - "github.com/cosmos/cosmos-sdk/codec/types.InterfaceRegistry" -> "cosmossdk.io/x/feegrant/module.ProvideModule"; - "cosmossdk.io/x/feegrant/module.ProvideModule" -> "cosmossdk.io/x/feegrant/keeper.Keeper"; - "cosmossdk.io/x/feegrant/module.ProvideModule" -> "map[string]cosmossdk.io/core/appmodule.AppModule"; - "cosmossdk.io/core/appconfig.Compose" -> "*cosmossdk.io/api/cosmos/gov/module/v1.Module"; - "*cosmossdk.io/api/cosmos/gov/module/v1.Module" -> "github.com/cosmos/cosmos-sdk/x/gov.ProvideModule"; - "github.com/cosmos/cosmos-sdk/codec.Codec" -> "github.com/cosmos/cosmos-sdk/x/gov.ProvideModule"; - "cosmossdk.io/core/store.KVStoreService" -> "github.com/cosmos/cosmos-sdk/x/gov.ProvideModule"; - "cosmossdk.io/depinject.OwnModuleKey" -> "github.com/cosmos/cosmos-sdk/x/gov.ProvideModule"; - "*github.com/cosmos/cosmos-sdk/baseapp.MsgServiceRouter" -> "github.com/cosmos/cosmos-sdk/x/gov.ProvideModule"; - "github.com/cosmos/cosmos-sdk/x/auth/keeper.AccountKeeper" -> "github.com/cosmos/cosmos-sdk/x/gov.ProvideModule"; - "github.com/cosmos/cosmos-sdk/x/bank/keeper.BaseKeeper" -> "github.com/cosmos/cosmos-sdk/x/gov.ProvideModule"; - "*github.com/cosmos/cosmos-sdk/x/staking/keeper.Keeper" -> "github.com/cosmos/cosmos-sdk/x/gov.ProvideModule"; - "github.com/cosmos/cosmos-sdk/x/distribution/keeper.Keeper" -> "github.com/cosmos/cosmos-sdk/x/gov.ProvideModule"; - "github.com/cosmos/cosmos-sdk/x/params/types.Subspace" -> "github.com/cosmos/cosmos-sdk/x/gov.ProvideModule"; - "github.com/cosmos/cosmos-sdk/x/gov.ProvideModule" -> "map[string]cosmossdk.io/core/appmodule.AppModule"; - "github.com/cosmos/cosmos-sdk/x/gov.ProvideModule" -> "*github.com/cosmos/cosmos-sdk/x/gov/keeper.Keeper"; - "github.com/cosmos/cosmos-sdk/x/gov.ProvideModule" -> "[]github.com/cosmos/cosmos-sdk/x/gov/types/v1beta1.HandlerRoute"; - "github.com/cosmos/cosmos-sdk/x/gov.ProvideKeyTable" -> "map[string]github.com/cosmos/cosmos-sdk/x/params/types.KeyTable"; - "cosmossdk.io/core/appconfig.Compose" -> "*cosmossdk.io/api/cosmos/crisis/module/v1.Module"; - "*cosmossdk.io/api/cosmos/crisis/module/v1.Module" -> "github.com/cosmos/cosmos-sdk/x/crisis.ProvideModule"; - "cosmossdk.io/core/store.KVStoreService" -> "github.com/cosmos/cosmos-sdk/x/crisis.ProvideModule"; - "github.com/cosmos/cosmos-sdk/codec.Codec" -> "github.com/cosmos/cosmos-sdk/x/crisis.ProvideModule"; - "github.com/cosmos/cosmos-sdk/server/types.AppOptions" -> "github.com/cosmos/cosmos-sdk/x/crisis.ProvideModule"; - "github.com/cosmos/cosmos-sdk/x/bank/keeper.BaseKeeper" -> "github.com/cosmos/cosmos-sdk/x/crisis.ProvideModule"; - "cosmossdk.io/core/address.Codec" -> "github.com/cosmos/cosmos-sdk/x/crisis.ProvideModule"; - "github.com/cosmos/cosmos-sdk/x/params/types.Subspace" -> "github.com/cosmos/cosmos-sdk/x/crisis.ProvideModule"; - "github.com/cosmos/cosmos-sdk/x/crisis.ProvideModule" -> "map[string]cosmossdk.io/core/appmodule.AppModule"; - "github.com/cosmos/cosmos-sdk/x/crisis.ProvideModule" -> "*github.com/cosmos/cosmos-sdk/x/crisis/keeper.Keeper"; - "cosmossdk.io/core/appconfig.Compose" -> "*cosmossdk.io/api/cosmos/consensus/module/v1.Module"; - "*cosmossdk.io/api/cosmos/consensus/module/v1.Module" -> "github.com/cosmos/cosmos-sdk/x/consensus.ProvideModule"; - "github.com/cosmos/cosmos-sdk/codec.Codec" -> "github.com/cosmos/cosmos-sdk/x/consensus.ProvideModule"; - "cosmossdk.io/core/store.KVStoreService" -> "github.com/cosmos/cosmos-sdk/x/consensus.ProvideModule"; - "cosmossdk.io/core/event.Service" -> "github.com/cosmos/cosmos-sdk/x/consensus.ProvideModule"; - "github.com/cosmos/cosmos-sdk/x/consensus.ProvideModule" -> "github.com/cosmos/cosmos-sdk/x/consensus/keeper.Keeper"; - "github.com/cosmos/cosmos-sdk/x/consensus.ProvideModule" -> "map[string]cosmossdk.io/core/appmodule.AppModule"; - "github.com/cosmos/cosmos-sdk/x/consensus.ProvideModule" -> "[]runtime.BaseAppOption"; - "cosmossdk.io/core/appconfig.Compose" -> "*cosmossdk.io/api/cosmos/circuit/module/v1.Module"; - "*cosmossdk.io/api/cosmos/circuit/module/v1.Module" -> "cosmossdk.io/x/circuit.ProvideModule"; - "github.com/cosmos/cosmos-sdk/codec.Codec" -> "cosmossdk.io/x/circuit.ProvideModule"; - "cosmossdk.io/core/store.KVStoreService" -> "cosmossdk.io/x/circuit.ProvideModule"; - "cosmossdk.io/core/address.Codec" -> "cosmossdk.io/x/circuit.ProvideModule"; - "cosmossdk.io/x/circuit.ProvideModule" -> "cosmossdk.io/x/circuit/keeper.Keeper"; - "cosmossdk.io/x/circuit.ProvideModule" -> "map[string]cosmossdk.io/core/appmodule.AppModule"; - "cosmossdk.io/x/circuit.ProvideModule" -> "[]runtime.BaseAppOption"; - "cosmossdk.io/core/appconfig.Compose" -> "*github.com/mycel-domain/mycel/api/mycel/epochs/module/v1.Module"; - "github.com/cosmos/cosmos-sdk/codec.Codec" -> "github.com/mycel-domain/mycel/x/epochs/module.ProvideModule"; -} - diff --git a/debug_container.log b/debug_container.log deleted file mode 100644 index 87822847..00000000 --- a/debug_container.log +++ /dev/null @@ -1,242 +0,0 @@ -Initializing logger -Registering providers - Registering github.com/cosmos/cosmos-sdk/runtime.ProvideApp (/Users/taru/go/pkg/mod/github.com/cosmos/cosmos-sdk@v0.50.3/runtime/module.go:84) - Registering resolver for simple type codec.Codec - Registering resolver for simple type *codec.LegacyAmino - Registering resolver for simple type *runtime.AppBuilder - Registering resolver for simple type *baseapp.MsgServiceRouter - Registering resolver for one-per-module type appmodule.AppModule - Found resolver for appmodule.AppModule: *depinject.onePerModuleResolver - Registering resolver for simple type protodesc.Resolver - Registering resolver for simple type protoregistry.MessageTypeResolver - Registering resolver for many-per-container type signing.CustomGetSigner - Registering github.com/cosmos/cosmos-sdk/runtime.ProvideInterfaceRegistry (/Users/taru/go/pkg/mod/github.com/cosmos/cosmos-sdk@v0.50.3/runtime/module.go:161) - Registering resolver for simple type types.InterfaceRegistry - Registering module-scoped provider: github.com/cosmos/cosmos-sdk/runtime.ProvideKVStoreKey (/Users/taru/go/pkg/mod/github.com/cosmos/cosmos-sdk@v0.50.3/runtime/module.go:198) - Registering resolver for module-scoped type *types.KVStoreKey - Registering module-scoped provider: github.com/cosmos/cosmos-sdk/runtime.ProvideTransientStoreKey (/Users/taru/go/pkg/mod/github.com/cosmos/cosmos-sdk@v0.50.3/runtime/module.go:213) - Registering resolver for module-scoped type *types.TransientStoreKey - Registering module-scoped provider: github.com/cosmos/cosmos-sdk/runtime.ProvideMemoryStoreKey (/Users/taru/go/pkg/mod/github.com/cosmos/cosmos-sdk@v0.50.3/runtime/module.go:219) - Registering resolver for module-scoped type *types.MemoryStoreKey - Registering github.com/cosmos/cosmos-sdk/runtime.ProvideGenesisTxHandler (/Users/taru/go/pkg/mod/github.com/cosmos/cosmos-sdk@v0.50.3/runtime/module.go:225) - Registering resolver for simple type genesis.TxHandler - Registering module-scoped provider: github.com/cosmos/cosmos-sdk/runtime.ProvideKVStoreService (/Users/taru/go/pkg/mod/github.com/cosmos/cosmos-sdk@v0.50.3/runtime/module.go:229) - Registering resolver for module-scoped type store.KVStoreService - Registering module-scoped provider: github.com/cosmos/cosmos-sdk/runtime.ProvideMemoryStoreService (/Users/taru/go/pkg/mod/github.com/cosmos/cosmos-sdk@v0.50.3/runtime/module.go:234) - Registering resolver for module-scoped type store.MemoryStoreService - Registering module-scoped provider: github.com/cosmos/cosmos-sdk/runtime.ProvideTransientStoreService (/Users/taru/go/pkg/mod/github.com/cosmos/cosmos-sdk@v0.50.3/runtime/module.go:239) - Registering resolver for module-scoped type store.TransientStoreService - Registering github.com/cosmos/cosmos-sdk/runtime.ProvideEventService (/Users/taru/go/pkg/mod/github.com/cosmos/cosmos-sdk@v0.50.3/runtime/module.go:244) - Registering resolver for simple type event.Service - Registering github.com/cosmos/cosmos-sdk/runtime.ProvideHeaderInfoService (/Users/taru/go/pkg/mod/github.com/cosmos/cosmos-sdk@v0.50.3/runtime/module.go:252) - Registering resolver for simple type header.Service - Registering github.com/cosmos/cosmos-sdk/runtime.ProvideCometInfoService (/Users/taru/go/pkg/mod/github.com/cosmos/cosmos-sdk@v0.50.3/runtime/module.go:248) - Registering resolver for simple type comet.BlockInfoService - Registering github.com/cosmos/cosmos-sdk/runtime.ProvideBasicManager (/Users/taru/go/pkg/mod/github.com/cosmos/cosmos-sdk@v0.50.3/runtime/module.go:256) - Registering resolver for simple type module.BasicManager - Registering github.com/cosmos/cosmos-sdk/runtime.ProvideAddressCodec (/Users/taru/go/pkg/mod/github.com/cosmos/cosmos-sdk@v0.50.3/runtime/module.go:281) - Registering resolver for simple type address.Codec - Registering resolver for simple type runtime.ValidatorAddressCodec - Registering resolver for simple type runtime.ConsensusAddressCodec - Registering github.com/cosmos/cosmos-sdk/x/auth.ProvideModule (/Users/taru/go/pkg/mod/github.com/cosmos/cosmos-sdk@v0.50.3/x/auth/module.go:209) - Registering resolver for simple type keeper.AccountKeeper - Found resolver for appmodule.AppModule: *depinject.onePerModuleResolver - Implicitly registering resolver keeper.AccountKeeper for interface type nft.AccountKeeper - Registering cosmossdk.io/x/nft/module.ProvideModule (/Users/taru/go/pkg/mod/cosmossdk.io/x/nft@v0.1.0/module/module.go:183) - Registering resolver for simple type keeper.Keeper - Found resolver for appmodule.AppModule: *depinject.onePerModuleResolver - Registering github.com/cosmos/cosmos-sdk/x/auth/vesting.ProvideModule (/Users/taru/go/pkg/mod/github.com/cosmos/cosmos-sdk@v0.50.3/x/auth/vesting/module.go:140) - Found resolver for appmodule.AppModule: *depinject.onePerModuleResolver - Implicitly registering resolver keeper.AccountKeeper for interface type types.AccountKeeper - Registering github.com/cosmos/cosmos-sdk/x/bank.ProvideModule (/Users/taru/go/pkg/mod/github.com/cosmos/cosmos-sdk@v0.50.3/x/bank/module.go:227) - Registering resolver for simple type keeper.BaseKeeper - Found resolver for appmodule.AppModule: *depinject.onePerModuleResolver - Implicitly registering resolver keeper.AccountKeeper for interface type types.AccountKeeper - Implicitly registering resolver keeper.BaseKeeper for interface type types.BankKeeper - Registering github.com/cosmos/cosmos-sdk/x/staking.ProvideModule (/Users/taru/go/pkg/mod/github.com/cosmos/cosmos-sdk@v0.50.3/x/staking/module.go:221) - Registering resolver for simple type *keeper.Keeper - Found resolver for appmodule.AppModule: *depinject.onePerModuleResolver - Implicitly registering resolver keeper.AccountKeeper for interface type types.AccountKeeper - Implicitly registering resolver keeper.BaseKeeper for interface type types.BankKeeper - Implicitly registering resolver *keeper.Keeper for interface type types.StakingKeeper - Registering github.com/cosmos/cosmos-sdk/x/slashing.ProvideModule (/Users/taru/go/pkg/mod/github.com/cosmos/cosmos-sdk@v0.50.3/x/slashing/module.go:230) - Registering resolver for simple type keeper.Keeper - Found resolver for appmodule.AppModule: *depinject.onePerModuleResolver - Registering resolver for one-per-module type types.StakingHooksWrapper - Found resolver for types.StakingHooksWrapper: *depinject.onePerModuleResolver - Registering github.com/cosmos/cosmos-sdk/x/params.ProvideModule (/Users/taru/go/pkg/mod/github.com/cosmos/cosmos-sdk@v0.50.3/x/params/module.go:129) - Registering resolver for simple type keeper.Keeper - Found resolver for appmodule.AppModule: *depinject.onePerModuleResolver - Registering resolver for many-per-container type v1beta1.HandlerRoute - Found resolver for v1beta1.HandlerRoute: *depinject.groupResolver - Registering resolver for one-per-module type types.KeyTable - Registering module-scoped provider: github.com/cosmos/cosmos-sdk/x/params.ProvideSubspace (/Users/taru/go/pkg/mod/github.com/cosmos/cosmos-sdk@v0.50.3/x/params/module.go:146) - Registering resolver for module-scoped type types.Subspace - Implicitly registering resolver keeper.BaseKeeper for interface type types.BankKeeper - Implicitly registering resolver keeper.BaseKeeper for interface type tx.BankKeeper - Implicitly registering resolver keeper.AccountKeeper for interface type ante.AccountKeeper - Registering github.com/cosmos/cosmos-sdk/x/auth/tx/config.ProvideModule (/Users/taru/go/pkg/mod/github.com/cosmos/cosmos-sdk@v0.50.3/x/auth/tx/config/config.go:68) - Registering resolver for simple type client.TxConfig - Registering resolver for simple type tx.ConfigOptions - Registering resolver for many-per-container type runtime.BaseAppOption - Found resolver for runtime.BaseAppOption: *depinject.groupResolver - Registering github.com/cosmos/cosmos-sdk/x/auth/tx/config.ProvideProtoRegistry (/Users/taru/go/pkg/mod/github.com/cosmos/cosmos-sdk@v0.50.3/x/auth/tx/config/config.go:64) - Registering resolver for simple type signing.ProtoFileResolver - Implicitly registering resolver keeper.AccountKeeper for interface type types.AccountKeeper - Implicitly registering resolver *keeper.Keeper for interface type types.StakingKeeper - Registering github.com/cosmos/cosmos-sdk/x/genutil.ProvideModule (/Users/taru/go/pkg/mod/github.com/cosmos/cosmos-sdk@v0.50.3/x/genutil/module.go:138) - Found resolver for appmodule.AppModule: *depinject.onePerModuleResolver - Implicitly registering resolver keeper.AccountKeeper for interface type authz.AccountKeeper - Implicitly registering resolver keeper.BaseKeeper for interface type authz.BankKeeper - Implicitly registering resolver *baseapp.MsgServiceRouter for interface type baseapp.MessageRouter - Registering github.com/cosmos/cosmos-sdk/x/authz/module.ProvideModule (/Users/taru/go/pkg/mod/github.com/cosmos/cosmos-sdk@v0.50.3/x/authz/module/module.go:178) - Registering resolver for simple type keeper.Keeper - Found resolver for appmodule.AppModule: *depinject.onePerModuleResolver - Registering cosmossdk.io/x/upgrade.ProvideModule (/Users/taru/go/pkg/mod/cosmossdk.io/x/upgrade@v0.1.1/module.go:194) - Registering resolver for simple type *keeper.Keeper - Found resolver for appmodule.AppModule: *depinject.onePerModuleResolver - Found resolver for runtime.BaseAppOption: *depinject.groupResolver - Implicitly registering resolver keeper.AccountKeeper for interface type types.AccountKeeper - Implicitly registering resolver keeper.BaseKeeper for interface type types.BankKeeper - Implicitly registering resolver *keeper.Keeper for interface type types.StakingKeeper - Implicitly registering resolver types.Subspace for interface type exported.Subspace - Registering github.com/cosmos/cosmos-sdk/x/distribution.ProvideModule (/Users/taru/go/pkg/mod/github.com/cosmos/cosmos-sdk@v0.50.3/x/distribution/module.go:232) - Registering resolver for simple type keeper.Keeper - Found resolver for appmodule.AppModule: *depinject.onePerModuleResolver - Found resolver for types.StakingHooksWrapper: *depinject.onePerModuleResolver - Implicitly registering resolver *keeper.Keeper for interface type types.StakingKeeper - Implicitly registering resolver keeper.Keeper for interface type types.SlashingKeeper - Registering cosmossdk.io/x/evidence.ProvideModule (/Users/taru/go/pkg/mod/cosmossdk.io/x/evidence@v0.1.0/module.go:210) - Registering resolver for simple type keeper.Keeper - Found resolver for appmodule.AppModule: *depinject.onePerModuleResolver - Implicitly registering resolver types.Subspace for interface type exported.Subspace - Implicitly registering resolver keeper.AccountKeeper for interface type types.AccountKeeper - Implicitly registering resolver keeper.BaseKeeper for interface type types.BankKeeper - Implicitly registering resolver *keeper.Keeper for interface type types.StakingKeeper - Registering github.com/cosmos/cosmos-sdk/x/mint.ProvideModule (/Users/taru/go/pkg/mod/github.com/cosmos/cosmos-sdk@v0.50.3/x/mint/module.go:221) - Registering resolver for simple type keeper.Keeper - Found resolver for appmodule.AppModule: *depinject.onePerModuleResolver - Implicitly registering resolver keeper.AccountKeeper for interface type group.AccountKeeper - Implicitly registering resolver keeper.BaseKeeper for interface type group.BankKeeper - Registering github.com/cosmos/cosmos-sdk/x/group/module.ProvideModule (/Users/taru/go/pkg/mod/github.com/cosmos/cosmos-sdk@v0.50.3/x/group/module/module.go:208) - Registering resolver for simple type keeper.Keeper - Found resolver for appmodule.AppModule: *depinject.onePerModuleResolver - Implicitly registering resolver keeper.AccountKeeper for interface type feegrant.AccountKeeper - Implicitly registering resolver keeper.BaseKeeper for interface type feegrant.BankKeeper - Registering cosmossdk.io/x/feegrant/module.ProvideModule (/Users/taru/go/pkg/mod/cosmossdk.io/x/feegrant@v0.1.0/module/module.go:184) - Registering resolver for simple type keeper.Keeper - Found resolver for appmodule.AppModule: *depinject.onePerModuleResolver - Implicitly registering resolver keeper.AccountKeeper for interface type types.AccountKeeper - Implicitly registering resolver keeper.BaseKeeper for interface type types.BankKeeper - Implicitly registering resolver *keeper.Keeper for interface type types.StakingKeeper - Implicitly registering resolver keeper.Keeper for interface type types.DistributionKeeper - Implicitly registering resolver types.Subspace for interface type types.ParamSubspace - Registering github.com/cosmos/cosmos-sdk/x/gov.ProvideModule (/Users/taru/go/pkg/mod/github.com/cosmos/cosmos-sdk@v0.50.3/x/gov/module.go:189) - Found resolver for appmodule.AppModule: *depinject.onePerModuleResolver - Registering resolver for simple type *keeper.Keeper - Found resolver for v1beta1.HandlerRoute: *depinject.groupResolver - Registering github.com/cosmos/cosmos-sdk/x/gov.ProvideKeyTable (/Users/taru/go/pkg/mod/github.com/cosmos/cosmos-sdk@v0.50.3/x/gov/module.go:218) - Found resolver for types.KeyTable: *depinject.onePerModuleResolver - Implicitly registering resolver keeper.BaseKeeper for interface type types.SupplyKeeper - Implicitly registering resolver types.Subspace for interface type exported.Subspace - Registering github.com/cosmos/cosmos-sdk/x/crisis.ProvideModule (/Users/taru/go/pkg/mod/github.com/cosmos/cosmos-sdk@v0.50.3/x/crisis/module.go:201) - Found resolver for appmodule.AppModule: *depinject.onePerModuleResolver - Registering resolver for simple type *keeper.Keeper - Registering github.com/cosmos/cosmos-sdk/x/consensus.ProvideModule (/Users/taru/go/pkg/mod/github.com/cosmos/cosmos-sdk@v0.50.3/x/consensus/module.go:117) - Registering resolver for simple type keeper.Keeper - Found resolver for appmodule.AppModule: *depinject.onePerModuleResolver - Found resolver for runtime.BaseAppOption: *depinject.groupResolver - Registering cosmossdk.io/x/circuit.ProvideModule (/Users/taru/go/pkg/mod/cosmossdk.io/x/circuit@v0.1.0/module.go:154) - Registering resolver for simple type keeper.Keeper - Found resolver for appmodule.AppModule: *depinject.onePerModuleResolver - Found resolver for runtime.BaseAppOption: *depinject.groupResolver - Failed registering providers because of: Multiple implementations found for interface types.StoreKey: -(1) attached stack trace - -- stack trace: - | cosmossdk.io/depinject.Configs.func1 - | /Users/taru/go/pkg/mod/cosmossdk.io/depinject@v1.0.0-alpha.4/config.go:175 - | cosmossdk.io/depinject.containerConfig.apply - | /Users/taru/go/pkg/mod/cosmossdk.io/depinject@v1.0.0-alpha.4/config.go:185 - | cosmossdk.io/depinject.doInject - | /Users/taru/go/pkg/mod/cosmossdk.io/depinject@v1.0.0-alpha.4/inject.go:74 - | cosmossdk.io/depinject.inject - | /Users/taru/go/pkg/mod/cosmossdk.io/depinject@v1.0.0-alpha.4/inject.go:45 - | cosmossdk.io/depinject.Inject - | /Users/taru/go/pkg/mod/cosmossdk.io/depinject@v1.0.0-alpha.4/inject.go:19 - | github.com/mycel-domain/mycel/cmd/myceld/cmd.NewRootCmd - | /Users/taru/dev/mycel/mycel/cmd/myceld/cmd/root.go:41 - | main.main - | /Users/taru/dev/mycel/mycel/cmd/myceld/main.go:14 - | runtime.main - | /opt/homebrew/Cellar/go/1.21.5/libexec/src/runtime/proc.go:267 -Wraps: (2) attached stack trace - -- stack trace: - | cosmossdk.io/depinject.Configs.func1 - | /Users/taru/go/pkg/mod/cosmossdk.io/depinject@v1.0.0-alpha.4/config.go:175 - | cosmossdk.io/depinject.containerConfig.apply - | /Users/taru/go/pkg/mod/cosmossdk.io/depinject@v1.0.0-alpha.4/config.go:185 - | cosmossdk.io/depinject.Configs.func1 - | /Users/taru/go/pkg/mod/cosmossdk.io/depinject@v1.0.0-alpha.4/config.go:173 - | cosmossdk.io/depinject.containerConfig.apply - | /Users/taru/go/pkg/mod/cosmossdk.io/depinject@v1.0.0-alpha.4/config.go:185 - | cosmossdk.io/depinject.doInject - | /Users/taru/go/pkg/mod/cosmossdk.io/depinject@v1.0.0-alpha.4/inject.go:74 - | cosmossdk.io/depinject.inject - | /Users/taru/go/pkg/mod/cosmossdk.io/depinject@v1.0.0-alpha.4/inject.go:45 - | cosmossdk.io/depinject.Inject - | /Users/taru/go/pkg/mod/cosmossdk.io/depinject@v1.0.0-alpha.4/inject.go:19 - | github.com/mycel-domain/mycel/cmd/myceld/cmd.NewRootCmd - | /Users/taru/dev/mycel/mycel/cmd/myceld/cmd/root.go:41 - | main.main - | /Users/taru/dev/mycel/mycel/cmd/myceld/main.go:14 - | runtime.main - | /opt/homebrew/Cellar/go/1.21.5/libexec/src/runtime/proc.go:267 -Wraps: (3) attached stack trace - -- stack trace: - | cosmossdk.io/depinject.Configs.func1 - | /Users/taru/go/pkg/mod/cosmossdk.io/depinject@v1.0.0-alpha.4/config.go:175 - | [...repeated from below...] -Wraps: (4) attached stack trace - -- stack trace: - | cosmossdk.io/depinject.provide - | /Users/taru/go/pkg/mod/cosmossdk.io/depinject@v1.0.0-alpha.4/config.go:51 - | cosmossdk.io/depinject.ProvideInModule.func1 - | /Users/taru/go/pkg/mod/cosmossdk.io/depinject@v1.0.0-alpha.4/config.go:39 - | cosmossdk.io/depinject.containerConfig.apply - | /Users/taru/go/pkg/mod/cosmossdk.io/depinject@v1.0.0-alpha.4/config.go:185 - | cosmossdk.io/depinject.Configs.func1 - | /Users/taru/go/pkg/mod/cosmossdk.io/depinject@v1.0.0-alpha.4/config.go:173 - | cosmossdk.io/depinject.containerConfig.apply - | /Users/taru/go/pkg/mod/cosmossdk.io/depinject@v1.0.0-alpha.4/config.go:185 - | cosmossdk.io/depinject.Configs.func1 - | /Users/taru/go/pkg/mod/cosmossdk.io/depinject@v1.0.0-alpha.4/config.go:173 - | cosmossdk.io/depinject.containerConfig.apply - | /Users/taru/go/pkg/mod/cosmossdk.io/depinject@v1.0.0-alpha.4/config.go:185 - | cosmossdk.io/depinject.Configs.func1 - | /Users/taru/go/pkg/mod/cosmossdk.io/depinject@v1.0.0-alpha.4/config.go:173 - | cosmossdk.io/depinject.containerConfig.apply - | /Users/taru/go/pkg/mod/cosmossdk.io/depinject@v1.0.0-alpha.4/config.go:185 - | cosmossdk.io/depinject.doInject - | /Users/taru/go/pkg/mod/cosmossdk.io/depinject@v1.0.0-alpha.4/inject.go:74 - | cosmossdk.io/depinject.inject - | /Users/taru/go/pkg/mod/cosmossdk.io/depinject@v1.0.0-alpha.4/inject.go:45 - | cosmossdk.io/depinject.Inject - | /Users/taru/go/pkg/mod/cosmossdk.io/depinject@v1.0.0-alpha.4/inject.go:19 - | github.com/mycel-domain/mycel/cmd/myceld/cmd.NewRootCmd - | /Users/taru/dev/mycel/mycel/cmd/myceld/cmd/root.go:41 - | main.main - | /Users/taru/dev/mycel/mycel/cmd/myceld/main.go:14 - | runtime.main - | /opt/homebrew/Cellar/go/1.21.5/libexec/src/runtime/proc.go:267 - | runtime.goexit - | /opt/homebrew/Cellar/go/1.21.5/libexec/src/runtime/asm_arm64.s:1197 -Wraps: (5) Multiple implementations found for interface types.StoreKey: - | cosmossdk.io/store/types/*types.KVStoreKey - | cosmossdk.io/store/types/*types.MemoryStoreKey - | cosmossdk.io/store/types/*types.TransientStoreKey -Error types: (1) *withstack.withStack (2) *withstack.withStack (3) *withstack.withStack (4) *withstack.withStack (5) depinject.ErrMultipleImplicitInterfaceBindings - Error: Multiple implementations found for interface types.StoreKey: - cosmossdk.io/store/types/*types.KVStoreKey - cosmossdk.io/store/types/*types.MemoryStoreKey - cosmossdk.io/store/types/*types.TransientStoreKey - Saved graph of container to /Users/taru/dev/mycel/mycel/debug_container.dot diff --git a/docs/static/openapi.yml b/docs/static/openapi.yml index 44014194..608bf70f 100644 --- a/docs/static/openapi.yml +++ b/docs/static/openapi.yml @@ -19262,220 +19262,37 @@ paths: parameters. tags: - Msg - /mycel/furnace/v1beta1/burn_amount: + /mycel/epochs/v1beta1/current_epoch: get: - operationId: MycelFurnaceV1Beta1Query_BurnAmountAll + summary: CurrentEpoch provide current epoch of specified identifier + operationId: MycelEpochsV1Beta1Query_CurrentEpoch responses: '200': description: A successful response. schema: type: object properties: - burn_amount: - type: array - items: - type: object - properties: - index: - type: string - format: uint64 - burn_started: - type: boolean - total_epochs: - type: string - format: uint64 - current_epoch: - type: string - format: uint64 - total_burn_amount: - type: object - properties: - denom: - type: string - amount: - type: string - description: >- - Coin defines a token with a denomination and an amount. - - - NOTE: The amount field is an Int which implements the - custom method - - signatures required by gogoproto. - cumulative_burnt_amount: - type: object - properties: - denom: - type: string - amount: - type: string - description: >- - Coin defines a token with a denomination and an amount. - - - NOTE: The amount field is an Int which implements the - custom method - - signatures required by gogoproto. - pagination: + epoch_info: type: object properties: - next_key: - type: string - format: byte - description: |- - next_key is the key to be passed to PageRequest.key to - query the next page most efficiently. It will be empty if - there are no more results. - total: + identifier: type: string - format: uint64 - title: >- - total is total number of results available if - PageRequest.count_total - - was set, its value is undefined otherwise - description: >- - PageResponse is to be embedded in gRPC response messages where - the - - corresponding request message has used PageRequest. - - message SomeResponse { - repeated Bar results = 1; - PageResponse page = 2; - } - default: - description: An unexpected error response. - schema: - type: object - properties: - code: - type: integer - format: int32 - message: - type: string - details: - type: array - items: - type: object - properties: - '@type': - type: string - additionalProperties: {} - parameters: - - name: pagination.key - description: |- - key is a value returned in PageResponse.next_key to begin - querying the next page most efficiently. Only one of offset or key - should be set. - in: query - required: false - type: string - format: byte - - name: pagination.offset - description: >- - offset is a numeric offset that can be used when key is unavailable. - - It is less efficient than using key. Only one of offset or key - should - - be set. - in: query - required: false - type: string - format: uint64 - - name: pagination.limit - description: >- - limit is the total number of results to be returned in the result - page. - - If left empty it will default to a value to be set by each app. - in: query - required: false - type: string - format: uint64 - - name: pagination.count_total - description: >- - count_total is set to true to indicate that the result set should - include - - a count of the total number of items available for pagination in - UIs. - - count_total is only respected when offset is used. It is ignored - when key - - is set. - in: query - required: false - type: boolean - - name: pagination.reverse - description: >- - reverse is set to true if results are to be returned in the - descending order. - - - Since: cosmos-sdk 0.43 - in: query - required: false - type: boolean - tags: - - Query - /mycel/furnace/v1beta1/burn_amount/{index}: - get: - summary: Queries a list of BurnAmount items. - operationId: MycelFurnaceV1Beta1Query_BurnAmount - responses: - '200': - description: A successful response. - schema: - type: object - properties: - burn_amount: - type: object - properties: - index: + start_time: type: string - format: uint64 - burn_started: - type: boolean - total_epochs: + format: date-time + duration: type: string - format: uint64 current_epoch: type: string - format: uint64 - total_burn_amount: - type: object - properties: - denom: - type: string - amount: - type: string - description: >- - Coin defines a token with a denomination and an amount. - - - NOTE: The amount field is an Int which implements the - custom method - - signatures required by gogoproto. - cumulative_burnt_amount: - type: object - properties: - denom: - type: string - amount: - type: string - description: >- - Coin defines a token with a denomination and an amount. - - - NOTE: The amount field is an Int which implements the - custom method - - signatures required by gogoproto. + format: int64 + current_epoch_start_time: + type: string + format: date-time + epoch_counting_started: + type: boolean + current_epoch_start_height: + type: string + format: int64 default: description: An unexpected error response. schema: @@ -19495,73 +19312,45 @@ paths: type: string additionalProperties: {} parameters: - - name: index - in: path - required: true + - name: identifier + in: query + required: false type: string - format: uint64 tags: - Query - /mycel/furnace/v1beta1/epoch_burn_config: + /mycel/epochs/v1beta1/epochs: get: - summary: Queries a EpochBurnConfig by index. - operationId: MycelFurnaceV1Beta1Query_EpochBurnConfig + summary: EpochInfos provide running epochInfos + operationId: MycelEpochsV1Beta1Query_EpochInfos responses: '200': description: A successful response. schema: type: object properties: - epoch_burn_config: - type: object - properties: - epoch_identifier: - type: string - current_burn_amount_index: - type: string - format: uint64 - default_total_epochs: - type: string - format: uint64 - start_time: - type: string - format: date-time - default: - description: An unexpected error response. - schema: - type: object - properties: - code: - type: integer - format: int32 - message: - type: string - details: + epochs: type: array items: type: object properties: - '@type': + identifier: type: string - additionalProperties: {} - tags: - - Query - /mycel/furnace/v1beta1/params: - get: - summary: Parameters queries the parameters of the module. - operationId: MycelFurnaceV1Beta1Query_Params - responses: - '200': - description: A successful response. - schema: - type: object - properties: - params: - description: params holds all the parameters of this module. - type: object - description: >- - QueryParamsResponse is response type for the Query/Params RPC - method. + start_time: + type: string + format: date-time + duration: + type: string + current_epoch: + type: string + format: int64 + current_epoch_start_time: + type: string + format: date-time + epoch_counting_started: + type: boolean + current_epoch_start_height: + type: string + format: int64 default: description: An unexpected error response. schema: @@ -19582,2069 +19371,46 @@ paths: additionalProperties: {} tags: - Query - /mycel/registry/v1beta1/domain_ownership: - get: - operationId: MycelRegistryV1Beta1Query_DomainOwnershipAll - responses: - '200': - description: A successful response. - schema: - type: object - properties: - domain_ownership: - type: array - items: - type: object - properties: - owner: - type: string - domains: - type: array - items: - type: object - properties: - name: - type: string - parent: - type: string - pagination: - type: object - properties: - next_key: - type: string - format: byte - description: |- - next_key is the key to be passed to PageRequest.key to - query the next page most efficiently. It will be empty if - there are no more results. - total: - type: string - format: uint64 - title: >- - total is total number of results available if - PageRequest.count_total +definitions: + cosmos.auth.v1beta1.MsgUpdateParams: + type: object + properties: + authority: + type: string + description: >- + authority is the address that controls the module (defaults to x/gov + unless overwritten). + params: + description: |- + params defines the x/auth parameters to update. - was set, its value is undefined otherwise - description: >- - PageResponse is to be embedded in gRPC response messages where - the + NOTE: All parameters must be supplied. + type: object + properties: + max_memo_characters: + type: string + format: uint64 + tx_sig_limit: + type: string + format: uint64 + tx_size_cost_per_byte: + type: string + format: uint64 + sig_verify_cost_ed25519: + type: string + format: uint64 + sig_verify_cost_secp256k1: + type: string + format: uint64 + description: |- + MsgUpdateParams is the Msg/UpdateParams request type. - corresponding request message has used PageRequest. - - message SomeResponse { - repeated Bar results = 1; - PageResponse page = 2; - } - default: - description: An unexpected error response. - schema: - type: object - properties: - code: - type: integer - format: int32 - message: - type: string - details: - type: array - items: - type: object - properties: - '@type': - type: string - additionalProperties: {} - parameters: - - name: pagination.key - description: |- - key is a value returned in PageResponse.next_key to begin - querying the next page most efficiently. Only one of offset or key - should be set. - in: query - required: false - type: string - format: byte - - name: pagination.offset - description: >- - offset is a numeric offset that can be used when key is unavailable. - - It is less efficient than using key. Only one of offset or key - should - - be set. - in: query - required: false - type: string - format: uint64 - - name: pagination.limit - description: >- - limit is the total number of results to be returned in the result - page. - - If left empty it will default to a value to be set by each app. - in: query - required: false - type: string - format: uint64 - - name: pagination.count_total - description: >- - count_total is set to true to indicate that the result set should - include - - a count of the total number of items available for pagination in - UIs. - - count_total is only respected when offset is used. It is ignored - when key - - is set. - in: query - required: false - type: boolean - - name: pagination.reverse - description: >- - reverse is set to true if results are to be returned in the - descending order. - - - Since: cosmos-sdk 0.43 - in: query - required: false - type: boolean - tags: - - Query - /mycel/registry/v1beta1/domain_ownership/{owner}: - get: - summary: Queries a list of DomainOwnership items. - operationId: MycelRegistryV1Beta1Query_DomainOwnership - responses: - '200': - description: A successful response. - schema: - type: object - properties: - domain_ownership: - type: object - properties: - owner: - type: string - domains: - type: array - items: - type: object - properties: - name: - type: string - parent: - type: string - default: - description: An unexpected error response. - schema: - type: object - properties: - code: - type: integer - format: int32 - message: - type: string - details: - type: array - items: - type: object - properties: - '@type': - type: string - additionalProperties: {} - parameters: - - name: owner - in: path - required: true - type: string - tags: - - Query - /mycel/registry/v1beta1/domain_registration_fee/{name}/{parent}/{registerer}: - get: - summary: Queries a list of DomainRegistrationFee items. - operationId: MycelRegistryV1Beta1Query_DomainRegistrationFee - responses: - '200': - description: A successful response. - schema: - type: object - properties: - is_registrable: - type: boolean - fee: - type: array - items: - type: object - properties: - denom: - type: string - amount: - type: string - description: >- - Coin defines a token with a denomination and an amount. - - - NOTE: The amount field is an Int which implements the custom - method - - signatures required by gogoproto. - registration_period_in_year: - type: string - format: uint64 - max_sub_domain_registrations: - type: string - format: uint64 - error_message: - type: string - default: - description: An unexpected error response. - schema: - type: object - properties: - code: - type: integer - format: int32 - message: - type: string - details: - type: array - items: - type: object - properties: - '@type': - type: string - additionalProperties: {} - parameters: - - name: name - in: path - required: true - type: string - - name: parent - in: path - required: true - type: string - - name: registerer - in: path - required: true - type: string - - name: registration_period_in_year - in: query - required: false - type: string - format: uint64 - tags: - - Query - /mycel/registry/v1beta1/params: - get: - summary: Parameters queries the parameters of the module. - operationId: MycelRegistryV1Beta1Query_Params - responses: - '200': - description: A successful response. - schema: - type: object - properties: - params: - description: params holds all the parameters of this module. - type: object - properties: - staking_inflation_ratio: - type: number - format: float - top_level_domain_base_fee_in_usd: - type: string - format: int64 - description: >- - QueryParamsResponse is response type for the Query/Params RPC - method. - default: - description: An unexpected error response. - schema: - type: object - properties: - code: - type: integer - format: int32 - message: - type: string - details: - type: array - items: - type: object - properties: - '@type': - type: string - additionalProperties: {} - tags: - - Query - /mycel/registry/v1beta1/role/{domain_name}/{address}: - get: - summary: Queries a list of Role items. - operationId: MycelRegistryV1Beta1Query_Role - responses: - '200': - description: A successful response. - schema: - type: object - properties: - role: - type: string - default: - description: An unexpected error response. - schema: - type: object - properties: - code: - type: integer - format: int32 - message: - type: string - details: - type: array - items: - type: object - properties: - '@type': - type: string - additionalProperties: {} - parameters: - - name: domain_name - in: path - required: true - type: string - - name: address - in: path - required: true - type: string - tags: - - Query - /mycel/registry/v1beta1/second_level_domain: - get: - operationId: MycelRegistryV1Beta1Query_SecondLevelDomainAll - responses: - '200': - description: A successful response. - schema: - type: object - properties: - second_level_domain: - type: array - items: - type: object - properties: - name: - type: string - parent: - type: string - expiration_date: - type: string - format: date-time - pagination: - type: object - properties: - next_key: - type: string - format: byte - description: |- - next_key is the key to be passed to PageRequest.key to - query the next page most efficiently. It will be empty if - there are no more results. - total: - type: string - format: uint64 - title: >- - total is total number of results available if - PageRequest.count_total - - was set, its value is undefined otherwise - description: >- - PageResponse is to be embedded in gRPC response messages where - the - - corresponding request message has used PageRequest. - - message SomeResponse { - repeated Bar results = 1; - PageResponse page = 2; - } - default: - description: An unexpected error response. - schema: - type: object - properties: - code: - type: integer - format: int32 - message: - type: string - details: - type: array - items: - type: object - properties: - '@type': - type: string - additionalProperties: {} - parameters: - - name: pagination.key - description: |- - key is a value returned in PageResponse.next_key to begin - querying the next page most efficiently. Only one of offset or key - should be set. - in: query - required: false - type: string - format: byte - - name: pagination.offset - description: >- - offset is a numeric offset that can be used when key is unavailable. - - It is less efficient than using key. Only one of offset or key - should - - be set. - in: query - required: false - type: string - format: uint64 - - name: pagination.limit - description: >- - limit is the total number of results to be returned in the result - page. - - If left empty it will default to a value to be set by each app. - in: query - required: false - type: string - format: uint64 - - name: pagination.count_total - description: >- - count_total is set to true to indicate that the result set should - include - - a count of the total number of items available for pagination in - UIs. - - count_total is only respected when offset is used. It is ignored - when key - - is set. - in: query - required: false - type: boolean - - name: pagination.reverse - description: >- - reverse is set to true if results are to be returned in the - descending order. - - - Since: cosmos-sdk 0.43 - in: query - required: false - type: boolean - tags: - - Query - /mycel/registry/v1beta1/second_level_domain/{name}/{parent}: - get: - summary: Queries a list of SecondLevelDomain items. - operationId: MycelRegistryV1Beta1Query_SecondLevelDomain - responses: - '200': - description: A successful response. - schema: - type: object - properties: - second_level_domain: - type: object - properties: - name: - type: string - parent: - type: string - expiration_date: - type: string - format: date-time - default: - description: An unexpected error response. - schema: - type: object - properties: - code: - type: integer - format: int32 - message: - type: string - details: - type: array - items: - type: object - properties: - '@type': - type: string - additionalProperties: {} - parameters: - - name: name - in: path - required: true - type: string - - name: parent - in: path - required: true - type: string - tags: - - Query - /mycel/registry/v1beta1/top_level_domain: - get: - operationId: MycelRegistryV1Beta1Query_TopLevelDomainAll - responses: - '200': - description: A successful response. - schema: - type: object - properties: - top_level_domain: - type: array - items: - type: object - properties: - name: - type: string - expiration_date: - type: string - format: date-time - subdomain_config: - type: object - properties: - max_subdomain_registrations: - type: string - format: uint64 - subdomain_registration_fees: - type: object - properties: - fee_by_length: - type: array - items: - type: object - properties: - length: - type: integer - format: int64 - is_registrable: - type: boolean - fee: - type: object - properties: - denom: - type: string - amount: - type: string - description: >- - Coin defines a token with a denomination - and an amount. - - - NOTE: The amount field is an Int which - implements the custom method - - signatures required by gogoproto. - fee_by_name: - type: array - items: - type: object - properties: - name: - type: string - is_registrable: - type: boolean - fee: - type: object - properties: - denom: - type: string - amount: - type: string - description: >- - Coin defines a token with a denomination - and an amount. - - - NOTE: The amount field is an Int which - implements the custom method - - signatures required by gogoproto. - default_fee: - type: object - properties: - denom: - type: string - amount: - type: string - description: >- - Coin defines a token with a denomination and an - amount. - - - NOTE: The amount field is an Int which - implements the custom method - - signatures required by gogoproto. - is_registrable: - type: boolean - registrable_role: - type: string - enum: - - NO_ROLE - - OWNER - - EDITOR - default: NO_ROLE - custom_expiration_date: - type: boolean - registration_policy: - type: string - enum: - - PRIVATE - - PUBLIC - default: PRIVATE - subdomain_count: - type: string - format: uint64 - access_control: - type: array - items: - type: object - properties: - address: - type: string - role: - type: string - enum: - - NO_ROLE - - OWNER - - EDITOR - default: NO_ROLE - total_withdrawal_amount: - type: array - items: - type: object - properties: - denom: - type: string - amount: - type: string - description: >- - Coin defines a token with a denomination and an - amount. - - - NOTE: The amount field is an Int which implements the - custom method - - signatures required by gogoproto. - pagination: - type: object - properties: - next_key: - type: string - format: byte - description: |- - next_key is the key to be passed to PageRequest.key to - query the next page most efficiently. It will be empty if - there are no more results. - total: - type: string - format: uint64 - title: >- - total is total number of results available if - PageRequest.count_total - - was set, its value is undefined otherwise - description: >- - PageResponse is to be embedded in gRPC response messages where - the - - corresponding request message has used PageRequest. - - message SomeResponse { - repeated Bar results = 1; - PageResponse page = 2; - } - default: - description: An unexpected error response. - schema: - type: object - properties: - code: - type: integer - format: int32 - message: - type: string - details: - type: array - items: - type: object - properties: - '@type': - type: string - additionalProperties: {} - parameters: - - name: pagination.key - description: |- - key is a value returned in PageResponse.next_key to begin - querying the next page most efficiently. Only one of offset or key - should be set. - in: query - required: false - type: string - format: byte - - name: pagination.offset - description: >- - offset is a numeric offset that can be used when key is unavailable. - - It is less efficient than using key. Only one of offset or key - should - - be set. - in: query - required: false - type: string - format: uint64 - - name: pagination.limit - description: >- - limit is the total number of results to be returned in the result - page. - - If left empty it will default to a value to be set by each app. - in: query - required: false - type: string - format: uint64 - - name: pagination.count_total - description: >- - count_total is set to true to indicate that the result set should - include - - a count of the total number of items available for pagination in - UIs. - - count_total is only respected when offset is used. It is ignored - when key - - is set. - in: query - required: false - type: boolean - - name: pagination.reverse - description: >- - reverse is set to true if results are to be returned in the - descending order. - - - Since: cosmos-sdk 0.43 - in: query - required: false - type: boolean - tags: - - Query - /mycel/registry/v1beta1/top_level_domain/{name}: - get: - summary: Queries a list of TopLevelDomain items. - operationId: MycelRegistryV1Beta1Query_TopLevelDomain - responses: - '200': - description: A successful response. - schema: - type: object - properties: - top_level_domain: - type: object - properties: - name: - type: string - expiration_date: - type: string - format: date-time - subdomain_config: - type: object - properties: - max_subdomain_registrations: - type: string - format: uint64 - subdomain_registration_fees: - type: object - properties: - fee_by_length: - type: array - items: - type: object - properties: - length: - type: integer - format: int64 - is_registrable: - type: boolean - fee: - type: object - properties: - denom: - type: string - amount: - type: string - description: >- - Coin defines a token with a denomination and - an amount. - - - NOTE: The amount field is an Int which - implements the custom method - - signatures required by gogoproto. - fee_by_name: - type: array - items: - type: object - properties: - name: - type: string - is_registrable: - type: boolean - fee: - type: object - properties: - denom: - type: string - amount: - type: string - description: >- - Coin defines a token with a denomination and - an amount. - - - NOTE: The amount field is an Int which - implements the custom method - - signatures required by gogoproto. - default_fee: - type: object - properties: - denom: - type: string - amount: - type: string - description: >- - Coin defines a token with a denomination and an - amount. - - - NOTE: The amount field is an Int which implements - the custom method - - signatures required by gogoproto. - is_registrable: - type: boolean - registrable_role: - type: string - enum: - - NO_ROLE - - OWNER - - EDITOR - default: NO_ROLE - custom_expiration_date: - type: boolean - registration_policy: - type: string - enum: - - PRIVATE - - PUBLIC - default: PRIVATE - subdomain_count: - type: string - format: uint64 - access_control: - type: array - items: - type: object - properties: - address: - type: string - role: - type: string - enum: - - NO_ROLE - - OWNER - - EDITOR - default: NO_ROLE - total_withdrawal_amount: - type: array - items: - type: object - properties: - denom: - type: string - amount: - type: string - description: >- - Coin defines a token with a denomination and an amount. - - - NOTE: The amount field is an Int which implements the - custom method - - signatures required by gogoproto. - default: - description: An unexpected error response. - schema: - type: object - properties: - code: - type: integer - format: int32 - message: - type: string - details: - type: array - items: - type: object - properties: - '@type': - type: string - additionalProperties: {} - parameters: - - name: name - in: path - required: true - type: string - tags: - - Query - /mycel/resolver/v1beta1/all_records/{domain_name}/{domain_parent}: - get: - summary: Queries a list of AllRecord items. - operationId: MycelRegistryV1Beta1Query_AllRecords - responses: - '200': - description: A successful response. - schema: - type: object - properties: - values: - type: object - additionalProperties: - type: object - properties: - dns_record: - type: object - properties: - dns_record_type: - type: string - enum: - - NO_RECORD_TYPE - - A - - AAAA - - CNAME - - NS - - MX - - PTR - - SOA - - SRV - - TXT - default: NO_RECORD_TYPE - value: - type: string - wallet_record: - type: object - properties: - wallet_record_type: - type: string - enum: - - NO_NETWORK - - BITCOIN_MAINNET_MAINNET - - BITCOIN_TESTNET_TESTNET - - BITCOIN_DEFAULT_DEFAULT - - ETHEREUM_MAINNET_MAINNET - - ETHEREUM_TESTNET_GOERLI - - ETHEREUM_TESTNET_SEPOLIA - - POLYGON_MAINNET_MAINNET - - POLYGON_TESTNET_MUMBAI - - BNB_MAINNET_MAINNET - - BNB_TESTNET_TESTNET - - AVALANCHE_MAINNET_CCHAIN - - AVALANCHE_TESTNET_FUJI - - GNOSIS_MAINNET_MAINNET - - GNOSIS_TESTNET_CHIADO - - OPTIMISM_MAINNET_MAINNET - - OPTIMISM_TESTNET_GOERLI - - ARBITRUM_MAINNET_MAINNET - - ARBITRUM_TESTNET_GOERLI - - SHARDEUM_BETANET_SPHINX - - ZETA_TESTNET_ATHENS - - EVM_DEFAULT_DEFAULT - - APTOS_MAINNET_MAINNET - - APTOS_TESTNET_TESTNET - - SUI_MAINNET_MAINNET - - SUI_TESTNET_TESTNET - - MOVE_DEFAULT_DEFAULT - - SOLANA_MAINNET_MAINNET - - SOLANA_TESTNET_TESTNET - - SOLANA_DEFAULT_DEFAULT - default: NO_NETWORK - description: |- - - BITCOIN_MAINNET_MAINNET: BTC 1xxx - - BITCOIN_DEFAULT_DEFAULT: DEFAULT - - ETHEREUM_MAINNET_MAINNET: EVM 2xxxx - Etheruem - - POLYGON_MAINNET_MAINNET: Polygon - - BNB_MAINNET_MAINNET: BNB Chain - - AVALANCHE_MAINNET_CCHAIN: Avalanche - - GNOSIS_MAINNET_MAINNET: Gnosis - - OPTIMISM_MAINNET_MAINNET: Optimism - - ARBITRUM_MAINNET_MAINNET: Arbitrum - - SHARDEUM_BETANET_SPHINX: Shardeum - SHARDEUM_MAINNET_ = 20015; - SHARDEUM_TESTNET_ = 20016; - - ZETA_TESTNET_ATHENS: Zetachain - ZETA_MAINNET_MAINNET = 20018; - - EVM_DEFAULT_DEFAULT: DEFAULT - - APTOS_MAINNET_MAINNET: MOVE 3xxxx - Aptos - - SUI_MAINNET_MAINNET: Sui - - MOVE_DEFAULT_DEFAULT: DEFAULT - - SOLANA_MAINNET_MAINNET: SOLANA 4xxxx - - SOLANA_DEFAULT_DEFAULT: DEFAULT - title: 'Rule: CHAINNAME_ENVIRONMENT_NETWORK' - value: - type: string - text_record: - type: object - properties: - key: - type: string - value: - type: string - default: - description: An unexpected error response. - schema: - type: object - properties: - code: - type: integer - format: int32 - message: - type: string - details: - type: array - items: - type: object - properties: - '@type': - type: string - additionalProperties: {} - parameters: - - name: domain_name - in: path - required: true - type: string - - name: domain_parent - in: path - required: true - type: string - tags: - - Query - /mycel/resolver/v1beta1/dns_record/{domain_name}/{domain_parent}/{dns_record_type}: - get: - summary: Queries a list of DnsRecord items. - operationId: MycelRegistryV1Beta1Query_DnsRecord - responses: - '200': - description: A successful response. - schema: - type: object - properties: - value: - type: object - properties: - dns_record_type: - type: string - enum: - - NO_RECORD_TYPE - - A - - AAAA - - CNAME - - NS - - MX - - PTR - - SOA - - SRV - - TXT - default: NO_RECORD_TYPE - value: - type: string - default: - description: An unexpected error response. - schema: - type: object - properties: - code: - type: integer - format: int32 - message: - type: string - details: - type: array - items: - type: object - properties: - '@type': - type: string - additionalProperties: {} - parameters: - - name: domain_name - in: path - required: true - type: string - - name: domain_parent - in: path - required: true - type: string - - name: dns_record_type - in: path - required: true - type: string - tags: - - Query - /mycel/resolver/v1beta1/text_record/{domain_name}/{domain_parent}/{key}: - get: - summary: Queries a list of TextRecord items. - operationId: MycelRegistryV1Beta1Query_TextRecord - responses: - '200': - description: A successful response. - schema: - type: object - properties: - value: - type: object - properties: - key: - type: string - value: - type: string - default: - description: An unexpected error response. - schema: - type: object - properties: - code: - type: integer - format: int32 - message: - type: string - details: - type: array - items: - type: object - properties: - '@type': - type: string - additionalProperties: {} - parameters: - - name: domain_name - in: path - required: true - type: string - - name: domain_parent - in: path - required: true - type: string - - name: key - in: path - required: true - type: string - tags: - - Query - /mycel/resolver/v1beta1/wallet_record/{domain_name}/{domain_parent}/{wallet_record_type}: - get: - summary: Queries a list of QueryWalletRecord items. - operationId: MycelRegistryV1Beta1Query_WalletRecord - responses: - '200': - description: A successful response. - schema: - type: object - properties: - value: - type: object - properties: - wallet_record_type: - type: string - enum: - - NO_NETWORK - - BITCOIN_MAINNET_MAINNET - - BITCOIN_TESTNET_TESTNET - - BITCOIN_DEFAULT_DEFAULT - - ETHEREUM_MAINNET_MAINNET - - ETHEREUM_TESTNET_GOERLI - - ETHEREUM_TESTNET_SEPOLIA - - POLYGON_MAINNET_MAINNET - - POLYGON_TESTNET_MUMBAI - - BNB_MAINNET_MAINNET - - BNB_TESTNET_TESTNET - - AVALANCHE_MAINNET_CCHAIN - - AVALANCHE_TESTNET_FUJI - - GNOSIS_MAINNET_MAINNET - - GNOSIS_TESTNET_CHIADO - - OPTIMISM_MAINNET_MAINNET - - OPTIMISM_TESTNET_GOERLI - - ARBITRUM_MAINNET_MAINNET - - ARBITRUM_TESTNET_GOERLI - - SHARDEUM_BETANET_SPHINX - - ZETA_TESTNET_ATHENS - - EVM_DEFAULT_DEFAULT - - APTOS_MAINNET_MAINNET - - APTOS_TESTNET_TESTNET - - SUI_MAINNET_MAINNET - - SUI_TESTNET_TESTNET - - MOVE_DEFAULT_DEFAULT - - SOLANA_MAINNET_MAINNET - - SOLANA_TESTNET_TESTNET - - SOLANA_DEFAULT_DEFAULT - default: NO_NETWORK - description: |- - - BITCOIN_MAINNET_MAINNET: BTC 1xxx - - BITCOIN_DEFAULT_DEFAULT: DEFAULT - - ETHEREUM_MAINNET_MAINNET: EVM 2xxxx - Etheruem - - POLYGON_MAINNET_MAINNET: Polygon - - BNB_MAINNET_MAINNET: BNB Chain - - AVALANCHE_MAINNET_CCHAIN: Avalanche - - GNOSIS_MAINNET_MAINNET: Gnosis - - OPTIMISM_MAINNET_MAINNET: Optimism - - ARBITRUM_MAINNET_MAINNET: Arbitrum - - SHARDEUM_BETANET_SPHINX: Shardeum - SHARDEUM_MAINNET_ = 20015; - SHARDEUM_TESTNET_ = 20016; - - ZETA_TESTNET_ATHENS: Zetachain - ZETA_MAINNET_MAINNET = 20018; - - EVM_DEFAULT_DEFAULT: DEFAULT - - APTOS_MAINNET_MAINNET: MOVE 3xxxx - Aptos - - SUI_MAINNET_MAINNET: Sui - - MOVE_DEFAULT_DEFAULT: DEFAULT - - SOLANA_MAINNET_MAINNET: SOLANA 4xxxx - - SOLANA_DEFAULT_DEFAULT: DEFAULT - title: 'Rule: CHAINNAME_ENVIRONMENT_NETWORK' - value: - type: string - default: - description: An unexpected error response. - schema: - type: object - properties: - code: - type: integer - format: int32 - message: - type: string - details: - type: array - items: - type: object - properties: - '@type': - type: string - additionalProperties: {} - parameters: - - name: domain_name - in: path - required: true - type: string - - name: domain_parent - in: path - required: true - type: string - - name: wallet_record_type - in: path - required: true - type: string - tags: - - Query - /mycel.registry.v1beta1.Msg/ExtendTopLevelDomainExpirationDate: - post: - operationId: MycelRegistryV1Beta1Msg_ExtendTopLevelDomainExpirationDate - responses: - '200': - description: A successful response. - schema: - type: object - properties: - top_level_domain: - type: object - properties: - name: - type: string - expiration_date: - type: string - format: date-time - subdomain_config: - type: object - properties: - max_subdomain_registrations: - type: string - format: uint64 - subdomain_registration_fees: - type: object - properties: - fee_by_length: - type: array - items: - type: object - properties: - length: - type: integer - format: int64 - is_registrable: - type: boolean - fee: - type: object - properties: - denom: - type: string - amount: - type: string - description: >- - Coin defines a token with a denomination and - an amount. - - - NOTE: The amount field is an Int which - implements the custom method - - signatures required by gogoproto. - fee_by_name: - type: array - items: - type: object - properties: - name: - type: string - is_registrable: - type: boolean - fee: - type: object - properties: - denom: - type: string - amount: - type: string - description: >- - Coin defines a token with a denomination and - an amount. - - - NOTE: The amount field is an Int which - implements the custom method - - signatures required by gogoproto. - default_fee: - type: object - properties: - denom: - type: string - amount: - type: string - description: >- - Coin defines a token with a denomination and an - amount. - - - NOTE: The amount field is an Int which implements - the custom method - - signatures required by gogoproto. - is_registrable: - type: boolean - registrable_role: - type: string - enum: - - NO_ROLE - - OWNER - - EDITOR - default: NO_ROLE - custom_expiration_date: - type: boolean - registration_policy: - type: string - enum: - - PRIVATE - - PUBLIC - default: PRIVATE - subdomain_count: - type: string - format: uint64 - access_control: - type: array - items: - type: object - properties: - address: - type: string - role: - type: string - enum: - - NO_ROLE - - OWNER - - EDITOR - default: NO_ROLE - total_withdrawal_amount: - type: array - items: - type: object - properties: - denom: - type: string - amount: - type: string - description: >- - Coin defines a token with a denomination and an amount. - - - NOTE: The amount field is an Int which implements the - custom method - - signatures required by gogoproto. - fee: - type: object - properties: - total_fee: - type: array - items: - type: object - properties: - denom: - type: string - amount: - type: string - description: >- - Coin defines a token with a denomination and an amount. - - - NOTE: The amount field is an Int which implements the - custom method - - signatures required by gogoproto. - burn_weight: - type: string - fee_to_burn: - type: object - properties: - denom: - type: string - amount: - type: string - description: >- - Coin defines a token with a denomination and an amount. - - - NOTE: The amount field is an Int which implements the - custom method - - signatures required by gogoproto. - fee_to_treasury: - type: object - properties: - denom: - type: string - amount: - type: string - description: >- - Coin defines a token with a denomination and an amount. - - - NOTE: The amount field is an Int which implements the - custom method - - signatures required by gogoproto. - default: - description: An unexpected error response. - schema: - type: object - properties: - code: - type: integer - format: int32 - message: - type: string - details: - type: array - items: - type: object - properties: - '@type': - type: string - additionalProperties: {} - parameters: - - name: body - in: body - required: true - schema: - type: object - properties: - creator: - type: string - name: - type: string - extension_period_in_year: - type: string - format: uint64 - tags: - - Msg - /mycel.registry.v1beta1.Msg/RegisterSecondLevelDomain: - post: - operationId: MycelRegistryV1Beta1Msg_RegisterSecondLevelDomain - responses: - '200': - description: A successful response. - schema: - type: object - default: - description: An unexpected error response. - schema: - type: object - properties: - code: - type: integer - format: int32 - message: - type: string - details: - type: array - items: - type: object - properties: - '@type': - type: string - additionalProperties: {} - parameters: - - name: body - in: body - required: true - schema: - type: object - properties: - creator: - type: string - name: - type: string - parent: - type: string - registration_period_in_year: - type: string - format: uint64 - tags: - - Msg - /mycel.registry.v1beta1.Msg/RegisterTopLevelDomain: - post: - operationId: MycelRegistryV1Beta1Msg_RegisterTopLevelDomain - responses: - '200': - description: A successful response. - schema: - type: object - properties: - top_level_domain: - type: object - properties: - name: - type: string - expiration_date: - type: string - format: date-time - subdomain_config: - type: object - properties: - max_subdomain_registrations: - type: string - format: uint64 - subdomain_registration_fees: - type: object - properties: - fee_by_length: - type: array - items: - type: object - properties: - length: - type: integer - format: int64 - is_registrable: - type: boolean - fee: - type: object - properties: - denom: - type: string - amount: - type: string - description: >- - Coin defines a token with a denomination and - an amount. - - - NOTE: The amount field is an Int which - implements the custom method - - signatures required by gogoproto. - fee_by_name: - type: array - items: - type: object - properties: - name: - type: string - is_registrable: - type: boolean - fee: - type: object - properties: - denom: - type: string - amount: - type: string - description: >- - Coin defines a token with a denomination and - an amount. - - - NOTE: The amount field is an Int which - implements the custom method - - signatures required by gogoproto. - default_fee: - type: object - properties: - denom: - type: string - amount: - type: string - description: >- - Coin defines a token with a denomination and an - amount. - - - NOTE: The amount field is an Int which implements - the custom method - - signatures required by gogoproto. - is_registrable: - type: boolean - registrable_role: - type: string - enum: - - NO_ROLE - - OWNER - - EDITOR - default: NO_ROLE - custom_expiration_date: - type: boolean - registration_policy: - type: string - enum: - - PRIVATE - - PUBLIC - default: PRIVATE - subdomain_count: - type: string - format: uint64 - access_control: - type: array - items: - type: object - properties: - address: - type: string - role: - type: string - enum: - - NO_ROLE - - OWNER - - EDITOR - default: NO_ROLE - total_withdrawal_amount: - type: array - items: - type: object - properties: - denom: - type: string - amount: - type: string - description: >- - Coin defines a token with a denomination and an amount. - - - NOTE: The amount field is an Int which implements the - custom method - - signatures required by gogoproto. - fee: - type: object - properties: - total_fee: - type: array - items: - type: object - properties: - denom: - type: string - amount: - type: string - description: >- - Coin defines a token with a denomination and an amount. - - - NOTE: The amount field is an Int which implements the - custom method - - signatures required by gogoproto. - burn_weight: - type: string - fee_to_burn: - type: object - properties: - denom: - type: string - amount: - type: string - description: >- - Coin defines a token with a denomination and an amount. - - - NOTE: The amount field is an Int which implements the - custom method - - signatures required by gogoproto. - fee_to_treasury: - type: object - properties: - denom: - type: string - amount: - type: string - description: >- - Coin defines a token with a denomination and an amount. - - - NOTE: The amount field is an Int which implements the - custom method - - signatures required by gogoproto. - default: - description: An unexpected error response. - schema: - type: object - properties: - code: - type: integer - format: int32 - message: - type: string - details: - type: array - items: - type: object - properties: - '@type': - type: string - additionalProperties: {} - parameters: - - name: body - in: body - required: true - schema: - type: object - properties: - creator: - type: string - name: - type: string - registration_period_in_year: - type: string - format: uint64 - tags: - - Msg - /mycel.registry.v1beta1.Msg/UpdateDnsRecord: - post: - operationId: MycelRegistryV1Beta1Msg_UpdateDnsRecord - responses: - '200': - description: A successful response. - schema: - type: object - default: - description: An unexpected error response. - schema: - type: object - properties: - code: - type: integer - format: int32 - message: - type: string - details: - type: array - items: - type: object - properties: - '@type': - type: string - additionalProperties: {} - parameters: - - name: body - in: body - required: true - schema: - type: object - properties: - creator: - type: string - name: - type: string - parent: - type: string - dns_record_type: - type: string - value: - type: string - tags: - - Msg - /mycel.registry.v1beta1.Msg/UpdateTextRecord: - post: - operationId: MycelRegistryV1Beta1Msg_UpdateTextRecord - responses: - '200': - description: A successful response. - schema: - type: object - default: - description: An unexpected error response. - schema: - type: object - properties: - code: - type: integer - format: int32 - message: - type: string - details: - type: array - items: - type: object - properties: - '@type': - type: string - additionalProperties: {} - parameters: - - name: body - in: body - required: true - schema: - type: object - properties: - creator: - type: string - name: - type: string - parent: - type: string - key: - type: string - value: - type: string - tags: - - Msg - /mycel.registry.v1beta1.Msg/UpdateTopLevelDomainRegistrationPolicy: - post: - operationId: MycelRegistryV1Beta1Msg_UpdateTopLevelDomainRegistrationPolicy - responses: - '200': - description: A successful response. - schema: - type: object - default: - description: An unexpected error response. - schema: - type: object - properties: - code: - type: integer - format: int32 - message: - type: string - details: - type: array - items: - type: object - properties: - '@type': - type: string - additionalProperties: {} - parameters: - - name: body - in: body - required: true - schema: - type: object - properties: - creator: - type: string - name: - type: string - registration_policy: - type: string - tags: - - Msg - /mycel.registry.v1beta1.Msg/UpdateWalletRecord: - post: - operationId: MycelRegistryV1Beta1Msg_UpdateWalletRecord - responses: - '200': - description: A successful response. - schema: - type: object - default: - description: An unexpected error response. - schema: - type: object - properties: - code: - type: integer - format: int32 - message: - type: string - details: - type: array - items: - type: object - properties: - '@type': - type: string - additionalProperties: {} - parameters: - - name: body - in: body - required: true - schema: - type: object - properties: - creator: - type: string - name: - type: string - parent: - type: string - wallet_record_type: - type: string - value: - type: string - tags: - - Msg - /mycel.registry.v1beta1.Msg/WithdrawRegistrationFee: - post: - operationId: MycelRegistryV1Beta1Msg_WithdrawRegistrationFee - responses: - '200': - description: A successful response. - schema: - type: object - properties: - registration_fee: - type: array - items: - type: object - properties: - denom: - type: string - amount: - type: string - description: >- - Coin defines a token with a denomination and an amount. - - - NOTE: The amount field is an Int which implements the custom - method - - signatures required by gogoproto. - default: - description: An unexpected error response. - schema: - type: object - properties: - code: - type: integer - format: int32 - message: - type: string - details: - type: array - items: - type: object - properties: - '@type': - type: string - additionalProperties: {} - parameters: - - name: body - in: body - required: true - schema: - type: object - properties: - creator: - type: string - name: - type: string - tags: - - Msg -definitions: - cosmos.auth.v1beta1.MsgUpdateParams: - type: object - properties: - authority: - type: string - description: >- - authority is the address that controls the module (defaults to x/gov - unless overwritten). - params: - description: |- - params defines the x/auth parameters to update. - - NOTE: All parameters must be supplied. - type: object - properties: - max_memo_characters: - type: string - format: uint64 - tx_sig_limit: - type: string - format: uint64 - tx_size_cost_per_byte: - type: string - format: uint64 - sig_verify_cost_ed25519: - type: string - format: uint64 - sig_verify_cost_secp256k1: - type: string - format: uint64 - description: |- - MsgUpdateParams is the Msg/UpdateParams request type. - - Since: cosmos-sdk 0.47 - cosmos.auth.v1beta1.MsgUpdateParamsResponse: - type: object - description: |- - MsgUpdateParamsResponse defines the response structure for executing a - MsgUpdateParams message. + Since: cosmos-sdk 0.47 + cosmos.auth.v1beta1.MsgUpdateParamsResponse: + type: object + description: |- + MsgUpdateParamsResponse defines the response structure for executing a + MsgUpdateParams message. Since: cosmos-sdk 0.47 cosmos.auth.v1beta1.Params: @@ -24643,493 +22409,215 @@ definitions: format: uint64 title: expected blocks per year description: Params defines the parameters for the x/mint module. - cosmos.nft.v1beta1.MsgSend: - type: object - properties: - class_id: - type: string - title: >- - class_id defines the unique identifier of the nft classification, - similar to the contract address of ERC721 - id: - type: string - title: id defines the unique identification of nft - sender: - type: string - title: sender is the address of the owner of nft - receiver: - type: string - title: receiver is the receiver address of nft - description: >- - MsgSend represents a message to send a nft from one account to another - account. - cosmos.nft.v1beta1.MsgSendResponse: - type: object - description: MsgSendResponse defines the Msg/Send response type. - cosmos.params.v1beta1.ParamChange: - type: object - properties: - subspace: - type: string - key: - type: string - value: - type: string - description: |- - ParamChange defines an individual parameter change, for use in - ParameterChangeProposal. - cosmos.params.v1beta1.QueryParamsResponse: - type: object - properties: - param: - description: param defines the queried parameter. - type: object - properties: - subspace: - type: string - key: - type: string - value: - type: string - description: QueryParamsResponse is response type for the Query/Params RPC method. - cosmos.params.v1beta1.QuerySubspacesResponse: - type: object - properties: - subspaces: - type: array - items: - type: object - properties: - subspace: - type: string - keys: - type: array - items: - type: string - description: >- - Subspace defines a parameter subspace name and all the keys that - exist for - - the subspace. - - - Since: cosmos-sdk 0.46 - description: |- - QuerySubspacesResponse defines the response types for querying for all - registered subspaces and all keys for a subspace. - - Since: cosmos-sdk 0.46 - cosmos.params.v1beta1.Subspace: - type: object - properties: - subspace: - type: string - keys: - type: array - items: - type: string - description: |- - Subspace defines a parameter subspace name and all the keys that exist for - the subspace. - - Since: cosmos-sdk 0.46 - cosmos.slashing.v1beta1.MsgUnjail: - type: object - properties: - validator_addr: - type: string - title: MsgUnjail defines the Msg/Unjail request type - cosmos.slashing.v1beta1.MsgUnjailResponse: - type: object - title: MsgUnjailResponse defines the Msg/Unjail response type - cosmos.slashing.v1beta1.MsgUpdateParams: - type: object - properties: - authority: - type: string - description: >- - authority is the address that controls the module (defaults to x/gov - unless overwritten). - params: - description: |- - params defines the x/slashing parameters to update. - - NOTE: All parameters must be supplied. - type: object - properties: - signed_blocks_window: - type: string - format: int64 - min_signed_per_window: - type: string - format: byte - downtime_jail_duration: - type: string - slash_fraction_double_sign: - type: string - format: byte - slash_fraction_downtime: - type: string - format: byte - description: |- - MsgUpdateParams is the Msg/UpdateParams request type. - - Since: cosmos-sdk 0.47 - cosmos.slashing.v1beta1.MsgUpdateParamsResponse: - type: object - description: |- - MsgUpdateParamsResponse defines the response structure for executing a - MsgUpdateParams message. - - Since: cosmos-sdk 0.47 - cosmos.slashing.v1beta1.Params: - type: object - properties: - signed_blocks_window: - type: string - format: int64 - min_signed_per_window: - type: string - format: byte - downtime_jail_duration: - type: string - slash_fraction_double_sign: - type: string - format: byte - slash_fraction_downtime: - type: string - format: byte - description: Params represents the parameters used for by the slashing module. - cosmos.staking.v1beta1.CommissionRates: - type: object - properties: - rate: - type: string - description: rate is the commission rate charged to delegators, as a fraction. - max_rate: - type: string - description: >- - max_rate defines the maximum commission rate which validator can ever - charge, as a fraction. - max_change_rate: - type: string - description: >- - max_change_rate defines the maximum daily increase of the validator - commission, as a fraction. - description: >- - CommissionRates defines the initial commission rates to be used for - creating - - a validator. - cosmos.staking.v1beta1.Description: - type: object - properties: - moniker: - type: string - description: moniker defines a human-readable name for the validator. - identity: - type: string - description: >- - identity defines an optional identity signature (ex. UPort or - Keybase). - website: - type: string - description: website defines an optional website link. - security_contact: - type: string - description: security_contact defines an optional email for security contact. - details: - type: string - description: details define other optional details. - description: Description defines a validator description. - cosmos.staking.v1beta1.MsgBeginRedelegate: - type: object - properties: - delegator_address: - type: string - validator_src_address: - type: string - validator_dst_address: - type: string - amount: - type: object - properties: - denom: - type: string - amount: - type: string - description: |- - Coin defines a token with a denomination and an amount. - - NOTE: The amount field is an Int which implements the custom method - signatures required by gogoproto. - description: |- - MsgBeginRedelegate defines a SDK message for performing a redelegation - of coins from a delegator and source validator to a destination validator. - cosmos.staking.v1beta1.MsgBeginRedelegateResponse: + cosmos.nft.v1beta1.MsgSend: type: object properties: - completion_time: + class_id: type: string - format: date-time - description: MsgBeginRedelegateResponse defines the Msg/BeginRedelegate response type. - cosmos.staking.v1beta1.MsgCancelUnbondingDelegation: - type: object - properties: - delegator_address: + title: >- + class_id defines the unique identifier of the nft classification, + similar to the contract address of ERC721 + id: type: string - validator_address: + title: id defines the unique identification of nft + sender: type: string - amount: - type: object - properties: - denom: - type: string - amount: - type: string - description: |- - Coin defines a token with a denomination and an amount. - - NOTE: The amount field is an Int which implements the custom method - signatures required by gogoproto. - title: >- - amount is always less than or equal to unbonding delegation entry - balance - creation_height: + title: sender is the address of the owner of nft + receiver: type: string - format: int64 - description: creation_height is the height which the unbonding took place. - description: 'Since: cosmos-sdk 0.46' - title: >- - MsgCancelUnbondingDelegation defines the SDK message for performing a - cancel unbonding delegation for delegator - cosmos.staking.v1beta1.MsgCancelUnbondingDelegationResponse: + title: receiver is the receiver address of nft + description: >- + MsgSend represents a message to send a nft from one account to another + account. + cosmos.nft.v1beta1.MsgSendResponse: type: object - description: 'Since: cosmos-sdk 0.46' - title: MsgCancelUnbondingDelegationResponse - cosmos.staking.v1beta1.MsgCreateValidator: + description: MsgSendResponse defines the Msg/Send response type. + cosmos.params.v1beta1.ParamChange: type: object properties: - description: - type: object - properties: - moniker: - type: string - description: moniker defines a human-readable name for the validator. - identity: - type: string - description: >- - identity defines an optional identity signature (ex. UPort or - Keybase). - website: - type: string - description: website defines an optional website link. - security_contact: - type: string - description: security_contact defines an optional email for security contact. - details: - type: string - description: details define other optional details. - description: Description defines a validator description. - commission: - type: object - properties: - rate: - type: string - description: rate is the commission rate charged to delegators, as a fraction. - max_rate: - type: string - description: >- - max_rate defines the maximum commission rate which validator can - ever charge, as a fraction. - max_change_rate: - type: string - description: >- - max_change_rate defines the maximum daily increase of the - validator commission, as a fraction. - description: >- - CommissionRates defines the initial commission rates to be used for - creating - - a validator. - min_self_delegation: + subspace: type: string - delegator_address: + key: type: string - description: >- - Deprecated: Use of Delegator Address in MsgCreateValidator is - deprecated. - - The validator address bytes and delegator address bytes refer to the - same account while creating validator (defer - - only in bech32 notation). - validator_address: + value: type: string - pubkey: + description: |- + ParamChange defines an individual parameter change, for use in + ParameterChangeProposal. + cosmos.params.v1beta1.QueryParamsResponse: + type: object + properties: + param: + description: param defines the queried parameter. type: object properties: - '@type': + subspace: type: string - description: >- - A URL/resource name that uniquely identifies the type of the - serialized - - protocol buffer message. This string must contain at least - - one "/" character. The last segment of the URL's path must - represent - - the fully qualified name of the type (as in - - `path/google.protobuf.Duration`). The name should be in a - canonical form - - (e.g., leading "." is not accepted). - - - In practice, teams usually precompile into the binary all types - that they - - expect it to use in the context of Any. However, for URLs which - use the - - scheme `http`, `https`, or no scheme, one can optionally set up a - type - - server that maps type URLs to message definitions as follows: - - - * If no scheme is provided, `https` is assumed. - - * An HTTP GET on the URL must yield a [google.protobuf.Type][] - value in binary format, or produce an error. - * Applications are allowed to cache lookup results based on the - URL, or have them precompiled into a binary to avoid any - lookup. Therefore, binary compatibility needs to be preserved - on changes to types. (Use versioned type names to manage - breaking changes.) - - Note: this functionality is not currently available in the - official - - protobuf release, and it is not used for type URLs beginning with - - type.googleapis.com. As of May 2023, there are no widely used type - server - - implementations and no plans to implement one. - - - Schemes other than `http`, `https` (or the empty scheme) might be - - used with implementation specific semantics. - additionalProperties: {} - description: >- - `Any` contains an arbitrary serialized protocol buffer message along - with a - - URL that describes the type of the serialized message. - - - Protobuf library provides support to pack/unpack Any values in the - form - - of utility functions or additional generated methods of the Any type. - - - Example 1: Pack and unpack a message in C++. - - Foo foo = ...; - Any any; - any.PackFrom(foo); - ... - if (any.UnpackTo(&foo)) { - ... - } - - Example 2: Pack and unpack a message in Java. - - Foo foo = ...; - Any any = Any.pack(foo); - ... - if (any.is(Foo.class)) { - foo = any.unpack(Foo.class); - } - // or ... - if (any.isSameTypeAs(Foo.getDefaultInstance())) { - foo = any.unpack(Foo.getDefaultInstance()); - } - - Example 3: Pack and unpack a message in Python. - - foo = Foo(...) - any = Any() - any.Pack(foo) - ... - if any.Is(Foo.DESCRIPTOR): - any.Unpack(foo) - ... - - Example 4: Pack and unpack a message in Go - - foo := &pb.Foo{...} - any, err := anypb.New(foo) - if err != nil { - ... - } - ... - foo := &pb.Foo{} - if err := any.UnmarshalTo(foo); err != nil { - ... - } - - The pack methods provided by protobuf library will by default use - - 'type.googleapis.com/full.type.name' as the type URL and the unpack - - methods only use the fully qualified type name after the last '/' - - in the type URL, for example "foo.bar.com/x/y.z" will yield type - - name "y.z". - - - JSON - - ==== - - The JSON representation of an `Any` value uses the regular + key: + type: string + value: + type: string + description: QueryParamsResponse is response type for the Query/Params RPC method. + cosmos.params.v1beta1.QuerySubspacesResponse: + type: object + properties: + subspaces: + type: array + items: + type: object + properties: + subspace: + type: string + keys: + type: array + items: + type: string + description: >- + Subspace defines a parameter subspace name and all the keys that + exist for - representation of the deserialized, embedded message, with an + the subspace. - additional field `@type` which contains the type URL. Example: - package google.profile; - message Person { - string first_name = 1; - string last_name = 2; - } + Since: cosmos-sdk 0.46 + description: |- + QuerySubspacesResponse defines the response types for querying for all + registered subspaces and all keys for a subspace. - { - "@type": "type.googleapis.com/google.profile.Person", - "firstName": , - "lastName": - } + Since: cosmos-sdk 0.46 + cosmos.params.v1beta1.Subspace: + type: object + properties: + subspace: + type: string + keys: + type: array + items: + type: string + description: |- + Subspace defines a parameter subspace name and all the keys that exist for + the subspace. - If the embedded message type is well-known and has a custom JSON + Since: cosmos-sdk 0.46 + cosmos.slashing.v1beta1.MsgUnjail: + type: object + properties: + validator_addr: + type: string + title: MsgUnjail defines the Msg/Unjail request type + cosmos.slashing.v1beta1.MsgUnjailResponse: + type: object + title: MsgUnjailResponse defines the Msg/Unjail response type + cosmos.slashing.v1beta1.MsgUpdateParams: + type: object + properties: + authority: + type: string + description: >- + authority is the address that controls the module (defaults to x/gov + unless overwritten). + params: + description: |- + params defines the x/slashing parameters to update. - representation, that representation will be embedded adding a field + NOTE: All parameters must be supplied. + type: object + properties: + signed_blocks_window: + type: string + format: int64 + min_signed_per_window: + type: string + format: byte + downtime_jail_duration: + type: string + slash_fraction_double_sign: + type: string + format: byte + slash_fraction_downtime: + type: string + format: byte + description: |- + MsgUpdateParams is the Msg/UpdateParams request type. - `value` which holds the custom JSON in addition to the `@type` + Since: cosmos-sdk 0.47 + cosmos.slashing.v1beta1.MsgUpdateParamsResponse: + type: object + description: |- + MsgUpdateParamsResponse defines the response structure for executing a + MsgUpdateParams message. - field. Example (for message [google.protobuf.Duration][]): + Since: cosmos-sdk 0.47 + cosmos.slashing.v1beta1.Params: + type: object + properties: + signed_blocks_window: + type: string + format: int64 + min_signed_per_window: + type: string + format: byte + downtime_jail_duration: + type: string + slash_fraction_double_sign: + type: string + format: byte + slash_fraction_downtime: + type: string + format: byte + description: Params represents the parameters used for by the slashing module. + cosmos.staking.v1beta1.CommissionRates: + type: object + properties: + rate: + type: string + description: rate is the commission rate charged to delegators, as a fraction. + max_rate: + type: string + description: >- + max_rate defines the maximum commission rate which validator can ever + charge, as a fraction. + max_change_rate: + type: string + description: >- + max_change_rate defines the maximum daily increase of the validator + commission, as a fraction. + description: >- + CommissionRates defines the initial commission rates to be used for + creating - { - "@type": "type.googleapis.com/google.protobuf.Duration", - "value": "1.212s" - } - value: + a validator. + cosmos.staking.v1beta1.Description: + type: object + properties: + moniker: + type: string + description: moniker defines a human-readable name for the validator. + identity: + type: string + description: >- + identity defines an optional identity signature (ex. UPort or + Keybase). + website: + type: string + description: website defines an optional website link. + security_contact: + type: string + description: security_contact defines an optional email for security contact. + details: + type: string + description: details define other optional details. + description: Description defines a validator description. + cosmos.staking.v1beta1.MsgBeginRedelegate: + type: object + properties: + delegator_address: + type: string + validator_src_address: + type: string + validator_dst_address: + type: string + amount: type: object properties: denom: @@ -25141,11 +22629,17 @@ definitions: NOTE: The amount field is an Int which implements the custom method signatures required by gogoproto. - description: MsgCreateValidator defines a SDK message for creating a new validator. - cosmos.staking.v1beta1.MsgCreateValidatorResponse: + description: |- + MsgBeginRedelegate defines a SDK message for performing a redelegation + of coins from a delegator and source validator to a destination validator. + cosmos.staking.v1beta1.MsgBeginRedelegateResponse: type: object - description: MsgCreateValidatorResponse defines the Msg/CreateValidator response type. - cosmos.staking.v1beta1.MsgDelegate: + properties: + completion_time: + type: string + format: date-time + description: MsgBeginRedelegateResponse defines the Msg/BeginRedelegate response type. + cosmos.staking.v1beta1.MsgCancelUnbondingDelegation: type: object properties: delegator_address: @@ -25164,13 +22658,22 @@ definitions: NOTE: The amount field is an Int which implements the custom method signatures required by gogoproto. - description: |- - MsgDelegate defines a SDK message for performing a delegation of coins - from a delegator to a validator. - cosmos.staking.v1beta1.MsgDelegateResponse: + title: >- + amount is always less than or equal to unbonding delegation entry + balance + creation_height: + type: string + format: int64 + description: creation_height is the height which the unbonding took place. + description: 'Since: cosmos-sdk 0.46' + title: >- + MsgCancelUnbondingDelegation defines the SDK message for performing a + cancel unbonding delegation for delegator + cosmos.staking.v1beta1.MsgCancelUnbondingDelegationResponse: type: object - description: MsgDelegateResponse defines the Msg/Delegate response type. - cosmos.staking.v1beta1.MsgEditValidator: + description: 'Since: cosmos-sdk 0.46' + title: MsgCancelUnbondingDelegationResponse + cosmos.staking.v1beta1.MsgCreateValidator: type: object properties: description: @@ -25194,713 +22697,297 @@ definitions: type: string description: details define other optional details. description: Description defines a validator description. - validator_address: - type: string - commission_rate: - type: string - title: >- - We pass a reference to the new commission rate and min self delegation - as - - it's not mandatory to update. If not updated, the deserialized rate - will be - - zero with no way to distinguish if an update was intended. - - REF: #2373 - min_self_delegation: - type: string - description: MsgEditValidator defines a SDK message for editing an existing validator. - cosmos.staking.v1beta1.MsgEditValidatorResponse: - type: object - description: MsgEditValidatorResponse defines the Msg/EditValidator response type. - cosmos.staking.v1beta1.MsgUndelegate: - type: object - properties: - delegator_address: - type: string - validator_address: - type: string - amount: + commission: type: object properties: - denom: - type: string - amount: + rate: type: string - description: |- - Coin defines a token with a denomination and an amount. - - NOTE: The amount field is an Int which implements the custom method - signatures required by gogoproto. - description: |- - MsgUndelegate defines a SDK message for performing an undelegation from a - delegate and a validator. - cosmos.staking.v1beta1.MsgUndelegateResponse: - type: object - properties: - completion_time: - type: string - format: date-time - amount: - type: object - properties: - denom: + description: rate is the commission rate charged to delegators, as a fraction. + max_rate: type: string - amount: + description: >- + max_rate defines the maximum commission rate which validator can + ever charge, as a fraction. + max_change_rate: type: string - description: |- - Coin defines a token with a denomination and an amount. + description: >- + max_change_rate defines the maximum daily increase of the + validator commission, as a fraction. + description: >- + CommissionRates defines the initial commission rates to be used for + creating - NOTE: The amount field is an Int which implements the custom method - signatures required by gogoproto. - title: amount returns the amount of undelegated coins - description: MsgUndelegateResponse defines the Msg/Undelegate response type. - cosmos.staking.v1beta1.MsgUpdateParams: - type: object - properties: - authority: + a validator. + min_self_delegation: + type: string + delegator_address: type: string description: >- - authority is the address that controls the module (defaults to x/gov - unless overwritten). - params: - description: |- - params defines the x/staking parameters to update. + Deprecated: Use of Delegator Address in MsgCreateValidator is + deprecated. - NOTE: All parameters must be supplied. + The validator address bytes and delegator address bytes refer to the + same account while creating validator (defer + + only in bech32 notation). + validator_address: + type: string + pubkey: type: object properties: - unbonding_time: + '@type': type: string - description: unbonding_time is the time duration of unbonding. - max_validators: - type: integer - format: int64 - description: max_validators is the maximum number of validators. - max_entries: - type: integer - format: int64 description: >- - max_entries is the max entries for either unbonding delegation or - redelegation (per pair/trio). - historical_entries: - type: integer - format: int64 - description: historical_entries is the number of historical entries to persist. - bond_denom: - type: string - description: bond_denom defines the bondable coin denomination. - min_commission_rate: - type: string - title: >- - min_commission_rate is the chain-wide minimum commission rate that - a validator can charge their delegators - description: |- - MsgUpdateParams is the Msg/UpdateParams request type. + A URL/resource name that uniquely identifies the type of the + serialized - Since: cosmos-sdk 0.47 - cosmos.staking.v1beta1.MsgUpdateParamsResponse: - type: object - description: |- - MsgUpdateParamsResponse defines the response structure for executing a - MsgUpdateParams message. + protocol buffer message. This string must contain at least - Since: cosmos-sdk 0.47 - cosmos.staking.v1beta1.Params: - type: object - properties: - unbonding_time: - type: string - description: unbonding_time is the time duration of unbonding. - max_validators: - type: integer - format: int64 - description: max_validators is the maximum number of validators. - max_entries: - type: integer - format: int64 - description: >- - max_entries is the max entries for either unbonding delegation or - redelegation (per pair/trio). - historical_entries: - type: integer - format: int64 - description: historical_entries is the number of historical entries to persist. - bond_denom: - type: string - description: bond_denom defines the bondable coin denomination. - min_commission_rate: - type: string - title: >- - min_commission_rate is the chain-wide minimum commission rate that a - validator can charge their delegators - description: Params defines the parameters for the x/staking module. - ibc.applications.fee.v1.Fee: - type: object - properties: - recv_fee: - type: array - items: - type: object - properties: - denom: - type: string - amount: - type: string - description: |- - Coin defines a token with a denomination and an amount. + one "/" character. The last segment of the URL's path must + represent - NOTE: The amount field is an Int which implements the custom method - signatures required by gogoproto. - title: the packet receive fee - ack_fee: - type: array - items: - type: object - properties: - denom: - type: string - amount: - type: string - description: |- - Coin defines a token with a denomination and an amount. + the fully qualified name of the type (as in - NOTE: The amount field is an Int which implements the custom method - signatures required by gogoproto. - title: the packet acknowledgement fee - timeout_fee: - type: array - items: - type: object - properties: - denom: - type: string - amount: - type: string - description: |- - Coin defines a token with a denomination and an amount. + `path/google.protobuf.Duration`). The name should be in a + canonical form - NOTE: The amount field is an Int which implements the custom method - signatures required by gogoproto. - title: the packet timeout fee - title: Fee defines the ICS29 receive, acknowledgement and timeout fees - ibc.applications.fee.v1.MsgPayPacketFee: - type: object - properties: - fee: - title: >- - fee encapsulates the recv, ack and timeout fees associated with an IBC - packet - type: object - properties: - recv_fee: - type: array - items: - type: object - properties: - denom: - type: string - amount: - type: string - description: >- - Coin defines a token with a denomination and an amount. + (e.g., leading "." is not accepted). - NOTE: The amount field is an Int which implements the custom - method + In practice, teams usually precompile into the binary all types + that they - signatures required by gogoproto. - title: the packet receive fee - ack_fee: - type: array - items: - type: object - properties: - denom: - type: string - amount: - type: string - description: >- - Coin defines a token with a denomination and an amount. + expect it to use in the context of Any. However, for URLs which + use the + scheme `http`, `https`, or no scheme, one can optionally set up a + type - NOTE: The amount field is an Int which implements the custom - method + server that maps type URLs to message definitions as follows: - signatures required by gogoproto. - title: the packet acknowledgement fee - timeout_fee: - type: array - items: - type: object - properties: - denom: - type: string - amount: - type: string - description: >- - Coin defines a token with a denomination and an amount. + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in the + official + + protobuf release, and it is not used for type URLs beginning with + + type.googleapis.com. As of May 2023, there are no widely used type + server + + implementations and no plans to implement one. + + + Schemes other than `http`, `https` (or the empty scheme) might be + + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer message along + with a + + URL that describes the type of the serialized message. + + + Protobuf library provides support to pack/unpack Any values in the + form + + of utility functions or additional generated methods of the Any type. + + + Example 1: Pack and unpack a message in C++. + + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } + + Example 2: Pack and unpack a message in Java. - NOTE: The amount field is an Int which implements the custom - method + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } - signatures required by gogoproto. - title: the packet timeout fee - source_port_id: - type: string - title: the source port unique identifier - source_channel_id: - type: string - title: the source channel unique identifer - signer: - type: string - title: account address to refund fee if necessary - relayers: - type: array - items: - type: string - title: optional list of relayers permitted to the receive packet fees - title: >- - MsgPayPacketFee defines the request type for the PayPacketFee rpc + Example 3: Pack and unpack a message in Python. - This Msg can be used to pay for a packet at the next sequence send & - should be combined with the Msg that will be + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... - paid for - ibc.applications.fee.v1.MsgPayPacketFeeAsync: - type: object - properties: - packet_id: - title: >- - unique packet identifier comprised of the channel ID, port ID and - sequence - type: object - properties: - port_id: - type: string - title: channel port identifier - channel_id: - type: string - title: channel unique identifier - sequence: - type: string - format: uint64 - title: packet sequence - packet_fee: - title: the packet fee associated with a particular IBC packet - type: object - properties: - fee: - title: >- - fee encapsulates the recv, ack and timeout fees associated with an - IBC packet - type: object - properties: - recv_fee: - type: array - items: - type: object - properties: - denom: - type: string - amount: - type: string - description: >- - Coin defines a token with a denomination and an amount. + Example 4: Pack and unpack a message in Go + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } - NOTE: The amount field is an Int which implements the custom - method + The pack methods provided by protobuf library will by default use - signatures required by gogoproto. - title: the packet receive fee - ack_fee: - type: array - items: - type: object - properties: - denom: - type: string - amount: - type: string - description: >- - Coin defines a token with a denomination and an amount. + 'type.googleapis.com/full.type.name' as the type URL and the unpack + methods only use the fully qualified type name after the last '/' - NOTE: The amount field is an Int which implements the custom - method + in the type URL, for example "foo.bar.com/x/y.z" will yield type - signatures required by gogoproto. - title: the packet acknowledgement fee - timeout_fee: - type: array - items: - type: object - properties: - denom: - type: string - amount: - type: string - description: >- - Coin defines a token with a denomination and an amount. + name "y.z". - NOTE: The amount field is an Int which implements the custom - method + JSON - signatures required by gogoproto. - title: the packet timeout fee - refund_address: - type: string - title: the refund address for unspent fees - relayers: - type: array - items: - type: string - title: optional list of relayers permitted to receive fees - title: >- - MsgPayPacketFeeAsync defines the request type for the PayPacketFeeAsync - rpc + ==== - This Msg can be used to pay for a packet at a specified sequence (instead - of the next sequence send) - ibc.applications.fee.v1.MsgPayPacketFeeAsyncResponse: - type: object - title: >- - MsgPayPacketFeeAsyncResponse defines the response type for the - PayPacketFeeAsync rpc - ibc.applications.fee.v1.MsgPayPacketFeeResponse: - type: object - title: MsgPayPacketFeeResponse defines the response type for the PayPacketFee rpc - ibc.applications.fee.v1.MsgRegisterCounterpartyPayee: - type: object - properties: - port_id: - type: string - title: unique port identifier - channel_id: - type: string - title: unique channel identifier - relayer: - type: string - title: the relayer address - counterparty_payee: - type: string - title: the counterparty payee address - title: >- - MsgRegisterCounterpartyPayee defines the request type for the - RegisterCounterpartyPayee rpc - ibc.applications.fee.v1.MsgRegisterCounterpartyPayeeResponse: - type: object - title: >- - MsgRegisterCounterpartyPayeeResponse defines the response type for the - RegisterCounterpartyPayee rpc - ibc.applications.fee.v1.MsgRegisterPayee: - type: object - properties: - port_id: - type: string - title: unique port identifier - channel_id: - type: string - title: unique channel identifier - relayer: - type: string - title: the relayer address - payee: - type: string - title: the payee address - title: MsgRegisterPayee defines the request type for the RegisterPayee rpc - ibc.applications.fee.v1.MsgRegisterPayeeResponse: - type: object - title: >- - MsgRegisterPayeeResponse defines the response type for the RegisterPayee - rpc - ibc.applications.fee.v1.PacketFee: - type: object - properties: - fee: - title: >- - fee encapsulates the recv, ack and timeout fees associated with an IBC - packet - type: object - properties: - recv_fee: - type: array - items: - type: object - properties: - denom: - type: string - amount: - type: string - description: >- - Coin defines a token with a denomination and an amount. + The JSON representation of an `Any` value uses the regular + representation of the deserialized, embedded message, with an - NOTE: The amount field is an Int which implements the custom - method + additional field `@type` which contains the type URL. Example: - signatures required by gogoproto. - title: the packet receive fee - ack_fee: - type: array - items: - type: object - properties: - denom: - type: string - amount: - type: string - description: >- - Coin defines a token with a denomination and an amount. + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } - NOTE: The amount field is an Int which implements the custom - method + If the embedded message type is well-known and has a custom JSON - signatures required by gogoproto. - title: the packet acknowledgement fee - timeout_fee: - type: array - items: - type: object - properties: - denom: - type: string - amount: - type: string - description: >- - Coin defines a token with a denomination and an amount. + representation, that representation will be embedded adding a field + `value` which holds the custom JSON in addition to the `@type` - NOTE: The amount field is an Int which implements the custom - method + field. Example (for message [google.protobuf.Duration][]): - signatures required by gogoproto. - title: the packet timeout fee - refund_address: - type: string - title: the refund address for unspent fees - relayers: - type: array - items: - type: string - title: optional list of relayers permitted to receive fees - title: >- - PacketFee contains ICS29 relayer fees, refund address and optional list of - permitted relayers - ibc.core.channel.v1.PacketId: - type: object - properties: - port_id: - type: string - title: channel port identifier - channel_id: - type: string - title: channel unique identifier - sequence: - type: string - format: uint64 - title: packet sequence - title: |- - PacketId is an identifer for a unique Packet - Source chains refer to packets by source port/channel - Destination chains refer to packets by destination port/channel - ibc.applications.interchain_accounts.controller.v1.MsgRegisterInterchainAccount: - type: object - properties: - owner: - type: string - connection_id: - type: string - version: - type: string - title: MsgRegisterInterchainAccount defines the payload for Msg/RegisterAccount - ibc.applications.interchain_accounts.controller.v1.MsgRegisterInterchainAccountResponse: - type: object - properties: - channel_id: - type: string - port_id: - type: string - title: >- - MsgRegisterInterchainAccountResponse defines the response for - Msg/RegisterAccount - ibc.applications.interchain_accounts.controller.v1.MsgSendTx: - type: object - properties: - owner: - type: string - connection_id: - type: string - packet_data: + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + value: type: object properties: - type: - type: string - enum: - - TYPE_UNSPECIFIED - - TYPE_EXECUTE_TX - default: TYPE_UNSPECIFIED - description: |- - - TYPE_UNSPECIFIED: Default zero value enumeration - - TYPE_EXECUTE_TX: Execute a transaction on an interchain accounts host chain - title: >- - Type defines a classification of message issued from a controller - chain to its associated interchain accounts - - host - data: + denom: type: string - format: byte - memo: + amount: type: string - description: >- - InterchainAccountPacketData is comprised of a raw transaction, type of - transaction and optional memo field. - relative_timeout: - type: string - format: uint64 - description: >- - Relative timeout timestamp provided will be added to the current block - time during transaction execution. + description: |- + Coin defines a token with a denomination and an amount. - The timeout timestamp must be non-zero. - title: MsgSendTx defines the payload for Msg/SendTx - ibc.applications.interchain_accounts.controller.v1.MsgSendTxResponse: + NOTE: The amount field is an Int which implements the custom method + signatures required by gogoproto. + description: MsgCreateValidator defines a SDK message for creating a new validator. + cosmos.staking.v1beta1.MsgCreateValidatorResponse: type: object - properties: - sequence: - type: string - format: uint64 - title: MsgSendTxResponse defines the response for MsgSendTx - ibc.applications.interchain_accounts.controller.v1.MsgUpdateParams: + description: MsgCreateValidatorResponse defines the Msg/CreateValidator response type. + cosmos.staking.v1beta1.MsgDelegate: type: object properties: - signer: + delegator_address: type: string - title: signer address - params: - description: >- - params defines the 27-interchain-accounts/controller parameters to - update. - - - NOTE: All parameters must be supplied. + validator_address: + type: string + amount: type: object properties: - controller_enabled: - type: boolean - description: controller_enabled enables or disables the controller submodule. - title: MsgUpdateParams defines the payload for Msg/UpdateParams - ibc.applications.interchain_accounts.controller.v1.MsgUpdateParamsResponse: - type: object - title: MsgUpdateParamsResponse defines the response for Msg/UpdateParams - ibc.applications.interchain_accounts.controller.v1.Params: - type: object - properties: - controller_enabled: - type: boolean - description: controller_enabled enables or disables the controller submodule. - description: |- - Params defines the set of on-chain interchain accounts parameters. - The following parameters may be used to disable the controller submodule. - ibc.applications.interchain_accounts.v1.InterchainAccountPacketData: - type: object - properties: - type: - type: string - enum: - - TYPE_UNSPECIFIED - - TYPE_EXECUTE_TX - default: TYPE_UNSPECIFIED + denom: + type: string + amount: + type: string description: |- - - TYPE_UNSPECIFIED: Default zero value enumeration - - TYPE_EXECUTE_TX: Execute a transaction on an interchain accounts host chain - title: >- - Type defines a classification of message issued from a controller - chain to its associated interchain accounts + Coin defines a token with a denomination and an amount. - host - data: - type: string - format: byte - memo: - type: string - description: >- - InterchainAccountPacketData is comprised of a raw transaction, type of - transaction and optional memo field. - ibc.applications.interchain_accounts.v1.Type: - type: string - enum: - - TYPE_UNSPECIFIED - - TYPE_EXECUTE_TX - default: TYPE_UNSPECIFIED + NOTE: The amount field is an Int which implements the custom method + signatures required by gogoproto. description: |- - - TYPE_UNSPECIFIED: Default zero value enumeration - - TYPE_EXECUTE_TX: Execute a transaction on an interchain accounts host chain - title: >- - Type defines a classification of message issued from a controller chain to - its associated interchain accounts - - host - ibc.applications.interchain_accounts.host.v1.MsgUpdateParams: + MsgDelegate defines a SDK message for performing a delegation of coins + from a delegator to a validator. + cosmos.staking.v1beta1.MsgDelegateResponse: + type: object + description: MsgDelegateResponse defines the Msg/Delegate response type. + cosmos.staking.v1beta1.MsgEditValidator: type: object properties: - signer: - type: string - title: signer address - params: - description: |- - params defines the 27-interchain-accounts/host parameters to update. - - NOTE: All parameters must be supplied. + description: type: object properties: - host_enabled: - type: boolean - description: host_enabled enables or disables the host submodule. - allow_messages: - type: array - items: - type: string + moniker: + type: string + description: moniker defines a human-readable name for the validator. + identity: + type: string description: >- - allow_messages defines a list of sdk message typeURLs allowed to - be executed on a host chain. - title: MsgUpdateParams defines the payload for Msg/UpdateParams - ibc.applications.interchain_accounts.host.v1.MsgUpdateParamsResponse: - type: object - title: MsgUpdateParamsResponse defines the response for Msg/UpdateParams - ibc.applications.interchain_accounts.host.v1.Params: + identity defines an optional identity signature (ex. UPort or + Keybase). + website: + type: string + description: website defines an optional website link. + security_contact: + type: string + description: security_contact defines an optional email for security contact. + details: + type: string + description: details define other optional details. + description: Description defines a validator description. + validator_address: + type: string + commission_rate: + type: string + title: >- + We pass a reference to the new commission rate and min self delegation + as + + it's not mandatory to update. If not updated, the deserialized rate + will be + + zero with no way to distinguish if an update was intended. + + REF: #2373 + min_self_delegation: + type: string + description: MsgEditValidator defines a SDK message for editing an existing validator. + cosmos.staking.v1beta1.MsgEditValidatorResponse: type: object - properties: - host_enabled: - type: boolean - description: host_enabled enables or disables the host submodule. - allow_messages: - type: array - items: - type: string - description: >- - allow_messages defines a list of sdk message typeURLs allowed to be - executed on a host chain. - description: |- - Params defines the set of on-chain interchain accounts parameters. - The following parameters may be used to disable the host submodule. - ibc.applications.transfer.v1.MsgTransfer: + description: MsgEditValidatorResponse defines the Msg/EditValidator response type. + cosmos.staking.v1beta1.MsgUndelegate: type: object properties: - source_port: + delegator_address: type: string - title: the port on which the packet will be sent - source_channel: + validator_address: type: string - title: the channel by which the packet will be sent - token: - title: the tokens to be transferred + amount: type: object properties: denom: @@ -25912,487 +22999,695 @@ definitions: NOTE: The amount field is an Int which implements the custom method signatures required by gogoproto. - sender: - type: string - title: the sender address - receiver: + description: |- + MsgUndelegate defines a SDK message for performing an undelegation from a + delegate and a validator. + cosmos.staking.v1beta1.MsgUndelegateResponse: + type: object + properties: + completion_time: type: string - title: the recipient address on the destination chain - timeout_height: - description: |- - Timeout height relative to the current block height. - The timeout is disabled when set to 0. + format: date-time + amount: type: object properties: - revision_number: + denom: type: string - format: uint64 - title: the revision that the client is currently on - revision_height: + amount: type: string - format: uint64 - title: the height within the given revision - title: >- - Height is a monotonically increasing data type - - that can be compared against another Height for the purposes of - updating and - - freezing clients - timeout_timestamp: - type: string - format: uint64 description: |- - Timeout timestamp in absolute nanoseconds since unix epoch. - The timeout is disabled when set to 0. - memo: - type: string - title: optional memo - title: >- - MsgTransfer defines a msg to transfer fungible tokens (i.e Coins) between - - ICS20 enabled chains. See ICS Spec here: + Coin defines a token with a denomination and an amount. - https://github.com/cosmos/ibc/tree/master/spec/app/ics-020-fungible-token-transfer#data-structures - ibc.applications.transfer.v1.MsgTransferResponse: - type: object - properties: - sequence: - type: string - format: uint64 - title: sequence number of the transfer packet sent - description: MsgTransferResponse defines the Msg/Transfer response type. - ibc.applications.transfer.v1.MsgUpdateParams: + NOTE: The amount field is an Int which implements the custom method + signatures required by gogoproto. + title: amount returns the amount of undelegated coins + description: MsgUndelegateResponse defines the Msg/Undelegate response type. + cosmos.staking.v1beta1.MsgUpdateParams: type: object properties: - signer: + authority: type: string - title: signer address + description: >- + authority is the address that controls the module (defaults to x/gov + unless overwritten). params: description: |- - params defines the transfer parameters to update. + params defines the x/staking parameters to update. NOTE: All parameters must be supplied. type: object properties: - send_enabled: - type: boolean - description: >- - send_enabled enables or disables all cross-chain token transfers - from this - - chain. - receive_enabled: - type: boolean - description: >- - receive_enabled enables or disables all cross-chain token - transfers to this - - chain. - description: MsgUpdateParams is the Msg/UpdateParams request type. - ibc.applications.transfer.v1.MsgUpdateParamsResponse: - type: object - description: |- - MsgUpdateParamsResponse defines the response structure for executing a - MsgUpdateParams message. - ibc.applications.transfer.v1.Params: - type: object - properties: - send_enabled: - type: boolean - description: >- - send_enabled enables or disables all cross-chain token transfers from - this - - chain. - receive_enabled: - type: boolean - description: >- - receive_enabled enables or disables all cross-chain token transfers to - this - - chain. - description: >- - Params defines the set of IBC transfer parameters. - - NOTE: To prevent a single token from being transferred, set the - - TransfersEnabled parameter to true and then set the bank module's - SendEnabled - - parameter for the denomination to false. - ibc.core.client.v1.Height: - type: object - properties: - revision_number: - type: string - format: uint64 - title: the revision that the client is currently on - revision_height: - type: string - format: uint64 - title: the height within the given revision - description: |- - Normally the RevisionHeight is incremented at each height while keeping - RevisionNumber the same. However some consensus algorithms may choose to - reset the height in certain conditions e.g. hard forks, state-machine - breaking changes In these cases, the RevisionNumber is incremented so that - height continues to be monitonically increasing even as the RevisionHeight - gets reset - title: >- - Height is a monotonically increasing data type - - that can be compared against another Height for the purposes of updating - and - - freezing clients - ibc.core.channel.v1.Channel: - type: object - properties: - state: - title: current state of the channel end - type: string - enum: - - STATE_UNINITIALIZED_UNSPECIFIED - - STATE_INIT - - STATE_TRYOPEN - - STATE_OPEN - - STATE_CLOSED - default: STATE_UNINITIALIZED_UNSPECIFIED - description: |- - State defines if a channel is in one of the following states: - CLOSED, INIT, TRYOPEN, OPEN or UNINITIALIZED. - - - STATE_UNINITIALIZED_UNSPECIFIED: Default State - - STATE_INIT: A channel has just started the opening handshake. - - STATE_TRYOPEN: A channel has acknowledged the handshake step on the counterparty chain. - - STATE_OPEN: A channel has completed the handshake. Open channels are - ready to send and receive packets. - - STATE_CLOSED: A channel has been closed and can no longer be used to send or receive - packets. - ordering: - title: whether the channel is ordered or unordered - type: string - enum: - - ORDER_NONE_UNSPECIFIED - - ORDER_UNORDERED - - ORDER_ORDERED - default: ORDER_NONE_UNSPECIFIED - description: |- - - ORDER_NONE_UNSPECIFIED: zero-value for channel ordering - - ORDER_UNORDERED: packets can be delivered in any order, which may differ from the order in - which they were sent. - - ORDER_ORDERED: packets are delivered exactly in the order which they were sent - counterparty: - title: counterparty channel end - type: object - properties: - port_id: + unbonding_time: type: string + description: unbonding_time is the time duration of unbonding. + max_validators: + type: integer + format: int64 + description: max_validators is the maximum number of validators. + max_entries: + type: integer + format: int64 description: >- - port on the counterparty chain which owns the other end of the - channel. - channel_id: + max_entries is the max entries for either unbonding delegation or + redelegation (per pair/trio). + historical_entries: + type: integer + format: int64 + description: historical_entries is the number of historical entries to persist. + bond_denom: type: string - title: channel end on the counterparty chain - connection_hops: - type: array - items: - type: string - title: |- - list of connection identifiers, in order, along which packets sent on - this channel will travel - version: - type: string - title: opaque channel version, which is agreed upon during the handshake + description: bond_denom defines the bondable coin denomination. + min_commission_rate: + type: string + title: >- + min_commission_rate is the chain-wide minimum commission rate that + a validator can charge their delegators + description: |- + MsgUpdateParams is the Msg/UpdateParams request type. + + Since: cosmos-sdk 0.47 + cosmos.staking.v1beta1.MsgUpdateParamsResponse: + type: object description: |- - Channel defines pipeline for exactly-once packet delivery between specific - modules on separate blockchains, which has at least one end capable of - sending packets and one end capable of receiving packets. - ibc.core.channel.v1.Counterparty: + MsgUpdateParamsResponse defines the response structure for executing a + MsgUpdateParams message. + + Since: cosmos-sdk 0.47 + cosmos.staking.v1beta1.Params: type: object properties: - port_id: + unbonding_time: type: string + description: unbonding_time is the time duration of unbonding. + max_validators: + type: integer + format: int64 + description: max_validators is the maximum number of validators. + max_entries: + type: integer + format: int64 description: >- - port on the counterparty chain which owns the other end of the - channel. - channel_id: + max_entries is the max entries for either unbonding delegation or + redelegation (per pair/trio). + historical_entries: + type: integer + format: int64 + description: historical_entries is the number of historical entries to persist. + bond_denom: type: string - title: channel end on the counterparty chain - title: Counterparty defines a channel end counterparty - ibc.core.channel.v1.MsgAcknowledgement: + description: bond_denom defines the bondable coin denomination. + min_commission_rate: + type: string + title: >- + min_commission_rate is the chain-wide minimum commission rate that a + validator can charge their delegators + description: Params defines the parameters for the x/staking module. + ibc.applications.fee.v1.Fee: type: object properties: - packet: + recv_fee: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + description: |- + Coin defines a token with a denomination and an amount. + + NOTE: The amount field is an Int which implements the custom method + signatures required by gogoproto. + title: the packet receive fee + ack_fee: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + description: |- + Coin defines a token with a denomination and an amount. + + NOTE: The amount field is an Int which implements the custom method + signatures required by gogoproto. + title: the packet acknowledgement fee + timeout_fee: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + description: |- + Coin defines a token with a denomination and an amount. + + NOTE: The amount field is an Int which implements the custom method + signatures required by gogoproto. + title: the packet timeout fee + title: Fee defines the ICS29 receive, acknowledgement and timeout fees + ibc.applications.fee.v1.MsgPayPacketFee: + type: object + properties: + fee: + title: >- + fee encapsulates the recv, ack and timeout fees associated with an IBC + packet type: object properties: - sequence: - type: string - format: uint64 - description: >- - number corresponds to the order of sends and receives, where a - Packet + recv_fee: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + description: >- + Coin defines a token with a denomination and an amount. - with an earlier sequence number must be sent and received before a - Packet - with a later sequence number. - source_port: - type: string - description: identifies the port on the sending chain. - source_channel: - type: string - description: identifies the channel end on the sending chain. - destination_port: - type: string - description: identifies the port on the receiving chain. - destination_channel: - type: string - description: identifies the channel end on the receiving chain. - data: - type: string - format: byte - title: actual opaque bytes transferred directly to the application module - timeout_height: - title: block height after which the packet times out - type: object - properties: - revision_number: - type: string - format: uint64 - title: the revision that the client is currently on - revision_height: - type: string - format: uint64 - title: the height within the given revision - description: >- - Normally the RevisionHeight is incremented at each height while - keeping + NOTE: The amount field is an Int which implements the custom + method - RevisionNumber the same. However some consensus algorithms may - choose to + signatures required by gogoproto. + title: the packet receive fee + ack_fee: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + description: >- + Coin defines a token with a denomination and an amount. - reset the height in certain conditions e.g. hard forks, - state-machine - breaking changes In these cases, the RevisionNumber is incremented - so that + NOTE: The amount field is an Int which implements the custom + method - height continues to be monitonically increasing even as the - RevisionHeight + signatures required by gogoproto. + title: the packet acknowledgement fee + timeout_fee: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + description: >- + Coin defines a token with a denomination and an amount. - gets reset - timeout_timestamp: - type: string - format: uint64 - title: block timestamp (in nanoseconds) after which the packet times out - title: >- - Packet defines a type that carries data across different chains - through IBC - acknowledgement: + + NOTE: The amount field is an Int which implements the custom + method + + signatures required by gogoproto. + title: the packet timeout fee + source_port_id: type: string - format: byte - proof_acked: + title: the source port unique identifier + source_channel_id: type: string - format: byte - proof_height: + title: the source channel unique identifer + signer: + type: string + title: account address to refund fee if necessary + relayers: + type: array + items: + type: string + title: optional list of relayers permitted to the receive packet fees + title: >- + MsgPayPacketFee defines the request type for the PayPacketFee rpc + + This Msg can be used to pay for a packet at the next sequence send & + should be combined with the Msg that will be + + paid for + ibc.applications.fee.v1.MsgPayPacketFeeAsync: + type: object + properties: + packet_id: + title: >- + unique packet identifier comprised of the channel ID, port ID and + sequence type: object properties: - revision_number: + port_id: type: string - format: uint64 - title: the revision that the client is currently on - revision_height: + title: channel port identifier + channel_id: + type: string + title: channel unique identifier + sequence: type: string format: uint64 - title: the height within the given revision - description: >- - Normally the RevisionHeight is incremented at each height while - keeping + title: packet sequence + packet_fee: + title: the packet fee associated with a particular IBC packet + type: object + properties: + fee: + title: >- + fee encapsulates the recv, ack and timeout fees associated with an + IBC packet + type: object + properties: + recv_fee: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + description: >- + Coin defines a token with a denomination and an amount. - RevisionNumber the same. However some consensus algorithms may choose - to - reset the height in certain conditions e.g. hard forks, state-machine + NOTE: The amount field is an Int which implements the custom + method - breaking changes In these cases, the RevisionNumber is incremented so - that + signatures required by gogoproto. + title: the packet receive fee + ack_fee: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + description: >- + Coin defines a token with a denomination and an amount. - height continues to be monitonically increasing even as the - RevisionHeight - gets reset - title: >- - Height is a monotonically increasing data type + NOTE: The amount field is an Int which implements the custom + method - that can be compared against another Height for the purposes of - updating and + signatures required by gogoproto. + title: the packet acknowledgement fee + timeout_fee: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + description: >- + Coin defines a token with a denomination and an amount. - freezing clients - signer: - type: string - title: MsgAcknowledgement receives incoming IBC acknowledgement - ibc.core.channel.v1.MsgAcknowledgementResponse: + + NOTE: The amount field is an Int which implements the custom + method + + signatures required by gogoproto. + title: the packet timeout fee + refund_address: + type: string + title: the refund address for unspent fees + relayers: + type: array + items: + type: string + title: optional list of relayers permitted to receive fees + title: >- + MsgPayPacketFeeAsync defines the request type for the PayPacketFeeAsync + rpc + + This Msg can be used to pay for a packet at a specified sequence (instead + of the next sequence send) + ibc.applications.fee.v1.MsgPayPacketFeeAsyncResponse: + type: object + title: >- + MsgPayPacketFeeAsyncResponse defines the response type for the + PayPacketFeeAsync rpc + ibc.applications.fee.v1.MsgPayPacketFeeResponse: + type: object + title: MsgPayPacketFeeResponse defines the response type for the PayPacketFee rpc + ibc.applications.fee.v1.MsgRegisterCounterpartyPayee: type: object properties: - result: + port_id: type: string - enum: - - RESPONSE_RESULT_TYPE_UNSPECIFIED - - RESPONSE_RESULT_TYPE_NOOP - - RESPONSE_RESULT_TYPE_SUCCESS - default: RESPONSE_RESULT_TYPE_UNSPECIFIED - description: |- - - RESPONSE_RESULT_TYPE_UNSPECIFIED: Default zero value enumeration - - RESPONSE_RESULT_TYPE_NOOP: The message did not call the IBC application callbacks (because, for example, the packet had already been relayed) - - RESPONSE_RESULT_TYPE_SUCCESS: The message was executed successfully - title: >- - ResponseResultType defines the possible outcomes of the execution of a - message - description: MsgAcknowledgementResponse defines the Msg/Acknowledgement response type. - ibc.core.channel.v1.MsgChannelCloseConfirm: + title: unique port identifier + channel_id: + type: string + title: unique channel identifier + relayer: + type: string + title: the relayer address + counterparty_payee: + type: string + title: the counterparty payee address + title: >- + MsgRegisterCounterpartyPayee defines the request type for the + RegisterCounterpartyPayee rpc + ibc.applications.fee.v1.MsgRegisterCounterpartyPayeeResponse: + type: object + title: >- + MsgRegisterCounterpartyPayeeResponse defines the response type for the + RegisterCounterpartyPayee rpc + ibc.applications.fee.v1.MsgRegisterPayee: type: object properties: port_id: type: string + title: unique port identifier channel_id: type: string - proof_init: + title: unique channel identifier + relayer: type: string - format: byte - proof_height: + title: the relayer address + payee: + type: string + title: the payee address + title: MsgRegisterPayee defines the request type for the RegisterPayee rpc + ibc.applications.fee.v1.MsgRegisterPayeeResponse: + type: object + title: >- + MsgRegisterPayeeResponse defines the response type for the RegisterPayee + rpc + ibc.applications.fee.v1.PacketFee: + type: object + properties: + fee: + title: >- + fee encapsulates the recv, ack and timeout fees associated with an IBC + packet type: object properties: - revision_number: - type: string - format: uint64 - title: the revision that the client is currently on - revision_height: - type: string - format: uint64 - title: the height within the given revision - description: >- - Normally the RevisionHeight is incremented at each height while - keeping + recv_fee: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + description: >- + Coin defines a token with a denomination and an amount. - RevisionNumber the same. However some consensus algorithms may choose - to - reset the height in certain conditions e.g. hard forks, state-machine + NOTE: The amount field is an Int which implements the custom + method - breaking changes In these cases, the RevisionNumber is incremented so - that + signatures required by gogoproto. + title: the packet receive fee + ack_fee: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + description: >- + Coin defines a token with a denomination and an amount. - height continues to be monitonically increasing even as the - RevisionHeight - gets reset - title: >- - Height is a monotonically increasing data type + NOTE: The amount field is an Int which implements the custom + method - that can be compared against another Height for the purposes of - updating and + signatures required by gogoproto. + title: the packet acknowledgement fee + timeout_fee: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + description: >- + Coin defines a token with a denomination and an amount. - freezing clients - signer: - type: string - description: |- - MsgChannelCloseConfirm defines a msg sent by a Relayer to Chain B - to acknowledge the change of channel state to CLOSED on Chain A. - ibc.core.channel.v1.MsgChannelCloseConfirmResponse: - type: object - description: >- - MsgChannelCloseConfirmResponse defines the Msg/ChannelCloseConfirm - response - type. - ibc.core.channel.v1.MsgChannelCloseInit: + NOTE: The amount field is an Int which implements the custom + method + + signatures required by gogoproto. + title: the packet timeout fee + refund_address: + type: string + title: the refund address for unspent fees + relayers: + type: array + items: + type: string + title: optional list of relayers permitted to receive fees + title: >- + PacketFee contains ICS29 relayer fees, refund address and optional list of + permitted relayers + ibc.core.channel.v1.PacketId: type: object properties: port_id: type: string + title: channel port identifier channel_id: type: string - signer: + title: channel unique identifier + sequence: type: string - description: |- - MsgChannelCloseInit defines a msg sent by a Relayer to Chain A - to close a channel with Chain B. - ibc.core.channel.v1.MsgChannelCloseInitResponse: - type: object - description: >- - MsgChannelCloseInitResponse defines the Msg/ChannelCloseInit response - type. - ibc.core.channel.v1.MsgChannelOpenAck: + format: uint64 + title: packet sequence + title: |- + PacketId is an identifer for a unique Packet + Source chains refer to packets by source port/channel + Destination chains refer to packets by destination port/channel + ibc.applications.interchain_accounts.controller.v1.MsgRegisterInterchainAccount: type: object properties: - port_id: + owner: + type: string + connection_id: + type: string + version: type: string + title: MsgRegisterInterchainAccount defines the payload for Msg/RegisterAccount + ibc.applications.interchain_accounts.controller.v1.MsgRegisterInterchainAccountResponse: + type: object + properties: channel_id: type: string - counterparty_channel_id: + port_id: type: string - counterparty_version: + title: >- + MsgRegisterInterchainAccountResponse defines the response for + Msg/RegisterAccount + ibc.applications.interchain_accounts.controller.v1.MsgSendTx: + type: object + properties: + owner: type: string - proof_try: + connection_id: type: string - format: byte - proof_height: + packet_data: type: object properties: - revision_number: + type: type: string - format: uint64 - title: the revision that the client is currently on - revision_height: + enum: + - TYPE_UNSPECIFIED + - TYPE_EXECUTE_TX + default: TYPE_UNSPECIFIED + description: |- + - TYPE_UNSPECIFIED: Default zero value enumeration + - TYPE_EXECUTE_TX: Execute a transaction on an interchain accounts host chain + title: >- + Type defines a classification of message issued from a controller + chain to its associated interchain accounts + + host + data: + type: string + format: byte + memo: type: string - format: uint64 - title: the height within the given revision description: >- - Normally the RevisionHeight is incremented at each height while - keeping - - RevisionNumber the same. However some consensus algorithms may choose - to - - reset the height in certain conditions e.g. hard forks, state-machine + InterchainAccountPacketData is comprised of a raw transaction, type of + transaction and optional memo field. + relative_timeout: + type: string + format: uint64 + description: >- + Relative timeout timestamp provided will be added to the current block + time during transaction execution. - breaking changes In these cases, the RevisionNumber is incremented so - that + The timeout timestamp must be non-zero. + title: MsgSendTx defines the payload for Msg/SendTx + ibc.applications.interchain_accounts.controller.v1.MsgSendTxResponse: + type: object + properties: + sequence: + type: string + format: uint64 + title: MsgSendTxResponse defines the response for MsgSendTx + ibc.applications.interchain_accounts.controller.v1.MsgUpdateParams: + type: object + properties: + signer: + type: string + title: signer address + params: + description: >- + params defines the 27-interchain-accounts/controller parameters to + update. - height continues to be monitonically increasing even as the - RevisionHeight - gets reset + NOTE: All parameters must be supplied. + type: object + properties: + controller_enabled: + type: boolean + description: controller_enabled enables or disables the controller submodule. + title: MsgUpdateParams defines the payload for Msg/UpdateParams + ibc.applications.interchain_accounts.controller.v1.MsgUpdateParamsResponse: + type: object + title: MsgUpdateParamsResponse defines the response for Msg/UpdateParams + ibc.applications.interchain_accounts.controller.v1.Params: + type: object + properties: + controller_enabled: + type: boolean + description: controller_enabled enables or disables the controller submodule. + description: |- + Params defines the set of on-chain interchain accounts parameters. + The following parameters may be used to disable the controller submodule. + ibc.applications.interchain_accounts.v1.InterchainAccountPacketData: + type: object + properties: + type: + type: string + enum: + - TYPE_UNSPECIFIED + - TYPE_EXECUTE_TX + default: TYPE_UNSPECIFIED + description: |- + - TYPE_UNSPECIFIED: Default zero value enumeration + - TYPE_EXECUTE_TX: Execute a transaction on an interchain accounts host chain title: >- - Height is a monotonically increasing data type + Type defines a classification of message issued from a controller + chain to its associated interchain accounts - that can be compared against another Height for the purposes of - updating and + host + data: + type: string + format: byte + memo: + type: string + description: >- + InterchainAccountPacketData is comprised of a raw transaction, type of + transaction and optional memo field. + ibc.applications.interchain_accounts.v1.Type: + type: string + enum: + - TYPE_UNSPECIFIED + - TYPE_EXECUTE_TX + default: TYPE_UNSPECIFIED + description: |- + - TYPE_UNSPECIFIED: Default zero value enumeration + - TYPE_EXECUTE_TX: Execute a transaction on an interchain accounts host chain + title: >- + Type defines a classification of message issued from a controller chain to + its associated interchain accounts - freezing clients + host + ibc.applications.interchain_accounts.host.v1.MsgUpdateParams: + type: object + properties: signer: type: string - description: >- - MsgChannelOpenAck defines a msg sent by a Relayer to Chain A to - acknowledge + title: signer address + params: + description: |- + params defines the 27-interchain-accounts/host parameters to update. - the change of channel state to TRYOPEN on Chain B. - ibc.core.channel.v1.MsgChannelOpenAckResponse: + NOTE: All parameters must be supplied. + type: object + properties: + host_enabled: + type: boolean + description: host_enabled enables or disables the host submodule. + allow_messages: + type: array + items: + type: string + description: >- + allow_messages defines a list of sdk message typeURLs allowed to + be executed on a host chain. + title: MsgUpdateParams defines the payload for Msg/UpdateParams + ibc.applications.interchain_accounts.host.v1.MsgUpdateParamsResponse: type: object - description: MsgChannelOpenAckResponse defines the Msg/ChannelOpenAck response type. - ibc.core.channel.v1.MsgChannelOpenConfirm: + title: MsgUpdateParamsResponse defines the response for Msg/UpdateParams + ibc.applications.interchain_accounts.host.v1.Params: type: object properties: - port_id: + host_enabled: + type: boolean + description: host_enabled enables or disables the host submodule. + allow_messages: + type: array + items: + type: string + description: >- + allow_messages defines a list of sdk message typeURLs allowed to be + executed on a host chain. + description: |- + Params defines the set of on-chain interchain accounts parameters. + The following parameters may be used to disable the host submodule. + ibc.applications.transfer.v1.MsgTransfer: + type: object + properties: + source_port: type: string - channel_id: + title: the port on which the packet will be sent + source_channel: type: string - proof_ack: + title: the channel by which the packet will be sent + token: + title: the tokens to be transferred + type: object + properties: + denom: + type: string + amount: + type: string + description: |- + Coin defines a token with a denomination and an amount. + + NOTE: The amount field is an Int which implements the custom method + signatures required by gogoproto. + sender: type: string - format: byte - proof_height: + title: the sender address + receiver: + type: string + title: the recipient address on the destination chain + timeout_height: + description: |- + Timeout height relative to the current block height. + The timeout is disabled when set to 0. type: object properties: revision_number: @@ -26403,22 +23698,6 @@ definitions: type: string format: uint64 title: the height within the given revision - description: >- - Normally the RevisionHeight is incremented at each height while - keeping - - RevisionNumber the same. However some consensus algorithms may choose - to - - reset the height in certain conditions e.g. hard forks, state-machine - - breaking changes In these cases, the RevisionNumber is incremented so - that - - height continues to be monitonically increasing even as the - RevisionHeight - - gets reset title: >- Height is a monotonically increasing data type @@ -26426,240 +23705,189 @@ definitions: updating and freezing clients - signer: + timeout_timestamp: type: string - description: |- - MsgChannelOpenConfirm defines a msg sent by a Relayer to Chain B to - acknowledge the change of channel state to OPEN on Chain A. - ibc.core.channel.v1.MsgChannelOpenConfirmResponse: + format: uint64 + description: |- + Timeout timestamp in absolute nanoseconds since unix epoch. + The timeout is disabled when set to 0. + memo: + type: string + title: optional memo + title: >- + MsgTransfer defines a msg to transfer fungible tokens (i.e Coins) between + + ICS20 enabled chains. See ICS Spec here: + + https://github.com/cosmos/ibc/tree/master/spec/app/ics-020-fungible-token-transfer#data-structures + ibc.applications.transfer.v1.MsgTransferResponse: type: object - description: |- - MsgChannelOpenConfirmResponse defines the Msg/ChannelOpenConfirm response - type. - ibc.core.channel.v1.MsgChannelOpenInit: + properties: + sequence: + type: string + format: uint64 + title: sequence number of the transfer packet sent + description: MsgTransferResponse defines the Msg/Transfer response type. + ibc.applications.transfer.v1.MsgUpdateParams: type: object properties: - port_id: + signer: type: string - channel: + title: signer address + params: + description: |- + params defines the transfer parameters to update. + + NOTE: All parameters must be supplied. type: object properties: - state: - title: current state of the channel end - type: string - enum: - - STATE_UNINITIALIZED_UNSPECIFIED - - STATE_INIT - - STATE_TRYOPEN - - STATE_OPEN - - STATE_CLOSED - default: STATE_UNINITIALIZED_UNSPECIFIED - description: |- - State defines if a channel is in one of the following states: - CLOSED, INIT, TRYOPEN, OPEN or UNINITIALIZED. + send_enabled: + type: boolean + description: >- + send_enabled enables or disables all cross-chain token transfers + from this - - STATE_UNINITIALIZED_UNSPECIFIED: Default State - - STATE_INIT: A channel has just started the opening handshake. - - STATE_TRYOPEN: A channel has acknowledged the handshake step on the counterparty chain. - - STATE_OPEN: A channel has completed the handshake. Open channels are - ready to send and receive packets. - - STATE_CLOSED: A channel has been closed and can no longer be used to send or receive - packets. - ordering: - title: whether the channel is ordered or unordered - type: string - enum: - - ORDER_NONE_UNSPECIFIED - - ORDER_UNORDERED - - ORDER_ORDERED - default: ORDER_NONE_UNSPECIFIED - description: |- - - ORDER_NONE_UNSPECIFIED: zero-value for channel ordering - - ORDER_UNORDERED: packets can be delivered in any order, which may differ from the order in - which they were sent. - - ORDER_ORDERED: packets are delivered exactly in the order which they were sent - counterparty: - title: counterparty channel end - type: object - properties: - port_id: - type: string - description: >- - port on the counterparty chain which owns the other end of the - channel. - channel_id: - type: string - title: channel end on the counterparty chain - connection_hops: - type: array - items: - type: string - title: >- - list of connection identifiers, in order, along which packets sent - on + chain. + receive_enabled: + type: boolean + description: >- + receive_enabled enables or disables all cross-chain token + transfers to this - this channel will travel - version: - type: string - title: opaque channel version, which is agreed upon during the handshake + chain. + description: MsgUpdateParams is the Msg/UpdateParams request type. + ibc.applications.transfer.v1.MsgUpdateParamsResponse: + type: object + description: |- + MsgUpdateParamsResponse defines the response structure for executing a + MsgUpdateParams message. + ibc.applications.transfer.v1.Params: + type: object + properties: + send_enabled: + type: boolean description: >- - Channel defines pipeline for exactly-once packet delivery between - specific + send_enabled enables or disables all cross-chain token transfers from + this - modules on separate blockchains, which has at least one end capable of + chain. + receive_enabled: + type: boolean + description: >- + receive_enabled enables or disables all cross-chain token transfers to + this - sending packets and one end capable of receiving packets. - signer: - type: string + chain. description: >- - MsgChannelOpenInit defines an sdk.Msg to initialize a channel handshake. - It + Params defines the set of IBC transfer parameters. - is called by a relayer on Chain A. - ibc.core.channel.v1.MsgChannelOpenInitResponse: + NOTE: To prevent a single token from being transferred, set the + + TransfersEnabled parameter to true and then set the bank module's + SendEnabled + + parameter for the denomination to false. + ibc.core.client.v1.Height: type: object properties: - channel_id: + revision_number: type: string - version: + format: uint64 + title: the revision that the client is currently on + revision_height: type: string - description: MsgChannelOpenInitResponse defines the Msg/ChannelOpenInit response type. - ibc.core.channel.v1.MsgChannelOpenTry: + format: uint64 + title: the height within the given revision + description: |- + Normally the RevisionHeight is incremented at each height while keeping + RevisionNumber the same. However some consensus algorithms may choose to + reset the height in certain conditions e.g. hard forks, state-machine + breaking changes In these cases, the RevisionNumber is incremented so that + height continues to be monitonically increasing even as the RevisionHeight + gets reset + title: >- + Height is a monotonically increasing data type + + that can be compared against another Height for the purposes of updating + and + + freezing clients + ibc.core.channel.v1.Channel: type: object properties: - port_id: - type: string - previous_channel_id: + state: + title: current state of the channel end type: string - description: >- - Deprecated: this field is unused. Crossing hello's are no longer - supported in core IBC. - channel: - type: object - properties: - state: - title: current state of the channel end - type: string - enum: - - STATE_UNINITIALIZED_UNSPECIFIED - - STATE_INIT - - STATE_TRYOPEN - - STATE_OPEN - - STATE_CLOSED - default: STATE_UNINITIALIZED_UNSPECIFIED - description: |- - State defines if a channel is in one of the following states: - CLOSED, INIT, TRYOPEN, OPEN or UNINITIALIZED. - - - STATE_UNINITIALIZED_UNSPECIFIED: Default State - - STATE_INIT: A channel has just started the opening handshake. - - STATE_TRYOPEN: A channel has acknowledged the handshake step on the counterparty chain. - - STATE_OPEN: A channel has completed the handshake. Open channels are - ready to send and receive packets. - - STATE_CLOSED: A channel has been closed and can no longer be used to send or receive - packets. - ordering: - title: whether the channel is ordered or unordered - type: string - enum: - - ORDER_NONE_UNSPECIFIED - - ORDER_UNORDERED - - ORDER_ORDERED - default: ORDER_NONE_UNSPECIFIED - description: |- - - ORDER_NONE_UNSPECIFIED: zero-value for channel ordering - - ORDER_UNORDERED: packets can be delivered in any order, which may differ from the order in - which they were sent. - - ORDER_ORDERED: packets are delivered exactly in the order which they were sent - counterparty: - title: counterparty channel end - type: object - properties: - port_id: - type: string - description: >- - port on the counterparty chain which owns the other end of the - channel. - channel_id: - type: string - title: channel end on the counterparty chain - connection_hops: - type: array - items: - type: string - title: >- - list of connection identifiers, in order, along which packets sent - on - - this channel will travel - version: - type: string - title: opaque channel version, which is agreed upon during the handshake - description: >- - Channel defines pipeline for exactly-once packet delivery between - specific - - modules on separate blockchains, which has at least one end capable of + enum: + - STATE_UNINITIALIZED_UNSPECIFIED + - STATE_INIT + - STATE_TRYOPEN + - STATE_OPEN + - STATE_CLOSED + default: STATE_UNINITIALIZED_UNSPECIFIED + description: |- + State defines if a channel is in one of the following states: + CLOSED, INIT, TRYOPEN, OPEN or UNINITIALIZED. - sending packets and one end capable of receiving packets. - counterparty_version: - type: string - proof_init: + - STATE_UNINITIALIZED_UNSPECIFIED: Default State + - STATE_INIT: A channel has just started the opening handshake. + - STATE_TRYOPEN: A channel has acknowledged the handshake step on the counterparty chain. + - STATE_OPEN: A channel has completed the handshake. Open channels are + ready to send and receive packets. + - STATE_CLOSED: A channel has been closed and can no longer be used to send or receive + packets. + ordering: + title: whether the channel is ordered or unordered type: string - format: byte - proof_height: + enum: + - ORDER_NONE_UNSPECIFIED + - ORDER_UNORDERED + - ORDER_ORDERED + default: ORDER_NONE_UNSPECIFIED + description: |- + - ORDER_NONE_UNSPECIFIED: zero-value for channel ordering + - ORDER_UNORDERED: packets can be delivered in any order, which may differ from the order in + which they were sent. + - ORDER_ORDERED: packets are delivered exactly in the order which they were sent + counterparty: + title: counterparty channel end type: object properties: - revision_number: + port_id: type: string - format: uint64 - title: the revision that the client is currently on - revision_height: + description: >- + port on the counterparty chain which owns the other end of the + channel. + channel_id: type: string - format: uint64 - title: the height within the given revision - description: >- - Normally the RevisionHeight is incremented at each height while - keeping - - RevisionNumber the same. However some consensus algorithms may choose - to - - reset the height in certain conditions e.g. hard forks, state-machine - - breaking changes In these cases, the RevisionNumber is incremented so - that - - height continues to be monitonically increasing even as the - RevisionHeight - - gets reset - title: >- - Height is a monotonically increasing data type - - that can be compared against another Height for the purposes of - updating and - - freezing clients - signer: + title: channel end on the counterparty chain + connection_hops: + type: array + items: + type: string + title: |- + list of connection identifiers, in order, along which packets sent on + this channel will travel + version: type: string - description: >- - MsgChannelOpenInit defines a msg sent by a Relayer to try to open a - channel - - on Chain B. The version field within the Channel field has been - deprecated. Its - - value will be ignored by core IBC. - ibc.core.channel.v1.MsgChannelOpenTryResponse: + title: opaque channel version, which is agreed upon during the handshake + description: |- + Channel defines pipeline for exactly-once packet delivery between specific + modules on separate blockchains, which has at least one end capable of + sending packets and one end capable of receiving packets. + ibc.core.channel.v1.Counterparty: type: object properties: - version: + port_id: type: string + description: >- + port on the counterparty chain which owns the other end of the + channel. channel_id: type: string - description: MsgChannelOpenTryResponse defines the Msg/ChannelOpenTry response type. - ibc.core.channel.v1.MsgRecvPacket: + title: channel end on the counterparty chain + title: Counterparty defines a channel end counterparty + ibc.core.channel.v1.MsgAcknowledgement: type: object properties: packet: @@ -26728,7 +23956,10 @@ definitions: title: >- Packet defines a type that carries data across different chains through IBC - proof_commitment: + acknowledgement: + type: string + format: byte + proof_acked: type: string format: byte proof_height: @@ -26767,8 +23998,8 @@ definitions: freezing clients signer: type: string - title: MsgRecvPacket receives incoming IBC packet - ibc.core.channel.v1.MsgRecvPacketResponse: + title: MsgAcknowledgement receives incoming IBC acknowledgement + ibc.core.channel.v1.MsgAcknowledgementResponse: type: object properties: result: @@ -26785,77 +24016,15 @@ definitions: title: >- ResponseResultType defines the possible outcomes of the execution of a message - description: MsgRecvPacketResponse defines the Msg/RecvPacket response type. - ibc.core.channel.v1.MsgTimeout: + description: MsgAcknowledgementResponse defines the Msg/Acknowledgement response type. + ibc.core.channel.v1.MsgChannelCloseConfirm: type: object properties: - packet: - type: object - properties: - sequence: - type: string - format: uint64 - description: >- - number corresponds to the order of sends and receives, where a - Packet - - with an earlier sequence number must be sent and received before a - Packet - - with a later sequence number. - source_port: - type: string - description: identifies the port on the sending chain. - source_channel: - type: string - description: identifies the channel end on the sending chain. - destination_port: - type: string - description: identifies the port on the receiving chain. - destination_channel: - type: string - description: identifies the channel end on the receiving chain. - data: - type: string - format: byte - title: actual opaque bytes transferred directly to the application module - timeout_height: - title: block height after which the packet times out - type: object - properties: - revision_number: - type: string - format: uint64 - title: the revision that the client is currently on - revision_height: - type: string - format: uint64 - title: the height within the given revision - description: >- - Normally the RevisionHeight is incremented at each height while - keeping - - RevisionNumber the same. However some consensus algorithms may - choose to - - reset the height in certain conditions e.g. hard forks, - state-machine - - breaking changes In these cases, the RevisionNumber is incremented - so that - - height continues to be monitonically increasing even as the - RevisionHeight - - gets reset - timeout_timestamp: - type: string - format: uint64 - title: block timestamp (in nanoseconds) after which the packet times out - title: >- - Packet defines a type that carries data across different chains - through IBC - proof_unreceived: + port_id: + type: string + channel_id: + type: string + proof_init: type: string format: byte proof_height: @@ -26892,85 +24061,101 @@ definitions: updating and freezing clients - next_sequence_recv: + signer: + type: string + description: |- + MsgChannelCloseConfirm defines a msg sent by a Relayer to Chain B + to acknowledge the change of channel state to CLOSED on Chain A. + ibc.core.channel.v1.MsgChannelCloseConfirmResponse: + type: object + description: >- + MsgChannelCloseConfirmResponse defines the Msg/ChannelCloseConfirm + response + + type. + ibc.core.channel.v1.MsgChannelCloseInit: + type: object + properties: + port_id: + type: string + channel_id: type: string - format: uint64 signer: type: string - title: MsgTimeout receives timed-out packet - ibc.core.channel.v1.MsgTimeoutOnClose: + description: |- + MsgChannelCloseInit defines a msg sent by a Relayer to Chain A + to close a channel with Chain B. + ibc.core.channel.v1.MsgChannelCloseInitResponse: + type: object + description: >- + MsgChannelCloseInitResponse defines the Msg/ChannelCloseInit response + type. + ibc.core.channel.v1.MsgChannelOpenAck: type: object properties: - packet: + port_id: + type: string + channel_id: + type: string + counterparty_channel_id: + type: string + counterparty_version: + type: string + proof_try: + type: string + format: byte + proof_height: type: object properties: - sequence: + revision_number: type: string format: uint64 - description: >- - number corresponds to the order of sends and receives, where a - Packet - - with an earlier sequence number must be sent and received before a - Packet - - with a later sequence number. - source_port: - type: string - description: identifies the port on the sending chain. - source_channel: - type: string - description: identifies the channel end on the sending chain. - destination_port: - type: string - description: identifies the port on the receiving chain. - destination_channel: - type: string - description: identifies the channel end on the receiving chain. - data: + title: the revision that the client is currently on + revision_height: type: string - format: byte - title: actual opaque bytes transferred directly to the application module - timeout_height: - title: block height after which the packet times out - type: object - properties: - revision_number: - type: string - format: uint64 - title: the revision that the client is currently on - revision_height: - type: string - format: uint64 - title: the height within the given revision - description: >- - Normally the RevisionHeight is incremented at each height while - keeping + format: uint64 + title: the height within the given revision + description: >- + Normally the RevisionHeight is incremented at each height while + keeping - RevisionNumber the same. However some consensus algorithms may - choose to + RevisionNumber the same. However some consensus algorithms may choose + to - reset the height in certain conditions e.g. hard forks, - state-machine + reset the height in certain conditions e.g. hard forks, state-machine - breaking changes In these cases, the RevisionNumber is incremented - so that + breaking changes In these cases, the RevisionNumber is incremented so + that - height continues to be monitonically increasing even as the - RevisionHeight + height continues to be monitonically increasing even as the + RevisionHeight - gets reset - timeout_timestamp: - type: string - format: uint64 - title: block timestamp (in nanoseconds) after which the packet times out + gets reset title: >- - Packet defines a type that carries data across different chains - through IBC - proof_unreceived: + Height is a monotonically increasing data type + + that can be compared against another Height for the purposes of + updating and + + freezing clients + signer: type: string - format: byte - proof_close: + description: >- + MsgChannelOpenAck defines a msg sent by a Relayer to Chain A to + acknowledge + + the change of channel state to TRYOPEN on Chain B. + ibc.core.channel.v1.MsgChannelOpenAckResponse: + type: object + description: MsgChannelOpenAckResponse defines the Msg/ChannelOpenAck response type. + ibc.core.channel.v1.MsgChannelOpenConfirm: + type: object + properties: + port_id: + type: string + channel_id: + type: string + proof_ack: type: string format: byte proof_height: @@ -27007,92 +24192,188 @@ definitions: updating and freezing clients - next_sequence_recv: - type: string - format: uint64 signer: type: string - description: MsgTimeoutOnClose timed-out packet upon counterparty channel closure. - ibc.core.channel.v1.MsgTimeoutOnCloseResponse: + description: |- + MsgChannelOpenConfirm defines a msg sent by a Relayer to Chain B to + acknowledge the change of channel state to OPEN on Chain A. + ibc.core.channel.v1.MsgChannelOpenConfirmResponse: + type: object + description: |- + MsgChannelOpenConfirmResponse defines the Msg/ChannelOpenConfirm response + type. + ibc.core.channel.v1.MsgChannelOpenInit: type: object properties: - result: + port_id: type: string - enum: - - RESPONSE_RESULT_TYPE_UNSPECIFIED - - RESPONSE_RESULT_TYPE_NOOP - - RESPONSE_RESULT_TYPE_SUCCESS - default: RESPONSE_RESULT_TYPE_UNSPECIFIED - description: |- - - RESPONSE_RESULT_TYPE_UNSPECIFIED: Default zero value enumeration - - RESPONSE_RESULT_TYPE_NOOP: The message did not call the IBC application callbacks (because, for example, the packet had already been relayed) - - RESPONSE_RESULT_TYPE_SUCCESS: The message was executed successfully - title: >- - ResponseResultType defines the possible outcomes of the execution of a - message - description: MsgTimeoutOnCloseResponse defines the Msg/TimeoutOnClose response type. - ibc.core.channel.v1.MsgTimeoutResponse: + channel: + type: object + properties: + state: + title: current state of the channel end + type: string + enum: + - STATE_UNINITIALIZED_UNSPECIFIED + - STATE_INIT + - STATE_TRYOPEN + - STATE_OPEN + - STATE_CLOSED + default: STATE_UNINITIALIZED_UNSPECIFIED + description: |- + State defines if a channel is in one of the following states: + CLOSED, INIT, TRYOPEN, OPEN or UNINITIALIZED. + + - STATE_UNINITIALIZED_UNSPECIFIED: Default State + - STATE_INIT: A channel has just started the opening handshake. + - STATE_TRYOPEN: A channel has acknowledged the handshake step on the counterparty chain. + - STATE_OPEN: A channel has completed the handshake. Open channels are + ready to send and receive packets. + - STATE_CLOSED: A channel has been closed and can no longer be used to send or receive + packets. + ordering: + title: whether the channel is ordered or unordered + type: string + enum: + - ORDER_NONE_UNSPECIFIED + - ORDER_UNORDERED + - ORDER_ORDERED + default: ORDER_NONE_UNSPECIFIED + description: |- + - ORDER_NONE_UNSPECIFIED: zero-value for channel ordering + - ORDER_UNORDERED: packets can be delivered in any order, which may differ from the order in + which they were sent. + - ORDER_ORDERED: packets are delivered exactly in the order which they were sent + counterparty: + title: counterparty channel end + type: object + properties: + port_id: + type: string + description: >- + port on the counterparty chain which owns the other end of the + channel. + channel_id: + type: string + title: channel end on the counterparty chain + connection_hops: + type: array + items: + type: string + title: >- + list of connection identifiers, in order, along which packets sent + on + + this channel will travel + version: + type: string + title: opaque channel version, which is agreed upon during the handshake + description: >- + Channel defines pipeline for exactly-once packet delivery between + specific + + modules on separate blockchains, which has at least one end capable of + + sending packets and one end capable of receiving packets. + signer: + type: string + description: >- + MsgChannelOpenInit defines an sdk.Msg to initialize a channel handshake. + It + + is called by a relayer on Chain A. + ibc.core.channel.v1.MsgChannelOpenInitResponse: type: object properties: - result: + channel_id: type: string - enum: - - RESPONSE_RESULT_TYPE_UNSPECIFIED - - RESPONSE_RESULT_TYPE_NOOP - - RESPONSE_RESULT_TYPE_SUCCESS - default: RESPONSE_RESULT_TYPE_UNSPECIFIED - description: |- - - RESPONSE_RESULT_TYPE_UNSPECIFIED: Default zero value enumeration - - RESPONSE_RESULT_TYPE_NOOP: The message did not call the IBC application callbacks (because, for example, the packet had already been relayed) - - RESPONSE_RESULT_TYPE_SUCCESS: The message was executed successfully - title: >- - ResponseResultType defines the possible outcomes of the execution of a - message - description: MsgTimeoutResponse defines the Msg/Timeout response type. - ibc.core.channel.v1.Order: - type: string - enum: - - ORDER_NONE_UNSPECIFIED - - ORDER_UNORDERED - - ORDER_ORDERED - default: ORDER_NONE_UNSPECIFIED - description: |- - - ORDER_NONE_UNSPECIFIED: zero-value for channel ordering - - ORDER_UNORDERED: packets can be delivered in any order, which may differ from the order in - which they were sent. - - ORDER_ORDERED: packets are delivered exactly in the order which they were sent - title: Order defines if a channel is ORDERED or UNORDERED - ibc.core.channel.v1.Packet: + version: + type: string + description: MsgChannelOpenInitResponse defines the Msg/ChannelOpenInit response type. + ibc.core.channel.v1.MsgChannelOpenTry: type: object properties: - sequence: + port_id: type: string - format: uint64 + previous_channel_id: + type: string + description: >- + Deprecated: this field is unused. Crossing hello's are no longer + supported in core IBC. + channel: + type: object + properties: + state: + title: current state of the channel end + type: string + enum: + - STATE_UNINITIALIZED_UNSPECIFIED + - STATE_INIT + - STATE_TRYOPEN + - STATE_OPEN + - STATE_CLOSED + default: STATE_UNINITIALIZED_UNSPECIFIED + description: |- + State defines if a channel is in one of the following states: + CLOSED, INIT, TRYOPEN, OPEN or UNINITIALIZED. + + - STATE_UNINITIALIZED_UNSPECIFIED: Default State + - STATE_INIT: A channel has just started the opening handshake. + - STATE_TRYOPEN: A channel has acknowledged the handshake step on the counterparty chain. + - STATE_OPEN: A channel has completed the handshake. Open channels are + ready to send and receive packets. + - STATE_CLOSED: A channel has been closed and can no longer be used to send or receive + packets. + ordering: + title: whether the channel is ordered or unordered + type: string + enum: + - ORDER_NONE_UNSPECIFIED + - ORDER_UNORDERED + - ORDER_ORDERED + default: ORDER_NONE_UNSPECIFIED + description: |- + - ORDER_NONE_UNSPECIFIED: zero-value for channel ordering + - ORDER_UNORDERED: packets can be delivered in any order, which may differ from the order in + which they were sent. + - ORDER_ORDERED: packets are delivered exactly in the order which they were sent + counterparty: + title: counterparty channel end + type: object + properties: + port_id: + type: string + description: >- + port on the counterparty chain which owns the other end of the + channel. + channel_id: + type: string + title: channel end on the counterparty chain + connection_hops: + type: array + items: + type: string + title: >- + list of connection identifiers, in order, along which packets sent + on + + this channel will travel + version: + type: string + title: opaque channel version, which is agreed upon during the handshake description: >- - number corresponds to the order of sends and receives, where a Packet + Channel defines pipeline for exactly-once packet delivery between + specific - with an earlier sequence number must be sent and received before a - Packet + modules on separate blockchains, which has at least one end capable of - with a later sequence number. - source_port: - type: string - description: identifies the port on the sending chain. - source_channel: - type: string - description: identifies the channel end on the sending chain. - destination_port: - type: string - description: identifies the port on the receiving chain. - destination_channel: + sending packets and one end capable of receiving packets. + counterparty_version: type: string - description: identifies the channel end on the receiving chain. - data: + proof_init: type: string format: byte - title: actual opaque bytes transferred directly to the application module - timeout_height: - title: block height after which the packet times out + proof_height: type: object properties: revision_number: @@ -27119,539 +24400,582 @@ definitions: RevisionHeight gets reset - timeout_timestamp: - type: string - format: uint64 - title: block timestamp (in nanoseconds) after which the packet times out - title: >- - Packet defines a type that carries data across different chains through - IBC - ibc.core.channel.v1.ResponseResultType: - type: string - enum: - - RESPONSE_RESULT_TYPE_UNSPECIFIED - - RESPONSE_RESULT_TYPE_NOOP - - RESPONSE_RESULT_TYPE_SUCCESS - default: RESPONSE_RESULT_TYPE_UNSPECIFIED - description: |- - - RESPONSE_RESULT_TYPE_UNSPECIFIED: Default zero value enumeration - - RESPONSE_RESULT_TYPE_NOOP: The message did not call the IBC application callbacks (because, for example, the packet had already been relayed) - - RESPONSE_RESULT_TYPE_SUCCESS: The message was executed successfully - title: >- - ResponseResultType defines the possible outcomes of the execution of a - message - ibc.core.channel.v1.State: - type: string - enum: - - STATE_UNINITIALIZED_UNSPECIFIED - - STATE_INIT - - STATE_TRYOPEN - - STATE_OPEN - - STATE_CLOSED - default: STATE_UNINITIALIZED_UNSPECIFIED - description: |- - State defines if a channel is in one of the following states: - CLOSED, INIT, TRYOPEN, OPEN or UNINITIALIZED. - - - STATE_UNINITIALIZED_UNSPECIFIED: Default State - - STATE_INIT: A channel has just started the opening handshake. - - STATE_TRYOPEN: A channel has acknowledged the handshake step on the counterparty chain. - - STATE_OPEN: A channel has completed the handshake. Open channels are - ready to send and receive packets. - - STATE_CLOSED: A channel has been closed and can no longer be used to send or receive - packets. - cosmos.upgrade.v1beta1.Plan: - type: object - properties: - name: - type: string - description: >- - Sets the name for the upgrade. This name will be used by the upgraded - - version of the software to apply any special "on-upgrade" commands - during - - the first BeginBlock method after the upgrade is applied. It is also - used - - to detect whether a software version can handle a given upgrade. If no - - upgrade handler with this name has been set in the software, it will - be - - assumed that the software is out-of-date when the upgrade Time or - Height is - - reached and the software will exit. - time: - type: string - format: date-time - description: >- - Deprecated: Time based upgrades have been deprecated. Time based - upgrade logic + title: >- + Height is a monotonically increasing data type - has been removed from the SDK. + that can be compared against another Height for the purposes of + updating and - If this field is not empty, an error will be thrown. - height: - type: string - format: int64 - description: The height at which the upgrade must be performed. - info: + freezing clients + signer: type: string - title: |- - Any application specific upgrade info to be included on-chain - such as a git commit that validators could automatically upgrade to - upgraded_client_state: - description: >- - Deprecated: UpgradedClientState field has been deprecated. IBC upgrade - logic has been - - moved to the IBC module in the sub module 02-client. - - If this field is not empty, an error will be thrown. - type: object - properties: - '@type': - type: string - description: >- - A URL/resource name that uniquely identifies the type of the - serialized - - protocol buffer message. This string must contain at least - - one "/" character. The last segment of the URL's path must - represent - - the fully qualified name of the type (as in - - `path/google.protobuf.Duration`). The name should be in a - canonical form - - (e.g., leading "." is not accepted). - - - In practice, teams usually precompile into the binary all types - that they - - expect it to use in the context of Any. However, for URLs which - use the - - scheme `http`, `https`, or no scheme, one can optionally set up a - type - - server that maps type URLs to message definitions as follows: - - - * If no scheme is provided, `https` is assumed. - - * An HTTP GET on the URL must yield a [google.protobuf.Type][] - value in binary format, or produce an error. - * Applications are allowed to cache lookup results based on the - URL, or have them precompiled into a binary to avoid any - lookup. Therefore, binary compatibility needs to be preserved - on changes to types. (Use versioned type names to manage - breaking changes.) - - Note: this functionality is not currently available in the - official - - protobuf release, and it is not used for type URLs beginning with - - type.googleapis.com. As of May 2023, there are no widely used type - server - - implementations and no plans to implement one. - - - Schemes other than `http`, `https` (or the empty scheme) might be - - used with implementation specific semantics. - additionalProperties: {} description: >- - Plan specifies information about a planned upgrade and when it should - occur. - ibc.core.client.v1.MsgCreateClient: - type: object - properties: - client_state: - title: light client state - type: object - properties: - '@type': - type: string - description: >- - A URL/resource name that uniquely identifies the type of the - serialized - - protocol buffer message. This string must contain at least - - one "/" character. The last segment of the URL's path must - represent - - the fully qualified name of the type (as in - - `path/google.protobuf.Duration`). The name should be in a - canonical form - - (e.g., leading "." is not accepted). - - - In practice, teams usually precompile into the binary all types - that they - - expect it to use in the context of Any. However, for URLs which - use the - - scheme `http`, `https`, or no scheme, one can optionally set up a - type - - server that maps type URLs to message definitions as follows: - - - * If no scheme is provided, `https` is assumed. - - * An HTTP GET on the URL must yield a [google.protobuf.Type][] - value in binary format, or produce an error. - * Applications are allowed to cache lookup results based on the - URL, or have them precompiled into a binary to avoid any - lookup. Therefore, binary compatibility needs to be preserved - on changes to types. (Use versioned type names to manage - breaking changes.) - - Note: this functionality is not currently available in the - official - - protobuf release, and it is not used for type URLs beginning with - - type.googleapis.com. As of May 2023, there are no widely used type - server - - implementations and no plans to implement one. - - - Schemes other than `http`, `https` (or the empty scheme) might be - - used with implementation specific semantics. - additionalProperties: {} - description: >- - `Any` contains an arbitrary serialized protocol buffer message along - with a - - URL that describes the type of the serialized message. - + MsgChannelOpenInit defines a msg sent by a Relayer to try to open a + channel - Protobuf library provides support to pack/unpack Any values in the - form + on Chain B. The version field within the Channel field has been + deprecated. Its - of utility functions or additional generated methods of the Any type. + value will be ignored by core IBC. + ibc.core.channel.v1.MsgChannelOpenTryResponse: + type: object + properties: + version: + type: string + channel_id: + type: string + description: MsgChannelOpenTryResponse defines the Msg/ChannelOpenTry response type. + ibc.core.channel.v1.MsgRecvPacket: + type: object + properties: + packet: + type: object + properties: + sequence: + type: string + format: uint64 + description: >- + number corresponds to the order of sends and receives, where a + Packet + with an earlier sequence number must be sent and received before a + Packet - Example 1: Pack and unpack a message in C++. + with a later sequence number. + source_port: + type: string + description: identifies the port on the sending chain. + source_channel: + type: string + description: identifies the channel end on the sending chain. + destination_port: + type: string + description: identifies the port on the receiving chain. + destination_channel: + type: string + description: identifies the channel end on the receiving chain. + data: + type: string + format: byte + title: actual opaque bytes transferred directly to the application module + timeout_height: + title: block height after which the packet times out + type: object + properties: + revision_number: + type: string + format: uint64 + title: the revision that the client is currently on + revision_height: + type: string + format: uint64 + title: the height within the given revision + description: >- + Normally the RevisionHeight is incremented at each height while + keeping - Foo foo = ...; - Any any; - any.PackFrom(foo); - ... - if (any.UnpackTo(&foo)) { - ... - } + RevisionNumber the same. However some consensus algorithms may + choose to - Example 2: Pack and unpack a message in Java. + reset the height in certain conditions e.g. hard forks, + state-machine - Foo foo = ...; - Any any = Any.pack(foo); - ... - if (any.is(Foo.class)) { - foo = any.unpack(Foo.class); - } - // or ... - if (any.isSameTypeAs(Foo.getDefaultInstance())) { - foo = any.unpack(Foo.getDefaultInstance()); - } + breaking changes In these cases, the RevisionNumber is incremented + so that - Example 3: Pack and unpack a message in Python. + height continues to be monitonically increasing even as the + RevisionHeight - foo = Foo(...) - any = Any() - any.Pack(foo) - ... - if any.Is(Foo.DESCRIPTOR): - any.Unpack(foo) - ... + gets reset + timeout_timestamp: + type: string + format: uint64 + title: block timestamp (in nanoseconds) after which the packet times out + title: >- + Packet defines a type that carries data across different chains + through IBC + proof_commitment: + type: string + format: byte + proof_height: + type: object + properties: + revision_number: + type: string + format: uint64 + title: the revision that the client is currently on + revision_height: + type: string + format: uint64 + title: the height within the given revision + description: >- + Normally the RevisionHeight is incremented at each height while + keeping - Example 4: Pack and unpack a message in Go + RevisionNumber the same. However some consensus algorithms may choose + to - foo := &pb.Foo{...} - any, err := anypb.New(foo) - if err != nil { - ... - } - ... - foo := &pb.Foo{} - if err := any.UnmarshalTo(foo); err != nil { - ... - } + reset the height in certain conditions e.g. hard forks, state-machine - The pack methods provided by protobuf library will by default use + breaking changes In these cases, the RevisionNumber is incremented so + that - 'type.googleapis.com/full.type.name' as the type URL and the unpack + height continues to be monitonically increasing even as the + RevisionHeight - methods only use the fully qualified type name after the last '/' + gets reset + title: >- + Height is a monotonically increasing data type - in the type URL, for example "foo.bar.com/x/y.z" will yield type + that can be compared against another Height for the purposes of + updating and - name "y.z". + freezing clients + signer: + type: string + title: MsgRecvPacket receives incoming IBC packet + ibc.core.channel.v1.MsgRecvPacketResponse: + type: object + properties: + result: + type: string + enum: + - RESPONSE_RESULT_TYPE_UNSPECIFIED + - RESPONSE_RESULT_TYPE_NOOP + - RESPONSE_RESULT_TYPE_SUCCESS + default: RESPONSE_RESULT_TYPE_UNSPECIFIED + description: |- + - RESPONSE_RESULT_TYPE_UNSPECIFIED: Default zero value enumeration + - RESPONSE_RESULT_TYPE_NOOP: The message did not call the IBC application callbacks (because, for example, the packet had already been relayed) + - RESPONSE_RESULT_TYPE_SUCCESS: The message was executed successfully + title: >- + ResponseResultType defines the possible outcomes of the execution of a + message + description: MsgRecvPacketResponse defines the Msg/RecvPacket response type. + ibc.core.channel.v1.MsgTimeout: + type: object + properties: + packet: + type: object + properties: + sequence: + type: string + format: uint64 + description: >- + number corresponds to the order of sends and receives, where a + Packet + with an earlier sequence number must be sent and received before a + Packet - JSON + with a later sequence number. + source_port: + type: string + description: identifies the port on the sending chain. + source_channel: + type: string + description: identifies the channel end on the sending chain. + destination_port: + type: string + description: identifies the port on the receiving chain. + destination_channel: + type: string + description: identifies the channel end on the receiving chain. + data: + type: string + format: byte + title: actual opaque bytes transferred directly to the application module + timeout_height: + title: block height after which the packet times out + type: object + properties: + revision_number: + type: string + format: uint64 + title: the revision that the client is currently on + revision_height: + type: string + format: uint64 + title: the height within the given revision + description: >- + Normally the RevisionHeight is incremented at each height while + keeping - ==== + RevisionNumber the same. However some consensus algorithms may + choose to - The JSON representation of an `Any` value uses the regular + reset the height in certain conditions e.g. hard forks, + state-machine - representation of the deserialized, embedded message, with an + breaking changes In these cases, the RevisionNumber is incremented + so that - additional field `@type` which contains the type URL. Example: + height continues to be monitonically increasing even as the + RevisionHeight - package google.profile; - message Person { - string first_name = 1; - string last_name = 2; - } + gets reset + timeout_timestamp: + type: string + format: uint64 + title: block timestamp (in nanoseconds) after which the packet times out + title: >- + Packet defines a type that carries data across different chains + through IBC + proof_unreceived: + type: string + format: byte + proof_height: + type: object + properties: + revision_number: + type: string + format: uint64 + title: the revision that the client is currently on + revision_height: + type: string + format: uint64 + title: the height within the given revision + description: >- + Normally the RevisionHeight is incremented at each height while + keeping + + RevisionNumber the same. However some consensus algorithms may choose + to - { - "@type": "type.googleapis.com/google.profile.Person", - "firstName": , - "lastName": - } + reset the height in certain conditions e.g. hard forks, state-machine - If the embedded message type is well-known and has a custom JSON + breaking changes In these cases, the RevisionNumber is incremented so + that - representation, that representation will be embedded adding a field + height continues to be monitonically increasing even as the + RevisionHeight - `value` which holds the custom JSON in addition to the `@type` + gets reset + title: >- + Height is a monotonically increasing data type - field. Example (for message [google.protobuf.Duration][]): + that can be compared against another Height for the purposes of + updating and - { - "@type": "type.googleapis.com/google.protobuf.Duration", - "value": "1.212s" - } - consensus_state: - description: |- - consensus state associated with the client that corresponds to a given - height. + freezing clients + next_sequence_recv: + type: string + format: uint64 + signer: + type: string + title: MsgTimeout receives timed-out packet + ibc.core.channel.v1.MsgTimeoutOnClose: + type: object + properties: + packet: type: object properties: - '@type': + sequence: type: string + format: uint64 description: >- - A URL/resource name that uniquely identifies the type of the - serialized - - protocol buffer message. This string must contain at least - - one "/" character. The last segment of the URL's path must - represent - - the fully qualified name of the type (as in - - `path/google.protobuf.Duration`). The name should be in a - canonical form - - (e.g., leading "." is not accepted). - + number corresponds to the order of sends and receives, where a + Packet - In practice, teams usually precompile into the binary all types - that they + with an earlier sequence number must be sent and received before a + Packet - expect it to use in the context of Any. However, for URLs which - use the + with a later sequence number. + source_port: + type: string + description: identifies the port on the sending chain. + source_channel: + type: string + description: identifies the channel end on the sending chain. + destination_port: + type: string + description: identifies the port on the receiving chain. + destination_channel: + type: string + description: identifies the channel end on the receiving chain. + data: + type: string + format: byte + title: actual opaque bytes transferred directly to the application module + timeout_height: + title: block height after which the packet times out + type: object + properties: + revision_number: + type: string + format: uint64 + title: the revision that the client is currently on + revision_height: + type: string + format: uint64 + title: the height within the given revision + description: >- + Normally the RevisionHeight is incremented at each height while + keeping - scheme `http`, `https`, or no scheme, one can optionally set up a - type + RevisionNumber the same. However some consensus algorithms may + choose to - server that maps type URLs to message definitions as follows: + reset the height in certain conditions e.g. hard forks, + state-machine + breaking changes In these cases, the RevisionNumber is incremented + so that - * If no scheme is provided, `https` is assumed. + height continues to be monitonically increasing even as the + RevisionHeight - * An HTTP GET on the URL must yield a [google.protobuf.Type][] - value in binary format, or produce an error. - * Applications are allowed to cache lookup results based on the - URL, or have them precompiled into a binary to avoid any - lookup. Therefore, binary compatibility needs to be preserved - on changes to types. (Use versioned type names to manage - breaking changes.) + gets reset + timeout_timestamp: + type: string + format: uint64 + title: block timestamp (in nanoseconds) after which the packet times out + title: >- + Packet defines a type that carries data across different chains + through IBC + proof_unreceived: + type: string + format: byte + proof_close: + type: string + format: byte + proof_height: + type: object + properties: + revision_number: + type: string + format: uint64 + title: the revision that the client is currently on + revision_height: + type: string + format: uint64 + title: the height within the given revision + description: >- + Normally the RevisionHeight is incremented at each height while + keeping - Note: this functionality is not currently available in the - official + RevisionNumber the same. However some consensus algorithms may choose + to - protobuf release, and it is not used for type URLs beginning with + reset the height in certain conditions e.g. hard forks, state-machine - type.googleapis.com. As of May 2023, there are no widely used type - server + breaking changes In these cases, the RevisionNumber is incremented so + that - implementations and no plans to implement one. + height continues to be monitonically increasing even as the + RevisionHeight + gets reset + title: >- + Height is a monotonically increasing data type - Schemes other than `http`, `https` (or the empty scheme) might be + that can be compared against another Height for the purposes of + updating and - used with implementation specific semantics. - additionalProperties: {} + freezing clients + next_sequence_recv: + type: string + format: uint64 signer: type: string - title: signer address - title: MsgCreateClient defines a message to create an IBC client - ibc.core.client.v1.MsgCreateClientResponse: + description: MsgTimeoutOnClose timed-out packet upon counterparty channel closure. + ibc.core.channel.v1.MsgTimeoutOnCloseResponse: type: object - description: MsgCreateClientResponse defines the Msg/CreateClient response type. - ibc.core.client.v1.MsgIBCSoftwareUpgrade: + properties: + result: + type: string + enum: + - RESPONSE_RESULT_TYPE_UNSPECIFIED + - RESPONSE_RESULT_TYPE_NOOP + - RESPONSE_RESULT_TYPE_SUCCESS + default: RESPONSE_RESULT_TYPE_UNSPECIFIED + description: |- + - RESPONSE_RESULT_TYPE_UNSPECIFIED: Default zero value enumeration + - RESPONSE_RESULT_TYPE_NOOP: The message did not call the IBC application callbacks (because, for example, the packet had already been relayed) + - RESPONSE_RESULT_TYPE_SUCCESS: The message was executed successfully + title: >- + ResponseResultType defines the possible outcomes of the execution of a + message + description: MsgTimeoutOnCloseResponse defines the Msg/TimeoutOnClose response type. + ibc.core.channel.v1.MsgTimeoutResponse: type: object properties: - plan: - type: object - properties: - name: - type: string - description: >- - Sets the name for the upgrade. This name will be used by the - upgraded - - version of the software to apply any special "on-upgrade" commands - during - - the first BeginBlock method after the upgrade is applied. It is - also used - - to detect whether a software version can handle a given upgrade. - If no - - upgrade handler with this name has been set in the software, it - will be - - assumed that the software is out-of-date when the upgrade Time or - Height is - - reached and the software will exit. - time: - type: string - format: date-time - description: >- - Deprecated: Time based upgrades have been deprecated. Time based - upgrade logic + result: + type: string + enum: + - RESPONSE_RESULT_TYPE_UNSPECIFIED + - RESPONSE_RESULT_TYPE_NOOP + - RESPONSE_RESULT_TYPE_SUCCESS + default: RESPONSE_RESULT_TYPE_UNSPECIFIED + description: |- + - RESPONSE_RESULT_TYPE_UNSPECIFIED: Default zero value enumeration + - RESPONSE_RESULT_TYPE_NOOP: The message did not call the IBC application callbacks (because, for example, the packet had already been relayed) + - RESPONSE_RESULT_TYPE_SUCCESS: The message was executed successfully + title: >- + ResponseResultType defines the possible outcomes of the execution of a + message + description: MsgTimeoutResponse defines the Msg/Timeout response type. + ibc.core.channel.v1.Order: + type: string + enum: + - ORDER_NONE_UNSPECIFIED + - ORDER_UNORDERED + - ORDER_ORDERED + default: ORDER_NONE_UNSPECIFIED + description: |- + - ORDER_NONE_UNSPECIFIED: zero-value for channel ordering + - ORDER_UNORDERED: packets can be delivered in any order, which may differ from the order in + which they were sent. + - ORDER_ORDERED: packets are delivered exactly in the order which they were sent + title: Order defines if a channel is ORDERED or UNORDERED + ibc.core.channel.v1.Packet: + type: object + properties: + sequence: + type: string + format: uint64 + description: >- + number corresponds to the order of sends and receives, where a Packet - has been removed from the SDK. + with an earlier sequence number must be sent and received before a + Packet - If this field is not empty, an error will be thrown. - height: + with a later sequence number. + source_port: + type: string + description: identifies the port on the sending chain. + source_channel: + type: string + description: identifies the channel end on the sending chain. + destination_port: + type: string + description: identifies the port on the receiving chain. + destination_channel: + type: string + description: identifies the channel end on the receiving chain. + data: + type: string + format: byte + title: actual opaque bytes transferred directly to the application module + timeout_height: + title: block height after which the packet times out + type: object + properties: + revision_number: type: string - format: int64 - description: The height at which the upgrade must be performed. - info: + format: uint64 + title: the revision that the client is currently on + revision_height: type: string - title: >- - Any application specific upgrade info to be included on-chain - - such as a git commit that validators could automatically upgrade - to - upgraded_client_state: - description: >- - Deprecated: UpgradedClientState field has been deprecated. IBC - upgrade logic has been - - moved to the IBC module in the sub module 02-client. - - If this field is not empty, an error will be thrown. - type: object - properties: - '@type': - type: string - description: >- - A URL/resource name that uniquely identifies the type of the - serialized - - protocol buffer message. This string must contain at least - - one "/" character. The last segment of the URL's path must - represent - - the fully qualified name of the type (as in - - `path/google.protobuf.Duration`). The name should be in a - canonical form - - (e.g., leading "." is not accepted). - + format: uint64 + title: the height within the given revision + description: >- + Normally the RevisionHeight is incremented at each height while + keeping - In practice, teams usually precompile into the binary all - types that they + RevisionNumber the same. However some consensus algorithms may choose + to - expect it to use in the context of Any. However, for URLs - which use the + reset the height in certain conditions e.g. hard forks, state-machine - scheme `http`, `https`, or no scheme, one can optionally set - up a type + breaking changes In these cases, the RevisionNumber is incremented so + that - server that maps type URLs to message definitions as follows: + height continues to be monitonically increasing even as the + RevisionHeight + gets reset + timeout_timestamp: + type: string + format: uint64 + title: block timestamp (in nanoseconds) after which the packet times out + title: >- + Packet defines a type that carries data across different chains through + IBC + ibc.core.channel.v1.ResponseResultType: + type: string + enum: + - RESPONSE_RESULT_TYPE_UNSPECIFIED + - RESPONSE_RESULT_TYPE_NOOP + - RESPONSE_RESULT_TYPE_SUCCESS + default: RESPONSE_RESULT_TYPE_UNSPECIFIED + description: |- + - RESPONSE_RESULT_TYPE_UNSPECIFIED: Default zero value enumeration + - RESPONSE_RESULT_TYPE_NOOP: The message did not call the IBC application callbacks (because, for example, the packet had already been relayed) + - RESPONSE_RESULT_TYPE_SUCCESS: The message was executed successfully + title: >- + ResponseResultType defines the possible outcomes of the execution of a + message + ibc.core.channel.v1.State: + type: string + enum: + - STATE_UNINITIALIZED_UNSPECIFIED + - STATE_INIT + - STATE_TRYOPEN + - STATE_OPEN + - STATE_CLOSED + default: STATE_UNINITIALIZED_UNSPECIFIED + description: |- + State defines if a channel is in one of the following states: + CLOSED, INIT, TRYOPEN, OPEN or UNINITIALIZED. - * If no scheme is provided, `https` is assumed. + - STATE_UNINITIALIZED_UNSPECIFIED: Default State + - STATE_INIT: A channel has just started the opening handshake. + - STATE_TRYOPEN: A channel has acknowledged the handshake step on the counterparty chain. + - STATE_OPEN: A channel has completed the handshake. Open channels are + ready to send and receive packets. + - STATE_CLOSED: A channel has been closed and can no longer be used to send or receive + packets. + cosmos.upgrade.v1beta1.Plan: + type: object + properties: + name: + type: string + description: >- + Sets the name for the upgrade. This name will be used by the upgraded - * An HTTP GET on the URL must yield a [google.protobuf.Type][] - value in binary format, or produce an error. - * Applications are allowed to cache lookup results based on - the - URL, or have them precompiled into a binary to avoid any - lookup. Therefore, binary compatibility needs to be preserved - on changes to types. (Use versioned type names to manage - breaking changes.) + version of the software to apply any special "on-upgrade" commands + during - Note: this functionality is not currently available in the - official + the first BeginBlock method after the upgrade is applied. It is also + used - protobuf release, and it is not used for type URLs beginning - with + to detect whether a software version can handle a given upgrade. If no - type.googleapis.com. As of May 2023, there are no widely used - type server + upgrade handler with this name has been set in the software, it will + be - implementations and no plans to implement one. + assumed that the software is out-of-date when the upgrade Time or + Height is + reached and the software will exit. + time: + type: string + format: date-time + description: >- + Deprecated: Time based upgrades have been deprecated. Time based + upgrade logic - Schemes other than `http`, `https` (or the empty scheme) might - be + has been removed from the SDK. - used with implementation specific semantics. - additionalProperties: {} - description: >- - Plan specifies information about a planned upgrade and when it should - occur. + If this field is not empty, an error will be thrown. + height: + type: string + format: int64 + description: The height at which the upgrade must be performed. + info: + type: string + title: |- + Any application specific upgrade info to be included on-chain + such as a git commit that validators could automatically upgrade to upgraded_client_state: description: >- - An UpgradedClientState must be provided to perform an IBC breaking - upgrade. - - This will make the chain commit to the correct upgraded (self) client - state - - before the upgrade occurs, so that connecting chains can verify that - the - - new upgraded client is valid by verifying a proof on the previous - version - - of the chain. This will allow IBC connections to persist smoothly - across - - planned chain upgrades. Correspondingly, the UpgradedClientState field - has been + Deprecated: UpgradedClientState field has been deprecated. IBC upgrade + logic has been - deprecated in the Cosmos SDK to allow for this logic to exist solely - in + moved to the IBC module in the sub module 02-client. - the 02-client module. + If this field is not empty, an error will be thrown. type: object properties: '@type': @@ -27710,49 +25034,14 @@ definitions: used with implementation specific semantics. additionalProperties: {} - signer: - type: string - title: signer address - title: >- - MsgIBCSoftwareUpgrade defines the message used to schedule an upgrade of - an IBC client using a v1 governance proposal - ibc.core.client.v1.MsgIBCSoftwareUpgradeResponse: - type: object - description: >- - MsgIBCSoftwareUpgradeResponse defines the Msg/IBCSoftwareUpgrade response - type. - ibc.core.client.v1.MsgRecoverClient: - type: object - properties: - subject_client_id: - type: string - title: >- - the client identifier for the client to be updated if the proposal - passes - substitute_client_id: - type: string - title: >- - the substitute client identifier for the client which will replace the - subject - - client - signer: - type: string - title: signer address description: >- - MsgRecoverClient defines the message used to recover a frozen or expired - client. - ibc.core.client.v1.MsgRecoverClientResponse: - type: object - description: MsgRecoverClientResponse defines the Msg/RecoverClient response type. - ibc.core.client.v1.MsgSubmitMisbehaviour: + Plan specifies information about a planned upgrade and when it should + occur. + ibc.core.client.v1.MsgCreateClient: type: object - properties: - client_id: - type: string - title: client unique identifier - misbehaviour: - title: misbehaviour used for freezing the light client + properties: + client_state: + title: light client state type: object properties: '@type': @@ -27915,26 +25204,10 @@ definitions: "@type": "type.googleapis.com/google.protobuf.Duration", "value": "1.212s" } - signer: - type: string - title: signer address - description: |- - MsgSubmitMisbehaviour defines an sdk.Msg type that submits Evidence for - light client misbehaviour. - This message has been deprecated. Use MsgUpdateClient instead. - ibc.core.client.v1.MsgSubmitMisbehaviourResponse: - type: object - description: |- - MsgSubmitMisbehaviourResponse defines the Msg/SubmitMisbehaviour response - type. - ibc.core.client.v1.MsgUpdateClient: - type: object - properties: - client_id: - type: string - title: client unique identifier - client_message: - title: client message to update the light client + consensus_state: + description: |- + consensus state associated with the client that corresponds to a given + height. type: object properties: '@type': @@ -27993,157 +25266,158 @@ definitions: used with implementation specific semantics. additionalProperties: {} - description: >- - `Any` contains an arbitrary serialized protocol buffer message along - with a + signer: + type: string + title: signer address + title: MsgCreateClient defines a message to create an IBC client + ibc.core.client.v1.MsgCreateClientResponse: + type: object + description: MsgCreateClientResponse defines the Msg/CreateClient response type. + ibc.core.client.v1.MsgIBCSoftwareUpgrade: + type: object + properties: + plan: + type: object + properties: + name: + type: string + description: >- + Sets the name for the upgrade. This name will be used by the + upgraded - URL that describes the type of the serialized message. + version of the software to apply any special "on-upgrade" commands + during + the first BeginBlock method after the upgrade is applied. It is + also used - Protobuf library provides support to pack/unpack Any values in the - form + to detect whether a software version can handle a given upgrade. + If no - of utility functions or additional generated methods of the Any type. + upgrade handler with this name has been set in the software, it + will be + assumed that the software is out-of-date when the upgrade Time or + Height is - Example 1: Pack and unpack a message in C++. + reached and the software will exit. + time: + type: string + format: date-time + description: >- + Deprecated: Time based upgrades have been deprecated. Time based + upgrade logic - Foo foo = ...; - Any any; - any.PackFrom(foo); - ... - if (any.UnpackTo(&foo)) { - ... - } + has been removed from the SDK. - Example 2: Pack and unpack a message in Java. + If this field is not empty, an error will be thrown. + height: + type: string + format: int64 + description: The height at which the upgrade must be performed. + info: + type: string + title: >- + Any application specific upgrade info to be included on-chain - Foo foo = ...; - Any any = Any.pack(foo); - ... - if (any.is(Foo.class)) { - foo = any.unpack(Foo.class); - } - // or ... - if (any.isSameTypeAs(Foo.getDefaultInstance())) { - foo = any.unpack(Foo.getDefaultInstance()); - } + such as a git commit that validators could automatically upgrade + to + upgraded_client_state: + description: >- + Deprecated: UpgradedClientState field has been deprecated. IBC + upgrade logic has been - Example 3: Pack and unpack a message in Python. + moved to the IBC module in the sub module 02-client. - foo = Foo(...) - any = Any() - any.Pack(foo) - ... - if any.Is(Foo.DESCRIPTOR): - any.Unpack(foo) - ... + If this field is not empty, an error will be thrown. + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type of the + serialized - Example 4: Pack and unpack a message in Go + protocol buffer message. This string must contain at least - foo := &pb.Foo{...} - any, err := anypb.New(foo) - if err != nil { - ... - } - ... - foo := &pb.Foo{} - if err := any.UnmarshalTo(foo); err != nil { - ... - } + one "/" character. The last segment of the URL's path must + represent - The pack methods provided by protobuf library will by default use + the fully qualified name of the type (as in - 'type.googleapis.com/full.type.name' as the type URL and the unpack + `path/google.protobuf.Duration`). The name should be in a + canonical form - methods only use the fully qualified type name after the last '/' + (e.g., leading "." is not accepted). - in the type URL, for example "foo.bar.com/x/y.z" will yield type - name "y.z". + In practice, teams usually precompile into the binary all + types that they + expect it to use in the context of Any. However, for URLs + which use the - JSON + scheme `http`, `https`, or no scheme, one can optionally set + up a type - ==== + server that maps type URLs to message definitions as follows: - The JSON representation of an `Any` value uses the regular - representation of the deserialized, embedded message, with an + * If no scheme is provided, `https` is assumed. - additional field `@type` which contains the type URL. Example: + * An HTTP GET on the URL must yield a [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based on + the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) - package google.profile; - message Person { - string first_name = 1; - string last_name = 2; - } + Note: this functionality is not currently available in the + official - { - "@type": "type.googleapis.com/google.profile.Person", - "firstName": , - "lastName": - } + protobuf release, and it is not used for type URLs beginning + with - If the embedded message type is well-known and has a custom JSON + type.googleapis.com. As of May 2023, there are no widely used + type server - representation, that representation will be embedded adding a field + implementations and no plans to implement one. - `value` which holds the custom JSON in addition to the `@type` - field. Example (for message [google.protobuf.Duration][]): + Schemes other than `http`, `https` (or the empty scheme) might + be - { - "@type": "type.googleapis.com/google.protobuf.Duration", - "value": "1.212s" - } - signer: - type: string - title: signer address - description: |- - MsgUpdateClient defines an sdk.Msg to update a IBC client state using - the given client message. - ibc.core.client.v1.MsgUpdateClientResponse: - type: object - description: MsgUpdateClientResponse defines the Msg/UpdateClient response type. - ibc.core.client.v1.MsgUpdateParams: - type: object - properties: - signer: - type: string - title: signer address - params: - description: |- - params defines the client parameters to update. + used with implementation specific semantics. + additionalProperties: {} + description: >- + Plan specifies information about a planned upgrade and when it should + occur. + upgraded_client_state: + description: >- + An UpgradedClientState must be provided to perform an IBC breaking + upgrade. - NOTE: All parameters must be supplied. - type: object - properties: - allowed_clients: - type: array - items: - type: string - description: >- - allowed_clients defines the list of allowed client state types - which can be created + This will make the chain commit to the correct upgraded (self) client + state - and interacted with. If a client type is removed from the allowed - clients list, usage + before the upgrade occurs, so that connecting chains can verify that + the - of this client will be disabled until it is added again to the - list. - description: MsgUpdateParams defines the sdk.Msg type to update the client parameters. - ibc.core.client.v1.MsgUpdateParamsResponse: - type: object - description: MsgUpdateParamsResponse defines the MsgUpdateParams response type. - ibc.core.client.v1.MsgUpgradeClient: - type: object - properties: - client_id: - type: string - title: client unique identifier - client_state: - title: upgraded client state + new upgraded client is valid by verifying a proof on the previous + version + + of the chain. This will allow IBC connections to persist smoothly + across + + planned chain upgrades. Correspondingly, the UpgradedClientState field + has been + + deprecated in the Cosmos SDK to allow for this logic to exist solely + in + + the 02-client module. type: object properties: '@type': @@ -28202,116 +25476,49 @@ definitions: used with implementation specific semantics. additionalProperties: {} - description: >- - `Any` contains an arbitrary serialized protocol buffer message along - with a - - URL that describes the type of the serialized message. - - - Protobuf library provides support to pack/unpack Any values in the - form - - of utility functions or additional generated methods of the Any type. - - - Example 1: Pack and unpack a message in C++. - - Foo foo = ...; - Any any; - any.PackFrom(foo); - ... - if (any.UnpackTo(&foo)) { - ... - } - - Example 2: Pack and unpack a message in Java. - - Foo foo = ...; - Any any = Any.pack(foo); - ... - if (any.is(Foo.class)) { - foo = any.unpack(Foo.class); - } - // or ... - if (any.isSameTypeAs(Foo.getDefaultInstance())) { - foo = any.unpack(Foo.getDefaultInstance()); - } - - Example 3: Pack and unpack a message in Python. - - foo = Foo(...) - any = Any() - any.Pack(foo) - ... - if any.Is(Foo.DESCRIPTOR): - any.Unpack(foo) - ... - - Example 4: Pack and unpack a message in Go - - foo := &pb.Foo{...} - any, err := anypb.New(foo) - if err != nil { - ... - } - ... - foo := &pb.Foo{} - if err := any.UnmarshalTo(foo); err != nil { - ... - } - - The pack methods provided by protobuf library will by default use - - 'type.googleapis.com/full.type.name' as the type URL and the unpack - - methods only use the fully qualified type name after the last '/' - - in the type URL, for example "foo.bar.com/x/y.z" will yield type - - name "y.z". - - - JSON - - ==== - - The JSON representation of an `Any` value uses the regular - - representation of the deserialized, embedded message, with an - - additional field `@type` which contains the type URL. Example: - - package google.profile; - message Person { - string first_name = 1; - string last_name = 2; - } - - { - "@type": "type.googleapis.com/google.profile.Person", - "firstName": , - "lastName": - } - - If the embedded message type is well-known and has a custom JSON - - representation, that representation will be embedded adding a field - - `value` which holds the custom JSON in addition to the `@type` - - field. Example (for message [google.protobuf.Duration][]): - - { - "@type": "type.googleapis.com/google.protobuf.Duration", - "value": "1.212s" - } - consensus_state: + signer: + type: string + title: signer address + title: >- + MsgIBCSoftwareUpgrade defines the message used to schedule an upgrade of + an IBC client using a v1 governance proposal + ibc.core.client.v1.MsgIBCSoftwareUpgradeResponse: + type: object + description: >- + MsgIBCSoftwareUpgradeResponse defines the Msg/IBCSoftwareUpgrade response + type. + ibc.core.client.v1.MsgRecoverClient: + type: object + properties: + subject_client_id: + type: string title: >- - upgraded consensus state, only contains enough information to serve as - a + the client identifier for the client to be updated if the proposal + passes + substitute_client_id: + type: string + title: >- + the substitute client identifier for the client which will replace the + subject - basis of trust in update logic + client + signer: + type: string + title: signer address + description: >- + MsgRecoverClient defines the message used to recover a frozen or expired + client. + ibc.core.client.v1.MsgRecoverClientResponse: + type: object + description: MsgRecoverClientResponse defines the Msg/RecoverClient response type. + ibc.core.client.v1.MsgSubmitMisbehaviour: + type: object + properties: + client_id: + type: string + title: client unique identifier + misbehaviour: + title: misbehaviour used for freezing the light client type: object properties: '@type': @@ -28474,109 +25681,26 @@ definitions: "@type": "type.googleapis.com/google.protobuf.Duration", "value": "1.212s" } - proof_upgrade_client: - type: string - format: byte - title: proof that old chain committed to new client - proof_upgrade_consensus_state: - type: string - format: byte - title: proof that old chain committed to new consensus state signer: type: string title: signer address - title: >- - MsgUpgradeClient defines an sdk.Msg to upgrade an IBC client to a new - client - - state - ibc.core.client.v1.MsgUpgradeClientResponse: - type: object - description: MsgUpgradeClientResponse defines the Msg/UpgradeClient response type. - ibc.core.client.v1.Params: - type: object - properties: - allowed_clients: - type: array - items: - type: string - description: >- - allowed_clients defines the list of allowed client state types which - can be created - - and interacted with. If a client type is removed from the allowed - clients list, usage - - of this client will be disabled until it is added again to the list. - description: Params defines the set of IBC light client parameters. - ibc.core.commitment.v1.MerklePrefix: - type: object - properties: - key_prefix: - type: string - format: byte - title: |- - MerklePrefix is merkle path prefixed to the key. - The constructed key from the Path and the key will be append(Path.KeyPath, - append(Path.KeyPrefix, key...)) - ibc.core.connection.v1.Counterparty: - type: object - properties: - client_id: - type: string - description: >- - identifies the client on the counterparty chain associated with a - given - - connection. - connection_id: - type: string - description: >- - identifies the connection end on the counterparty chain associated - with a - - given connection. - prefix: - description: commitment merkle prefix of the counterparty chain. - type: object - properties: - key_prefix: - type: string - format: byte - title: >- - MerklePrefix is merkle path prefixed to the key. - - The constructed key from the Path and the key will be - append(Path.KeyPath, - - append(Path.KeyPrefix, key...)) - description: >- - Counterparty defines the counterparty chain associated with a connection - end. - ibc.core.connection.v1.MsgConnectionOpenAck: - type: object - properties: - connection_id: - type: string - counterparty_connection_id: - type: string - version: - type: object - properties: - identifier: - type: string - title: unique version identifier - features: - type: array - items: - type: string - title: list of features compatible with the specified identifier - description: >- - Version defines the versioning scheme used to negotiate the IBC - verison in - - the connection handshake. - client_state: + description: |- + MsgSubmitMisbehaviour defines an sdk.Msg type that submits Evidence for + light client misbehaviour. + This message has been deprecated. Use MsgUpdateClient instead. + ibc.core.client.v1.MsgSubmitMisbehaviourResponse: + type: object + description: |- + MsgSubmitMisbehaviourResponse defines the Msg/SubmitMisbehaviour response + type. + ibc.core.client.v1.MsgUpdateClient: + type: object + properties: + client_id: + type: string + title: client unique identifier + client_message: + title: client message to update the light client type: object properties: '@type': @@ -28739,238 +25863,53 @@ definitions: "@type": "type.googleapis.com/google.protobuf.Duration", "value": "1.212s" } - proof_height: - type: object - properties: - revision_number: - type: string - format: uint64 - title: the revision that the client is currently on - revision_height: - type: string - format: uint64 - title: the height within the given revision - description: >- - Normally the RevisionHeight is incremented at each height while - keeping - - RevisionNumber the same. However some consensus algorithms may choose - to - - reset the height in certain conditions e.g. hard forks, state-machine - - breaking changes In these cases, the RevisionNumber is incremented so - that - - height continues to be monitonically increasing even as the - RevisionHeight - - gets reset - title: >- - Height is a monotonically increasing data type - - that can be compared against another Height for the purposes of - updating and - - freezing clients - proof_try: - type: string - format: byte - title: |- - proof of the initialization the connection on Chain B: `UNITIALIZED -> - TRYOPEN` - proof_client: - type: string - format: byte - title: proof of client state included in message - proof_consensus: - type: string - format: byte - title: proof of client consensus state - consensus_height: - type: object - properties: - revision_number: - type: string - format: uint64 - title: the revision that the client is currently on - revision_height: - type: string - format: uint64 - title: the height within the given revision - description: >- - Normally the RevisionHeight is incremented at each height while - keeping - - RevisionNumber the same. However some consensus algorithms may choose - to - - reset the height in certain conditions e.g. hard forks, state-machine - - breaking changes In these cases, the RevisionNumber is incremented so - that - - height continues to be monitonically increasing even as the - RevisionHeight - - gets reset - title: >- - Height is a monotonically increasing data type - - that can be compared against another Height for the purposes of - updating and - - freezing clients signer: type: string - host_consensus_state_proof: - type: string - format: byte - title: >- - optional proof data for host state machines that are unable to - introspect their own consensus state + title: signer address description: |- - MsgConnectionOpenAck defines a msg sent by a Relayer to Chain A to - acknowledge the change of connection state to TRYOPEN on Chain B. - ibc.core.connection.v1.MsgConnectionOpenAckResponse: + MsgUpdateClient defines an sdk.Msg to update a IBC client state using + the given client message. + ibc.core.client.v1.MsgUpdateClientResponse: type: object - description: >- - MsgConnectionOpenAckResponse defines the Msg/ConnectionOpenAck response - type. - ibc.core.connection.v1.MsgConnectionOpenConfirm: + description: MsgUpdateClientResponse defines the Msg/UpdateClient response type. + ibc.core.client.v1.MsgUpdateParams: type: object properties: - connection_id: - type: string - proof_ack: - type: string - format: byte - title: >- - proof for the change of the connection state on Chain A: `INIT -> - OPEN` - proof_height: - type: object - properties: - revision_number: - type: string - format: uint64 - title: the revision that the client is currently on - revision_height: - type: string - format: uint64 - title: the height within the given revision - description: >- - Normally the RevisionHeight is incremented at each height while - keeping - - RevisionNumber the same. However some consensus algorithms may choose - to - - reset the height in certain conditions e.g. hard forks, state-machine - - breaking changes In these cases, the RevisionNumber is incremented so - that - - height continues to be monitonically increasing even as the - RevisionHeight - - gets reset - title: >- - Height is a monotonically increasing data type - - that can be compared against another Height for the purposes of - updating and - - freezing clients signer: type: string - description: |- - MsgConnectionOpenConfirm defines a msg sent by a Relayer to Chain B to - acknowledge the change of connection state to OPEN on Chain A. - ibc.core.connection.v1.MsgConnectionOpenConfirmResponse: - type: object - description: |- - MsgConnectionOpenConfirmResponse defines the Msg/ConnectionOpenConfirm - response type. - ibc.core.connection.v1.MsgConnectionOpenInit: - type: object - properties: - client_id: - type: string - counterparty: - type: object - properties: - client_id: - type: string - description: >- - identifies the client on the counterparty chain associated with a - given - - connection. - connection_id: - type: string - description: >- - identifies the connection end on the counterparty chain associated - with a - - given connection. - prefix: - description: commitment merkle prefix of the counterparty chain. - type: object - properties: - key_prefix: - type: string - format: byte - title: >- - MerklePrefix is merkle path prefixed to the key. - - The constructed key from the Path and the key will be - append(Path.KeyPath, + title: signer address + params: + description: |- + params defines the client parameters to update. - append(Path.KeyPrefix, key...)) - description: >- - Counterparty defines the counterparty chain associated with a - connection end. - version: + NOTE: All parameters must be supplied. type: object properties: - identifier: - type: string - title: unique version identifier - features: + allowed_clients: type: array items: type: string - title: list of features compatible with the specified identifier - description: >- - Version defines the versioning scheme used to negotiate the IBC - verison in + description: >- + allowed_clients defines the list of allowed client state types + which can be created - the connection handshake. - delay_period: - type: string - format: uint64 - signer: - type: string - description: |- - MsgConnectionOpenInit defines the msg sent by an account on Chain A to - initialize a connection with Chain B. - ibc.core.connection.v1.MsgConnectionOpenInitResponse: + and interacted with. If a client type is removed from the allowed + clients list, usage + + of this client will be disabled until it is added again to the + list. + description: MsgUpdateParams defines the sdk.Msg type to update the client parameters. + ibc.core.client.v1.MsgUpdateParamsResponse: type: object - description: |- - MsgConnectionOpenInitResponse defines the Msg/ConnectionOpenInit response - type. - ibc.core.connection.v1.MsgConnectionOpenTry: + description: MsgUpdateParamsResponse defines the MsgUpdateParams response type. + ibc.core.client.v1.MsgUpgradeClient: type: object properties: client_id: type: string - previous_connection_id: - type: string - description: >- - Deprecated: this field is unused. Crossing hellos are no longer - supported in core IBC. + title: client unique identifier client_state: + title: upgraded client state type: object properties: '@type': @@ -29133,2328 +26072,1113 @@ definitions: "@type": "type.googleapis.com/google.protobuf.Duration", "value": "1.212s" } - counterparty: + consensus_state: + title: >- + upgraded consensus state, only contains enough information to serve as + a + + basis of trust in update logic type: object properties: - client_id: + '@type': type: string description: >- - identifies the client on the counterparty chain associated with a - given + A URL/resource name that uniquely identifies the type of the + serialized - connection. - connection_id: - type: string - description: >- - identifies the connection end on the counterparty chain associated - with a + protocol buffer message. This string must contain at least - given connection. - prefix: - description: commitment merkle prefix of the counterparty chain. - type: object - properties: - key_prefix: - type: string - format: byte - title: >- - MerklePrefix is merkle path prefixed to the key. + one "/" character. The last segment of the URL's path must + represent - The constructed key from the Path and the key will be - append(Path.KeyPath, + the fully qualified name of the type (as in - append(Path.KeyPrefix, key...)) - description: >- - Counterparty defines the counterparty chain associated with a - connection end. - delay_period: - type: string - format: uint64 - counterparty_versions: - type: array - items: - type: object - properties: - identifier: - type: string - title: unique version identifier - features: - type: array - items: - type: string - title: list of features compatible with the specified identifier - description: >- - Version defines the versioning scheme used to negotiate the IBC - verison in + `path/google.protobuf.Duration`). The name should be in a + canonical form - the connection handshake. - proof_height: - type: object - properties: - revision_number: - type: string - format: uint64 - title: the revision that the client is currently on - revision_height: - type: string - format: uint64 - title: the height within the given revision - description: >- - Normally the RevisionHeight is incremented at each height while - keeping + (e.g., leading "." is not accepted). - RevisionNumber the same. However some consensus algorithms may choose - to - reset the height in certain conditions e.g. hard forks, state-machine + In practice, teams usually precompile into the binary all types + that they - breaking changes In these cases, the RevisionNumber is incremented so - that + expect it to use in the context of Any. However, for URLs which + use the - height continues to be monitonically increasing even as the - RevisionHeight + scheme `http`, `https`, or no scheme, one can optionally set up a + type - gets reset - title: >- - Height is a monotonically increasing data type + server that maps type URLs to message definitions as follows: - that can be compared against another Height for the purposes of - updating and - freezing clients - proof_init: - type: string - format: byte - title: |- - proof of the initialization the connection on Chain A: `UNITIALIZED -> - INIT` - proof_client: - type: string - format: byte - title: proof of client state included in message - proof_consensus: - type: string - format: byte - title: proof of client consensus state - consensus_height: - type: object - properties: - revision_number: - type: string - format: uint64 - title: the revision that the client is currently on - revision_height: - type: string - format: uint64 - title: the height within the given revision - description: >- - Normally the RevisionHeight is incremented at each height while - keeping + * If no scheme is provided, `https` is assumed. - RevisionNumber the same. However some consensus algorithms may choose - to + * An HTTP GET on the URL must yield a [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) - reset the height in certain conditions e.g. hard forks, state-machine + Note: this functionality is not currently available in the + official - breaking changes In these cases, the RevisionNumber is incremented so - that + protobuf release, and it is not used for type URLs beginning with - height continues to be monitonically increasing even as the - RevisionHeight + type.googleapis.com. As of May 2023, there are no widely used type + server - gets reset - title: >- - Height is a monotonically increasing data type + implementations and no plans to implement one. - that can be compared against another Height for the purposes of - updating and - freezing clients - signer: - type: string - host_consensus_state_proof: - type: string - format: byte - title: >- - optional proof data for host state machines that are unable to - introspect their own consensus state - description: |- - MsgConnectionOpenTry defines a msg sent by a Relayer to try to open a - connection on Chain B. - ibc.core.connection.v1.MsgConnectionOpenTryResponse: - type: object - description: >- - MsgConnectionOpenTryResponse defines the Msg/ConnectionOpenTry response - type. - ibc.core.connection.v1.MsgUpdateParams: - type: object - properties: - signer: - type: string - title: signer address - params: - description: |- - params defines the connection parameters to update. + Schemes other than `http`, `https` (or the empty scheme) might be - NOTE: All parameters must be supplied. - type: object - properties: - max_expected_time_per_block: - type: string - format: uint64 - description: >- - maximum expected time per block (in nanoseconds), used to enforce - block delay. This parameter should reflect the + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer message along + with a - largest amount of time that the chain might reasonably take to - produce the next block under normal operating + URL that describes the type of the serialized message. - conditions. A safe choice is 3-5x the expected time per block. - description: >- - MsgUpdateParams defines the sdk.Msg type to update the connection - parameters. - ibc.core.connection.v1.MsgUpdateParamsResponse: - type: object - description: MsgUpdateParamsResponse defines the MsgUpdateParams response type. - ibc.core.connection.v1.Params: - type: object - properties: - max_expected_time_per_block: - type: string - format: uint64 - description: >- - maximum expected time per block (in nanoseconds), used to enforce - block delay. This parameter should reflect the - largest amount of time that the chain might reasonably take to produce - the next block under normal operating + Protobuf library provides support to pack/unpack Any values in the + form - conditions. A safe choice is 3-5x the expected time per block. - description: Params defines the set of Connection parameters. - ibc.core.connection.v1.Version: - type: object - properties: - identifier: - type: string - title: unique version identifier - features: - type: array - items: - type: string - title: list of features compatible with the specified identifier - description: |- - Version defines the versioning scheme used to negotiate the IBC verison in - the connection handshake. - cosmos.base.query.v1beta1.PageRequest: - type: object - properties: - key: - type: string - format: byte - description: |- - key is a value returned in PageResponse.next_key to begin - querying the next page most efficiently. Only one of offset or key - should be set. - offset: - type: string - format: uint64 - description: |- - offset is a numeric offset that can be used when key is unavailable. - It is less efficient than using key. Only one of offset or key should - be set. - limit: - type: string - format: uint64 - description: >- - limit is the total number of results to be returned in the result - page. + of utility functions or additional generated methods of the Any type. + + + Example 1: Pack and unpack a message in C++. + + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } + + Example 2: Pack and unpack a message in Java. + + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } - If left empty it will default to a value to be set by each app. - count_total: - type: boolean - description: >- - count_total is set to true to indicate that the result set should - include + Example 3: Pack and unpack a message in Python. - a count of the total number of items available for pagination in UIs. + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... - count_total is only respected when offset is used. It is ignored when - key + Example 4: Pack and unpack a message in Go - is set. - reverse: - type: boolean - description: >- - reverse is set to true if results are to be returned in the descending - order. + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } + The pack methods provided by protobuf library will by default use - Since: cosmos-sdk 0.43 - description: |- - message SomeRequest { - Foo some_parameter = 1; - PageRequest pagination = 2; - } - title: |- - PageRequest is to be embedded in gRPC request messages for efficient - pagination. Ex: - cosmos.base.query.v1beta1.PageResponse: - type: object - properties: - next_key: - type: string - format: byte - description: |- - next_key is the key to be passed to PageRequest.key to - query the next page most efficiently. It will be empty if - there are no more results. - total: - type: string - format: uint64 - title: |- - total is total number of results available if PageRequest.count_total - was set, its value is undefined otherwise - description: |- - PageResponse is to be embedded in gRPC response messages where the - corresponding request message has used PageRequest. - - message SomeResponse { - repeated Bar results = 1; - PageResponse page = 2; - } - mycel.furnace.v1beta1.BurnAmount: - type: object - properties: - index: - type: string - format: uint64 - burn_started: - type: boolean - total_epochs: - type: string - format: uint64 - current_epoch: - type: string - format: uint64 - total_burn_amount: - type: object - properties: - denom: - type: string - amount: - type: string - description: |- - Coin defines a token with a denomination and an amount. + 'type.googleapis.com/full.type.name' as the type URL and the unpack - NOTE: The amount field is an Int which implements the custom method - signatures required by gogoproto. - cumulative_burnt_amount: - type: object - properties: - denom: - type: string - amount: - type: string - description: |- - Coin defines a token with a denomination and an amount. + methods only use the fully qualified type name after the last '/' - NOTE: The amount field is an Int which implements the custom method - signatures required by gogoproto. - mycel.furnace.v1beta1.EpochBurnConfig: - type: object - properties: - epoch_identifier: - type: string - current_burn_amount_index: - type: string - format: uint64 - default_total_epochs: - type: string - format: uint64 - start_time: - type: string - format: date-time - mycel.furnace.v1beta1.Params: - type: object - description: Params defines the parameters for the module. - mycel.furnace.v1beta1.QueryAllBurnAmountResponse: - type: object - properties: - burn_amount: - type: array - items: - type: object - properties: - index: - type: string - format: uint64 - burn_started: - type: boolean - total_epochs: - type: string - format: uint64 - current_epoch: - type: string - format: uint64 - total_burn_amount: - type: object - properties: - denom: - type: string - amount: - type: string - description: >- - Coin defines a token with a denomination and an amount. + in the type URL, for example "foo.bar.com/x/y.z" will yield type + name "y.z". - NOTE: The amount field is an Int which implements the custom - method - signatures required by gogoproto. - cumulative_burnt_amount: - type: object - properties: - denom: - type: string - amount: - type: string - description: >- - Coin defines a token with a denomination and an amount. + JSON + ==== - NOTE: The amount field is an Int which implements the custom - method + The JSON representation of an `Any` value uses the regular - signatures required by gogoproto. - pagination: - type: object - properties: - next_key: - type: string - format: byte - description: |- - next_key is the key to be passed to PageRequest.key to - query the next page most efficiently. It will be empty if - there are no more results. - total: - type: string - format: uint64 - title: >- - total is total number of results available if - PageRequest.count_total + representation of the deserialized, embedded message, with an - was set, its value is undefined otherwise - description: |- - PageResponse is to be embedded in gRPC response messages where the - corresponding request message has used PageRequest. + additional field `@type` which contains the type URL. Example: - message SomeResponse { - repeated Bar results = 1; - PageResponse page = 2; - } - mycel.furnace.v1beta1.QueryGetBurnAmountResponse: - type: object - properties: - burn_amount: - type: object - properties: - index: - type: string - format: uint64 - burn_started: - type: boolean - total_epochs: - type: string - format: uint64 - current_epoch: - type: string - format: uint64 - total_burn_amount: - type: object - properties: - denom: - type: string - amount: - type: string - description: >- - Coin defines a token with a denomination and an amount. + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } - NOTE: The amount field is an Int which implements the custom - method + If the embedded message type is well-known and has a custom JSON - signatures required by gogoproto. - cumulative_burnt_amount: - type: object - properties: - denom: - type: string - amount: - type: string - description: >- - Coin defines a token with a denomination and an amount. + representation, that representation will be embedded adding a field + `value` which holds the custom JSON in addition to the `@type` - NOTE: The amount field is an Int which implements the custom - method + field. Example (for message [google.protobuf.Duration][]): - signatures required by gogoproto. - mycel.furnace.v1beta1.QueryGetEpochBurnConfigResponse: - type: object - properties: - epoch_burn_config: - type: object - properties: - epoch_identifier: - type: string - current_burn_amount_index: - type: string - format: uint64 - default_total_epochs: - type: string - format: uint64 - start_time: - type: string - format: date-time - mycel.furnace.v1beta1.QueryParamsResponse: - type: object - properties: - params: - description: params holds all the parameters of this module. - type: object - description: QueryParamsResponse is response type for the Query/Params RPC method. - mycel.registry.v1beta1.AccessControl: - type: object - properties: - address: - type: string - role: - type: string - enum: - - NO_ROLE - - OWNER - - EDITOR - default: NO_ROLE - mycel.registry.v1beta1.DnsRecord: - type: object - properties: - dns_record_type: - type: string - enum: - - NO_RECORD_TYPE - - A - - AAAA - - CNAME - - NS - - MX - - PTR - - SOA - - SRV - - TXT - default: NO_RECORD_TYPE - value: + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + proof_upgrade_client: type: string - mycel.registry.v1beta1.DnsRecordType: - type: string - enum: - - NO_RECORD_TYPE - - A - - AAAA - - CNAME - - NS - - MX - - PTR - - SOA - - SRV - - TXT - default: NO_RECORD_TYPE - mycel.registry.v1beta1.DomainOwnership: - type: object - properties: - owner: + format: byte + title: proof that old chain committed to new client + proof_upgrade_consensus_state: type: string - domains: - type: array - items: - type: object - properties: - name: - type: string - parent: - type: string - mycel.registry.v1beta1.DomainRole: - type: string - enum: - - NO_ROLE - - OWNER - - EDITOR - default: NO_ROLE - mycel.registry.v1beta1.FeeByLength: - type: object - properties: - length: - type: integer - format: int64 - is_registrable: - type: boolean - fee: - type: object - properties: - denom: - type: string - amount: - type: string - description: |- - Coin defines a token with a denomination and an amount. - - NOTE: The amount field is an Int which implements the custom method - signatures required by gogoproto. - mycel.registry.v1beta1.FeeByName: - type: object - properties: - name: + format: byte + title: proof that old chain committed to new consensus state + signer: type: string - is_registrable: - type: boolean - fee: - type: object - properties: - denom: - type: string - amount: - type: string - description: |- - Coin defines a token with a denomination and an amount. + title: signer address + title: >- + MsgUpgradeClient defines an sdk.Msg to upgrade an IBC client to a new + client - NOTE: The amount field is an Int which implements the custom method - signatures required by gogoproto. - mycel.registry.v1beta1.NetworkName: - type: string - enum: - - NO_NETWORK - - BITCOIN_MAINNET_MAINNET - - BITCOIN_TESTNET_TESTNET - - BITCOIN_DEFAULT_DEFAULT - - ETHEREUM_MAINNET_MAINNET - - ETHEREUM_TESTNET_GOERLI - - ETHEREUM_TESTNET_SEPOLIA - - POLYGON_MAINNET_MAINNET - - POLYGON_TESTNET_MUMBAI - - BNB_MAINNET_MAINNET - - BNB_TESTNET_TESTNET - - AVALANCHE_MAINNET_CCHAIN - - AVALANCHE_TESTNET_FUJI - - GNOSIS_MAINNET_MAINNET - - GNOSIS_TESTNET_CHIADO - - OPTIMISM_MAINNET_MAINNET - - OPTIMISM_TESTNET_GOERLI - - ARBITRUM_MAINNET_MAINNET - - ARBITRUM_TESTNET_GOERLI - - SHARDEUM_BETANET_SPHINX - - ZETA_TESTNET_ATHENS - - EVM_DEFAULT_DEFAULT - - APTOS_MAINNET_MAINNET - - APTOS_TESTNET_TESTNET - - SUI_MAINNET_MAINNET - - SUI_TESTNET_TESTNET - - MOVE_DEFAULT_DEFAULT - - SOLANA_MAINNET_MAINNET - - SOLANA_TESTNET_TESTNET - - SOLANA_DEFAULT_DEFAULT - default: NO_NETWORK - description: |- - - BITCOIN_MAINNET_MAINNET: BTC 1xxx - - BITCOIN_DEFAULT_DEFAULT: DEFAULT - - ETHEREUM_MAINNET_MAINNET: EVM 2xxxx - Etheruem - - POLYGON_MAINNET_MAINNET: Polygon - - BNB_MAINNET_MAINNET: BNB Chain - - AVALANCHE_MAINNET_CCHAIN: Avalanche - - GNOSIS_MAINNET_MAINNET: Gnosis - - OPTIMISM_MAINNET_MAINNET: Optimism - - ARBITRUM_MAINNET_MAINNET: Arbitrum - - SHARDEUM_BETANET_SPHINX: Shardeum - SHARDEUM_MAINNET_ = 20015; - SHARDEUM_TESTNET_ = 20016; - - ZETA_TESTNET_ATHENS: Zetachain - ZETA_MAINNET_MAINNET = 20018; - - EVM_DEFAULT_DEFAULT: DEFAULT - - APTOS_MAINNET_MAINNET: MOVE 3xxxx - Aptos - - SUI_MAINNET_MAINNET: Sui - - MOVE_DEFAULT_DEFAULT: DEFAULT - - SOLANA_MAINNET_MAINNET: SOLANA 4xxxx - - SOLANA_DEFAULT_DEFAULT: DEFAULT - title: 'Rule: CHAINNAME_ENVIRONMENT_NETWORK' - mycel.registry.v1beta1.OwnedDomain: + state + ibc.core.client.v1.MsgUpgradeClientResponse: + type: object + description: MsgUpgradeClientResponse defines the Msg/UpgradeClient response type. + ibc.core.client.v1.Params: type: object properties: - name: - type: string - parent: - type: string - mycel.registry.v1beta1.Params: + allowed_clients: + type: array + items: + type: string + description: >- + allowed_clients defines the list of allowed client state types which + can be created + + and interacted with. If a client type is removed from the allowed + clients list, usage + + of this client will be disabled until it is added again to the list. + description: Params defines the set of IBC light client parameters. + ibc.core.commitment.v1.MerklePrefix: type: object properties: - staking_inflation_ratio: - type: number - format: float - top_level_domain_base_fee_in_usd: + key_prefix: type: string - format: int64 - description: Params defines the parameters for the module. - mycel.registry.v1beta1.QueryAllDomainOwnershipResponse: + format: byte + title: |- + MerklePrefix is merkle path prefixed to the key. + The constructed key from the Path and the key will be append(Path.KeyPath, + append(Path.KeyPrefix, key...)) + ibc.core.connection.v1.Counterparty: type: object properties: - domain_ownership: - type: array - items: - type: object - properties: - owner: - type: string - domains: - type: array - items: - type: object - properties: - name: - type: string - parent: - type: string - pagination: + client_id: + type: string + description: >- + identifies the client on the counterparty chain associated with a + given + + connection. + connection_id: + type: string + description: >- + identifies the connection end on the counterparty chain associated + with a + + given connection. + prefix: + description: commitment merkle prefix of the counterparty chain. type: object properties: - next_key: + key_prefix: type: string format: byte - description: |- - next_key is the key to be passed to PageRequest.key to - query the next page most efficiently. It will be empty if - there are no more results. - total: - type: string - format: uint64 - title: >- - total is total number of results available if - PageRequest.count_total + title: >- + MerklePrefix is merkle path prefixed to the key. - was set, its value is undefined otherwise - description: |- - PageResponse is to be embedded in gRPC response messages where the - corresponding request message has used PageRequest. + The constructed key from the Path and the key will be + append(Path.KeyPath, - message SomeResponse { - repeated Bar results = 1; - PageResponse page = 2; - } - mycel.registry.v1beta1.QueryAllRecordsResponse: + append(Path.KeyPrefix, key...)) + description: >- + Counterparty defines the counterparty chain associated with a connection + end. + ibc.core.connection.v1.MsgConnectionOpenAck: type: object properties: - values: + connection_id: + type: string + counterparty_connection_id: + type: string + version: type: object - additionalProperties: - type: object - properties: - dns_record: - type: object - properties: - dns_record_type: - type: string - enum: - - NO_RECORD_TYPE - - A - - AAAA - - CNAME - - NS - - MX - - PTR - - SOA - - SRV - - TXT - default: NO_RECORD_TYPE - value: - type: string - wallet_record: - type: object - properties: - wallet_record_type: - type: string - enum: - - NO_NETWORK - - BITCOIN_MAINNET_MAINNET - - BITCOIN_TESTNET_TESTNET - - BITCOIN_DEFAULT_DEFAULT - - ETHEREUM_MAINNET_MAINNET - - ETHEREUM_TESTNET_GOERLI - - ETHEREUM_TESTNET_SEPOLIA - - POLYGON_MAINNET_MAINNET - - POLYGON_TESTNET_MUMBAI - - BNB_MAINNET_MAINNET - - BNB_TESTNET_TESTNET - - AVALANCHE_MAINNET_CCHAIN - - AVALANCHE_TESTNET_FUJI - - GNOSIS_MAINNET_MAINNET - - GNOSIS_TESTNET_CHIADO - - OPTIMISM_MAINNET_MAINNET - - OPTIMISM_TESTNET_GOERLI - - ARBITRUM_MAINNET_MAINNET - - ARBITRUM_TESTNET_GOERLI - - SHARDEUM_BETANET_SPHINX - - ZETA_TESTNET_ATHENS - - EVM_DEFAULT_DEFAULT - - APTOS_MAINNET_MAINNET - - APTOS_TESTNET_TESTNET - - SUI_MAINNET_MAINNET - - SUI_TESTNET_TESTNET - - MOVE_DEFAULT_DEFAULT - - SOLANA_MAINNET_MAINNET - - SOLANA_TESTNET_TESTNET - - SOLANA_DEFAULT_DEFAULT - default: NO_NETWORK - description: |- - - BITCOIN_MAINNET_MAINNET: BTC 1xxx - - BITCOIN_DEFAULT_DEFAULT: DEFAULT - - ETHEREUM_MAINNET_MAINNET: EVM 2xxxx - Etheruem - - POLYGON_MAINNET_MAINNET: Polygon - - BNB_MAINNET_MAINNET: BNB Chain - - AVALANCHE_MAINNET_CCHAIN: Avalanche - - GNOSIS_MAINNET_MAINNET: Gnosis - - OPTIMISM_MAINNET_MAINNET: Optimism - - ARBITRUM_MAINNET_MAINNET: Arbitrum - - SHARDEUM_BETANET_SPHINX: Shardeum - SHARDEUM_MAINNET_ = 20015; - SHARDEUM_TESTNET_ = 20016; - - ZETA_TESTNET_ATHENS: Zetachain - ZETA_MAINNET_MAINNET = 20018; - - EVM_DEFAULT_DEFAULT: DEFAULT - - APTOS_MAINNET_MAINNET: MOVE 3xxxx - Aptos - - SUI_MAINNET_MAINNET: Sui - - MOVE_DEFAULT_DEFAULT: DEFAULT - - SOLANA_MAINNET_MAINNET: SOLANA 4xxxx - - SOLANA_DEFAULT_DEFAULT: DEFAULT - title: 'Rule: CHAINNAME_ENVIRONMENT_NETWORK' - value: - type: string - text_record: - type: object - properties: - key: - type: string - value: - type: string - mycel.registry.v1beta1.QueryAllSecondLevelDomainResponse: - type: object - properties: - second_level_domain: - type: array - items: - type: object - properties: - name: - type: string - parent: - type: string - expiration_date: + properties: + identifier: + type: string + title: unique version identifier + features: + type: array + items: type: string - format: date-time - pagination: + title: list of features compatible with the specified identifier + description: >- + Version defines the versioning scheme used to negotiate the IBC + verison in + + the connection handshake. + client_state: type: object properties: - next_key: - type: string - format: byte - description: |- - next_key is the key to be passed to PageRequest.key to - query the next page most efficiently. It will be empty if - there are no more results. - total: + '@type': type: string - format: uint64 - title: >- - total is total number of results available if - PageRequest.count_total + description: >- + A URL/resource name that uniquely identifies the type of the + serialized - was set, its value is undefined otherwise - description: |- - PageResponse is to be embedded in gRPC response messages where the - corresponding request message has used PageRequest. + protocol buffer message. This string must contain at least - message SomeResponse { - repeated Bar results = 1; - PageResponse page = 2; - } - mycel.registry.v1beta1.QueryAllTopLevelDomainResponse: - type: object - properties: - top_level_domain: - type: array - items: - type: object - properties: - name: - type: string - expiration_date: - type: string - format: date-time - subdomain_config: - type: object - properties: - max_subdomain_registrations: - type: string - format: uint64 - subdomain_registration_fees: - type: object - properties: - fee_by_length: - type: array - items: - type: object - properties: - length: - type: integer - format: int64 - is_registrable: - type: boolean - fee: - type: object - properties: - denom: - type: string - amount: - type: string - description: >- - Coin defines a token with a denomination and an - amount. - - - NOTE: The amount field is an Int which implements - the custom method - - signatures required by gogoproto. - fee_by_name: - type: array - items: - type: object - properties: - name: - type: string - is_registrable: - type: boolean - fee: - type: object - properties: - denom: - type: string - amount: - type: string - description: >- - Coin defines a token with a denomination and an - amount. - - - NOTE: The amount field is an Int which implements - the custom method - - signatures required by gogoproto. - default_fee: - type: object - properties: - denom: - type: string - amount: - type: string - description: >- - Coin defines a token with a denomination and an amount. + one "/" character. The last segment of the URL's path must + represent + + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should be in a + canonical form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the binary all types + that they + + expect it to use in the context of Any. However, for URLs which + use the + + scheme `http`, `https`, or no scheme, one can optionally set up a + type + + server that maps type URLs to message definitions as follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in the + official + + protobuf release, and it is not used for type URLs beginning with + + type.googleapis.com. As of May 2023, there are no widely used type + server + + implementations and no plans to implement one. + + + Schemes other than `http`, `https` (or the empty scheme) might be + + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer message along + with a + + URL that describes the type of the serialized message. + + + Protobuf library provides support to pack/unpack Any values in the + form + + of utility functions or additional generated methods of the Any type. + + + Example 1: Pack and unpack a message in C++. + + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } + + Example 2: Pack and unpack a message in Java. + + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } + Example 3: Pack and unpack a message in Python. + + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... - NOTE: The amount field is an Int which implements the - custom method + Example 4: Pack and unpack a message in Go - signatures required by gogoproto. - is_registrable: - type: boolean - registrable_role: - type: string - enum: - - NO_ROLE - - OWNER - - EDITOR - default: NO_ROLE - custom_expiration_date: - type: boolean - registration_policy: - type: string - enum: - - PRIVATE - - PUBLIC - default: PRIVATE - subdomain_count: - type: string - format: uint64 - access_control: - type: array - items: - type: object - properties: - address: - type: string - role: - type: string - enum: - - NO_ROLE - - OWNER - - EDITOR - default: NO_ROLE - total_withdrawal_amount: - type: array - items: - type: object - properties: - denom: - type: string - amount: - type: string - description: >- - Coin defines a token with a denomination and an amount. + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } + The pack methods provided by protobuf library will by default use - NOTE: The amount field is an Int which implements the custom - method + 'type.googleapis.com/full.type.name' as the type URL and the unpack - signatures required by gogoproto. - pagination: - type: object - properties: - next_key: - type: string - format: byte - description: |- - next_key is the key to be passed to PageRequest.key to - query the next page most efficiently. It will be empty if - there are no more results. - total: - type: string - format: uint64 - title: >- - total is total number of results available if - PageRequest.count_total + methods only use the fully qualified type name after the last '/' - was set, its value is undefined otherwise - description: |- - PageResponse is to be embedded in gRPC response messages where the - corresponding request message has used PageRequest. + in the type URL, for example "foo.bar.com/x/y.z" will yield type - message SomeResponse { - repeated Bar results = 1; - PageResponse page = 2; - } - mycel.registry.v1beta1.QueryDnsRecordResponse: - type: object - properties: - value: - type: object - properties: - dns_record_type: - type: string - enum: - - NO_RECORD_TYPE - - A - - AAAA - - CNAME - - NS - - MX - - PTR - - SOA - - SRV - - TXT - default: NO_RECORD_TYPE - value: - type: string - mycel.registry.v1beta1.QueryDomainRegistrationFeeResponse: - type: object - properties: - is_registrable: - type: boolean - fee: - type: array - items: - type: object - properties: - denom: - type: string - amount: - type: string - description: |- - Coin defines a token with a denomination and an amount. + name "y.z". - NOTE: The amount field is an Int which implements the custom method - signatures required by gogoproto. - registration_period_in_year: - type: string - format: uint64 - max_sub_domain_registrations: - type: string - format: uint64 - error_message: - type: string - mycel.registry.v1beta1.QueryGetDomainOwnershipResponse: - type: object - properties: - domain_ownership: - type: object - properties: - owner: - type: string - domains: - type: array - items: - type: object - properties: - name: - type: string - parent: - type: string - mycel.registry.v1beta1.QueryGetSecondLevelDomainResponse: - type: object - properties: - second_level_domain: - type: object - properties: - name: - type: string - parent: - type: string - expiration_date: - type: string - format: date-time - mycel.registry.v1beta1.QueryGetTopLevelDomainResponse: - type: object - properties: - top_level_domain: - type: object - properties: - name: - type: string - expiration_date: - type: string - format: date-time - subdomain_config: - type: object - properties: - max_subdomain_registrations: - type: string - format: uint64 - subdomain_registration_fees: - type: object - properties: - fee_by_length: - type: array - items: - type: object - properties: - length: - type: integer - format: int64 - is_registrable: - type: boolean - fee: - type: object - properties: - denom: - type: string - amount: - type: string - description: >- - Coin defines a token with a denomination and an - amount. + JSON - NOTE: The amount field is an Int which implements - the custom method + ==== - signatures required by gogoproto. - fee_by_name: - type: array - items: - type: object - properties: - name: - type: string - is_registrable: - type: boolean - fee: - type: object - properties: - denom: - type: string - amount: - type: string - description: >- - Coin defines a token with a denomination and an - amount. + The JSON representation of an `Any` value uses the regular + representation of the deserialized, embedded message, with an - NOTE: The amount field is an Int which implements - the custom method + additional field `@type` which contains the type URL. Example: - signatures required by gogoproto. - default_fee: - type: object - properties: - denom: - type: string - amount: - type: string - description: >- - Coin defines a token with a denomination and an amount. + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } - NOTE: The amount field is an Int which implements the - custom method + If the embedded message type is well-known and has a custom JSON - signatures required by gogoproto. - is_registrable: - type: boolean - registrable_role: - type: string - enum: - - NO_ROLE - - OWNER - - EDITOR - default: NO_ROLE - custom_expiration_date: - type: boolean - registration_policy: - type: string - enum: - - PRIVATE - - PUBLIC - default: PRIVATE - subdomain_count: - type: string - format: uint64 - access_control: - type: array - items: - type: object - properties: - address: - type: string - role: - type: string - enum: - - NO_ROLE - - OWNER - - EDITOR - default: NO_ROLE - total_withdrawal_amount: - type: array - items: - type: object - properties: - denom: - type: string - amount: - type: string - description: >- - Coin defines a token with a denomination and an amount. + representation, that representation will be embedded adding a field + `value` which holds the custom JSON in addition to the `@type` - NOTE: The amount field is an Int which implements the custom - method + field. Example (for message [google.protobuf.Duration][]): - signatures required by gogoproto. - mycel.registry.v1beta1.QueryParamsResponse: - type: object - properties: - params: - description: params holds all the parameters of this module. - type: object - properties: - staking_inflation_ratio: - type: number - format: float - top_level_domain_base_fee_in_usd: - type: string - format: int64 - description: QueryParamsResponse is response type for the Query/Params RPC method. - mycel.registry.v1beta1.QueryRoleResponse: - type: object - properties: - role: - type: string - mycel.registry.v1beta1.QueryTextRecordResponse: - type: object - properties: - value: - type: object - properties: - key: - type: string - value: - type: string - mycel.registry.v1beta1.QueryWalletRecordResponse: - type: object - properties: - value: - type: object - properties: - wallet_record_type: - type: string - enum: - - NO_NETWORK - - BITCOIN_MAINNET_MAINNET - - BITCOIN_TESTNET_TESTNET - - BITCOIN_DEFAULT_DEFAULT - - ETHEREUM_MAINNET_MAINNET - - ETHEREUM_TESTNET_GOERLI - - ETHEREUM_TESTNET_SEPOLIA - - POLYGON_MAINNET_MAINNET - - POLYGON_TESTNET_MUMBAI - - BNB_MAINNET_MAINNET - - BNB_TESTNET_TESTNET - - AVALANCHE_MAINNET_CCHAIN - - AVALANCHE_TESTNET_FUJI - - GNOSIS_MAINNET_MAINNET - - GNOSIS_TESTNET_CHIADO - - OPTIMISM_MAINNET_MAINNET - - OPTIMISM_TESTNET_GOERLI - - ARBITRUM_MAINNET_MAINNET - - ARBITRUM_TESTNET_GOERLI - - SHARDEUM_BETANET_SPHINX - - ZETA_TESTNET_ATHENS - - EVM_DEFAULT_DEFAULT - - APTOS_MAINNET_MAINNET - - APTOS_TESTNET_TESTNET - - SUI_MAINNET_MAINNET - - SUI_TESTNET_TESTNET - - MOVE_DEFAULT_DEFAULT - - SOLANA_MAINNET_MAINNET - - SOLANA_TESTNET_TESTNET - - SOLANA_DEFAULT_DEFAULT - default: NO_NETWORK - description: |- - - BITCOIN_MAINNET_MAINNET: BTC 1xxx - - BITCOIN_DEFAULT_DEFAULT: DEFAULT - - ETHEREUM_MAINNET_MAINNET: EVM 2xxxx - Etheruem - - POLYGON_MAINNET_MAINNET: Polygon - - BNB_MAINNET_MAINNET: BNB Chain - - AVALANCHE_MAINNET_CCHAIN: Avalanche - - GNOSIS_MAINNET_MAINNET: Gnosis - - OPTIMISM_MAINNET_MAINNET: Optimism - - ARBITRUM_MAINNET_MAINNET: Arbitrum - - SHARDEUM_BETANET_SPHINX: Shardeum - SHARDEUM_MAINNET_ = 20015; - SHARDEUM_TESTNET_ = 20016; - - ZETA_TESTNET_ATHENS: Zetachain - ZETA_MAINNET_MAINNET = 20018; - - EVM_DEFAULT_DEFAULT: DEFAULT - - APTOS_MAINNET_MAINNET: MOVE 3xxxx - Aptos - - SUI_MAINNET_MAINNET: Sui - - MOVE_DEFAULT_DEFAULT: DEFAULT - - SOLANA_MAINNET_MAINNET: SOLANA 4xxxx - - SOLANA_DEFAULT_DEFAULT: DEFAULT - title: 'Rule: CHAINNAME_ENVIRONMENT_NETWORK' - value: - type: string - mycel.registry.v1beta1.Record: - type: object - properties: - dns_record: - type: object - properties: - dns_record_type: - type: string - enum: - - NO_RECORD_TYPE - - A - - AAAA - - CNAME - - NS - - MX - - PTR - - SOA - - SRV - - TXT - default: NO_RECORD_TYPE - value: - type: string - wallet_record: + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + proof_height: type: object properties: - wallet_record_type: - type: string - enum: - - NO_NETWORK - - BITCOIN_MAINNET_MAINNET - - BITCOIN_TESTNET_TESTNET - - BITCOIN_DEFAULT_DEFAULT - - ETHEREUM_MAINNET_MAINNET - - ETHEREUM_TESTNET_GOERLI - - ETHEREUM_TESTNET_SEPOLIA - - POLYGON_MAINNET_MAINNET - - POLYGON_TESTNET_MUMBAI - - BNB_MAINNET_MAINNET - - BNB_TESTNET_TESTNET - - AVALANCHE_MAINNET_CCHAIN - - AVALANCHE_TESTNET_FUJI - - GNOSIS_MAINNET_MAINNET - - GNOSIS_TESTNET_CHIADO - - OPTIMISM_MAINNET_MAINNET - - OPTIMISM_TESTNET_GOERLI - - ARBITRUM_MAINNET_MAINNET - - ARBITRUM_TESTNET_GOERLI - - SHARDEUM_BETANET_SPHINX - - ZETA_TESTNET_ATHENS - - EVM_DEFAULT_DEFAULT - - APTOS_MAINNET_MAINNET - - APTOS_TESTNET_TESTNET - - SUI_MAINNET_MAINNET - - SUI_TESTNET_TESTNET - - MOVE_DEFAULT_DEFAULT - - SOLANA_MAINNET_MAINNET - - SOLANA_TESTNET_TESTNET - - SOLANA_DEFAULT_DEFAULT - default: NO_NETWORK - description: |- - - BITCOIN_MAINNET_MAINNET: BTC 1xxx - - BITCOIN_DEFAULT_DEFAULT: DEFAULT - - ETHEREUM_MAINNET_MAINNET: EVM 2xxxx - Etheruem - - POLYGON_MAINNET_MAINNET: Polygon - - BNB_MAINNET_MAINNET: BNB Chain - - AVALANCHE_MAINNET_CCHAIN: Avalanche - - GNOSIS_MAINNET_MAINNET: Gnosis - - OPTIMISM_MAINNET_MAINNET: Optimism - - ARBITRUM_MAINNET_MAINNET: Arbitrum - - SHARDEUM_BETANET_SPHINX: Shardeum - SHARDEUM_MAINNET_ = 20015; - SHARDEUM_TESTNET_ = 20016; - - ZETA_TESTNET_ATHENS: Zetachain - ZETA_MAINNET_MAINNET = 20018; - - EVM_DEFAULT_DEFAULT: DEFAULT - - APTOS_MAINNET_MAINNET: MOVE 3xxxx - Aptos - - SUI_MAINNET_MAINNET: Sui - - MOVE_DEFAULT_DEFAULT: DEFAULT - - SOLANA_MAINNET_MAINNET: SOLANA 4xxxx - - SOLANA_DEFAULT_DEFAULT: DEFAULT - title: 'Rule: CHAINNAME_ENVIRONMENT_NETWORK' - value: + revision_number: + type: string + format: uint64 + title: the revision that the client is currently on + revision_height: type: string - text_record: + format: uint64 + title: the height within the given revision + description: >- + Normally the RevisionHeight is incremented at each height while + keeping + + RevisionNumber the same. However some consensus algorithms may choose + to + + reset the height in certain conditions e.g. hard forks, state-machine + + breaking changes In these cases, the RevisionNumber is incremented so + that + + height continues to be monitonically increasing even as the + RevisionHeight + + gets reset + title: >- + Height is a monotonically increasing data type + + that can be compared against another Height for the purposes of + updating and + + freezing clients + proof_try: + type: string + format: byte + title: |- + proof of the initialization the connection on Chain B: `UNITIALIZED -> + TRYOPEN` + proof_client: + type: string + format: byte + title: proof of client state included in message + proof_consensus: + type: string + format: byte + title: proof of client consensus state + consensus_height: type: object properties: - key: + revision_number: type: string - value: + format: uint64 + title: the revision that the client is currently on + revision_height: type: string - mycel.registry.v1beta1.RegistrationPolicyType: - type: string - enum: - - PRIVATE - - PUBLIC - default: PRIVATE - mycel.registry.v1beta1.SecondLevelDomainResponse: - type: object - properties: - name: - type: string - parent: + format: uint64 + title: the height within the given revision + description: >- + Normally the RevisionHeight is incremented at each height while + keeping + + RevisionNumber the same. However some consensus algorithms may choose + to + + reset the height in certain conditions e.g. hard forks, state-machine + + breaking changes In these cases, the RevisionNumber is incremented so + that + + height continues to be monitonically increasing even as the + RevisionHeight + + gets reset + title: >- + Height is a monotonically increasing data type + + that can be compared against another Height for the purposes of + updating and + + freezing clients + signer: type: string - expiration_date: + host_consensus_state_proof: type: string - format: date-time - mycel.registry.v1beta1.SubdomainConfig: + format: byte + title: >- + optional proof data for host state machines that are unable to + introspect their own consensus state + description: |- + MsgConnectionOpenAck defines a msg sent by a Relayer to Chain A to + acknowledge the change of connection state to TRYOPEN on Chain B. + ibc.core.connection.v1.MsgConnectionOpenAckResponse: + type: object + description: >- + MsgConnectionOpenAckResponse defines the Msg/ConnectionOpenAck response + type. + ibc.core.connection.v1.MsgConnectionOpenConfirm: type: object properties: - max_subdomain_registrations: + connection_id: type: string - format: uint64 - subdomain_registration_fees: + proof_ack: + type: string + format: byte + title: >- + proof for the change of the connection state on Chain A: `INIT -> + OPEN` + proof_height: type: object properties: - fee_by_length: - type: array - items: - type: object - properties: - length: - type: integer - format: int64 - is_registrable: - type: boolean - fee: - type: object - properties: - denom: - type: string - amount: - type: string - description: >- - Coin defines a token with a denomination and an amount. - - - NOTE: The amount field is an Int which implements the custom - method + revision_number: + type: string + format: uint64 + title: the revision that the client is currently on + revision_height: + type: string + format: uint64 + title: the height within the given revision + description: >- + Normally the RevisionHeight is incremented at each height while + keeping - signatures required by gogoproto. - fee_by_name: - type: array - items: - type: object - properties: - name: - type: string - is_registrable: - type: boolean - fee: - type: object - properties: - denom: - type: string - amount: - type: string - description: >- - Coin defines a token with a denomination and an amount. + RevisionNumber the same. However some consensus algorithms may choose + to + reset the height in certain conditions e.g. hard forks, state-machine - NOTE: The amount field is an Int which implements the custom - method + breaking changes In these cases, the RevisionNumber is incremented so + that - signatures required by gogoproto. - default_fee: - type: object - properties: - denom: - type: string - amount: - type: string - description: >- - Coin defines a token with a denomination and an amount. + height continues to be monitonically increasing even as the + RevisionHeight + gets reset + title: >- + Height is a monotonically increasing data type - NOTE: The amount field is an Int which implements the custom - method + that can be compared against another Height for the purposes of + updating and - signatures required by gogoproto. - is_registrable: - type: boolean - registrable_role: - type: string - enum: - - NO_ROLE - - OWNER - - EDITOR - default: NO_ROLE - custom_expiration_date: - type: boolean - registration_policy: + freezing clients + signer: type: string - enum: - - PRIVATE - - PUBLIC - default: PRIVATE - mycel.registry.v1beta1.SubdomainRegistrationFees: + description: |- + MsgConnectionOpenConfirm defines a msg sent by a Relayer to Chain B to + acknowledge the change of connection state to OPEN on Chain A. + ibc.core.connection.v1.MsgConnectionOpenConfirmResponse: + type: object + description: |- + MsgConnectionOpenConfirmResponse defines the Msg/ConnectionOpenConfirm + response type. + ibc.core.connection.v1.MsgConnectionOpenInit: type: object properties: - fee_by_length: - type: array - items: - type: object - properties: - length: - type: integer - format: int64 - is_registrable: - type: boolean - fee: - type: object - properties: - denom: - type: string - amount: - type: string - description: >- - Coin defines a token with a denomination and an amount. - - - NOTE: The amount field is an Int which implements the custom - method + client_id: + type: string + counterparty: + type: object + properties: + client_id: + type: string + description: >- + identifies the client on the counterparty chain associated with a + given - signatures required by gogoproto. - fee_by_name: - type: array - items: - type: object - properties: - name: - type: string - is_registrable: - type: boolean - fee: - type: object - properties: - denom: - type: string - amount: - type: string - description: >- - Coin defines a token with a denomination and an amount. + connection. + connection_id: + type: string + description: >- + identifies the connection end on the counterparty chain associated + with a + given connection. + prefix: + description: commitment merkle prefix of the counterparty chain. + type: object + properties: + key_prefix: + type: string + format: byte + title: >- + MerklePrefix is merkle path prefixed to the key. - NOTE: The amount field is an Int which implements the custom - method + The constructed key from the Path and the key will be + append(Path.KeyPath, - signatures required by gogoproto. - default_fee: + append(Path.KeyPrefix, key...)) + description: >- + Counterparty defines the counterparty chain associated with a + connection end. + version: type: object properties: - denom: - type: string - amount: + identifier: type: string - description: |- - Coin defines a token with a denomination and an amount. + title: unique version identifier + features: + type: array + items: + type: string + title: list of features compatible with the specified identifier + description: >- + Version defines the versioning scheme used to negotiate the IBC + verison in - NOTE: The amount field is an Int which implements the custom method - signatures required by gogoproto. - mycel.registry.v1beta1.TextRecord: - type: object - properties: - key: + the connection handshake. + delay_period: type: string - value: + format: uint64 + signer: type: string - mycel.registry.v1beta1.TopLevelDomain: + description: |- + MsgConnectionOpenInit defines the msg sent by an account on Chain A to + initialize a connection with Chain B. + ibc.core.connection.v1.MsgConnectionOpenInitResponse: + type: object + description: |- + MsgConnectionOpenInitResponse defines the Msg/ConnectionOpenInit response + type. + ibc.core.connection.v1.MsgConnectionOpenTry: type: object properties: - name: + client_id: type: string - expiration_date: + previous_connection_id: type: string - format: date-time - subdomain_config: + description: >- + Deprecated: this field is unused. Crossing hellos are no longer + supported in core IBC. + client_state: type: object properties: - max_subdomain_registrations: + '@type': type: string - format: uint64 - subdomain_registration_fees: - type: object - properties: - fee_by_length: - type: array - items: - type: object - properties: - length: - type: integer - format: int64 - is_registrable: - type: boolean - fee: - type: object - properties: - denom: - type: string - amount: - type: string - description: >- - Coin defines a token with a denomination and an amount. + description: >- + A URL/resource name that uniquely identifies the type of the + serialized + protocol buffer message. This string must contain at least - NOTE: The amount field is an Int which implements the - custom method + one "/" character. The last segment of the URL's path must + represent - signatures required by gogoproto. - fee_by_name: - type: array - items: - type: object - properties: - name: - type: string - is_registrable: - type: boolean - fee: - type: object - properties: - denom: - type: string - amount: - type: string - description: >- - Coin defines a token with a denomination and an amount. + the fully qualified name of the type (as in + `path/google.protobuf.Duration`). The name should be in a + canonical form - NOTE: The amount field is an Int which implements the - custom method + (e.g., leading "." is not accepted). - signatures required by gogoproto. - default_fee: - type: object - properties: - denom: - type: string - amount: - type: string - description: >- - Coin defines a token with a denomination and an amount. + In practice, teams usually precompile into the binary all types + that they - NOTE: The amount field is an Int which implements the custom - method + expect it to use in the context of Any. However, for URLs which + use the - signatures required by gogoproto. - is_registrable: - type: boolean - registrable_role: - type: string - enum: - - NO_ROLE - - OWNER - - EDITOR - default: NO_ROLE - custom_expiration_date: - type: boolean - registration_policy: - type: string - enum: - - PRIVATE - - PUBLIC - default: PRIVATE - subdomain_count: - type: string - format: uint64 - access_control: - type: array - items: - type: object - properties: - address: - type: string - role: - type: string - enum: - - NO_ROLE - - OWNER - - EDITOR - default: NO_ROLE - total_withdrawal_amount: - type: array - items: - type: object - properties: - denom: - type: string - amount: - type: string - description: |- - Coin defines a token with a denomination and an amount. + scheme `http`, `https`, or no scheme, one can optionally set up a + type - NOTE: The amount field is an Int which implements the custom method - signatures required by gogoproto. - mycel.registry.v1beta1.WalletRecord: - type: object - properties: - wallet_record_type: - type: string - enum: - - NO_NETWORK - - BITCOIN_MAINNET_MAINNET - - BITCOIN_TESTNET_TESTNET - - BITCOIN_DEFAULT_DEFAULT - - ETHEREUM_MAINNET_MAINNET - - ETHEREUM_TESTNET_GOERLI - - ETHEREUM_TESTNET_SEPOLIA - - POLYGON_MAINNET_MAINNET - - POLYGON_TESTNET_MUMBAI - - BNB_MAINNET_MAINNET - - BNB_TESTNET_TESTNET - - AVALANCHE_MAINNET_CCHAIN - - AVALANCHE_TESTNET_FUJI - - GNOSIS_MAINNET_MAINNET - - GNOSIS_TESTNET_CHIADO - - OPTIMISM_MAINNET_MAINNET - - OPTIMISM_TESTNET_GOERLI - - ARBITRUM_MAINNET_MAINNET - - ARBITRUM_TESTNET_GOERLI - - SHARDEUM_BETANET_SPHINX - - ZETA_TESTNET_ATHENS - - EVM_DEFAULT_DEFAULT - - APTOS_MAINNET_MAINNET - - APTOS_TESTNET_TESTNET - - SUI_MAINNET_MAINNET - - SUI_TESTNET_TESTNET - - MOVE_DEFAULT_DEFAULT - - SOLANA_MAINNET_MAINNET - - SOLANA_TESTNET_TESTNET - - SOLANA_DEFAULT_DEFAULT - default: NO_NETWORK - description: |- - - BITCOIN_MAINNET_MAINNET: BTC 1xxx - - BITCOIN_DEFAULT_DEFAULT: DEFAULT - - ETHEREUM_MAINNET_MAINNET: EVM 2xxxx - Etheruem - - POLYGON_MAINNET_MAINNET: Polygon - - BNB_MAINNET_MAINNET: BNB Chain - - AVALANCHE_MAINNET_CCHAIN: Avalanche - - GNOSIS_MAINNET_MAINNET: Gnosis - - OPTIMISM_MAINNET_MAINNET: Optimism - - ARBITRUM_MAINNET_MAINNET: Arbitrum - - SHARDEUM_BETANET_SPHINX: Shardeum - SHARDEUM_MAINNET_ = 20015; - SHARDEUM_TESTNET_ = 20016; - - ZETA_TESTNET_ATHENS: Zetachain - ZETA_MAINNET_MAINNET = 20018; - - EVM_DEFAULT_DEFAULT: DEFAULT - - APTOS_MAINNET_MAINNET: MOVE 3xxxx - Aptos - - SUI_MAINNET_MAINNET: Sui - - MOVE_DEFAULT_DEFAULT: DEFAULT - - SOLANA_MAINNET_MAINNET: SOLANA 4xxxx - - SOLANA_DEFAULT_DEFAULT: DEFAULT - title: 'Rule: CHAINNAME_ENVIRONMENT_NETWORK' - value: - type: string - mycel.registry.v1beta1.MsgExtendTopLevelDomainExpirationDate: - type: object - properties: - creator: - type: string - name: - type: string - extension_period_in_year: - type: string - format: uint64 - mycel.registry.v1beta1.MsgExtendTopLevelDomainExpirationDateResponse: - type: object - properties: - top_level_domain: - type: object - properties: - name: - type: string - expiration_date: - type: string - format: date-time - subdomain_config: - type: object - properties: - max_subdomain_registrations: - type: string - format: uint64 - subdomain_registration_fees: - type: object - properties: - fee_by_length: - type: array - items: - type: object - properties: - length: - type: integer - format: int64 - is_registrable: - type: boolean - fee: - type: object - properties: - denom: - type: string - amount: - type: string - description: >- - Coin defines a token with a denomination and an - amount. + server that maps type URLs to message definitions as follows: - NOTE: The amount field is an Int which implements - the custom method + * If no scheme is provided, `https` is assumed. - signatures required by gogoproto. - fee_by_name: - type: array - items: - type: object - properties: - name: - type: string - is_registrable: - type: boolean - fee: - type: object - properties: - denom: - type: string - amount: - type: string - description: >- - Coin defines a token with a denomination and an - amount. + * An HTTP GET on the URL must yield a [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in the + official + + protobuf release, and it is not used for type URLs beginning with + + type.googleapis.com. As of May 2023, there are no widely used type + server + + implementations and no plans to implement one. + + + Schemes other than `http`, `https` (or the empty scheme) might be + + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer message along + with a + + URL that describes the type of the serialized message. + + + Protobuf library provides support to pack/unpack Any values in the + form + + of utility functions or additional generated methods of the Any type. + + + Example 1: Pack and unpack a message in C++. + + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } + + Example 2: Pack and unpack a message in Java. + + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } + + Example 3: Pack and unpack a message in Python. + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... - NOTE: The amount field is an Int which implements - the custom method + Example 4: Pack and unpack a message in Go - signatures required by gogoproto. - default_fee: - type: object - properties: - denom: - type: string - amount: - type: string - description: >- - Coin defines a token with a denomination and an amount. + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } + The pack methods provided by protobuf library will by default use - NOTE: The amount field is an Int which implements the - custom method + 'type.googleapis.com/full.type.name' as the type URL and the unpack - signatures required by gogoproto. - is_registrable: - type: boolean - registrable_role: - type: string - enum: - - NO_ROLE - - OWNER - - EDITOR - default: NO_ROLE - custom_expiration_date: - type: boolean - registration_policy: - type: string - enum: - - PRIVATE - - PUBLIC - default: PRIVATE - subdomain_count: - type: string - format: uint64 - access_control: - type: array - items: - type: object - properties: - address: - type: string - role: - type: string - enum: - - NO_ROLE - - OWNER - - EDITOR - default: NO_ROLE - total_withdrawal_amount: - type: array - items: - type: object - properties: - denom: - type: string - amount: - type: string - description: >- - Coin defines a token with a denomination and an amount. + methods only use the fully qualified type name after the last '/' + in the type URL, for example "foo.bar.com/x/y.z" will yield type - NOTE: The amount field is an Int which implements the custom - method + name "y.z". - signatures required by gogoproto. - fee: - type: object - properties: - total_fee: - type: array - items: - type: object - properties: - denom: - type: string - amount: - type: string - description: >- - Coin defines a token with a denomination and an amount. + JSON - NOTE: The amount field is an Int which implements the custom - method + ==== - signatures required by gogoproto. - burn_weight: - type: string - fee_to_burn: - type: object - properties: - denom: - type: string - amount: - type: string - description: >- - Coin defines a token with a denomination and an amount. + The JSON representation of an `Any` value uses the regular + representation of the deserialized, embedded message, with an - NOTE: The amount field is an Int which implements the custom - method + additional field `@type` which contains the type URL. Example: - signatures required by gogoproto. - fee_to_treasury: - type: object - properties: - denom: - type: string - amount: - type: string - description: >- - Coin defines a token with a denomination and an amount. + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } - NOTE: The amount field is an Int which implements the custom - method + If the embedded message type is well-known and has a custom JSON - signatures required by gogoproto. - mycel.registry.v1beta1.MsgRegisterSecondLevelDomain: - type: object - properties: - creator: - type: string - name: - type: string - parent: - type: string - registration_period_in_year: - type: string - format: uint64 - mycel.registry.v1beta1.MsgRegisterSecondLevelDomainResponse: - type: object - mycel.registry.v1beta1.MsgRegisterTopLevelDomain: - type: object - properties: - creator: - type: string - name: - type: string - registration_period_in_year: - type: string - format: uint64 - mycel.registry.v1beta1.MsgRegisterTopLevelDomainResponse: - type: object - properties: - top_level_domain: + representation, that representation will be embedded adding a field + + `value` which holds the custom JSON in addition to the `@type` + + field. Example (for message [google.protobuf.Duration][]): + + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + counterparty: type: object properties: - name: + client_id: type: string - expiration_date: + description: >- + identifies the client on the counterparty chain associated with a + given + + connection. + connection_id: type: string - format: date-time - subdomain_config: + description: >- + identifies the connection end on the counterparty chain associated + with a + + given connection. + prefix: + description: commitment merkle prefix of the counterparty chain. type: object properties: - max_subdomain_registrations: + key_prefix: type: string - format: uint64 - subdomain_registration_fees: - type: object - properties: - fee_by_length: - type: array - items: - type: object - properties: - length: - type: integer - format: int64 - is_registrable: - type: boolean - fee: - type: object - properties: - denom: - type: string - amount: - type: string - description: >- - Coin defines a token with a denomination and an - amount. - - - NOTE: The amount field is an Int which implements - the custom method - - signatures required by gogoproto. - fee_by_name: - type: array - items: - type: object - properties: - name: - type: string - is_registrable: - type: boolean - fee: - type: object - properties: - denom: - type: string - amount: - type: string - description: >- - Coin defines a token with a denomination and an - amount. - - - NOTE: The amount field is an Int which implements - the custom method - - signatures required by gogoproto. - default_fee: - type: object - properties: - denom: - type: string - amount: - type: string - description: >- - Coin defines a token with a denomination and an amount. - + format: byte + title: >- + MerklePrefix is merkle path prefixed to the key. - NOTE: The amount field is an Int which implements the - custom method + The constructed key from the Path and the key will be + append(Path.KeyPath, - signatures required by gogoproto. - is_registrable: - type: boolean - registrable_role: - type: string - enum: - - NO_ROLE - - OWNER - - EDITOR - default: NO_ROLE - custom_expiration_date: - type: boolean - registration_policy: + append(Path.KeyPrefix, key...)) + description: >- + Counterparty defines the counterparty chain associated with a + connection end. + delay_period: + type: string + format: uint64 + counterparty_versions: + type: array + items: + type: object + properties: + identifier: + type: string + title: unique version identifier + features: + type: array + items: type: string - enum: - - PRIVATE - - PUBLIC - default: PRIVATE - subdomain_count: + title: list of features compatible with the specified identifier + description: >- + Version defines the versioning scheme used to negotiate the IBC + verison in + + the connection handshake. + proof_height: + type: object + properties: + revision_number: type: string format: uint64 - access_control: - type: array - items: - type: object - properties: - address: - type: string - role: - type: string - enum: - - NO_ROLE - - OWNER - - EDITOR - default: NO_ROLE - total_withdrawal_amount: - type: array - items: - type: object - properties: - denom: - type: string - amount: - type: string - description: >- - Coin defines a token with a denomination and an amount. + title: the revision that the client is currently on + revision_height: + type: string + format: uint64 + title: the height within the given revision + description: >- + Normally the RevisionHeight is incremented at each height while + keeping + RevisionNumber the same. However some consensus algorithms may choose + to - NOTE: The amount field is an Int which implements the custom - method + reset the height in certain conditions e.g. hard forks, state-machine - signatures required by gogoproto. - fee: - type: object - properties: - total_fee: - type: array - items: - type: object - properties: - denom: - type: string - amount: - type: string - description: >- - Coin defines a token with a denomination and an amount. + breaking changes In these cases, the RevisionNumber is incremented so + that + height continues to be monitonically increasing even as the + RevisionHeight - NOTE: The amount field is an Int which implements the custom - method + gets reset + title: >- + Height is a monotonically increasing data type - signatures required by gogoproto. - burn_weight: + that can be compared against another Height for the purposes of + updating and + + freezing clients + proof_init: + type: string + format: byte + title: |- + proof of the initialization the connection on Chain A: `UNITIALIZED -> + INIT` + proof_client: + type: string + format: byte + title: proof of client state included in message + proof_consensus: + type: string + format: byte + title: proof of client consensus state + consensus_height: + type: object + properties: + revision_number: type: string - fee_to_burn: - type: object - properties: - denom: - type: string - amount: - type: string - description: >- - Coin defines a token with a denomination and an amount. + format: uint64 + title: the revision that the client is currently on + revision_height: + type: string + format: uint64 + title: the height within the given revision + description: >- + Normally the RevisionHeight is incremented at each height while + keeping + RevisionNumber the same. However some consensus algorithms may choose + to - NOTE: The amount field is an Int which implements the custom - method + reset the height in certain conditions e.g. hard forks, state-machine - signatures required by gogoproto. - fee_to_treasury: - type: object - properties: - denom: - type: string - amount: - type: string - description: >- - Coin defines a token with a denomination and an amount. + breaking changes In these cases, the RevisionNumber is incremented so + that + height continues to be monitonically increasing even as the + RevisionHeight - NOTE: The amount field is an Int which implements the custom - method + gets reset + title: >- + Height is a monotonically increasing data type - signatures required by gogoproto. - mycel.registry.v1beta1.MsgUpdateDnsRecord: - type: object - properties: - creator: - type: string - name: - type: string - parent: - type: string - dns_record_type: + that can be compared against another Height for the purposes of + updating and + + freezing clients + signer: type: string - value: + host_consensus_state_proof: type: string - mycel.registry.v1beta1.MsgUpdateDnsRecordResponse: + format: byte + title: >- + optional proof data for host state machines that are unable to + introspect their own consensus state + description: |- + MsgConnectionOpenTry defines a msg sent by a Relayer to try to open a + connection on Chain B. + ibc.core.connection.v1.MsgConnectionOpenTryResponse: type: object - mycel.registry.v1beta1.MsgUpdateTextRecord: + description: >- + MsgConnectionOpenTryResponse defines the Msg/ConnectionOpenTry response + type. + ibc.core.connection.v1.MsgUpdateParams: type: object properties: - creator: - type: string - name: - type: string - parent: - type: string - key: - type: string - value: + signer: type: string - mycel.registry.v1beta1.MsgUpdateTextRecordResponse: + title: signer address + params: + description: |- + params defines the connection parameters to update. + + NOTE: All parameters must be supplied. + type: object + properties: + max_expected_time_per_block: + type: string + format: uint64 + description: >- + maximum expected time per block (in nanoseconds), used to enforce + block delay. This parameter should reflect the + + largest amount of time that the chain might reasonably take to + produce the next block under normal operating + + conditions. A safe choice is 3-5x the expected time per block. + description: >- + MsgUpdateParams defines the sdk.Msg type to update the connection + parameters. + ibc.core.connection.v1.MsgUpdateParamsResponse: type: object - mycel.registry.v1beta1.MsgUpdateTopLevelDomainRegistrationPolicy: + description: MsgUpdateParamsResponse defines the MsgUpdateParams response type. + ibc.core.connection.v1.Params: type: object properties: - creator: - type: string - name: - type: string - registration_policy: + max_expected_time_per_block: type: string - mycel.registry.v1beta1.MsgUpdateTopLevelDomainRegistrationPolicyResponse: + format: uint64 + description: >- + maximum expected time per block (in nanoseconds), used to enforce + block delay. This parameter should reflect the + + largest amount of time that the chain might reasonably take to produce + the next block under normal operating + + conditions. A safe choice is 3-5x the expected time per block. + description: Params defines the set of Connection parameters. + ibc.core.connection.v1.Version: type: object - mycel.registry.v1beta1.MsgUpdateWalletRecord: + properties: + identifier: + type: string + title: unique version identifier + features: + type: array + items: + type: string + title: list of features compatible with the specified identifier + description: |- + Version defines the versioning scheme used to negotiate the IBC verison in + the connection handshake. + mycel.epochs.v1beta1.EpochInfo: type: object properties: - creator: + identifier: type: string - name: + start_time: type: string - parent: + format: date-time + duration: type: string - wallet_record_type: + current_epoch: type: string - value: + format: int64 + current_epoch_start_time: type: string - mycel.registry.v1beta1.MsgUpdateWalletRecordResponse: - type: object - mycel.registry.v1beta1.MsgWithdrawRegistrationFee: + format: date-time + epoch_counting_started: + type: boolean + current_epoch_start_height: + type: string + format: int64 + mycel.epochs.v1beta1.QueryCurrentEpochResponse: type: object properties: - creator: - type: string - name: - type: string - mycel.registry.v1beta1.MsgWithdrawRegistrationFeeResponse: + epoch_info: + type: object + properties: + identifier: + type: string + start_time: + type: string + format: date-time + duration: + type: string + current_epoch: + type: string + format: int64 + current_epoch_start_time: + type: string + format: date-time + epoch_counting_started: + type: boolean + current_epoch_start_height: + type: string + format: int64 + mycel.epochs.v1beta1.QueryEpochsInfoResponse: type: object properties: - registration_fee: + epochs: type: array items: type: object properties: - denom: + identifier: type: string - amount: + start_time: type: string - description: |- - Coin defines a token with a denomination and an amount. - - NOTE: The amount field is an Int which implements the custom method - signatures required by gogoproto. - mycel.registry.v1beta1.TopLevelDomainFee: - type: object - properties: - total_fee: - type: array - items: - type: object - properties: - denom: + format: date-time + duration: type: string - amount: + current_epoch: type: string - description: |- - Coin defines a token with a denomination and an amount. - - NOTE: The amount field is an Int which implements the custom method - signatures required by gogoproto. - burn_weight: - type: string - fee_to_burn: - type: object - properties: - denom: - type: string - amount: - type: string - description: |- - Coin defines a token with a denomination and an amount. - - NOTE: The amount field is an Int which implements the custom method - signatures required by gogoproto. - fee_to_treasury: - type: object - properties: - denom: - type: string - amount: - type: string - description: |- - Coin defines a token with a denomination and an amount. - - NOTE: The amount field is an Int which implements the custom method - signatures required by gogoproto. + format: int64 + current_epoch_start_time: + type: string + format: date-time + epoch_counting_started: + type: boolean + current_epoch_start_height: + type: string + format: int64 diff --git a/go.mod b/go.mod index 4cb774c7..49fa59fd 100644 --- a/go.mod +++ b/go.mod @@ -44,6 +44,7 @@ require ( github.com/spf13/pflag v1.0.5 github.com/spf13/viper v1.18.2 github.com/stretchr/testify v1.8.4 + golang.org/x/exp v0.0.0-20231110203233-9a3e6036ecaa golang.org/x/tools v0.15.0 google.golang.org/genproto/googleapis/api v0.0.0-20231120223509-83a465c0220f google.golang.org/grpc v1.60.1 @@ -242,7 +243,6 @@ require ( go.uber.org/multierr v1.11.0 // indirect go.uber.org/zap v1.26.0 // indirect golang.org/x/crypto v0.18.0 // indirect - golang.org/x/exp v0.0.0-20231110203233-9a3e6036ecaa // indirect golang.org/x/mod v0.14.0 // indirect golang.org/x/net v0.20.0 // indirect golang.org/x/oauth2 v0.15.0 // indirect diff --git a/proto/mycel/epochs/module/v1/module.proto b/proto/mycel/epochs/module/v1/module.proto index 6ee1afb7..a10fbd6a 100644 --- a/proto/mycel/epochs/module/v1/module.proto +++ b/proto/mycel/epochs/module/v1/module.proto @@ -11,4 +11,10 @@ message Module { option (cosmos.app.v1alpha1.module) = { go_import : "github.com/mycel-domain/mycel/x/epochs" }; + +// authority defines the custom module authority. If not set, defaults to the governance module. + string authority = 1; + + repeated string hooks_order = 2; } + diff --git a/proto/mycel/epochs/v1beta1/params.proto b/proto/mycel/epochs/v1beta1/params.proto deleted file mode 100644 index 4eff5045..00000000 --- a/proto/mycel/epochs/v1beta1/params.proto +++ /dev/null @@ -1,9 +0,0 @@ -syntax = "proto3"; -package mycel.epochs.v1beta1; - -import "gogoproto/gogo.proto"; - -option go_package = "github.com/mycel-domain/mycel/x/epochs/types"; - -// Params defines the parameters for the module. -message Params { option (gogoproto.goproto_stringer) = false; } diff --git a/proto/mycel/epochs/v1beta1/query.proto b/proto/mycel/epochs/v1beta1/query.proto index 53c240a5..85be8b44 100644 --- a/proto/mycel/epochs/v1beta1/query.proto +++ b/proto/mycel/epochs/v1beta1/query.proto @@ -1,52 +1,34 @@ syntax = "proto3"; package mycel.epochs.v1beta1; -import "cosmos/base/query/v1beta1/pagination.proto"; import "gogoproto/gogo.proto"; import "google/api/annotations.proto"; import "mycel/epochs/v1beta1/epoch_info.proto"; -import "mycel/epochs/v1beta1/params.proto"; option go_package = "github.com/mycel-domain/mycel/x/epochs/types"; +// Query defines the gRPC querier service. // Query defines the gRPC querier service. service Query { - // Parameters queries the parameters of the module. - rpc Params(QueryParamsRequest) returns (QueryParamsResponse) { - option (google.api.http).get = "/mycel/epochs/v1beta1/params"; - } - - // Queries a list of EpochInfo items. - rpc EpochInfo(QueryGetEpochInfoRequest) returns (QueryGetEpochInfoResponse) { - option (google.api.http).get = - "/mycel/epochs/v1beta1/epoch_info/{identifier}"; + // EpochInfos provide running epochInfos + rpc EpochInfos(QueryEpochsInfoRequest) returns (QueryEpochsInfoResponse) { + option (google.api.http).get = "/mycel/epochs/v1beta1/epochs"; } - rpc EpochInfoAll(QueryAllEpochInfoRequest) - returns (QueryAllEpochInfoResponse) { - option (google.api.http).get = "/mycel/epochs/v1beta1/epoch_info"; + // CurrentEpoch provide current epoch of specified identifier + rpc CurrentEpoch(QueryCurrentEpochRequest) + returns (QueryCurrentEpochResponse) { + option (google.api.http).get = "/mycel/epochs/v1beta1/current_epoch"; } } -// QueryParamsRequest is request type for the Query/Params RPC method. -message QueryParamsRequest {} - -// QueryParamsResponse is response type for the Query/Params RPC method. -message QueryParamsResponse { - // params holds all the parameters of this module. - Params params = 1 [ (gogoproto.nullable) = false ]; -} - -message QueryGetEpochInfoRequest { string identifier = 1; } - -message QueryGetEpochInfoResponse { - EpochInfo epoch_info = 1 [ (gogoproto.nullable) = false ]; +message QueryEpochsInfoRequest {} +message QueryEpochsInfoResponse { + repeated EpochInfo epochs = 1 [ (gogoproto.nullable) = false ]; } -message QueryAllEpochInfoRequest { - cosmos.base.query.v1beta1.PageRequest pagination = 1; +message QueryCurrentEpochRequest { + string identifier = 1; } - -message QueryAllEpochInfoResponse { - repeated EpochInfo epoch_info = 1 [ (gogoproto.nullable) = false ]; - cosmos.base.query.v1beta1.PageResponse pagination = 2; +message QueryCurrentEpochResponse { + EpochInfo epoch_info = 1 [ (gogoproto.nullable) = false ]; } diff --git a/proto/mycel/epochs/v1beta1/tx.proto b/proto/mycel/epochs/v1beta1/tx.proto index bb6ec908..cf1a2483 100644 --- a/proto/mycel/epochs/v1beta1/tx.proto +++ b/proto/mycel/epochs/v1beta1/tx.proto @@ -1,7 +1,15 @@ syntax = "proto3"; package mycel.epochs.v1beta1; +import "amino/amino.proto"; +import "cosmos/msg/v1/msg.proto"; +import "cosmos_proto/cosmos.proto"; +import "gogoproto/gogo.proto"; + option go_package = "github.com/mycel-domain/mycel/x/epochs/types"; // Msg defines the Msg service. -service Msg {} +service Msg { + option (cosmos.msg.v1.service) = true; +} + diff --git a/proto/mycel/furnace/module/v1/module.proto b/proto/mycel/furnace/module/v1/module.proto index 4f309c38..1eae81f3 100644 --- a/proto/mycel/furnace/module/v1/module.proto +++ b/proto/mycel/furnace/module/v1/module.proto @@ -11,4 +11,7 @@ message Module { option (cosmos.app.v1alpha1.module) = { go_import : "github.com/mycel-domain/mycel/x/furnace" }; +// authority defines the custom module authority. If not set, defaults to the governance module. + string authority = 1; + } diff --git a/proto/mycel/registry/module/v1/module.proto b/proto/mycel/registry/module/v1/module.proto index 83aeca40..0d47c68e 100644 --- a/proto/mycel/registry/module/v1/module.proto +++ b/proto/mycel/registry/module/v1/module.proto @@ -11,4 +11,7 @@ message Module { option (cosmos.app.v1alpha1.module) = { go_import : "github.com/mycel-domain/mycel/x/registry" }; +// authority defines the custom module authority. If not set, defaults to the governance module. + string authority = 1; + } diff --git a/x/epochs/client/cli/query.go b/x/epochs/client/cli/query.go deleted file mode 100644 index ec3f5d77..00000000 --- a/x/epochs/client/cli/query.go +++ /dev/null @@ -1,30 +0,0 @@ -package cli - -import ( - "fmt" - - "github.com/spf13/cobra" - - "github.com/cosmos/cosmos-sdk/client" - - "github.com/mycel-domain/mycel/x/epochs/types" -) - -// GetQueryCmd returns the cli query commands for this module -func GetQueryCmd(queryRoute string) *cobra.Command { - // Group epochs queries under a subcommand - cmd := &cobra.Command{ - Use: types.ModuleName, - Short: fmt.Sprintf("Querying commands for the %s module", types.ModuleName), - DisableFlagParsing: true, - SuggestionsMinimumDistance: 2, - RunE: client.ValidateCmd, - } - - cmd.AddCommand(CmdQueryParams()) - cmd.AddCommand(CmdListEpochInfo()) - cmd.AddCommand(CmdShowEpochInfo()) - // this line is used by starport scaffolding # 1 - - return cmd -} diff --git a/x/epochs/client/cli/query_epoch_info.go b/x/epochs/client/cli/query_epoch_info.go deleted file mode 100644 index b9564b14..00000000 --- a/x/epochs/client/cli/query_epoch_info.go +++ /dev/null @@ -1,75 +0,0 @@ -package cli - -import ( - "context" - - "github.com/spf13/cobra" - - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/client/flags" - - "github.com/mycel-domain/mycel/x/epochs/types" -) - -func CmdListEpochInfo() *cobra.Command { - cmd := &cobra.Command{ - Use: "list-epoch-info", - Short: "list all epochInfo", - RunE: func(cmd *cobra.Command, args []string) error { - clientCtx := client.GetClientContextFromCmd(cmd) - - pageReq, err := client.ReadPageRequest(cmd.Flags()) - if err != nil { - return err - } - - queryClient := types.NewQueryClient(clientCtx) - - params := &types.QueryAllEpochInfoRequest{ - Pagination: pageReq, - } - - res, err := queryClient.EpochInfoAll(context.Background(), params) - if err != nil { - return err - } - - return clientCtx.PrintProto(res) - }, - } - - flags.AddPaginationFlagsToCmd(cmd, cmd.Use) - flags.AddQueryFlagsToCmd(cmd) - - return cmd -} - -func CmdShowEpochInfo() *cobra.Command { - cmd := &cobra.Command{ - Use: "show-epoch-info [identifier]", - Short: "shows a epochInfo", - Args: cobra.ExactArgs(1), - RunE: func(cmd *cobra.Command, args []string) (err error) { - clientCtx := client.GetClientContextFromCmd(cmd) - - queryClient := types.NewQueryClient(clientCtx) - - argIdentifier := args[0] - - params := &types.QueryGetEpochInfoRequest{ - Identifier: argIdentifier, - } - - res, err := queryClient.EpochInfo(context.Background(), params) - if err != nil { - return err - } - - return clientCtx.PrintProto(res) - }, - } - - flags.AddQueryFlagsToCmd(cmd) - - return cmd -} diff --git a/x/epochs/client/cli/query_epoch_info_test.go b/x/epochs/client/cli/query_epoch_info_test.go deleted file mode 100644 index 53f01645..00000000 --- a/x/epochs/client/cli/query_epoch_info_test.go +++ /dev/null @@ -1,147 +0,0 @@ -package cli_test - -import ( - "fmt" - "strconv" - "testing" - - "github.com/stretchr/testify/require" - "google.golang.org/grpc/codes" - "google.golang.org/grpc/status" - - tmcli "github.com/cometbft/cometbft/libs/cli" - - "github.com/cosmos/cosmos-sdk/client/flags" - clitestutil "github.com/cosmos/cosmos-sdk/testutil/cli" - - "github.com/mycel-domain/mycel/testutil/network" - "github.com/mycel-domain/mycel/testutil/nullify" - "github.com/mycel-domain/mycel/x/epochs/client/cli" - "github.com/mycel-domain/mycel/x/epochs/types" -) - -// Prevent strconv unused error -var _ = strconv.IntSize - -func networkWithEpochInfoObjects(t *testing.T, n int) (*network.Network, []types.EpochInfo) { - t.Helper() - cfg := network.DefaultConfig() - state := types.GenesisState{} - require.NoError(t, cfg.Codec.UnmarshalJSON(cfg.GenesisState[types.ModuleName], &state)) - - for i := 0; i < n; i++ { - epochInfo := types.EpochInfo{ - Identifier: strconv.Itoa(i), - } - nullify.Fill(&epochInfo) - state.Epochs = append(state.Epochs, epochInfo) - } - buf, err := cfg.Codec.MarshalJSON(&state) - require.NoError(t, err) - cfg.GenesisState[types.ModuleName] = buf - return network.New(t, cfg), state.Epochs -} - -func TestShowEpochInfo(t *testing.T) { - net, objs := networkWithEpochInfoObjects(t, 2) - - ctx := net.Validators[0].ClientCtx - common := []string{ - fmt.Sprintf("--%s=json", tmcli.OutputFlag), - } - for _, tc := range []struct { - desc string - idIdentifier string - - args []string - err error - obj types.EpochInfo - }{ - { - desc: "found", - idIdentifier: objs[1].Identifier, - - args: common, - obj: objs[1], - }, - { - desc: "not found", - idIdentifier: strconv.Itoa(100000), - - args: common, - err: status.Error(codes.NotFound, "not found"), - }, - } { - t.Run(tc.desc, func(t *testing.T) { - args := []string{ - tc.idIdentifier, - } - args = append(args, tc.args...) - out, err := clitestutil.ExecTestCLICmd(ctx, cli.CmdShowEpochInfo(), args) - if tc.err != nil { - stat, ok := status.FromError(tc.err) - require.True(t, ok) - require.ErrorIs(t, stat.Err(), tc.err) - } else { - require.NoError(t, err) - var resp types.QueryGetEpochInfoResponse - require.NoError(t, net.Config.Codec.UnmarshalJSON(out.Bytes(), &resp)) - require.NotNil(t, resp.EpochInfo) - } - }) - } -} - -func TestListEpochInfo(t *testing.T) { - net, objs := networkWithEpochInfoObjects(t, 5) - - ctx := net.Validators[0].ClientCtx - request := func(next []byte, offset, limit uint64, total bool) []string { - args := []string{ - fmt.Sprintf("--%s=json", tmcli.OutputFlag), - } - if next == nil { - args = append(args, fmt.Sprintf("--%s=%d", flags.FlagOffset, offset)) - } else { - args = append(args, fmt.Sprintf("--%s=%s", flags.FlagPageKey, next)) - } - args = append(args, fmt.Sprintf("--%s=%d", flags.FlagLimit, limit)) - if total { - args = append(args, fmt.Sprintf("--%s", flags.FlagCountTotal)) - } - return args - } - t.Run("ByOffset", func(t *testing.T) { - step := 2 - for i := 0; i < len(objs); i += step { - args := request(nil, uint64(i), uint64(step), false) - out, err := clitestutil.ExecTestCLICmd(ctx, cli.CmdListEpochInfo(), args) - require.NoError(t, err) - var resp types.QueryAllEpochInfoResponse - require.NoError(t, net.Config.Codec.UnmarshalJSON(out.Bytes(), &resp)) - require.LessOrEqual(t, len(resp.EpochInfo), step) - } - }) - t.Run("ByKey", func(t *testing.T) { - step := 2 - var next []byte - for i := 0; i < len(objs); i += step { - args := request(next, 0, uint64(step), false) - out, err := clitestutil.ExecTestCLICmd(ctx, cli.CmdListEpochInfo(), args) - require.NoError(t, err) - var resp types.QueryAllEpochInfoResponse - require.NoError(t, net.Config.Codec.UnmarshalJSON(out.Bytes(), &resp)) - require.LessOrEqual(t, len(resp.EpochInfo), step) - next = resp.Pagination.NextKey - } - }) - t.Run("Total", func(t *testing.T) { - args := request(nil, 0, uint64(len(objs)), true) - out, err := clitestutil.ExecTestCLICmd(ctx, cli.CmdListEpochInfo(), args) - require.NoError(t, err) - var resp types.QueryAllEpochInfoResponse - require.NoError(t, net.Config.Codec.UnmarshalJSON(out.Bytes(), &resp)) - require.NoError(t, err) - require.Equal(t, len(objs), int(resp.Pagination.Total)) - }) -} diff --git a/x/epochs/client/cli/query_params.go b/x/epochs/client/cli/query_params.go deleted file mode 100644 index b4d1fecb..00000000 --- a/x/epochs/client/cli/query_params.go +++ /dev/null @@ -1,36 +0,0 @@ -package cli - -import ( - "context" - - "github.com/spf13/cobra" - - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/client/flags" - - "github.com/mycel-domain/mycel/x/epochs/types" -) - -func CmdQueryParams() *cobra.Command { - cmd := &cobra.Command{ - Use: "params", - Short: "shows the parameters of the module", - Args: cobra.NoArgs, - RunE: func(cmd *cobra.Command, args []string) error { - clientCtx := client.GetClientContextFromCmd(cmd) - - queryClient := types.NewQueryClient(clientCtx) - - res, err := queryClient.Params(context.Background(), &types.QueryParamsRequest{}) - if err != nil { - return err - } - - return clientCtx.PrintProto(res) - }, - } - - flags.AddQueryFlagsToCmd(cmd) - - return cmd -} diff --git a/x/epochs/client/cli/tx.go b/x/epochs/client/cli/tx.go deleted file mode 100644 index ef801452..00000000 --- a/x/epochs/client/cli/tx.go +++ /dev/null @@ -1,35 +0,0 @@ -package cli - -import ( - "fmt" - "time" - - "github.com/spf13/cobra" - - "github.com/cosmos/cosmos-sdk/client" - - // "github.com/cosmos/cosmos-sdk/client/flags" - "github.com/mycel-domain/mycel/x/epochs/types" -) - -var DefaultRelativePacketTimeoutTimestamp = uint64((time.Duration(10) * time.Minute).Nanoseconds()) - -const ( - flagPacketTimeoutTimestamp = "packet-timeout-timestamp" - listSeparator = "," -) - -// GetTxCmd returns the transaction commands for this module -func GetTxCmd() *cobra.Command { - cmd := &cobra.Command{ - Use: types.ModuleName, - Short: fmt.Sprintf("%s transactions subcommands", types.ModuleName), - DisableFlagParsing: true, - SuggestionsMinimumDistance: 2, - RunE: client.ValidateCmd, - } - - // this line is used by starport scaffolding # 1 - - return cmd -} diff --git a/x/epochs/keeper/epoch_info.go b/x/epochs/keeper/epoch_info.go index 931d7187..529ae77d 100644 --- a/x/epochs/keeper/epoch_info.go +++ b/x/epochs/keeper/epoch_info.go @@ -4,6 +4,7 @@ import ( "cosmossdk.io/store/prefix" storetypes "cosmossdk.io/store/types" + "github.com/cosmos/cosmos-sdk/runtime" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/mycel-domain/mycel/x/epochs/types" @@ -11,7 +12,8 @@ import ( // SetEpochInfo set a specific epochInfo in the store from its index func (k Keeper) SetEpochInfo(ctx sdk.Context, epochInfo types.EpochInfo) { - store := prefix.NewStore(ctx.KVStore(k.storeKey), types.KeyPrefix(types.EpochInfoKeyPrefix)) + storeAdapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) + store := prefix.NewStore(storeAdapter, types.KeyPrefix(types.EpochInfoKeyPrefix)) b := k.cdc.MustMarshal(&epochInfo) store.Set(types.EpochInfoKey( epochInfo.Identifier, @@ -23,7 +25,8 @@ func (k Keeper) GetEpochInfo( ctx sdk.Context, identifier string, ) (val types.EpochInfo, found bool) { - store := prefix.NewStore(ctx.KVStore(k.storeKey), types.KeyPrefix(types.EpochInfoKeyPrefix)) + storeAdapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) + store := prefix.NewStore(storeAdapter, types.KeyPrefix(types.EpochInfoKeyPrefix)) b := store.Get(types.EpochInfoKey( identifier, @@ -41,7 +44,9 @@ func (k Keeper) RemoveEpochInfo( ctx sdk.Context, identifier string, ) { - store := prefix.NewStore(ctx.KVStore(k.storeKey), types.KeyPrefix(types.EpochInfoKeyPrefix)) + storeAdapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) + store := prefix.NewStore(storeAdapter, types.KeyPrefix(types.EpochInfoKeyPrefix)) + store.Delete(types.EpochInfoKey( identifier, )) @@ -49,7 +54,9 @@ func (k Keeper) RemoveEpochInfo( // GetAllEpochInfo returns all epochInfo func (k Keeper) GetAllEpochInfo(ctx sdk.Context) (list []types.EpochInfo) { - store := prefix.NewStore(ctx.KVStore(k.storeKey), types.KeyPrefix(types.EpochInfoKeyPrefix)) + storeAdapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) + store := prefix.NewStore(storeAdapter, types.KeyPrefix(types.EpochInfoKeyPrefix)) + iterator := storetypes.KVStorePrefixIterator(store, []byte{}) defer iterator.Close() @@ -65,7 +72,8 @@ func (k Keeper) GetAllEpochInfo(ctx sdk.Context) (list []types.EpochInfo) { // Iterate though epochs func (k Keeper) IterateEpochInfo(ctx sdk.Context, fn func(index int64, epochInfo types.EpochInfo) (stop bool)) { - store := prefix.NewStore(ctx.KVStore(k.storeKey), types.KeyPrefix(types.EpochInfoKeyPrefix)) + storeAdapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) + store := prefix.NewStore(storeAdapter, types.KeyPrefix(types.EpochInfoKeyPrefix)) iterator := storetypes.KVStorePrefixIterator(store, nil) defer iterator.Close() diff --git a/x/epochs/keeper/hooks.go b/x/epochs/keeper/hooks.go index 5200cbf6..f0e55eb6 100644 --- a/x/epochs/keeper/hooks.go +++ b/x/epochs/keeper/hooks.go @@ -6,16 +6,14 @@ import ( // AfterEpochEnd epoch hook func (k Keeper) AfterEpochEnd(ctx sdk.Context, identifier string, epochNumber int64) { - if k.hooks == nil { - panic("hooks not set in keeper") + if k.hooks != nil { + k.hooks.AfterEpochEnd(ctx, identifier, epochNumber) } - k.hooks.AfterEpochEnd(ctx, identifier, epochNumber) } // BeforeEpochStart epoch hook func (k Keeper) BeforeEpochStart(ctx sdk.Context, identifier string, epochNumber int64) { - if k.hooks == nil { - panic("hooks not set in keeper") + if k.hooks != nil { + k.hooks.BeforeEpochStart(ctx, identifier, epochNumber) } - k.hooks.BeforeEpochStart(ctx, identifier, epochNumber) } diff --git a/x/epochs/keeper/keeper.go b/x/epochs/keeper/keeper.go index e5cb3396..cbfeeae0 100644 --- a/x/epochs/keeper/keeper.go +++ b/x/epochs/keeper/keeper.go @@ -3,42 +3,42 @@ package keeper import ( "fmt" + "cosmossdk.io/core/store" "cosmossdk.io/log" - storetypes "cosmossdk.io/store/types" "github.com/cosmos/cosmos-sdk/codec" sdk "github.com/cosmos/cosmos-sdk/types" - paramtypes "github.com/cosmos/cosmos-sdk/x/params/types" "github.com/mycel-domain/mycel/x/epochs/types" ) type ( Keeper struct { - cdc codec.BinaryCodec - storeKey storetypes.StoreKey - memKey storetypes.StoreKey - paramstore paramtypes.Subspace - hooks types.EpochHooks + cdc codec.BinaryCodec + storeService store.KVStoreService + logger log.Logger + authority string + hooks types.EpochHooks } ) func NewKeeper( cdc codec.BinaryCodec, - storeKey, - memKey storetypes.StoreKey, - ps paramtypes.Subspace, + storeService store.KVStoreService, + logger log.Logger, + authority string, ) *Keeper { // set KeyTable if it has not already been set - if !ps.HasKeyTable() { - ps = ps.WithKeyTable(types.ParamKeyTable()) + + if _, err := sdk.AccAddressFromBech32(authority); err != nil { + panic(fmt.Sprintf("invalid authority address: %s", authority)) } return &Keeper{ - cdc: cdc, - storeKey: storeKey, - memKey: memKey, - paramstore: ps, + cdc: cdc, + storeService: storeService, + authority: authority, + logger: logger, } } @@ -61,3 +61,8 @@ func (k *Keeper) RemoveHooks() *Keeper { func (k Keeper) Logger(ctx sdk.Context) log.Logger { return ctx.Logger().With("module", fmt.Sprintf("x/%s", types.ModuleName)) } + +// GetAuthority returns the module's authority. +func (k Keeper) GetAuthority() string { + return k.authority +} diff --git a/x/epochs/keeper/params.go b/x/epochs/keeper/params.go deleted file mode 100644 index 5f4809cf..00000000 --- a/x/epochs/keeper/params.go +++ /dev/null @@ -1,17 +0,0 @@ -package keeper - -import ( - sdk "github.com/cosmos/cosmos-sdk/types" - - "github.com/mycel-domain/mycel/x/epochs/types" -) - -// GetParams get all parameters as types.Params -func (k Keeper) GetParams(ctx sdk.Context) types.Params { - return types.NewParams() -} - -// SetParams set the params -func (k Keeper) SetParams(ctx sdk.Context, params types.Params) { - k.paramstore.SetParamSet(ctx, ¶ms) -} diff --git a/x/epochs/keeper/params_test.go b/x/epochs/keeper/params_test.go deleted file mode 100644 index 3f391600..00000000 --- a/x/epochs/keeper/params_test.go +++ /dev/null @@ -1,19 +0,0 @@ -package keeper_test - -import ( - "testing" - - "github.com/stretchr/testify/require" - - testkeeper "github.com/mycel-domain/mycel/testutil/keeper" - "github.com/mycel-domain/mycel/x/epochs/types" -) - -func TestGetParams(t *testing.T) { - k, ctx := testkeeper.EpochsKeeper(t) - params := types.DefaultParams() - - k.SetParams(ctx, params) - - require.EqualValues(t, params, k.GetParams(ctx)) -} diff --git a/x/epochs/keeper/query_epoch_info.go b/x/epochs/keeper/query_epoch_info.go index 5f7dc61e..94bee747 100644 --- a/x/epochs/keeper/query_epoch_info.go +++ b/x/epochs/keeper/query_epoch_info.go @@ -6,42 +6,22 @@ import ( "google.golang.org/grpc/codes" "google.golang.org/grpc/status" - "cosmossdk.io/store/prefix" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/query" "github.com/mycel-domain/mycel/x/epochs/types" ) -func (k Keeper) EpochInfoAll(goCtx context.Context, req *types.QueryAllEpochInfoRequest) (*types.QueryAllEpochInfoResponse, error) { +func (k Keeper) EpochInfos(goCtx context.Context, req *types.QueryEpochsInfoRequest) (*types.QueryEpochsInfoResponse, error) { if req == nil { return nil, status.Error(codes.InvalidArgument, "invalid request") } - var epochInfos []types.EpochInfo ctx := sdk.UnwrapSDKContext(goCtx) - store := ctx.KVStore(k.storeKey) - epochInfoStore := prefix.NewStore(store, types.KeyPrefix(types.EpochInfoKeyPrefix)) - - pageRes, err := query.Paginate(epochInfoStore, req.Pagination, func(key []byte, value []byte) error { - var epochInfo types.EpochInfo - if err := k.cdc.Unmarshal(value, &epochInfo); err != nil { - return err - } - - epochInfos = append(epochInfos, epochInfo) - return nil - }) - if err != nil { - return nil, status.Error(codes.Internal, err.Error()) - } - - return &types.QueryAllEpochInfoResponse{EpochInfo: epochInfos, Pagination: pageRes}, nil + return &types.QueryEpochsInfoResponse{Epochs: k.GetAllEpochInfo(ctx)}, nil } -func (k Keeper) EpochInfo(goCtx context.Context, req *types.QueryGetEpochInfoRequest) (*types.QueryGetEpochInfoResponse, error) { +func (k Keeper) CurrentEpoch(goCtx context.Context, req *types.QueryCurrentEpochRequest) (*types.QueryCurrentEpochResponse, error) { if req == nil { return nil, status.Error(codes.InvalidArgument, "invalid request") } @@ -55,5 +35,5 @@ func (k Keeper) EpochInfo(goCtx context.Context, req *types.QueryGetEpochInfoReq return nil, status.Error(codes.NotFound, "not found") } - return &types.QueryGetEpochInfoResponse{EpochInfo: val}, nil + return &types.QueryCurrentEpochResponse{EpochInfo: val}, nil } diff --git a/x/epochs/keeper/query_params.go b/x/epochs/keeper/query_params.go deleted file mode 100644 index f7c439c1..00000000 --- a/x/epochs/keeper/query_params.go +++ /dev/null @@ -1,21 +0,0 @@ -package keeper - -import ( - "context" - - "google.golang.org/grpc/codes" - "google.golang.org/grpc/status" - - sdk "github.com/cosmos/cosmos-sdk/types" - - "github.com/mycel-domain/mycel/x/epochs/types" -) - -func (k Keeper) Params(goCtx context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error) { - if req == nil { - return nil, status.Error(codes.InvalidArgument, "invalid request") - } - ctx := sdk.UnwrapSDKContext(goCtx) - - return &types.QueryParamsResponse{Params: k.GetParams(ctx)}, nil -} diff --git a/x/epochs/keeper/query_params_test.go b/x/epochs/keeper/query_params_test.go deleted file mode 100644 index 9e0f9d67..00000000 --- a/x/epochs/keeper/query_params_test.go +++ /dev/null @@ -1,23 +0,0 @@ -package keeper_test - -import ( - "testing" - - "github.com/stretchr/testify/require" - - sdk "github.com/cosmos/cosmos-sdk/types" - - testkeeper "github.com/mycel-domain/mycel/testutil/keeper" - "github.com/mycel-domain/mycel/x/epochs/types" -) - -func TestParamsQuery(t *testing.T) { - keeper, ctx := testkeeper.EpochsKeeper(t) - wctx := sdk.WrapSDKContext(ctx) - params := types.DefaultParams() - keeper.SetParams(ctx, params) - - response, err := keeper.Params(wctx, &types.QueryParamsRequest{}) - require.NoError(t, err) - require.Equal(t, &types.QueryParamsResponse{Params: params}, response) -} diff --git a/x/epochs/module/autocli.go b/x/epochs/module/autocli.go index 8b6e4f52..2b7b8f6f 100644 --- a/x/epochs/module/autocli.go +++ b/x/epochs/module/autocli.go @@ -13,9 +13,15 @@ func (am AppModule) AutoCLIOptions() *autocliv1.ModuleOptions { Service: modulev1.Query_ServiceDesc.ServiceName, RpcCommandOptions: []*autocliv1.RpcCommandOptions{ { - RpcMethod: "Params", - Use: "params", - Short: "Shows the parameters of the module", + RpcMethod: "EpochInfos", + Use: "epochs-infos", + Short: "Query running epoch infos.", + }, + { + RpcMethod: "CurrentEpoch", + Use: "current-epoch [identifier]", + Short: "Query current epoch by specified identifier.", + PositionalArgs: []*autocliv1.PositionalArgDescriptor{{ProtoField: "identifier"}}, }, // this line is used by ignite scaffolding # autocli/query }, @@ -23,11 +29,7 @@ func (am AppModule) AutoCLIOptions() *autocliv1.ModuleOptions { Tx: &autocliv1.ServiceCommandDescriptor{ Service: modulev1.Msg_ServiceDesc.ServiceName, EnhanceCustomCommand: true, // only required if you want to use the custom command - RpcCommandOptions: []*autocliv1.RpcCommandOptions{ - { - RpcMethod: "UpdateParams", - Skip: true, // skipped because authority gated - }, + RpcCommandOptions: []*autocliv1.RpcCommandOptions{ // this line is used by ignite scaffolding # autocli/tx }, }, diff --git a/x/epochs/module/module.go b/x/epochs/module/module.go index 13857c4f..4bed3817 100644 --- a/x/epochs/module/module.go +++ b/x/epochs/module/module.go @@ -4,45 +4,49 @@ import ( "context" "encoding/json" "fmt" + "sort" "time" + "github.com/grpc-ecosystem/grpc-gateway/runtime" + "golang.org/x/exp/maps" + "cosmossdk.io/core/appmodule" + "cosmossdk.io/core/store" "cosmossdk.io/depinject" - storetypes "cosmossdk.io/store/types" + "cosmossdk.io/log" + "github.com/cosmos/cosmos-sdk/client" "github.com/cosmos/cosmos-sdk/codec" cdctypes "github.com/cosmos/cosmos-sdk/codec/types" "github.com/cosmos/cosmos-sdk/telemetry" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/module" - paramtypes "github.com/cosmos/cosmos-sdk/x/params/types" - "github.com/grpc-ecosystem/grpc-gateway/runtime" - "github.com/spf13/cobra" - - // this line is used by starport scaffolding # 1 + authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" + govtypes "github.com/cosmos/cosmos-sdk/x/gov/types" modulev1 "github.com/mycel-domain/mycel/api/mycel/epochs/module/v1" - "github.com/mycel-domain/mycel/x/epochs/client/cli" "github.com/mycel-domain/mycel/x/epochs/keeper" "github.com/mycel-domain/mycel/x/epochs/types" ) var ( - _ module.AppModuleBasic = AppModuleBasic{} - _ module.HasGenesisBasics = AppModuleBasic{} - - _ appmodule.AppModule = AppModule{} - _ appmodule.HasBeginBlocker = AppModule{} - _ module.HasConsensusVersion = AppModule{} - _ module.HasGenesis = AppModule{} - _ module.HasServices = AppModule{} + _ module.AppModuleBasic = (*AppModule)(nil) + _ module.AppModuleSimulation = (*AppModule)(nil) + _ module.HasGenesis = (*AppModule)(nil) + _ module.HasInvariants = (*AppModule)(nil) + _ module.HasConsensusVersion = (*AppModule)(nil) + + _ appmodule.AppModule = (*AppModule)(nil) + _ appmodule.HasBeginBlocker = (*AppModule)(nil) + _ appmodule.HasEndBlocker = (*AppModule)(nil) ) // ---------------------------------------------------------------------------- // AppModuleBasic // ---------------------------------------------------------------------------- -// AppModuleBasic implements the AppModuleBasic interface that defines the independent methods a Cosmos SDK module needs to implement. +// AppModuleBasic implements the AppModuleBasic interface that defines the +// independent methods a Cosmos SDK module needs to implement. type AppModuleBasic struct { cdc codec.BinaryCodec } @@ -51,27 +55,27 @@ func NewAppModuleBasic(cdc codec.BinaryCodec) AppModuleBasic { return AppModuleBasic{cdc: cdc} } -// Name returns the name of the module as a string +// Name returns the name of the module as a string. func (AppModuleBasic) Name() string { return types.ModuleName } -// RegisterLegacyAminoCodec registers the amino codec for the module, which is used to marshal and unmarshal structs to/from []byte in order to persist them in the module's KVStore -func (AppModuleBasic) RegisterLegacyAminoCodec(cdc *codec.LegacyAmino) { - types.RegisterCodec(cdc) -} +// RegisterLegacyAminoCodec registers the amino codec for the module, which is used +// to marshal and unmarshal structs to/from []byte in order to persist them in the module's KVStore. +func (AppModuleBasic) RegisterLegacyAminoCodec(cdc *codec.LegacyAmino) {} -// RegisterInterfaces registers a module's interface types and their concrete implementations as proto.Message +// RegisterInterfaces registers a module's interface types and their concrete implementations as proto.Message. func (a AppModuleBasic) RegisterInterfaces(reg cdctypes.InterfaceRegistry) { types.RegisterInterfaces(reg) } -// DefaultGenesis returns a default GenesisState for the module, marshalled to json.RawMessage. The default GenesisState need to be defined by the module developer and is primarily used for testing +// DefaultGenesis returns a default GenesisState for the module, marshalled to json.RawMessage. +// The default GenesisState need to be defined by the module developer and is primarily used for testing. func (AppModuleBasic) DefaultGenesis(cdc codec.JSONCodec) json.RawMessage { return cdc.MustMarshalJSON(types.DefaultGenesis()) } -// ValidateGenesis used to validate the GenesisState, given in its json.RawMessage form +// ValidateGenesis used to validate the GenesisState, given in its json.RawMessage form. func (AppModuleBasic) ValidateGenesis(cdc codec.JSONCodec, config client.TxEncodingConfig, bz json.RawMessage) error { var genState types.GenesisState if err := cdc.UnmarshalJSON(bz, &genState); err != nil { @@ -80,23 +84,13 @@ func (AppModuleBasic) ValidateGenesis(cdc codec.JSONCodec, config client.TxEncod return genState.Validate() } -// RegisterGRPCGatewayRoutes registers the gRPC Gateway routes for the module +// RegisterGRPCGatewayRoutes registers the gRPC Gateway routes for the module. func (AppModuleBasic) RegisterGRPCGatewayRoutes(clientCtx client.Context, mux *runtime.ServeMux) { - err := types.RegisterQueryHandlerClient(context.Background(), mux, types.NewQueryClient(clientCtx)) - if err != nil { + if err := types.RegisterQueryHandlerClient(context.Background(), mux, types.NewQueryClient(clientCtx)); err != nil { + panic(err) } } -// GetTxCmd returns the root Tx command for the module. The subcommands of this root command are used by end-users to generate new transactions containing messages defined in the module -func (a AppModuleBasic) GetTxCmd() *cobra.Command { - return cli.GetTxCmd() -} - -// GetQueryCmd returns the root query command for the module. The subcommands of this root command are used by end-users to generate new queries to the subset of the state defined by the module -func (AppModuleBasic) GetQueryCmd() *cobra.Command { - return cli.GetQueryCmd(types.StoreKey) -} - // ---------------------------------------------------------------------------- // AppModule // ---------------------------------------------------------------------------- @@ -124,12 +118,6 @@ func NewAppModule( } } -// IsAppModule implements the appmodule.AppModule interface. -func (am AppModule) IsAppModule() {} - -// IsOnePerModuleType is a marker function just indicates that this is a one-per-module type. -func (am AppModule) IsOnePerModuleType() {} - // RegisterServices registers a gRPC query service to respond to the module-specific gRPC queries func (am AppModule) RegisterServices(cfg module.Configurator) { types.RegisterMsgServer(cfg.MsgServer(), keeper.NewMsgServerImpl(am.keeper)) @@ -139,8 +127,7 @@ func (am AppModule) RegisterServices(cfg module.Configurator) { // RegisterInvariants registers the invariants of the module. If an invariant deviates from its predicted value, the InvariantRegistry triggers appropriate logic (most often the chain will be halted) func (am AppModule) RegisterInvariants(_ sdk.InvariantRegistry) {} -// InitGenesis performs the epochs module's genesis initialization It returns -// no validator updates. +// InitGenesis performs the module's genesis initialization. It returns no validator updates. func (am AppModule) InitGenesis(ctx sdk.Context, cdc codec.JSONCodec, gs json.RawMessage) { var genState types.GenesisState // Initialize global index to index in genesis state @@ -155,7 +142,9 @@ func (am AppModule) ExportGenesis(ctx sdk.Context, cdc codec.JSONCodec) json.Raw return cdc.MustMarshalJSON(genState) } -// ConsensusVersion is a sequence number for state-breaking change of the module. It should be incremented on each consensus-breaking change introduced by the module. To avoid wrong/empty versions, the initial version should be set to 1 +// ConsensusVersion is a sequence number for state-breaking change of the module. +// It should be incremented on each consensus-breaking change introduced by the module. +// To avoid wrong/empty versions, the initial version should be set to 1. func (AppModule) ConsensusVersion() uint64 { return 1 } // BeginBlock contains the logic that is automatically triggered at the beginning of each block @@ -165,6 +154,18 @@ func (am AppModule) BeginBlock(ctx context.Context) error { return nil } +// EndBlock contains the logic that is automatically triggered at the end of each block. +// The end block implementation is optional. +func (am AppModule) EndBlock(_ context.Context) error { + return nil +} + +// IsOnePerModuleType implements the depinject.OnePerModuleType interface. +func (am AppModule) IsOnePerModuleType() {} + +// IsAppModule implements the appmodule.AppModule interface. +func (am AppModule) IsAppModule() {} + // ---------------------------------------------------------------------------- // App Wiring Setup // ---------------------------------------------------------------------------- @@ -173,17 +174,56 @@ func init() { appmodule.Register( &modulev1.Module{}, appmodule.Provide(ProvideModule), + appmodule.Invoke(InvokeSetEpochsHooks), ) } +func InvokeSetEpochsHooks( + config *modulev1.Module, + keeper *keeper.Keeper, + epochsHooks map[string]types.EpochHooks, +) error { + // all arguments to invokers are optional + if keeper == nil || config == nil { + return nil + } + + modNames := maps.Keys(epochsHooks) + order := config.HooksOrder + if len(order) == 0 { + order = modNames + sort.Strings(order) + } + + if len(order) != len(modNames) { + return fmt.Errorf("len(hooks_order: %v) != len(hooks modules: %v)", order, modNames) + } + + if len(modNames) == 0 { + return nil + } + + var multiHooks types.MultiEpochHooks + for _, modName := range order { + hook, ok := epochsHooks[modName] + if !ok { + return fmt.Errorf("can't find epochs hooks for module %s", modName) + } + + multiHooks = append(multiHooks, hook) + } + + keeper.SetHooks(multiHooks) + return nil +} + type ModuleInputs struct { depinject.In - Cdc codec.Codec - StoreKey storetypes.StoreKey - MemKey storetypes.StoreKey - ParamStore paramtypes.Subspace - Config *modulev1.Module + StoreService store.KVStoreService + Cdc codec.Codec + Config *modulev1.Module + Logger log.Logger AccountKeeper types.AccountKeeper BankKeeper types.BankKeeper @@ -197,11 +237,16 @@ type ModuleOutputs struct { } func ProvideModule(in ModuleInputs) ModuleOutputs { + // default to governance authority if not provided + authority := authtypes.NewModuleAddress(govtypes.ModuleName) + if in.Config.Authority != "" { + authority = authtypes.NewModuleAddressOrBech32Address(in.Config.Authority) + } k := keeper.NewKeeper( in.Cdc, - in.StoreKey, - in.MemKey, - in.ParamStore, + in.StoreService, + in.Logger, + authority.String(), ) m := NewAppModule( in.Cdc, diff --git a/x/epochs/module/simulation.go b/x/epochs/module/simulation.go new file mode 100644 index 00000000..1917a8df --- /dev/null +++ b/x/epochs/module/simulation.go @@ -0,0 +1,64 @@ +package epochs + +import ( + "math/rand" + + sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/cosmos/cosmos-sdk/types/module" + simtypes "github.com/cosmos/cosmos-sdk/types/simulation" + "github.com/cosmos/cosmos-sdk/x/simulation" + + "github.com/mycel-domain/mycel/testutil/sample" + epochssimulation "github.com/mycel-domain/mycel/x/epochs/simulation" + "github.com/mycel-domain/mycel/x/epochs/types" +) + +// avoid unused import issue +var ( + _ = epochssimulation.FindAccount + _ = rand.Rand{} + _ = sample.AccAddress + _ = sdk.AccAddress{} + _ = simulation.MsgEntryKind +) + +const ( +// this line is used by starport scaffolding # simapp/module/const +) + +// GenerateGenesisState creates a randomized GenState of the module. +func (AppModule) GenerateGenesisState(simState *module.SimulationState) { + accs := make([]string, len(simState.Accounts)) + for i, acc := range simState.Accounts { + accs[i] = acc.Address.String() + } + epochsGenesis := types.GenesisState{ + Epochs: types.DefaultGenesis().Epochs, + // this line is used by starport scaffolding # simapp/module/genesisState + } + simState.GenState[types.ModuleName] = simState.Cdc.MustMarshalJSON(&epochsGenesis) +} + +// RegisterStoreDecoder registers a decoder. +func (am AppModule) RegisterStoreDecoder(_ simtypes.StoreDecoderRegistry) {} + +// ProposalContents doesn't return any content functions for governance proposals. +func (AppModule) ProposalContents(_ module.SimulationState) []simtypes.WeightedProposalContent { + return nil +} + +// WeightedOperations returns the all the gov module operations with their respective weights. +func (am AppModule) WeightedOperations(simState module.SimulationState) []simtypes.WeightedOperation { + operations := make([]simtypes.WeightedOperation, 0) + + // this line is used by starport scaffolding # simapp/module/operation + + return operations +} + +// ProposalMsgs returns msgs used for governance proposals for simulations. +func (am AppModule) ProposalMsgs(simState module.SimulationState) []simtypes.WeightedProposalMsg { + return []simtypes.WeightedProposalMsg{ + // this line is used by starport scaffolding # simapp/module/OpMsg + } +} diff --git a/x/epochs/types/errors.go b/x/epochs/types/errors.go index cd5433a2..fc5716b6 100644 --- a/x/epochs/types/errors.go +++ b/x/epochs/types/errors.go @@ -8,7 +8,7 @@ import ( // x/epochs module sentinel errors var ( - ErrSample = errorsmod.Register(ModuleName, 1100, "sample error") + ErrInvalidSigner = errorsmod.Register(ModuleName, 1100, "expected gov account as only signer for proposal message") ErrEpochIdentifierCannotBeEmpty = errorsmod.Register(ModuleName, 1101, "epoch identifier cannot be empty") ErrEpochDurationCannotBeZero = errorsmod.Register(ModuleName, 1102, "epoch duration cannot be zero") ErrCurrentEpochCannotBeNegative = errorsmod.Register(ModuleName, 1103, "current epoch cannot be negative") diff --git a/x/epochs/types/keys.go b/x/epochs/types/keys.go index 971827a8..d183be93 100644 --- a/x/epochs/types/keys.go +++ b/x/epochs/types/keys.go @@ -14,6 +14,8 @@ const ( MemStoreKey = "mem_epochs" ) +var ParamsKey = []byte("p_epochs") + func KeyPrefix(p string) []byte { return []byte(p) } diff --git a/x/epochs/types/query.pb.go b/x/epochs/types/query.pb.go index 2cc87247..31fafc03 100644 --- a/x/epochs/types/query.pb.go +++ b/x/epochs/types/query.pb.go @@ -6,7 +6,6 @@ package types import ( context "context" fmt "fmt" - query "github.com/cosmos/cosmos-sdk/types/query" _ "github.com/cosmos/gogoproto/gogoproto" grpc1 "github.com/cosmos/gogoproto/grpc" proto "github.com/cosmos/gogoproto/proto" @@ -30,22 +29,21 @@ var _ = math.Inf // proto package needs to be updated. const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package -// QueryParamsRequest is request type for the Query/Params RPC method. -type QueryParamsRequest struct { +type QueryEpochsInfoRequest struct { } -func (m *QueryParamsRequest) Reset() { *m = QueryParamsRequest{} } -func (m *QueryParamsRequest) String() string { return proto.CompactTextString(m) } -func (*QueryParamsRequest) ProtoMessage() {} -func (*QueryParamsRequest) Descriptor() ([]byte, []int) { +func (m *QueryEpochsInfoRequest) Reset() { *m = QueryEpochsInfoRequest{} } +func (m *QueryEpochsInfoRequest) String() string { return proto.CompactTextString(m) } +func (*QueryEpochsInfoRequest) ProtoMessage() {} +func (*QueryEpochsInfoRequest) Descriptor() ([]byte, []int) { return fileDescriptor_8f0c3cbfdf3661af, []int{0} } -func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error { +func (m *QueryEpochsInfoRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryEpochsInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryParamsRequest.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryEpochsInfoRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -55,36 +53,34 @@ func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, return b[:n], nil } } -func (m *QueryParamsRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryParamsRequest.Merge(m, src) +func (m *QueryEpochsInfoRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryEpochsInfoRequest.Merge(m, src) } -func (m *QueryParamsRequest) XXX_Size() int { +func (m *QueryEpochsInfoRequest) XXX_Size() int { return m.Size() } -func (m *QueryParamsRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryParamsRequest.DiscardUnknown(m) +func (m *QueryEpochsInfoRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryEpochsInfoRequest.DiscardUnknown(m) } -var xxx_messageInfo_QueryParamsRequest proto.InternalMessageInfo +var xxx_messageInfo_QueryEpochsInfoRequest proto.InternalMessageInfo -// QueryParamsResponse is response type for the Query/Params RPC method. -type QueryParamsResponse struct { - // params holds all the parameters of this module. - Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` +type QueryEpochsInfoResponse struct { + Epochs []EpochInfo `protobuf:"bytes,1,rep,name=epochs,proto3" json:"epochs"` } -func (m *QueryParamsResponse) Reset() { *m = QueryParamsResponse{} } -func (m *QueryParamsResponse) String() string { return proto.CompactTextString(m) } -func (*QueryParamsResponse) ProtoMessage() {} -func (*QueryParamsResponse) Descriptor() ([]byte, []int) { +func (m *QueryEpochsInfoResponse) Reset() { *m = QueryEpochsInfoResponse{} } +func (m *QueryEpochsInfoResponse) String() string { return proto.CompactTextString(m) } +func (*QueryEpochsInfoResponse) ProtoMessage() {} +func (*QueryEpochsInfoResponse) Descriptor() ([]byte, []int) { return fileDescriptor_8f0c3cbfdf3661af, []int{1} } -func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error { +func (m *QueryEpochsInfoResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryEpochsInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryParamsResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryEpochsInfoResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -94,41 +90,41 @@ func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, return b[:n], nil } } -func (m *QueryParamsResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryParamsResponse.Merge(m, src) +func (m *QueryEpochsInfoResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryEpochsInfoResponse.Merge(m, src) } -func (m *QueryParamsResponse) XXX_Size() int { +func (m *QueryEpochsInfoResponse) XXX_Size() int { return m.Size() } -func (m *QueryParamsResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryParamsResponse.DiscardUnknown(m) +func (m *QueryEpochsInfoResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryEpochsInfoResponse.DiscardUnknown(m) } -var xxx_messageInfo_QueryParamsResponse proto.InternalMessageInfo +var xxx_messageInfo_QueryEpochsInfoResponse proto.InternalMessageInfo -func (m *QueryParamsResponse) GetParams() Params { +func (m *QueryEpochsInfoResponse) GetEpochs() []EpochInfo { if m != nil { - return m.Params + return m.Epochs } - return Params{} + return nil } -type QueryGetEpochInfoRequest struct { +type QueryCurrentEpochRequest struct { Identifier string `protobuf:"bytes,1,opt,name=identifier,proto3" json:"identifier,omitempty"` } -func (m *QueryGetEpochInfoRequest) Reset() { *m = QueryGetEpochInfoRequest{} } -func (m *QueryGetEpochInfoRequest) String() string { return proto.CompactTextString(m) } -func (*QueryGetEpochInfoRequest) ProtoMessage() {} -func (*QueryGetEpochInfoRequest) Descriptor() ([]byte, []int) { +func (m *QueryCurrentEpochRequest) Reset() { *m = QueryCurrentEpochRequest{} } +func (m *QueryCurrentEpochRequest) String() string { return proto.CompactTextString(m) } +func (*QueryCurrentEpochRequest) ProtoMessage() {} +func (*QueryCurrentEpochRequest) Descriptor() ([]byte, []int) { return fileDescriptor_8f0c3cbfdf3661af, []int{2} } -func (m *QueryGetEpochInfoRequest) XXX_Unmarshal(b []byte) error { +func (m *QueryCurrentEpochRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryGetEpochInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryCurrentEpochRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryGetEpochInfoRequest.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryCurrentEpochRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -138,41 +134,41 @@ func (m *QueryGetEpochInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([] return b[:n], nil } } -func (m *QueryGetEpochInfoRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryGetEpochInfoRequest.Merge(m, src) +func (m *QueryCurrentEpochRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryCurrentEpochRequest.Merge(m, src) } -func (m *QueryGetEpochInfoRequest) XXX_Size() int { +func (m *QueryCurrentEpochRequest) XXX_Size() int { return m.Size() } -func (m *QueryGetEpochInfoRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryGetEpochInfoRequest.DiscardUnknown(m) +func (m *QueryCurrentEpochRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryCurrentEpochRequest.DiscardUnknown(m) } -var xxx_messageInfo_QueryGetEpochInfoRequest proto.InternalMessageInfo +var xxx_messageInfo_QueryCurrentEpochRequest proto.InternalMessageInfo -func (m *QueryGetEpochInfoRequest) GetIdentifier() string { +func (m *QueryCurrentEpochRequest) GetIdentifier() string { if m != nil { return m.Identifier } return "" } -type QueryGetEpochInfoResponse struct { +type QueryCurrentEpochResponse struct { EpochInfo EpochInfo `protobuf:"bytes,1,opt,name=epoch_info,json=epochInfo,proto3" json:"epoch_info"` } -func (m *QueryGetEpochInfoResponse) Reset() { *m = QueryGetEpochInfoResponse{} } -func (m *QueryGetEpochInfoResponse) String() string { return proto.CompactTextString(m) } -func (*QueryGetEpochInfoResponse) ProtoMessage() {} -func (*QueryGetEpochInfoResponse) Descriptor() ([]byte, []int) { +func (m *QueryCurrentEpochResponse) Reset() { *m = QueryCurrentEpochResponse{} } +func (m *QueryCurrentEpochResponse) String() string { return proto.CompactTextString(m) } +func (*QueryCurrentEpochResponse) ProtoMessage() {} +func (*QueryCurrentEpochResponse) Descriptor() ([]byte, []int) { return fileDescriptor_8f0c3cbfdf3661af, []int{3} } -func (m *QueryGetEpochInfoResponse) XXX_Unmarshal(b []byte) error { +func (m *QueryCurrentEpochResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryGetEpochInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryCurrentEpochResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryGetEpochInfoResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryCurrentEpochResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -182,166 +178,61 @@ func (m *QueryGetEpochInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([ return b[:n], nil } } -func (m *QueryGetEpochInfoResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryGetEpochInfoResponse.Merge(m, src) +func (m *QueryCurrentEpochResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryCurrentEpochResponse.Merge(m, src) } -func (m *QueryGetEpochInfoResponse) XXX_Size() int { +func (m *QueryCurrentEpochResponse) XXX_Size() int { return m.Size() } -func (m *QueryGetEpochInfoResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryGetEpochInfoResponse.DiscardUnknown(m) +func (m *QueryCurrentEpochResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryCurrentEpochResponse.DiscardUnknown(m) } -var xxx_messageInfo_QueryGetEpochInfoResponse proto.InternalMessageInfo +var xxx_messageInfo_QueryCurrentEpochResponse proto.InternalMessageInfo -func (m *QueryGetEpochInfoResponse) GetEpochInfo() EpochInfo { +func (m *QueryCurrentEpochResponse) GetEpochInfo() EpochInfo { if m != nil { return m.EpochInfo } return EpochInfo{} } -type QueryAllEpochInfoRequest struct { - Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` -} - -func (m *QueryAllEpochInfoRequest) Reset() { *m = QueryAllEpochInfoRequest{} } -func (m *QueryAllEpochInfoRequest) String() string { return proto.CompactTextString(m) } -func (*QueryAllEpochInfoRequest) ProtoMessage() {} -func (*QueryAllEpochInfoRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8f0c3cbfdf3661af, []int{4} -} -func (m *QueryAllEpochInfoRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryAllEpochInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryAllEpochInfoRequest.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 *QueryAllEpochInfoRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryAllEpochInfoRequest.Merge(m, src) -} -func (m *QueryAllEpochInfoRequest) XXX_Size() int { - return m.Size() -} -func (m *QueryAllEpochInfoRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryAllEpochInfoRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryAllEpochInfoRequest proto.InternalMessageInfo - -func (m *QueryAllEpochInfoRequest) GetPagination() *query.PageRequest { - if m != nil { - return m.Pagination - } - return nil -} - -type QueryAllEpochInfoResponse struct { - EpochInfo []EpochInfo `protobuf:"bytes,1,rep,name=epoch_info,json=epochInfo,proto3" json:"epoch_info"` - Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` -} - -func (m *QueryAllEpochInfoResponse) Reset() { *m = QueryAllEpochInfoResponse{} } -func (m *QueryAllEpochInfoResponse) String() string { return proto.CompactTextString(m) } -func (*QueryAllEpochInfoResponse) ProtoMessage() {} -func (*QueryAllEpochInfoResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8f0c3cbfdf3661af, []int{5} -} -func (m *QueryAllEpochInfoResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryAllEpochInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryAllEpochInfoResponse.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 *QueryAllEpochInfoResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryAllEpochInfoResponse.Merge(m, src) -} -func (m *QueryAllEpochInfoResponse) XXX_Size() int { - return m.Size() -} -func (m *QueryAllEpochInfoResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryAllEpochInfoResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryAllEpochInfoResponse proto.InternalMessageInfo - -func (m *QueryAllEpochInfoResponse) GetEpochInfo() []EpochInfo { - if m != nil { - return m.EpochInfo - } - return nil -} - -func (m *QueryAllEpochInfoResponse) GetPagination() *query.PageResponse { - if m != nil { - return m.Pagination - } - return nil -} - func init() { - proto.RegisterType((*QueryParamsRequest)(nil), "mycel.epochs.v1beta1.QueryParamsRequest") - proto.RegisterType((*QueryParamsResponse)(nil), "mycel.epochs.v1beta1.QueryParamsResponse") - proto.RegisterType((*QueryGetEpochInfoRequest)(nil), "mycel.epochs.v1beta1.QueryGetEpochInfoRequest") - proto.RegisterType((*QueryGetEpochInfoResponse)(nil), "mycel.epochs.v1beta1.QueryGetEpochInfoResponse") - proto.RegisterType((*QueryAllEpochInfoRequest)(nil), "mycel.epochs.v1beta1.QueryAllEpochInfoRequest") - proto.RegisterType((*QueryAllEpochInfoResponse)(nil), "mycel.epochs.v1beta1.QueryAllEpochInfoResponse") + proto.RegisterType((*QueryEpochsInfoRequest)(nil), "mycel.epochs.v1beta1.QueryEpochsInfoRequest") + proto.RegisterType((*QueryEpochsInfoResponse)(nil), "mycel.epochs.v1beta1.QueryEpochsInfoResponse") + proto.RegisterType((*QueryCurrentEpochRequest)(nil), "mycel.epochs.v1beta1.QueryCurrentEpochRequest") + proto.RegisterType((*QueryCurrentEpochResponse)(nil), "mycel.epochs.v1beta1.QueryCurrentEpochResponse") } func init() { proto.RegisterFile("mycel/epochs/v1beta1/query.proto", fileDescriptor_8f0c3cbfdf3661af) } var fileDescriptor_8f0c3cbfdf3661af = []byte{ - // 500 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x94, 0xbf, 0x6e, 0x53, 0x31, - 0x14, 0xc6, 0xe3, 0x16, 0x22, 0xc5, 0x30, 0x99, 0x0c, 0x25, 0x8a, 0xdc, 0x60, 0xf1, 0x27, 0x20, - 0x6a, 0xab, 0x45, 0x2c, 0xdd, 0x5a, 0x41, 0x2b, 0x36, 0x9a, 0x91, 0x05, 0xf9, 0xa6, 0xce, 0xad, - 0xa5, 0x7b, 0xed, 0xdb, 0xd8, 0x41, 0x44, 0x88, 0x05, 0x5e, 0x00, 0x89, 0x89, 0x99, 0x8d, 0x27, - 0xe9, 0x46, 0x25, 0x16, 0x26, 0x84, 0x12, 0x1e, 0x04, 0xc5, 0x76, 0xfe, 0xa9, 0xe6, 0x26, 0x62, - 0x73, 0x4e, 0xbe, 0xef, 0x3b, 0xbf, 0xa3, 0x73, 0x12, 0xd8, 0xca, 0x87, 0x5d, 0x91, 0x31, 0x51, - 0xe8, 0xee, 0x99, 0x61, 0x6f, 0x76, 0x13, 0x61, 0xf9, 0x2e, 0x3b, 0x1f, 0x88, 0xfe, 0x90, 0x16, - 0x7d, 0x6d, 0x35, 0xaa, 0x3b, 0x05, 0xf5, 0x0a, 0x1a, 0x14, 0x8d, 0x47, 0x5d, 0x6d, 0x72, 0x6d, - 0x58, 0xc2, 0x8d, 0xf0, 0xf2, 0x99, 0xb9, 0xe0, 0xa9, 0x54, 0xdc, 0x4a, 0xad, 0x7c, 0x42, 0xa3, - 0x9e, 0xea, 0x54, 0xbb, 0x27, 0x9b, 0xbc, 0x42, 0xb5, 0x99, 0x6a, 0x9d, 0x66, 0x82, 0xf1, 0x42, - 0x32, 0xae, 0x94, 0xb6, 0xce, 0x62, 0xc2, 0xb7, 0xf7, 0xa2, 0x5c, 0xee, 0xe3, 0x6b, 0xa9, 0x7a, - 0xd3, 0x90, 0x3b, 0x51, 0x59, 0xc1, 0xfb, 0x3c, 0x0f, 0x49, 0xa4, 0x0e, 0xd1, 0xc9, 0x84, 0xef, - 0xa5, 0x2b, 0x76, 0xc4, 0xf9, 0x40, 0x18, 0x4b, 0x4e, 0xe0, 0xad, 0xa5, 0xaa, 0x29, 0xb4, 0x32, - 0x02, 0xed, 0xc3, 0xaa, 0x37, 0x6f, 0x81, 0x16, 0x68, 0xdf, 0xd8, 0x6b, 0xd2, 0xd8, 0xf4, 0xd4, - 0xbb, 0x0e, 0xaf, 0x5d, 0xfc, 0xda, 0xae, 0x74, 0x82, 0x83, 0xec, 0xc3, 0x2d, 0x17, 0x79, 0x2c, - 0xec, 0xf3, 0x89, 0xfc, 0x85, 0xea, 0xe9, 0xd0, 0x0e, 0x61, 0x08, 0xe5, 0xa9, 0x50, 0x56, 0xf6, - 0xa4, 0xe8, 0xbb, 0xec, 0x5a, 0x67, 0xa1, 0x42, 0x38, 0xbc, 0x1d, 0xf1, 0x06, 0xa8, 0x67, 0x10, - 0xce, 0x07, 0x0f, 0x60, 0xdb, 0x71, 0xb0, 0x99, 0x39, 0xb0, 0xd5, 0xc4, 0xb4, 0x40, 0x92, 0x80, - 0x77, 0x90, 0x65, 0x57, 0xf0, 0x8e, 0x20, 0x9c, 0x6f, 0x2d, 0x74, 0xb8, 0x4f, 0xfd, 0x8a, 0xe9, - 0x64, 0xc5, 0xd4, 0x5f, 0xc4, 0x7c, 0xfe, 0x54, 0x04, 0x6f, 0x67, 0xc1, 0x49, 0xbe, 0x81, 0x30, - 0xc7, 0x72, 0x93, 0x7f, 0xcc, 0xb1, 0xf9, 0x3f, 0x73, 0xa0, 0xe3, 0x25, 0xd6, 0x0d, 0xc7, 0xfa, - 0x60, 0x25, 0xab, 0x47, 0x58, 0x84, 0xdd, 0xfb, 0xbe, 0x09, 0xaf, 0x3b, 0x58, 0xf4, 0x11, 0xc0, - 0xaa, 0x5f, 0x29, 0x6a, 0xc7, 0x79, 0xae, 0x5e, 0x50, 0xe3, 0xe1, 0x1a, 0x4a, 0xdf, 0x95, 0xdc, - 0xfd, 0xf0, 0xe3, 0xcf, 0xe7, 0x0d, 0x8c, 0x9a, 0xac, 0xe4, 0x5c, 0xd1, 0x57, 0x00, 0x6b, 0xb3, - 0xb9, 0x11, 0x2d, 0x89, 0x8f, 0x5c, 0x58, 0x83, 0xad, 0xad, 0x0f, 0x50, 0x4f, 0x1d, 0x14, 0x43, - 0x3b, 0x6c, 0xc5, 0x4f, 0x8d, 0xbd, 0x9b, 0x1f, 0xea, 0x7b, 0xf4, 0x05, 0xc0, 0x9b, 0xb3, 0xb0, - 0x83, 0x2c, 0x2b, 0x05, 0x8d, 0xdc, 0x5a, 0x29, 0x68, 0xec, 0x6c, 0x48, 0xdb, 0x81, 0x12, 0xd4, - 0x5a, 0x05, 0x7a, 0x78, 0x74, 0x31, 0xc2, 0xe0, 0x72, 0x84, 0xc1, 0xef, 0x11, 0x06, 0x9f, 0xc6, - 0xb8, 0x72, 0x39, 0xc6, 0x95, 0x9f, 0x63, 0x5c, 0x79, 0xf5, 0x38, 0x95, 0xf6, 0x6c, 0x90, 0xd0, - 0xae, 0xce, 0x7d, 0xca, 0xce, 0xa9, 0xce, 0xb9, 0x54, 0x21, 0xf2, 0xed, 0x34, 0xd4, 0x0e, 0x0b, - 0x61, 0x92, 0xaa, 0xfb, 0xe7, 0x78, 0xf2, 0x37, 0x00, 0x00, 0xff, 0xff, 0xe6, 0x55, 0xc1, 0x1d, - 0x1d, 0x05, 0x00, 0x00, + // 386 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x92, 0xcf, 0x6a, 0xe2, 0x40, + 0x1c, 0xc7, 0x33, 0xee, 0xae, 0xe0, 0xec, 0x9e, 0x06, 0xd9, 0xcd, 0x06, 0x19, 0x25, 0xbb, 0x82, + 0x50, 0xcd, 0xa0, 0xbd, 0x15, 0x7a, 0xb1, 0x7f, 0xa0, 0xc7, 0x7a, 0x2a, 0xbd, 0x48, 0x8c, 0x63, + 0x1c, 0xd0, 0x99, 0x98, 0x99, 0x94, 0x7a, 0xed, 0x0b, 0xb4, 0xd0, 0x6b, 0x1f, 0xa4, 0x8f, 0xe0, + 0x51, 0xe8, 0xa5, 0xa7, 0x52, 0xb4, 0x0f, 0x52, 0x9c, 0x8c, 0xad, 0xd0, 0xb4, 0x78, 0x4b, 0x7e, + 0xf3, 0xf9, 0xfe, 0x99, 0x5f, 0x02, 0x2b, 0xe3, 0x69, 0x40, 0x47, 0x84, 0x46, 0x22, 0x18, 0x4a, + 0x72, 0xd1, 0xec, 0x51, 0xe5, 0x37, 0xc9, 0x24, 0xa1, 0xf1, 0xd4, 0x8b, 0x62, 0xa1, 0x04, 0x2a, + 0x6a, 0xc2, 0x4b, 0x09, 0xcf, 0x10, 0x4e, 0x31, 0x14, 0xa1, 0xd0, 0x00, 0x59, 0x3d, 0xa5, 0xac, + 0x53, 0x0a, 0x85, 0x08, 0x47, 0x94, 0xf8, 0x11, 0x23, 0x3e, 0xe7, 0x42, 0xf9, 0x8a, 0x09, 0x2e, + 0xcd, 0x69, 0x35, 0x33, 0x4b, 0xbf, 0x76, 0x19, 0x1f, 0x18, 0x13, 0xd7, 0x86, 0xbf, 0x4f, 0x57, + 0xf9, 0x47, 0x9a, 0x3b, 0xe1, 0x03, 0xd1, 0xa1, 0x93, 0x84, 0x4a, 0xe5, 0x9e, 0xc1, 0x3f, 0x1f, + 0x4e, 0x64, 0x24, 0xb8, 0xa4, 0x68, 0x1f, 0xe6, 0x53, 0x5f, 0x1b, 0x54, 0xbe, 0xd5, 0x7e, 0xb6, + 0xca, 0x5e, 0x56, 0x6d, 0x4f, 0x2b, 0x57, 0xc2, 0xf6, 0xf7, 0xd9, 0x53, 0xd9, 0xea, 0x18, 0x91, + 0xbb, 0x07, 0x6d, 0xed, 0x7c, 0x90, 0xc4, 0x31, 0xe5, 0x4a, 0x63, 0x26, 0x15, 0x61, 0x08, 0x59, + 0x9f, 0x72, 0xc5, 0x06, 0x8c, 0xc6, 0x36, 0xa8, 0x80, 0x5a, 0xa1, 0xb3, 0x31, 0x71, 0x7d, 0xf8, + 0x37, 0x43, 0x6b, 0x7a, 0x1d, 0x42, 0xf8, 0x7e, 0x41, 0x2d, 0xde, 0xba, 0x5b, 0x81, 0xae, 0x07, + 0xad, 0xfb, 0x1c, 0xfc, 0xa1, 0x33, 0xd0, 0x35, 0x80, 0xf0, 0x0d, 0x94, 0xa8, 0x9e, 0x6d, 0x95, + 0xbd, 0x3f, 0xa7, 0xb1, 0x25, 0x9d, 0x76, 0x77, 0xff, 0x5f, 0x3d, 0xbc, 0xdc, 0xe6, 0x30, 0x2a, + 0x91, 0xcf, 0x3f, 0x9c, 0x44, 0x77, 0x00, 0xfe, 0xda, 0xbc, 0x3a, 0xf2, 0xbe, 0x48, 0xc9, 0xd8, + 0xaf, 0x43, 0xb6, 0xe6, 0x4d, 0xaf, 0x1d, 0xdd, 0xab, 0x8a, 0xfe, 0x65, 0xf7, 0x0a, 0x52, 0x4d, + 0x57, 0x8f, 0xdb, 0xc7, 0xb3, 0x05, 0x06, 0xf3, 0x05, 0x06, 0xcf, 0x0b, 0x0c, 0x6e, 0x96, 0xd8, + 0x9a, 0x2f, 0xb1, 0xf5, 0xb8, 0xc4, 0xd6, 0x79, 0x3d, 0x64, 0x6a, 0x98, 0xf4, 0xbc, 0x40, 0x8c, + 0x53, 0xa3, 0x46, 0x5f, 0x8c, 0x7d, 0xc6, 0x8d, 0xeb, 0xe5, 0xda, 0x57, 0x4d, 0x23, 0x2a, 0x7b, + 0x79, 0xfd, 0x73, 0xee, 0xbe, 0x06, 0x00, 0x00, 0xff, 0xff, 0xbe, 0x55, 0xda, 0x13, 0x31, 0x03, + 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -356,11 +247,10 @@ const _ = grpc.SupportPackageIsVersion4 // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. type QueryClient interface { - // Parameters queries the parameters of the module. - Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) - // Queries a list of EpochInfo items. - EpochInfo(ctx context.Context, in *QueryGetEpochInfoRequest, opts ...grpc.CallOption) (*QueryGetEpochInfoResponse, error) - EpochInfoAll(ctx context.Context, in *QueryAllEpochInfoRequest, opts ...grpc.CallOption) (*QueryAllEpochInfoResponse, error) + // EpochInfos provide running epochInfos + EpochInfos(ctx context.Context, in *QueryEpochsInfoRequest, opts ...grpc.CallOption) (*QueryEpochsInfoResponse, error) + // CurrentEpoch provide current epoch of specified identifier + CurrentEpoch(ctx context.Context, in *QueryCurrentEpochRequest, opts ...grpc.CallOption) (*QueryCurrentEpochResponse, error) } type queryClient struct { @@ -371,27 +261,18 @@ func NewQueryClient(cc grpc1.ClientConn) QueryClient { return &queryClient{cc} } -func (c *queryClient) Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) { - out := new(QueryParamsResponse) - err := c.cc.Invoke(ctx, "/mycel.epochs.v1beta1.Query/Params", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *queryClient) EpochInfo(ctx context.Context, in *QueryGetEpochInfoRequest, opts ...grpc.CallOption) (*QueryGetEpochInfoResponse, error) { - out := new(QueryGetEpochInfoResponse) - err := c.cc.Invoke(ctx, "/mycel.epochs.v1beta1.Query/EpochInfo", in, out, opts...) +func (c *queryClient) EpochInfos(ctx context.Context, in *QueryEpochsInfoRequest, opts ...grpc.CallOption) (*QueryEpochsInfoResponse, error) { + out := new(QueryEpochsInfoResponse) + err := c.cc.Invoke(ctx, "/mycel.epochs.v1beta1.Query/EpochInfos", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *queryClient) EpochInfoAll(ctx context.Context, in *QueryAllEpochInfoRequest, opts ...grpc.CallOption) (*QueryAllEpochInfoResponse, error) { - out := new(QueryAllEpochInfoResponse) - err := c.cc.Invoke(ctx, "/mycel.epochs.v1beta1.Query/EpochInfoAll", in, out, opts...) +func (c *queryClient) CurrentEpoch(ctx context.Context, in *QueryCurrentEpochRequest, opts ...grpc.CallOption) (*QueryCurrentEpochResponse, error) { + out := new(QueryCurrentEpochResponse) + err := c.cc.Invoke(ctx, "/mycel.epochs.v1beta1.Query/CurrentEpoch", in, out, opts...) if err != nil { return nil, err } @@ -400,81 +281,59 @@ func (c *queryClient) EpochInfoAll(ctx context.Context, in *QueryAllEpochInfoReq // QueryServer is the server API for Query service. type QueryServer interface { - // Parameters queries the parameters of the module. - Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) - // Queries a list of EpochInfo items. - EpochInfo(context.Context, *QueryGetEpochInfoRequest) (*QueryGetEpochInfoResponse, error) - EpochInfoAll(context.Context, *QueryAllEpochInfoRequest) (*QueryAllEpochInfoResponse, error) + // EpochInfos provide running epochInfos + EpochInfos(context.Context, *QueryEpochsInfoRequest) (*QueryEpochsInfoResponse, error) + // CurrentEpoch provide current epoch of specified identifier + CurrentEpoch(context.Context, *QueryCurrentEpochRequest) (*QueryCurrentEpochResponse, error) } // UnimplementedQueryServer can be embedded to have forward compatible implementations. type UnimplementedQueryServer struct { } -func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Params not implemented") -} -func (*UnimplementedQueryServer) EpochInfo(ctx context.Context, req *QueryGetEpochInfoRequest) (*QueryGetEpochInfoResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method EpochInfo not implemented") +func (*UnimplementedQueryServer) EpochInfos(ctx context.Context, req *QueryEpochsInfoRequest) (*QueryEpochsInfoResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method EpochInfos not implemented") } -func (*UnimplementedQueryServer) EpochInfoAll(ctx context.Context, req *QueryAllEpochInfoRequest) (*QueryAllEpochInfoResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method EpochInfoAll not implemented") +func (*UnimplementedQueryServer) CurrentEpoch(ctx context.Context, req *QueryCurrentEpochRequest) (*QueryCurrentEpochResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CurrentEpoch not implemented") } func RegisterQueryServer(s grpc1.Server, srv QueryServer) { s.RegisterService(&_Query_serviceDesc, srv) } -func _Query_Params_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryParamsRequest) +func _Query_EpochInfos_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryEpochsInfoRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(QueryServer).Params(ctx, in) + return srv.(QueryServer).EpochInfos(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mycel.epochs.v1beta1.Query/Params", + FullMethod: "/mycel.epochs.v1beta1.Query/EpochInfos", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).Params(ctx, req.(*QueryParamsRequest)) + return srv.(QueryServer).EpochInfos(ctx, req.(*QueryEpochsInfoRequest)) } return interceptor(ctx, in, info, handler) } -func _Query_EpochInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryGetEpochInfoRequest) +func _Query_CurrentEpoch_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryCurrentEpochRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(QueryServer).EpochInfo(ctx, in) + return srv.(QueryServer).CurrentEpoch(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mycel.epochs.v1beta1.Query/EpochInfo", + FullMethod: "/mycel.epochs.v1beta1.Query/CurrentEpoch", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).EpochInfo(ctx, req.(*QueryGetEpochInfoRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Query_EpochInfoAll_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryAllEpochInfoRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).EpochInfoAll(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/mycel.epochs.v1beta1.Query/EpochInfoAll", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).EpochInfoAll(ctx, req.(*QueryAllEpochInfoRequest)) + return srv.(QueryServer).CurrentEpoch(ctx, req.(*QueryCurrentEpochRequest)) } return interceptor(ctx, in, info, handler) } @@ -484,23 +343,19 @@ var _Query_serviceDesc = grpc.ServiceDesc{ HandlerType: (*QueryServer)(nil), Methods: []grpc.MethodDesc{ { - MethodName: "Params", - Handler: _Query_Params_Handler, - }, - { - MethodName: "EpochInfo", - Handler: _Query_EpochInfo_Handler, + MethodName: "EpochInfos", + Handler: _Query_EpochInfos_Handler, }, { - MethodName: "EpochInfoAll", - Handler: _Query_EpochInfoAll_Handler, + MethodName: "CurrentEpoch", + Handler: _Query_CurrentEpoch_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "mycel/epochs/v1beta1/query.proto", } -func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error) { +func (m *QueryEpochsInfoRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -510,12 +365,12 @@ func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryEpochsInfoRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryEpochsInfoRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -523,7 +378,7 @@ func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error) { +func (m *QueryEpochsInfoResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -533,30 +388,34 @@ func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryEpochsInfoResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryEpochsInfoResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - { - size, err := m.Params.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err + if len(m.Epochs) > 0 { + for iNdEx := len(m.Epochs) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Epochs[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) } - i-- - dAtA[i] = 0xa return len(dAtA) - i, nil } -func (m *QueryGetEpochInfoRequest) Marshal() (dAtA []byte, err error) { +func (m *QueryCurrentEpochRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -566,12 +425,12 @@ func (m *QueryGetEpochInfoRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryGetEpochInfoRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryCurrentEpochRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryGetEpochInfoRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryCurrentEpochRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -586,7 +445,7 @@ func (m *QueryGetEpochInfoRequest) MarshalToSizedBuffer(dAtA []byte) (int, error return len(dAtA) - i, nil } -func (m *QueryGetEpochInfoResponse) Marshal() (dAtA []byte, err error) { +func (m *QueryCurrentEpochResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -596,12 +455,12 @@ func (m *QueryGetEpochInfoResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryGetEpochInfoResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryCurrentEpochResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryGetEpochInfoResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryCurrentEpochResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -619,90 +478,6 @@ func (m *QueryGetEpochInfoResponse) MarshalToSizedBuffer(dAtA []byte) (int, erro return len(dAtA) - i, nil } -func (m *QueryAllEpochInfoRequest) 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 *QueryAllEpochInfoRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryAllEpochInfoRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Pagination != nil { - { - size, err := m.Pagination.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 (m *QueryAllEpochInfoResponse) 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 *QueryAllEpochInfoResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryAllEpochInfoResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Pagination != nil { - { - size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if len(m.EpochInfo) > 0 { - for iNdEx := len(m.EpochInfo) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.EpochInfo[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 @@ -714,7 +489,7 @@ func encodeVarintQuery(dAtA []byte, offset int, v uint64) int { dAtA[offset] = uint8(v) return base } -func (m *QueryParamsRequest) Size() (n int) { +func (m *QueryEpochsInfoRequest) Size() (n int) { if m == nil { return 0 } @@ -723,18 +498,22 @@ func (m *QueryParamsRequest) Size() (n int) { return n } -func (m *QueryParamsResponse) Size() (n int) { +func (m *QueryEpochsInfoResponse) Size() (n int) { if m == nil { return 0 } var l int _ = l - l = m.Params.Size() - n += 1 + l + sovQuery(uint64(l)) + if len(m.Epochs) > 0 { + for _, e := range m.Epochs { + l = e.Size() + n += 1 + l + sovQuery(uint64(l)) + } + } return n } -func (m *QueryGetEpochInfoRequest) Size() (n int) { +func (m *QueryCurrentEpochRequest) Size() (n int) { if m == nil { return 0 } @@ -747,7 +526,7 @@ func (m *QueryGetEpochInfoRequest) Size() (n int) { return n } -func (m *QueryGetEpochInfoResponse) Size() (n int) { +func (m *QueryCurrentEpochResponse) Size() (n int) { if m == nil { return 0 } @@ -758,45 +537,13 @@ func (m *QueryGetEpochInfoResponse) Size() (n int) { return n } -func (m *QueryAllEpochInfoRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Pagination != nil { - l = m.Pagination.Size() - n += 1 + l + sovQuery(uint64(l)) - } - return n -} - -func (m *QueryAllEpochInfoResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.EpochInfo) > 0 { - for _, e := range m.EpochInfo { - l = e.Size() - n += 1 + l + sovQuery(uint64(l)) - } - } - if m.Pagination != nil { - l = m.Pagination.Size() - n += 1 + l + sovQuery(uint64(l)) - } - return n -} - func sovQuery(x uint64) (n int) { return (math_bits.Len64(x|1) + 6) / 7 } func sozQuery(x uint64) (n int) { return sovQuery(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } -func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error { +func (m *QueryEpochsInfoRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -819,10 +566,10 @@ func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryParamsRequest: wiretype end group for non-group") + return fmt.Errorf("proto: QueryEpochsInfoRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryParamsRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryEpochsInfoRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: @@ -846,7 +593,7 @@ func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error { +func (m *QueryEpochsInfoResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -869,15 +616,15 @@ func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryParamsResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryEpochsInfoResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryParamsResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryEpochsInfoResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Params", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Epochs", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -904,7 +651,8 @@ func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.Params.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + m.Epochs = append(m.Epochs, EpochInfo{}) + if err := m.Epochs[len(m.Epochs)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -929,7 +677,7 @@ func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryGetEpochInfoRequest) Unmarshal(dAtA []byte) error { +func (m *QueryCurrentEpochRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -952,10 +700,10 @@ func (m *QueryGetEpochInfoRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryGetEpochInfoRequest: wiretype end group for non-group") + return fmt.Errorf("proto: QueryCurrentEpochRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryGetEpochInfoRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryCurrentEpochRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -1011,7 +759,7 @@ func (m *QueryGetEpochInfoRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryGetEpochInfoResponse) Unmarshal(dAtA []byte) error { +func (m *QueryCurrentEpochResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -1034,10 +782,10 @@ func (m *QueryGetEpochInfoResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryGetEpochInfoResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryCurrentEpochResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryGetEpochInfoResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryCurrentEpochResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -1094,212 +842,6 @@ func (m *QueryGetEpochInfoResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryAllEpochInfoRequest) 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: QueryAllEpochInfoRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryAllEpochInfoRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Pagination", 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 - } - if m.Pagination == nil { - m.Pagination = &query.PageRequest{} - } - if err := m.Pagination.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 (m *QueryAllEpochInfoResponse) 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: QueryAllEpochInfoResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryAllEpochInfoResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field EpochInfo", 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.EpochInfo = append(m.EpochInfo, EpochInfo{}) - if err := m.EpochInfo[len(m.EpochInfo)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Pagination", 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 - } - if m.Pagination == nil { - m.Pagination = &query.PageResponse{} - } - if err := m.Pagination.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/epochs/types/query.pb.gw.go b/x/epochs/types/query.pb.gw.go index 584986b1..e92e1ae3 100644 --- a/x/epochs/types/query.pb.gw.go +++ b/x/epochs/types/query.pb.gw.go @@ -33,110 +33,56 @@ var _ = utilities.NewDoubleArray var _ = descriptor.ForMessage var _ = metadata.Join -func request_Query_Params_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryParamsRequest +func request_Query_EpochInfos_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryEpochsInfoRequest var metadata runtime.ServerMetadata - msg, err := client.Params(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + msg, err := client.EpochInfos(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } -func local_request_Query_Params_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryParamsRequest +func local_request_Query_EpochInfos_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryEpochsInfoRequest var metadata runtime.ServerMetadata - msg, err := server.Params(ctx, &protoReq) - return msg, metadata, err - -} - -func request_Query_EpochInfo_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryGetEpochInfoRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["identifier"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "identifier") - } - - protoReq.Identifier, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "identifier", err) - } - - msg, err := client.EpochInfo(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_Query_EpochInfo_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryGetEpochInfoRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["identifier"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "identifier") - } - - protoReq.Identifier, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "identifier", err) - } - - msg, err := server.EpochInfo(ctx, &protoReq) + msg, err := server.EpochInfos(ctx, &protoReq) return msg, metadata, err } var ( - filter_Query_EpochInfoAll_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} + filter_Query_CurrentEpoch_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} ) -func request_Query_EpochInfoAll_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryAllEpochInfoRequest +func request_Query_CurrentEpoch_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryCurrentEpochRequest var metadata runtime.ServerMetadata if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_EpochInfoAll_0); err != nil { + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_CurrentEpoch_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := client.EpochInfoAll(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + msg, err := client.CurrentEpoch(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } -func local_request_Query_EpochInfoAll_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryAllEpochInfoRequest +func local_request_Query_CurrentEpoch_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryCurrentEpochRequest var metadata runtime.ServerMetadata if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_EpochInfoAll_0); err != nil { + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_CurrentEpoch_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := server.EpochInfoAll(ctx, &protoReq) + msg, err := server.CurrentEpoch(ctx, &protoReq) return msg, metadata, err } @@ -147,7 +93,7 @@ func local_request_Query_EpochInfoAll_0(ctx context.Context, marshaler runtime.M // Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterQueryHandlerFromEndpoint instead. func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error { - mux.Handle("GET", pattern_Query_Params_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_Query_EpochInfos_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream @@ -158,7 +104,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_Query_Params_0(rctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_Query_EpochInfos_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 { @@ -166,11 +112,11 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv return } - forward_Query_Params_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Query_EpochInfos_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("GET", pattern_Query_EpochInfo_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_Query_CurrentEpoch_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream @@ -181,7 +127,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_Query_EpochInfo_0(rctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_Query_CurrentEpoch_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 { @@ -189,30 +135,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv return } - forward_Query_EpochInfo_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_Query_EpochInfoAll_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_EpochInfoAll_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_EpochInfoAll_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Query_CurrentEpoch_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) @@ -257,27 +180,7 @@ func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc // "QueryClient" to call the correct interceptors. func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error { - mux.Handle("GET", pattern_Query_Params_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_Params_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_Params_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_Query_EpochInfo_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_Query_EpochInfos_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) @@ -286,18 +189,18 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_Query_EpochInfo_0(rctx, inboundMarshaler, client, req, pathParams) + resp, md, err := request_Query_EpochInfos_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_EpochInfo_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Query_EpochInfos_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("GET", pattern_Query_EpochInfoAll_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_Query_CurrentEpoch_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) @@ -306,14 +209,14 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_Query_EpochInfoAll_0(rctx, inboundMarshaler, client, req, pathParams) + resp, md, err := request_Query_CurrentEpoch_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_EpochInfoAll_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Query_CurrentEpoch_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) @@ -321,17 +224,13 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie } var ( - pattern_Query_Params_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"mycel", "epochs", "v1beta1", "params"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_EpochInfos_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 1}, []string{"mycel", "epochs", "v1beta1"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_EpochInfo_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"mycel", "epochs", "v1beta1", "epoch_info", "identifier"}, "", runtime.AssumeColonVerbOpt(false))) - - pattern_Query_EpochInfoAll_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"mycel", "epochs", "v1beta1", "epoch_info"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_CurrentEpoch_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"mycel", "epochs", "v1beta1", "current_epoch"}, "", runtime.AssumeColonVerbOpt(false))) ) var ( - forward_Query_Params_0 = runtime.ForwardResponseMessage - - forward_Query_EpochInfo_0 = runtime.ForwardResponseMessage + forward_Query_EpochInfos_0 = runtime.ForwardResponseMessage - forward_Query_EpochInfoAll_0 = runtime.ForwardResponseMessage + forward_Query_CurrentEpoch_0 = runtime.ForwardResponseMessage ) diff --git a/x/epochs/types/tx.pb.go b/x/epochs/types/tx.pb.go index 23f00ef3..8c7c2216 100644 --- a/x/epochs/types/tx.pb.go +++ b/x/epochs/types/tx.pb.go @@ -6,6 +6,10 @@ package types import ( context "context" fmt "fmt" + _ "github.com/cosmos/cosmos-proto" + _ "github.com/cosmos/cosmos-sdk/types/msgservice" + _ "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" grpc "google.golang.org/grpc" @@ -26,16 +30,20 @@ const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package func init() { proto.RegisterFile("mycel/epochs/v1beta1/tx.proto", fileDescriptor_4797237f7b5a9350) } var fileDescriptor_4797237f7b5a9350 = []byte{ - // 137 bytes of a gzipped FileDescriptorProto + // 196 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0xcd, 0xad, 0x4c, 0x4e, 0xcd, 0xd1, 0x4f, 0x2d, 0xc8, 0x4f, 0xce, 0x28, 0xd6, 0x2f, 0x33, 0x4c, 0x4a, 0x2d, 0x49, 0x34, 0xd4, 0x2f, 0xa9, 0xd0, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, 0x01, 0x4b, 0xeb, 0x41, 0xa4, - 0xf5, 0xa0, 0xd2, 0x46, 0xac, 0x5c, 0xcc, 0xbe, 0xc5, 0xe9, 0x4e, 0x6e, 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, 0x93, 0x9e, 0x59, 0x92, 0x51, 0x9a, 0xa4, 0x97, 0x9c, - 0x9f, 0xab, 0x0f, 0x36, 0x41, 0x37, 0x25, 0x3f, 0x37, 0x31, 0x33, 0x0f, 0xc2, 0xd1, 0xaf, 0x80, - 0xd9, 0x57, 0x52, 0x59, 0x90, 0x5a, 0x9c, 0xc4, 0x06, 0xb6, 0xcb, 0x18, 0x10, 0x00, 0x00, 0xff, - 0xff, 0xa9, 0x66, 0x30, 0xde, 0x8c, 0x00, 0x00, 0x00, + 0xf5, 0xa0, 0xd2, 0x52, 0x82, 0x89, 0xb9, 0x99, 0x79, 0xf9, 0xfa, 0x60, 0x12, 0xa2, 0x50, 0x4a, + 0x3c, 0x39, 0xbf, 0x38, 0x37, 0xbf, 0x58, 0x3f, 0xb7, 0x38, 0x5d, 0xbf, 0xcc, 0x10, 0x44, 0x41, + 0x25, 0x24, 0x21, 0x12, 0xf1, 0x60, 0x9e, 0x3e, 0x84, 0x03, 0x95, 0x12, 0x49, 0xcf, 0x4f, 0xcf, + 0x87, 0x88, 0x83, 0x58, 0x10, 0x51, 0x23, 0x1e, 0x2e, 0x66, 0xdf, 0xe2, 0x74, 0x29, 0xd6, 0x86, + 0xe7, 0x1b, 0xb4, 0x18, 0x9d, 0xdc, 0x4e, 0x3c, 0x92, 0x63, 0xbc, 0xf0, 0x48, 0x8e, 0xf1, 0xc1, + 0x23, 0x39, 0xc6, 0x09, 0x8f, 0xe5, 0x18, 0x2e, 0x3c, 0x96, 0x63, 0xb8, 0xf1, 0x58, 0x8e, 0x21, + 0x4a, 0x27, 0x3d, 0xb3, 0x24, 0xa3, 0x34, 0x49, 0x2f, 0x39, 0x3f, 0x57, 0x1f, 0xec, 0x4a, 0xdd, + 0x94, 0xfc, 0xdc, 0xc4, 0xcc, 0x3c, 0x08, 0x47, 0xbf, 0x02, 0xe6, 0xa7, 0x92, 0xca, 0x82, 0xd4, + 0xe2, 0x24, 0x36, 0xb0, 0xe1, 0xc6, 0x80, 0x00, 0x00, 0x00, 0xff, 0xff, 0xc0, 0x20, 0x6f, 0xf9, + 0xf0, 0x00, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. diff --git a/x/furnace/module/module.go b/x/furnace/module/module.go index 36f434ff..d1100718 100644 --- a/x/furnace/module/module.go +++ b/x/furnace/module/module.go @@ -6,17 +6,19 @@ import ( "fmt" "log" + "github.com/grpc-ecosystem/grpc-gateway/runtime" + "github.com/spf13/cobra" + "cosmossdk.io/core/appmodule" "cosmossdk.io/depinject" storetypes "cosmossdk.io/store/types" + "github.com/cosmos/cosmos-sdk/client" "github.com/cosmos/cosmos-sdk/codec" cdctypes "github.com/cosmos/cosmos-sdk/codec/types" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/module" paramtypes "github.com/cosmos/cosmos-sdk/x/params/types" - "github.com/grpc-ecosystem/grpc-gateway/runtime" - "github.com/spf13/cobra" // this line is used by starport scaffolding # 1 modulev1 "github.com/mycel-domain/mycel/api/mycel/furnace/module/v1" diff --git a/x/registry/keeper/msg_server_test.go b/x/registry/keeper/msg_server_test.go index 331957f1..51e2ff94 100644 --- a/x/registry/keeper/msg_server_test.go +++ b/x/registry/keeper/msg_server_test.go @@ -7,8 +7,8 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" keepertest "github.com/mycel-domain/mycel/testutil/keeper" - "github.com/mycel-domain/mycel/x/registry/module" "github.com/mycel-domain/mycel/x/registry/keeper" + "github.com/mycel-domain/mycel/x/registry/module" "github.com/mycel-domain/mycel/x/registry/types" ) diff --git a/x/registry/module/module.go b/x/registry/module/module.go index 1a4a0a60..50038cfd 100644 --- a/x/registry/module/module.go +++ b/x/registry/module/module.go @@ -6,17 +6,19 @@ import ( "fmt" "log" + "github.com/grpc-ecosystem/grpc-gateway/runtime" + "github.com/spf13/cobra" + "cosmossdk.io/core/appmodule" "cosmossdk.io/depinject" storetypes "cosmossdk.io/store/types" + "github.com/cosmos/cosmos-sdk/client" "github.com/cosmos/cosmos-sdk/codec" cdctypes "github.com/cosmos/cosmos-sdk/codec/types" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/module" paramtypes "github.com/cosmos/cosmos-sdk/x/params/types" - "github.com/grpc-ecosystem/grpc-gateway/runtime" - "github.com/spf13/cobra" // this line is used by starport scaffolding # 1 modulev1 "github.com/mycel-domain/mycel/api/mycel/registry/module/v1"