diff --git a/api/mycel/epochs/module/v1/module.pulsar.go b/api/mycel/epochs/module/v1/module.pulsar.go index e1c49cc8..b17a4a46 100644 --- a/api/mycel/epochs/module/v1/module.pulsar.go +++ b/api/mycel/epochs/module/v1/module.pulsar.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-go-pulsar. DO NOT EDIT. -package epochs +package modulev1 import ( _ "cosmossdk.io/api/cosmos/app/v1alpha1" @@ -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,28 @@ 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, + 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, 0xd6, 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, 0x30, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, + 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2f, 0x65, + 0x70, 0x6f, 0x63, 0x68, 0x73, 0x2f, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2f, 0x76, 0x31, 0x3b, + 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x76, 0x31, 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, - 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, + 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/epoch_info.pulsar.go b/api/mycel/epochs/v1/epoch_info.pulsar.go similarity index 73% rename from api/mycel/epochs/v1beta1/epoch_info.pulsar.go rename to api/mycel/epochs/v1/epoch_info.pulsar.go index a5c5ca41..e85bb15c 100644 --- a/api/mycel/epochs/v1beta1/epoch_info.pulsar.go +++ b/api/mycel/epochs/v1/epoch_info.pulsar.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-go-pulsar. DO NOT EDIT. -package types +package epochsv1 import ( fmt "fmt" @@ -27,8 +27,8 @@ var ( ) func init() { - file_mycel_epochs_v1beta1_epoch_info_proto_init() - md_EpochInfo = File_mycel_epochs_v1beta1_epoch_info_proto.Messages().ByName("EpochInfo") + file_mycel_epochs_v1_epoch_info_proto_init() + md_EpochInfo = File_mycel_epochs_v1_epoch_info_proto.Messages().ByName("EpochInfo") fd_EpochInfo_identifier = md_EpochInfo.Fields().ByName("identifier") fd_EpochInfo_start_time = md_EpochInfo.Fields().ByName("start_time") fd_EpochInfo_duration = md_EpochInfo.Fields().ByName("duration") @@ -47,7 +47,7 @@ func (x *EpochInfo) ProtoReflect() protoreflect.Message { } func (x *EpochInfo) slowProtoReflect() protoreflect.Message { - mi := &file_mycel_epochs_v1beta1_epoch_info_proto_msgTypes[0] + mi := &file_mycel_epochs_v1_epoch_info_proto_msgTypes[0] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -160,25 +160,25 @@ func (x *fastReflection_EpochInfo) Range(f func(protoreflect.FieldDescriptor, pr // a repeated field is populated if it is non-empty. func (x *fastReflection_EpochInfo) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "mycel.epochs.v1beta1.EpochInfo.identifier": + case "mycel.epochs.v1.EpochInfo.identifier": return x.Identifier != "" - case "mycel.epochs.v1beta1.EpochInfo.start_time": + case "mycel.epochs.v1.EpochInfo.start_time": return x.StartTime != nil - case "mycel.epochs.v1beta1.EpochInfo.duration": + case "mycel.epochs.v1.EpochInfo.duration": return x.Duration != nil - case "mycel.epochs.v1beta1.EpochInfo.current_epoch": + case "mycel.epochs.v1.EpochInfo.current_epoch": return x.CurrentEpoch != int64(0) - case "mycel.epochs.v1beta1.EpochInfo.current_epoch_start_time": + case "mycel.epochs.v1.EpochInfo.current_epoch_start_time": return x.CurrentEpochStartTime != nil - case "mycel.epochs.v1beta1.EpochInfo.epoch_counting_started": + case "mycel.epochs.v1.EpochInfo.epoch_counting_started": return x.EpochCountingStarted != false - case "mycel.epochs.v1beta1.EpochInfo.current_epoch_start_height": + case "mycel.epochs.v1.EpochInfo.current_epoch_start_height": return x.CurrentEpochStartHeight != int64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.epochs.v1beta1.EpochInfo")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.epochs.v1.EpochInfo")) } - panic(fmt.Errorf("message mycel.epochs.v1beta1.EpochInfo does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.epochs.v1.EpochInfo does not contain field %s", fd.FullName())) } } @@ -190,25 +190,25 @@ func (x *fastReflection_EpochInfo) Has(fd protoreflect.FieldDescriptor) bool { // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_EpochInfo) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "mycel.epochs.v1beta1.EpochInfo.identifier": + case "mycel.epochs.v1.EpochInfo.identifier": x.Identifier = "" - case "mycel.epochs.v1beta1.EpochInfo.start_time": + case "mycel.epochs.v1.EpochInfo.start_time": x.StartTime = nil - case "mycel.epochs.v1beta1.EpochInfo.duration": + case "mycel.epochs.v1.EpochInfo.duration": x.Duration = nil - case "mycel.epochs.v1beta1.EpochInfo.current_epoch": + case "mycel.epochs.v1.EpochInfo.current_epoch": x.CurrentEpoch = int64(0) - case "mycel.epochs.v1beta1.EpochInfo.current_epoch_start_time": + case "mycel.epochs.v1.EpochInfo.current_epoch_start_time": x.CurrentEpochStartTime = nil - case "mycel.epochs.v1beta1.EpochInfo.epoch_counting_started": + case "mycel.epochs.v1.EpochInfo.epoch_counting_started": x.EpochCountingStarted = false - case "mycel.epochs.v1beta1.EpochInfo.current_epoch_start_height": + case "mycel.epochs.v1.EpochInfo.current_epoch_start_height": x.CurrentEpochStartHeight = int64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.epochs.v1beta1.EpochInfo")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.epochs.v1.EpochInfo")) } - panic(fmt.Errorf("message mycel.epochs.v1beta1.EpochInfo does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.epochs.v1.EpochInfo does not contain field %s", fd.FullName())) } } @@ -220,32 +220,32 @@ func (x *fastReflection_EpochInfo) Clear(fd protoreflect.FieldDescriptor) { // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_EpochInfo) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "mycel.epochs.v1beta1.EpochInfo.identifier": + case "mycel.epochs.v1.EpochInfo.identifier": value := x.Identifier return protoreflect.ValueOfString(value) - case "mycel.epochs.v1beta1.EpochInfo.start_time": + case "mycel.epochs.v1.EpochInfo.start_time": value := x.StartTime return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "mycel.epochs.v1beta1.EpochInfo.duration": + case "mycel.epochs.v1.EpochInfo.duration": value := x.Duration return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "mycel.epochs.v1beta1.EpochInfo.current_epoch": + case "mycel.epochs.v1.EpochInfo.current_epoch": value := x.CurrentEpoch return protoreflect.ValueOfInt64(value) - case "mycel.epochs.v1beta1.EpochInfo.current_epoch_start_time": + case "mycel.epochs.v1.EpochInfo.current_epoch_start_time": value := x.CurrentEpochStartTime return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "mycel.epochs.v1beta1.EpochInfo.epoch_counting_started": + case "mycel.epochs.v1.EpochInfo.epoch_counting_started": value := x.EpochCountingStarted return protoreflect.ValueOfBool(value) - case "mycel.epochs.v1beta1.EpochInfo.current_epoch_start_height": + case "mycel.epochs.v1.EpochInfo.current_epoch_start_height": value := x.CurrentEpochStartHeight return protoreflect.ValueOfInt64(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.epochs.v1beta1.EpochInfo")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.epochs.v1.EpochInfo")) } - panic(fmt.Errorf("message mycel.epochs.v1beta1.EpochInfo does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message mycel.epochs.v1.EpochInfo does not contain field %s", descriptor.FullName())) } } @@ -261,25 +261,25 @@ func (x *fastReflection_EpochInfo) Get(descriptor protoreflect.FieldDescriptor) // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_EpochInfo) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "mycel.epochs.v1beta1.EpochInfo.identifier": + case "mycel.epochs.v1.EpochInfo.identifier": x.Identifier = value.Interface().(string) - case "mycel.epochs.v1beta1.EpochInfo.start_time": + case "mycel.epochs.v1.EpochInfo.start_time": x.StartTime = value.Message().Interface().(*timestamppb.Timestamp) - case "mycel.epochs.v1beta1.EpochInfo.duration": + case "mycel.epochs.v1.EpochInfo.duration": x.Duration = value.Message().Interface().(*durationpb.Duration) - case "mycel.epochs.v1beta1.EpochInfo.current_epoch": + case "mycel.epochs.v1.EpochInfo.current_epoch": x.CurrentEpoch = value.Int() - case "mycel.epochs.v1beta1.EpochInfo.current_epoch_start_time": + case "mycel.epochs.v1.EpochInfo.current_epoch_start_time": x.CurrentEpochStartTime = value.Message().Interface().(*timestamppb.Timestamp) - case "mycel.epochs.v1beta1.EpochInfo.epoch_counting_started": + case "mycel.epochs.v1.EpochInfo.epoch_counting_started": x.EpochCountingStarted = value.Bool() - case "mycel.epochs.v1beta1.EpochInfo.current_epoch_start_height": + case "mycel.epochs.v1.EpochInfo.current_epoch_start_height": x.CurrentEpochStartHeight = value.Int() default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.epochs.v1beta1.EpochInfo")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.epochs.v1.EpochInfo")) } - panic(fmt.Errorf("message mycel.epochs.v1beta1.EpochInfo does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.epochs.v1.EpochInfo does not contain field %s", fd.FullName())) } } @@ -295,34 +295,34 @@ func (x *fastReflection_EpochInfo) Set(fd protoreflect.FieldDescriptor, value pr // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_EpochInfo) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "mycel.epochs.v1beta1.EpochInfo.start_time": + case "mycel.epochs.v1.EpochInfo.start_time": if x.StartTime == nil { x.StartTime = new(timestamppb.Timestamp) } return protoreflect.ValueOfMessage(x.StartTime.ProtoReflect()) - case "mycel.epochs.v1beta1.EpochInfo.duration": + case "mycel.epochs.v1.EpochInfo.duration": if x.Duration == nil { x.Duration = new(durationpb.Duration) } return protoreflect.ValueOfMessage(x.Duration.ProtoReflect()) - case "mycel.epochs.v1beta1.EpochInfo.current_epoch_start_time": + case "mycel.epochs.v1.EpochInfo.current_epoch_start_time": if x.CurrentEpochStartTime == nil { x.CurrentEpochStartTime = new(timestamppb.Timestamp) } return protoreflect.ValueOfMessage(x.CurrentEpochStartTime.ProtoReflect()) - case "mycel.epochs.v1beta1.EpochInfo.identifier": - panic(fmt.Errorf("field identifier of message mycel.epochs.v1beta1.EpochInfo is not mutable")) - case "mycel.epochs.v1beta1.EpochInfo.current_epoch": - panic(fmt.Errorf("field current_epoch of message mycel.epochs.v1beta1.EpochInfo is not mutable")) - case "mycel.epochs.v1beta1.EpochInfo.epoch_counting_started": - panic(fmt.Errorf("field epoch_counting_started of message mycel.epochs.v1beta1.EpochInfo is not mutable")) - case "mycel.epochs.v1beta1.EpochInfo.current_epoch_start_height": - panic(fmt.Errorf("field current_epoch_start_height of message mycel.epochs.v1beta1.EpochInfo is not mutable")) + case "mycel.epochs.v1.EpochInfo.identifier": + panic(fmt.Errorf("field identifier of message mycel.epochs.v1.EpochInfo is not mutable")) + case "mycel.epochs.v1.EpochInfo.current_epoch": + panic(fmt.Errorf("field current_epoch of message mycel.epochs.v1.EpochInfo is not mutable")) + case "mycel.epochs.v1.EpochInfo.epoch_counting_started": + panic(fmt.Errorf("field epoch_counting_started of message mycel.epochs.v1.EpochInfo is not mutable")) + case "mycel.epochs.v1.EpochInfo.current_epoch_start_height": + panic(fmt.Errorf("field current_epoch_start_height of message mycel.epochs.v1.EpochInfo is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.epochs.v1beta1.EpochInfo")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.epochs.v1.EpochInfo")) } - panic(fmt.Errorf("message mycel.epochs.v1beta1.EpochInfo does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.epochs.v1.EpochInfo does not contain field %s", fd.FullName())) } } @@ -331,28 +331,28 @@ func (x *fastReflection_EpochInfo) Mutable(fd protoreflect.FieldDescriptor) prot // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_EpochInfo) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "mycel.epochs.v1beta1.EpochInfo.identifier": + case "mycel.epochs.v1.EpochInfo.identifier": return protoreflect.ValueOfString("") - case "mycel.epochs.v1beta1.EpochInfo.start_time": + case "mycel.epochs.v1.EpochInfo.start_time": m := new(timestamppb.Timestamp) return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "mycel.epochs.v1beta1.EpochInfo.duration": + case "mycel.epochs.v1.EpochInfo.duration": m := new(durationpb.Duration) return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "mycel.epochs.v1beta1.EpochInfo.current_epoch": + case "mycel.epochs.v1.EpochInfo.current_epoch": return protoreflect.ValueOfInt64(int64(0)) - case "mycel.epochs.v1beta1.EpochInfo.current_epoch_start_time": + case "mycel.epochs.v1.EpochInfo.current_epoch_start_time": m := new(timestamppb.Timestamp) return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "mycel.epochs.v1beta1.EpochInfo.epoch_counting_started": + case "mycel.epochs.v1.EpochInfo.epoch_counting_started": return protoreflect.ValueOfBool(false) - case "mycel.epochs.v1beta1.EpochInfo.current_epoch_start_height": + case "mycel.epochs.v1.EpochInfo.current_epoch_start_height": return protoreflect.ValueOfInt64(int64(0)) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.epochs.v1beta1.EpochInfo")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.epochs.v1.EpochInfo")) } - panic(fmt.Errorf("message mycel.epochs.v1beta1.EpochInfo does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.epochs.v1.EpochInfo does not contain field %s", fd.FullName())) } } @@ -362,7 +362,7 @@ func (x *fastReflection_EpochInfo) NewField(fd protoreflect.FieldDescriptor) pro func (x *fastReflection_EpochInfo) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in mycel.epochs.v1beta1.EpochInfo", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in mycel.epochs.v1.EpochInfo", d.FullName())) } panic("unreachable") } @@ -826,7 +826,7 @@ func (x *fastReflection_EpochInfo) ProtoMethods() *protoiface.Methods { // versions: // protoc-gen-go v1.27.0 // protoc (unknown) -// source: mycel/epochs/v1beta1/epoch_info.proto +// source: mycel/epochs/v1/epoch_info.proto const ( // Verify that this generated code is sufficiently up-to-date. @@ -852,7 +852,7 @@ type EpochInfo struct { func (x *EpochInfo) Reset() { *x = EpochInfo{} if protoimpl.UnsafeEnabled { - mi := &file_mycel_epochs_v1beta1_epoch_info_proto_msgTypes[0] + mi := &file_mycel_epochs_v1_epoch_info_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -866,7 +866,7 @@ func (*EpochInfo) ProtoMessage() {} // Deprecated: Use EpochInfo.ProtoReflect.Descriptor instead. func (*EpochInfo) Descriptor() ([]byte, []int) { - return file_mycel_epochs_v1beta1_epoch_info_proto_rawDescGZIP(), []int{0} + return file_mycel_epochs_v1_epoch_info_proto_rawDescGZIP(), []int{0} } func (x *EpochInfo) GetIdentifier() string { @@ -918,89 +918,86 @@ func (x *EpochInfo) GetCurrentEpochStartHeight() int64 { return 0 } -var File_mycel_epochs_v1beta1_epoch_info_proto protoreflect.FileDescriptor +var File_mycel_epochs_v1_epoch_info_proto protoreflect.FileDescriptor -var file_mycel_epochs_v1beta1_epoch_info_proto_rawDesc = []byte{ - 0x0a, 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, 0x12, 0x14, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x65, - 0x70, 0x6f, 0x63, 0x68, 0x73, 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, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x8a, 0x04, 0x0a, 0x09, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x49, 0x6e, - 0x66, 0x6f, 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, 0x12, 0x58, 0x0a, 0x0a, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, - 0x6d, 0x70, 0x42, 0x1d, 0xc8, 0xde, 0x1f, 0x00, 0xf2, 0xde, 0x1f, 0x11, 0x79, 0x61, 0x6d, 0x6c, - 0x3a, 0x22, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x22, 0x90, 0xdf, 0x1f, - 0x01, 0x52, 0x09, 0x73, 0x74, 0x61, 0x72, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x68, 0x0a, 0x08, - 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, - 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, - 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x31, 0xc8, 0xde, 0x1f, 0x00, 0xea, - 0xde, 0x1f, 0x12, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2c, 0x6f, 0x6d, 0x69, 0x74, - 0x65, 0x6d, 0x70, 0x74, 0x79, 0xf2, 0xde, 0x1f, 0x0f, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x64, - 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x98, 0xdf, 0x1f, 0x01, 0x52, 0x08, 0x64, 0x75, - 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x23, 0x0a, 0x0d, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, - 0x74, 0x5f, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0c, 0x63, - 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x12, 0x80, 0x01, 0x0a, 0x18, +var file_mycel_epochs_v1_epoch_info_proto_rawDesc = []byte{ + 0x0a, 0x20, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2f, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x73, 0x2f, 0x76, + 0x31, 0x2f, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x12, 0x0f, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x73, + 0x2e, 0x76, 0x31, 0x1a, 0x14, 0x67, 0x6f, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, + 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x64, 0x75, 0x72, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, + 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x8a, 0x04, 0x0a, 0x09, 0x45, + 0x70, 0x6f, 0x63, 0x68, 0x49, 0x6e, 0x66, 0x6f, 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, 0x12, 0x58, 0x0a, 0x0a, 0x73, 0x74, 0x61, 0x72, + 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, + 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x1d, 0xc8, 0xde, 0x1f, 0x00, 0xf2, 0xde, + 0x1f, 0x11, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x74, 0x69, + 0x6d, 0x65, 0x22, 0x90, 0xdf, 0x1f, 0x01, 0x52, 0x09, 0x73, 0x74, 0x61, 0x72, 0x74, 0x54, 0x69, + 0x6d, 0x65, 0x12, 0x68, 0x0a, 0x08, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, + 0x31, 0xc8, 0xde, 0x1f, 0x00, 0xea, 0xde, 0x1f, 0x12, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x2c, 0x6f, 0x6d, 0x69, 0x74, 0x65, 0x6d, 0x70, 0x74, 0x79, 0xf2, 0xde, 0x1f, 0x0f, 0x79, + 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x98, 0xdf, + 0x1f, 0x01, 0x52, 0x08, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x23, 0x0a, 0x0d, + 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x18, 0x04, 0x20, + 0x01, 0x28, 0x03, 0x52, 0x0c, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x45, 0x70, 0x6f, 0x63, + 0x68, 0x12, 0x80, 0x01, 0x0a, 0x18, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x65, 0x70, + 0x6f, 0x63, 0x68, 0x5f, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x05, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, + 0x42, 0x2b, 0xc8, 0xde, 0x1f, 0x00, 0xf2, 0xde, 0x1f, 0x1f, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x5f, 0x73, 0x74, - 0x61, 0x72, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, - 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, - 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x2b, 0xc8, 0xde, 0x1f, 0x00, - 0xf2, 0xde, 0x1f, 0x1f, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, - 0x74, 0x5f, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x5f, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x74, 0x69, - 0x6d, 0x65, 0x22, 0x90, 0xdf, 0x1f, 0x01, 0x52, 0x15, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, - 0x45, 0x70, 0x6f, 0x63, 0x68, 0x53, 0x74, 0x61, 0x72, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x34, - 0x0a, 0x16, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x69, 0x6e, 0x67, - 0x5f, 0x73, 0x74, 0x61, 0x72, 0x74, 0x65, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x14, - 0x65, 0x70, 0x6f, 0x63, 0x68, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x69, 0x6e, 0x67, 0x53, 0x74, 0x61, - 0x72, 0x74, 0x65, 0x64, 0x12, 0x3b, 0x0a, 0x1a, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x5f, - 0x65, 0x70, 0x6f, 0x63, 0x68, 0x5f, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x68, 0x65, 0x69, 0x67, - 0x68, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03, 0x52, 0x17, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, - 0x74, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x53, 0x74, 0x61, 0x72, 0x74, 0x48, 0x65, 0x69, 0x67, 0x68, - 0x74, 0x42, 0xca, 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, 0x0e, - 0x45, 0x70, 0x6f, 0x63, 0x68, 0x49, 0x6e, 0x66, 0x6f, 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, + 0x61, 0x72, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x22, 0x90, 0xdf, 0x1f, 0x01, 0x52, 0x15, 0x63, + 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x53, 0x74, 0x61, 0x72, 0x74, + 0x54, 0x69, 0x6d, 0x65, 0x12, 0x34, 0x0a, 0x16, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x5f, 0x63, 0x6f, + 0x75, 0x6e, 0x74, 0x69, 0x6e, 0x67, 0x5f, 0x73, 0x74, 0x61, 0x72, 0x74, 0x65, 0x64, 0x18, 0x06, + 0x20, 0x01, 0x28, 0x08, 0x52, 0x14, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x43, 0x6f, 0x75, 0x6e, 0x74, + 0x69, 0x6e, 0x67, 0x53, 0x74, 0x61, 0x72, 0x74, 0x65, 0x64, 0x12, 0x3b, 0x0a, 0x1a, 0x63, 0x75, + 0x72, 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x5f, 0x73, 0x74, 0x61, 0x72, + 0x74, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03, 0x52, 0x17, + 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x53, 0x74, 0x61, 0x72, + 0x74, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x42, 0xae, 0x01, 0x0a, 0x13, 0x63, 0x6f, 0x6d, 0x2e, + 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x73, 0x2e, 0x76, 0x31, 0x42, + 0x0e, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x49, 0x6e, 0x66, 0x6f, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, + 0x01, 0x5a, 0x29, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, + 0x61, 0x70, 0x69, 0x2f, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2f, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x73, + 0x2f, 0x76, 0x31, 0x3b, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x73, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x4d, + 0x45, 0x58, 0xaa, 0x02, 0x0f, 0x4d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x45, 0x70, 0x6f, 0x63, 0x68, + 0x73, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x0f, 0x4d, 0x79, 0x63, 0x65, 0x6c, 0x5c, 0x45, 0x70, 0x6f, + 0x63, 0x68, 0x73, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x1b, 0x4d, 0x79, 0x63, 0x65, 0x6c, 0x5c, 0x45, + 0x70, 0x6f, 0x63, 0x68, 0x73, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, + 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x11, 0x4d, 0x79, 0x63, 0x65, 0x6c, 0x3a, 0x3a, 0x45, 0x70, + 0x6f, 0x63, 0x68, 0x73, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( - file_mycel_epochs_v1beta1_epoch_info_proto_rawDescOnce sync.Once - file_mycel_epochs_v1beta1_epoch_info_proto_rawDescData = file_mycel_epochs_v1beta1_epoch_info_proto_rawDesc + file_mycel_epochs_v1_epoch_info_proto_rawDescOnce sync.Once + file_mycel_epochs_v1_epoch_info_proto_rawDescData = file_mycel_epochs_v1_epoch_info_proto_rawDesc ) -func file_mycel_epochs_v1beta1_epoch_info_proto_rawDescGZIP() []byte { - file_mycel_epochs_v1beta1_epoch_info_proto_rawDescOnce.Do(func() { - file_mycel_epochs_v1beta1_epoch_info_proto_rawDescData = protoimpl.X.CompressGZIP(file_mycel_epochs_v1beta1_epoch_info_proto_rawDescData) +func file_mycel_epochs_v1_epoch_info_proto_rawDescGZIP() []byte { + file_mycel_epochs_v1_epoch_info_proto_rawDescOnce.Do(func() { + file_mycel_epochs_v1_epoch_info_proto_rawDescData = protoimpl.X.CompressGZIP(file_mycel_epochs_v1_epoch_info_proto_rawDescData) }) - return file_mycel_epochs_v1beta1_epoch_info_proto_rawDescData + return file_mycel_epochs_v1_epoch_info_proto_rawDescData } -var file_mycel_epochs_v1beta1_epoch_info_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_mycel_epochs_v1beta1_epoch_info_proto_goTypes = []interface{}{ - (*EpochInfo)(nil), // 0: mycel.epochs.v1beta1.EpochInfo +var file_mycel_epochs_v1_epoch_info_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_mycel_epochs_v1_epoch_info_proto_goTypes = []interface{}{ + (*EpochInfo)(nil), // 0: mycel.epochs.v1.EpochInfo (*timestamppb.Timestamp)(nil), // 1: google.protobuf.Timestamp (*durationpb.Duration)(nil), // 2: google.protobuf.Duration } -var file_mycel_epochs_v1beta1_epoch_info_proto_depIdxs = []int32{ - 1, // 0: mycel.epochs.v1beta1.EpochInfo.start_time:type_name -> google.protobuf.Timestamp - 2, // 1: mycel.epochs.v1beta1.EpochInfo.duration:type_name -> google.protobuf.Duration - 1, // 2: mycel.epochs.v1beta1.EpochInfo.current_epoch_start_time:type_name -> google.protobuf.Timestamp +var file_mycel_epochs_v1_epoch_info_proto_depIdxs = []int32{ + 1, // 0: mycel.epochs.v1.EpochInfo.start_time:type_name -> google.protobuf.Timestamp + 2, // 1: mycel.epochs.v1.EpochInfo.duration:type_name -> google.protobuf.Duration + 1, // 2: mycel.epochs.v1.EpochInfo.current_epoch_start_time:type_name -> google.protobuf.Timestamp 3, // [3:3] is the sub-list for method output_type 3, // [3:3] is the sub-list for method input_type 3, // [3:3] is the sub-list for extension type_name @@ -1008,13 +1005,13 @@ var file_mycel_epochs_v1beta1_epoch_info_proto_depIdxs = []int32{ 0, // [0:3] is the sub-list for field type_name } -func init() { file_mycel_epochs_v1beta1_epoch_info_proto_init() } -func file_mycel_epochs_v1beta1_epoch_info_proto_init() { - if File_mycel_epochs_v1beta1_epoch_info_proto != nil { +func init() { file_mycel_epochs_v1_epoch_info_proto_init() } +func file_mycel_epochs_v1_epoch_info_proto_init() { + if File_mycel_epochs_v1_epoch_info_proto != nil { return } if !protoimpl.UnsafeEnabled { - file_mycel_epochs_v1beta1_epoch_info_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_mycel_epochs_v1_epoch_info_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*EpochInfo); i { case 0: return &v.state @@ -1031,18 +1028,18 @@ func file_mycel_epochs_v1beta1_epoch_info_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_mycel_epochs_v1beta1_epoch_info_proto_rawDesc, + RawDescriptor: file_mycel_epochs_v1_epoch_info_proto_rawDesc, NumEnums: 0, NumMessages: 1, NumExtensions: 0, NumServices: 0, }, - GoTypes: file_mycel_epochs_v1beta1_epoch_info_proto_goTypes, - DependencyIndexes: file_mycel_epochs_v1beta1_epoch_info_proto_depIdxs, - MessageInfos: file_mycel_epochs_v1beta1_epoch_info_proto_msgTypes, + GoTypes: file_mycel_epochs_v1_epoch_info_proto_goTypes, + DependencyIndexes: file_mycel_epochs_v1_epoch_info_proto_depIdxs, + MessageInfos: file_mycel_epochs_v1_epoch_info_proto_msgTypes, }.Build() - File_mycel_epochs_v1beta1_epoch_info_proto = out.File - file_mycel_epochs_v1beta1_epoch_info_proto_rawDesc = nil - file_mycel_epochs_v1beta1_epoch_info_proto_goTypes = nil - file_mycel_epochs_v1beta1_epoch_info_proto_depIdxs = nil + File_mycel_epochs_v1_epoch_info_proto = out.File + file_mycel_epochs_v1_epoch_info_proto_rawDesc = nil + file_mycel_epochs_v1_epoch_info_proto_goTypes = nil + file_mycel_epochs_v1_epoch_info_proto_depIdxs = nil } diff --git a/api/mycel/epochs/v1beta1/genesis.pulsar.go b/api/mycel/epochs/v1/genesis.pulsar.go similarity index 75% rename from api/mycel/epochs/v1beta1/genesis.pulsar.go rename to api/mycel/epochs/v1/genesis.pulsar.go index 83dd4173..3be4e8ca 100644 --- a/api/mycel/epochs/v1beta1/genesis.pulsar.go +++ b/api/mycel/epochs/v1/genesis.pulsar.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-go-pulsar. DO NOT EDIT. -package types +package epochsv1 import ( fmt "fmt" @@ -70,8 +70,8 @@ var ( ) func init() { - file_mycel_epochs_v1beta1_genesis_proto_init() - md_GenesisState = File_mycel_epochs_v1beta1_genesis_proto.Messages().ByName("GenesisState") + file_mycel_epochs_v1_genesis_proto_init() + md_GenesisState = File_mycel_epochs_v1_genesis_proto.Messages().ByName("GenesisState") fd_GenesisState_epochs = md_GenesisState.Fields().ByName("epochs") } @@ -84,7 +84,7 @@ func (x *GenesisState) ProtoReflect() protoreflect.Message { } func (x *GenesisState) slowProtoReflect() protoreflect.Message { - mi := &file_mycel_epochs_v1beta1_genesis_proto_msgTypes[0] + mi := &file_mycel_epochs_v1_genesis_proto_msgTypes[0] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -161,13 +161,13 @@ func (x *fastReflection_GenesisState) Range(f func(protoreflect.FieldDescriptor, // a repeated field is populated if it is non-empty. func (x *fastReflection_GenesisState) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "mycel.epochs.v1beta1.GenesisState.epochs": + case "mycel.epochs.v1.GenesisState.epochs": return len(x.Epochs) != 0 default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.epochs.v1beta1.GenesisState")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.epochs.v1.GenesisState")) } - panic(fmt.Errorf("message mycel.epochs.v1beta1.GenesisState does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.epochs.v1.GenesisState does not contain field %s", fd.FullName())) } } @@ -179,13 +179,13 @@ func (x *fastReflection_GenesisState) Has(fd protoreflect.FieldDescriptor) bool // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_GenesisState) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "mycel.epochs.v1beta1.GenesisState.epochs": + case "mycel.epochs.v1.GenesisState.epochs": x.Epochs = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.epochs.v1beta1.GenesisState")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.epochs.v1.GenesisState")) } - panic(fmt.Errorf("message mycel.epochs.v1beta1.GenesisState does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.epochs.v1.GenesisState does not contain field %s", fd.FullName())) } } @@ -197,7 +197,7 @@ func (x *fastReflection_GenesisState) Clear(fd protoreflect.FieldDescriptor) { // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_GenesisState) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "mycel.epochs.v1beta1.GenesisState.epochs": + case "mycel.epochs.v1.GenesisState.epochs": if len(x.Epochs) == 0 { return protoreflect.ValueOfList(&_GenesisState_1_list{}) } @@ -205,9 +205,9 @@ func (x *fastReflection_GenesisState) Get(descriptor protoreflect.FieldDescripto return protoreflect.ValueOfList(listValue) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.epochs.v1beta1.GenesisState")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.epochs.v1.GenesisState")) } - panic(fmt.Errorf("message mycel.epochs.v1beta1.GenesisState does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message mycel.epochs.v1.GenesisState does not contain field %s", descriptor.FullName())) } } @@ -223,15 +223,15 @@ func (x *fastReflection_GenesisState) Get(descriptor protoreflect.FieldDescripto // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_GenesisState) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "mycel.epochs.v1beta1.GenesisState.epochs": + case "mycel.epochs.v1.GenesisState.epochs": lv := value.List() clv := lv.(*_GenesisState_1_list) x.Epochs = *clv.list default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.epochs.v1beta1.GenesisState")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.epochs.v1.GenesisState")) } - panic(fmt.Errorf("message mycel.epochs.v1beta1.GenesisState does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.epochs.v1.GenesisState does not contain field %s", fd.FullName())) } } @@ -247,7 +247,7 @@ func (x *fastReflection_GenesisState) Set(fd protoreflect.FieldDescriptor, value // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_GenesisState) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "mycel.epochs.v1beta1.GenesisState.epochs": + case "mycel.epochs.v1.GenesisState.epochs": if x.Epochs == nil { x.Epochs = []*EpochInfo{} } @@ -255,9 +255,9 @@ func (x *fastReflection_GenesisState) Mutable(fd protoreflect.FieldDescriptor) p return protoreflect.ValueOfList(value) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.epochs.v1beta1.GenesisState")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.epochs.v1.GenesisState")) } - panic(fmt.Errorf("message mycel.epochs.v1beta1.GenesisState does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.epochs.v1.GenesisState does not contain field %s", fd.FullName())) } } @@ -266,14 +266,14 @@ func (x *fastReflection_GenesisState) Mutable(fd protoreflect.FieldDescriptor) p // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_GenesisState) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "mycel.epochs.v1beta1.GenesisState.epochs": + case "mycel.epochs.v1.GenesisState.epochs": list := []*EpochInfo{} return protoreflect.ValueOfList(&_GenesisState_1_list{list: &list}) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.epochs.v1beta1.GenesisState")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.epochs.v1.GenesisState")) } - panic(fmt.Errorf("message mycel.epochs.v1beta1.GenesisState does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.epochs.v1.GenesisState does not contain field %s", fd.FullName())) } } @@ -283,7 +283,7 @@ func (x *fastReflection_GenesisState) NewField(fd protoreflect.FieldDescriptor) func (x *fastReflection_GenesisState) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in mycel.epochs.v1beta1.GenesisState", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in mycel.epochs.v1.GenesisState", d.FullName())) } panic("unreachable") } @@ -511,7 +511,7 @@ func (x *fastReflection_GenesisState) ProtoMethods() *protoiface.Methods { // versions: // protoc-gen-go v1.27.0 // protoc (unknown) -// source: mycel/epochs/v1beta1/genesis.proto +// source: mycel/epochs/v1/genesis.proto const ( // Verify that this generated code is sufficiently up-to-date. @@ -532,7 +532,7 @@ type GenesisState struct { func (x *GenesisState) Reset() { *x = GenesisState{} if protoimpl.UnsafeEnabled { - mi := &file_mycel_epochs_v1beta1_genesis_proto_msgTypes[0] + mi := &file_mycel_epochs_v1_genesis_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -546,7 +546,7 @@ func (*GenesisState) ProtoMessage() {} // Deprecated: Use GenesisState.ProtoReflect.Descriptor instead. func (*GenesisState) Descriptor() ([]byte, []int) { - return file_mycel_epochs_v1beta1_genesis_proto_rawDescGZIP(), []int{0} + return file_mycel_epochs_v1_genesis_proto_rawDescGZIP(), []int{0} } func (x *GenesisState) GetEpochs() []*EpochInfo { @@ -556,56 +556,53 @@ func (x *GenesisState) GetEpochs() []*EpochInfo { return nil } -var File_mycel_epochs_v1beta1_genesis_proto protoreflect.FileDescriptor - -var file_mycel_epochs_v1beta1_genesis_proto_rawDesc = []byte{ - 0x0a, 0x22, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2f, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x73, 0x2f, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x67, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 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, 0x14, 0x67, 0x6f, 0x67, 0x6f, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 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, 0x4d, 0x0a, 0x0c, 0x47, 0x65, 0x6e, 0x65, 0x73, - 0x69, 0x73, 0x53, 0x74, 0x61, 0x74, 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, 0x06, - 0x65, 0x70, 0x6f, 0x63, 0x68, 0x73, 0x42, 0xc8, 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, 0x0c, 0x47, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 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, +var File_mycel_epochs_v1_genesis_proto protoreflect.FileDescriptor + +var file_mycel_epochs_v1_genesis_proto_rawDesc = []byte{ + 0x0a, 0x1d, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2f, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x73, 0x2f, 0x76, + 0x31, 0x2f, 0x67, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, + 0x0f, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x73, 0x2e, 0x76, 0x31, + 0x1a, 0x14, 0x67, 0x6f, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x20, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2f, 0x65, 0x70, + 0x6f, 0x63, 0x68, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x5f, 0x69, 0x6e, + 0x66, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x48, 0x0a, 0x0c, 0x47, 0x65, 0x6e, 0x65, + 0x73, 0x69, 0x73, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x38, 0x0a, 0x06, 0x65, 0x70, 0x6f, 0x63, + 0x68, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, + 0x2e, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x70, 0x6f, 0x63, 0x68, + 0x49, 0x6e, 0x66, 0x6f, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x06, 0x65, 0x70, 0x6f, 0x63, + 0x68, 0x73, 0x42, 0xac, 0x01, 0x0a, 0x13, 0x63, 0x6f, 0x6d, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, + 0x2e, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x73, 0x2e, 0x76, 0x31, 0x42, 0x0c, 0x47, 0x65, 0x6e, 0x65, + 0x73, 0x69, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x29, 0x63, 0x6f, 0x73, 0x6d, + 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x6d, 0x79, 0x63, + 0x65, 0x6c, 0x2f, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x73, 0x2f, 0x76, 0x31, 0x3b, 0x65, 0x70, 0x6f, + 0x63, 0x68, 0x73, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x4d, 0x45, 0x58, 0xaa, 0x02, 0x0f, 0x4d, 0x79, + 0x63, 0x65, 0x6c, 0x2e, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x73, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x0f, + 0x4d, 0x79, 0x63, 0x65, 0x6c, 0x5c, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x73, 0x5c, 0x56, 0x31, 0xe2, + 0x02, 0x1b, 0x4d, 0x79, 0x63, 0x65, 0x6c, 0x5c, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x73, 0x5c, 0x56, + 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x11, + 0x4d, 0x79, 0x63, 0x65, 0x6c, 0x3a, 0x3a, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x73, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( - file_mycel_epochs_v1beta1_genesis_proto_rawDescOnce sync.Once - file_mycel_epochs_v1beta1_genesis_proto_rawDescData = file_mycel_epochs_v1beta1_genesis_proto_rawDesc + file_mycel_epochs_v1_genesis_proto_rawDescOnce sync.Once + file_mycel_epochs_v1_genesis_proto_rawDescData = file_mycel_epochs_v1_genesis_proto_rawDesc ) -func file_mycel_epochs_v1beta1_genesis_proto_rawDescGZIP() []byte { - file_mycel_epochs_v1beta1_genesis_proto_rawDescOnce.Do(func() { - file_mycel_epochs_v1beta1_genesis_proto_rawDescData = protoimpl.X.CompressGZIP(file_mycel_epochs_v1beta1_genesis_proto_rawDescData) +func file_mycel_epochs_v1_genesis_proto_rawDescGZIP() []byte { + file_mycel_epochs_v1_genesis_proto_rawDescOnce.Do(func() { + file_mycel_epochs_v1_genesis_proto_rawDescData = protoimpl.X.CompressGZIP(file_mycel_epochs_v1_genesis_proto_rawDescData) }) - return file_mycel_epochs_v1beta1_genesis_proto_rawDescData + return file_mycel_epochs_v1_genesis_proto_rawDescData } -var file_mycel_epochs_v1beta1_genesis_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_mycel_epochs_v1beta1_genesis_proto_goTypes = []interface{}{ - (*GenesisState)(nil), // 0: mycel.epochs.v1beta1.GenesisState - (*EpochInfo)(nil), // 1: mycel.epochs.v1beta1.EpochInfo +var file_mycel_epochs_v1_genesis_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_mycel_epochs_v1_genesis_proto_goTypes = []interface{}{ + (*GenesisState)(nil), // 0: mycel.epochs.v1.GenesisState + (*EpochInfo)(nil), // 1: mycel.epochs.v1.EpochInfo } -var file_mycel_epochs_v1beta1_genesis_proto_depIdxs = []int32{ - 1, // 0: mycel.epochs.v1beta1.GenesisState.epochs:type_name -> mycel.epochs.v1beta1.EpochInfo +var file_mycel_epochs_v1_genesis_proto_depIdxs = []int32{ + 1, // 0: mycel.epochs.v1.GenesisState.epochs:type_name -> mycel.epochs.v1.EpochInfo 1, // [1:1] is the sub-list for method output_type 1, // [1:1] is the sub-list for method input_type 1, // [1:1] is the sub-list for extension type_name @@ -613,14 +610,14 @@ var file_mycel_epochs_v1beta1_genesis_proto_depIdxs = []int32{ 0, // [0:1] is the sub-list for field type_name } -func init() { file_mycel_epochs_v1beta1_genesis_proto_init() } -func file_mycel_epochs_v1beta1_genesis_proto_init() { - if File_mycel_epochs_v1beta1_genesis_proto != nil { +func init() { file_mycel_epochs_v1_genesis_proto_init() } +func file_mycel_epochs_v1_genesis_proto_init() { + if File_mycel_epochs_v1_genesis_proto != nil { return } - file_mycel_epochs_v1beta1_epoch_info_proto_init() + file_mycel_epochs_v1_epoch_info_proto_init() if !protoimpl.UnsafeEnabled { - file_mycel_epochs_v1beta1_genesis_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_mycel_epochs_v1_genesis_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*GenesisState); i { case 0: return &v.state @@ -637,18 +634,18 @@ func file_mycel_epochs_v1beta1_genesis_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_mycel_epochs_v1beta1_genesis_proto_rawDesc, + RawDescriptor: file_mycel_epochs_v1_genesis_proto_rawDesc, NumEnums: 0, NumMessages: 1, NumExtensions: 0, NumServices: 0, }, - GoTypes: file_mycel_epochs_v1beta1_genesis_proto_goTypes, - DependencyIndexes: file_mycel_epochs_v1beta1_genesis_proto_depIdxs, - MessageInfos: file_mycel_epochs_v1beta1_genesis_proto_msgTypes, + GoTypes: file_mycel_epochs_v1_genesis_proto_goTypes, + DependencyIndexes: file_mycel_epochs_v1_genesis_proto_depIdxs, + MessageInfos: file_mycel_epochs_v1_genesis_proto_msgTypes, }.Build() - File_mycel_epochs_v1beta1_genesis_proto = out.File - file_mycel_epochs_v1beta1_genesis_proto_rawDesc = nil - file_mycel_epochs_v1beta1_genesis_proto_goTypes = nil - file_mycel_epochs_v1beta1_genesis_proto_depIdxs = nil + File_mycel_epochs_v1_genesis_proto = out.File + file_mycel_epochs_v1_genesis_proto_rawDesc = nil + file_mycel_epochs_v1_genesis_proto_goTypes = nil + file_mycel_epochs_v1_genesis_proto_depIdxs = nil } diff --git a/api/mycel/epochs/v1/query.pulsar.go b/api/mycel/epochs/v1/query.pulsar.go new file mode 100644 index 00000000..b7047fa6 --- /dev/null +++ b/api/mycel/epochs/v1/query.pulsar.go @@ -0,0 +1,2033 @@ +// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. +package epochsv1 + +import ( + fmt "fmt" + runtime "github.com/cosmos/cosmos-proto/runtime" + _ "github.com/cosmos/gogoproto/gogoproto" + _ "google.golang.org/genproto/googleapis/api/annotations" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoiface "google.golang.org/protobuf/runtime/protoiface" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + io "io" + reflect "reflect" + sync "sync" +) + +var ( + md_QueryEpochsInfoRequest protoreflect.MessageDescriptor +) + +func init() { + file_mycel_epochs_v1_query_proto_init() + md_QueryEpochsInfoRequest = File_mycel_epochs_v1_query_proto.Messages().ByName("QueryEpochsInfoRequest") +} + +var _ protoreflect.Message = (*fastReflection_QueryEpochsInfoRequest)(nil) + +type fastReflection_QueryEpochsInfoRequest QueryEpochsInfoRequest + +func (x *QueryEpochsInfoRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryEpochsInfoRequest)(x) +} + +func (x *QueryEpochsInfoRequest) slowProtoReflect() protoreflect.Message { + mi := &file_mycel_epochs_v1_query_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_QueryEpochsInfoRequest_messageType fastReflection_QueryEpochsInfoRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryEpochsInfoRequest_messageType{} + +type fastReflection_QueryEpochsInfoRequest_messageType struct{} + +func (x fastReflection_QueryEpochsInfoRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryEpochsInfoRequest)(nil) +} +func (x fastReflection_QueryEpochsInfoRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryEpochsInfoRequest) +} +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_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_QueryEpochsInfoRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryEpochsInfoRequest_messageType +} + +// New returns a newly allocated and mutable empty message. +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_QueryEpochsInfoRequest) Interface() protoreflect.ProtoMessage { + return (*QueryEpochsInfoRequest)(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_QueryEpochsInfoRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_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.v1.QueryEpochsInfoRequest")) + } + panic(fmt.Errorf("message mycel.epochs.v1.QueryEpochsInfoRequest 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_QueryEpochsInfoRequest) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.epochs.v1.QueryEpochsInfoRequest")) + } + panic(fmt.Errorf("message mycel.epochs.v1.QueryEpochsInfoRequest 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_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.v1.QueryEpochsInfoRequest")) + } + panic(fmt.Errorf("message mycel.epochs.v1.QueryEpochsInfoRequest 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_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.v1.QueryEpochsInfoRequest")) + } + panic(fmt.Errorf("message mycel.epochs.v1.QueryEpochsInfoRequest 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_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.v1.QueryEpochsInfoRequest")) + } + panic(fmt.Errorf("message mycel.epochs.v1.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_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.v1.QueryEpochsInfoRequest")) + } + panic(fmt.Errorf("message mycel.epochs.v1.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_QueryEpochsInfoRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in mycel.epochs.v1.QueryEpochsInfoRequest", 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_QueryEpochsInfoRequest) 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_QueryEpochsInfoRequest) 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_QueryEpochsInfoRequest) 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_QueryEpochsInfoRequest) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryEpochsInfoRequest) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*QueryEpochsInfoRequest) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*QueryEpochsInfoRequest) + 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: QueryEpochsInfoRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryEpochsInfoRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var _ protoreflect.List = (*_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_QueryEpochsInfoResponse protoreflect.MessageDescriptor + fd_QueryEpochsInfoResponse_epochs protoreflect.FieldDescriptor +) + +func init() { + file_mycel_epochs_v1_query_proto_init() + md_QueryEpochsInfoResponse = File_mycel_epochs_v1_query_proto.Messages().ByName("QueryEpochsInfoResponse") + fd_QueryEpochsInfoResponse_epochs = md_QueryEpochsInfoResponse.Fields().ByName("epochs") +} + +var _ protoreflect.Message = (*fastReflection_QueryEpochsInfoResponse)(nil) + +type fastReflection_QueryEpochsInfoResponse QueryEpochsInfoResponse + +func (x *QueryEpochsInfoResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryEpochsInfoResponse)(x) +} + +func (x *QueryEpochsInfoResponse) slowProtoReflect() protoreflect.Message { + mi := &file_mycel_epochs_v1_query_proto_msgTypes[1] + 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_QueryEpochsInfoResponse_messageType fastReflection_QueryEpochsInfoResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryEpochsInfoResponse_messageType{} + +type fastReflection_QueryEpochsInfoResponse_messageType struct{} + +func (x fastReflection_QueryEpochsInfoResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryEpochsInfoResponse)(nil) +} +func (x fastReflection_QueryEpochsInfoResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryEpochsInfoResponse) +} +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_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_QueryEpochsInfoResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryEpochsInfoResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +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_QueryEpochsInfoResponse) Interface() protoreflect.ProtoMessage { + return (*QueryEpochsInfoResponse)(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_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 + } + } +} + +// 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_QueryEpochsInfoResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "mycel.epochs.v1.QueryEpochsInfoResponse.epochs": + return len(x.Epochs) != 0 + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.epochs.v1.QueryEpochsInfoResponse")) + } + panic(fmt.Errorf("message mycel.epochs.v1.QueryEpochsInfoResponse 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_QueryEpochsInfoResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "mycel.epochs.v1.QueryEpochsInfoResponse.epochs": + x.Epochs = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.epochs.v1.QueryEpochsInfoResponse")) + } + panic(fmt.Errorf("message mycel.epochs.v1.QueryEpochsInfoResponse 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_QueryEpochsInfoResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "mycel.epochs.v1.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.v1.QueryEpochsInfoResponse")) + } + panic(fmt.Errorf("message mycel.epochs.v1.QueryEpochsInfoResponse 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_QueryEpochsInfoResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "mycel.epochs.v1.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.v1.QueryEpochsInfoResponse")) + } + panic(fmt.Errorf("message mycel.epochs.v1.QueryEpochsInfoResponse 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_QueryEpochsInfoResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "mycel.epochs.v1.QueryEpochsInfoResponse.epochs": + if x.Epochs == nil { + x.Epochs = []*EpochInfo{} + } + 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.v1.QueryEpochsInfoResponse")) + } + panic(fmt.Errorf("message mycel.epochs.v1.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_QueryEpochsInfoResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "mycel.epochs.v1.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.v1.QueryEpochsInfoResponse")) + } + panic(fmt.Errorf("message mycel.epochs.v1.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_QueryEpochsInfoResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in mycel.epochs.v1.QueryEpochsInfoResponse", 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_QueryEpochsInfoResponse) 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_QueryEpochsInfoResponse) 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_QueryEpochsInfoResponse) 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_QueryEpochsInfoResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryEpochsInfoResponse) + 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.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) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*QueryEpochsInfoResponse) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if len(x.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 + } + } + 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().(*QueryEpochsInfoResponse) + 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: QueryEpochsInfoResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + 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 Epochs", 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.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 + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var ( + md_QueryCurrentEpochRequest protoreflect.MessageDescriptor + fd_QueryCurrentEpochRequest_identifier protoreflect.FieldDescriptor +) + +func init() { + file_mycel_epochs_v1_query_proto_init() + md_QueryCurrentEpochRequest = File_mycel_epochs_v1_query_proto.Messages().ByName("QueryCurrentEpochRequest") + fd_QueryCurrentEpochRequest_identifier = md_QueryCurrentEpochRequest.Fields().ByName("identifier") +} + +var _ protoreflect.Message = (*fastReflection_QueryCurrentEpochRequest)(nil) + +type fastReflection_QueryCurrentEpochRequest QueryCurrentEpochRequest + +func (x *QueryCurrentEpochRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryCurrentEpochRequest)(x) +} + +func (x *QueryCurrentEpochRequest) slowProtoReflect() protoreflect.Message { + mi := &file_mycel_epochs_v1_query_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_QueryCurrentEpochRequest_messageType fastReflection_QueryCurrentEpochRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryCurrentEpochRequest_messageType{} + +type fastReflection_QueryCurrentEpochRequest_messageType struct{} + +func (x fastReflection_QueryCurrentEpochRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryCurrentEpochRequest)(nil) +} +func (x fastReflection_QueryCurrentEpochRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryCurrentEpochRequest) +} +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_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_QueryCurrentEpochRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryCurrentEpochRequest_messageType +} + +// New returns a newly allocated and mutable empty message. +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_QueryCurrentEpochRequest) Interface() protoreflect.ProtoMessage { + return (*QueryCurrentEpochRequest)(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_QueryCurrentEpochRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Identifier != "" { + value := protoreflect.ValueOfString(x.Identifier) + if !f(fd_QueryCurrentEpochRequest_identifier, 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_QueryCurrentEpochRequest) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "mycel.epochs.v1.QueryCurrentEpochRequest.identifier": + return x.Identifier != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.epochs.v1.QueryCurrentEpochRequest")) + } + panic(fmt.Errorf("message mycel.epochs.v1.QueryCurrentEpochRequest 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_QueryCurrentEpochRequest) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "mycel.epochs.v1.QueryCurrentEpochRequest.identifier": + x.Identifier = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.epochs.v1.QueryCurrentEpochRequest")) + } + panic(fmt.Errorf("message mycel.epochs.v1.QueryCurrentEpochRequest 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_QueryCurrentEpochRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "mycel.epochs.v1.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.v1.QueryCurrentEpochRequest")) + } + panic(fmt.Errorf("message mycel.epochs.v1.QueryCurrentEpochRequest 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_QueryCurrentEpochRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "mycel.epochs.v1.QueryCurrentEpochRequest.identifier": + x.Identifier = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.epochs.v1.QueryCurrentEpochRequest")) + } + panic(fmt.Errorf("message mycel.epochs.v1.QueryCurrentEpochRequest 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_QueryCurrentEpochRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "mycel.epochs.v1.QueryCurrentEpochRequest.identifier": + panic(fmt.Errorf("field identifier of message mycel.epochs.v1.QueryCurrentEpochRequest is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.epochs.v1.QueryCurrentEpochRequest")) + } + panic(fmt.Errorf("message mycel.epochs.v1.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_QueryCurrentEpochRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "mycel.epochs.v1.QueryCurrentEpochRequest.identifier": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.epochs.v1.QueryCurrentEpochRequest")) + } + panic(fmt.Errorf("message mycel.epochs.v1.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_QueryCurrentEpochRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in mycel.epochs.v1.QueryCurrentEpochRequest", 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_QueryCurrentEpochRequest) 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_QueryCurrentEpochRequest) 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_QueryCurrentEpochRequest) 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_QueryCurrentEpochRequest) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryCurrentEpochRequest) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + l = len(x.Identifier) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*QueryCurrentEpochRequest) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if len(x.Identifier) > 0 { + i -= len(x.Identifier) + copy(dAtA[i:], x.Identifier) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Identifier))) + 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().(*QueryCurrentEpochRequest) + 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: QueryCurrentEpochRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + 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: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Identifier", 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.Identifier = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var ( + md_QueryCurrentEpochResponse protoreflect.MessageDescriptor + fd_QueryCurrentEpochResponse_epoch_info protoreflect.FieldDescriptor +) + +func init() { + file_mycel_epochs_v1_query_proto_init() + md_QueryCurrentEpochResponse = File_mycel_epochs_v1_query_proto.Messages().ByName("QueryCurrentEpochResponse") + fd_QueryCurrentEpochResponse_epoch_info = md_QueryCurrentEpochResponse.Fields().ByName("epoch_info") +} + +var _ protoreflect.Message = (*fastReflection_QueryCurrentEpochResponse)(nil) + +type fastReflection_QueryCurrentEpochResponse QueryCurrentEpochResponse + +func (x *QueryCurrentEpochResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryCurrentEpochResponse)(x) +} + +func (x *QueryCurrentEpochResponse) slowProtoReflect() protoreflect.Message { + mi := &file_mycel_epochs_v1_query_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_QueryCurrentEpochResponse_messageType fastReflection_QueryCurrentEpochResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryCurrentEpochResponse_messageType{} + +type fastReflection_QueryCurrentEpochResponse_messageType struct{} + +func (x fastReflection_QueryCurrentEpochResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryCurrentEpochResponse)(nil) +} +func (x fastReflection_QueryCurrentEpochResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryCurrentEpochResponse) +} +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_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_QueryCurrentEpochResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryCurrentEpochResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +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_QueryCurrentEpochResponse) Interface() protoreflect.ProtoMessage { + return (*QueryCurrentEpochResponse)(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_QueryCurrentEpochResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.EpochInfo != nil { + value := protoreflect.ValueOfMessage(x.EpochInfo.ProtoReflect()) + if !f(fd_QueryCurrentEpochResponse_epoch_info, 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_QueryCurrentEpochResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "mycel.epochs.v1.QueryCurrentEpochResponse.epoch_info": + return x.EpochInfo != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.epochs.v1.QueryCurrentEpochResponse")) + } + panic(fmt.Errorf("message mycel.epochs.v1.QueryCurrentEpochResponse 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_QueryCurrentEpochResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "mycel.epochs.v1.QueryCurrentEpochResponse.epoch_info": + x.EpochInfo = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.epochs.v1.QueryCurrentEpochResponse")) + } + panic(fmt.Errorf("message mycel.epochs.v1.QueryCurrentEpochResponse 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_QueryCurrentEpochResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "mycel.epochs.v1.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.v1.QueryCurrentEpochResponse")) + } + panic(fmt.Errorf("message mycel.epochs.v1.QueryCurrentEpochResponse 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_QueryCurrentEpochResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "mycel.epochs.v1.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.v1.QueryCurrentEpochResponse")) + } + panic(fmt.Errorf("message mycel.epochs.v1.QueryCurrentEpochResponse 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_QueryCurrentEpochResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "mycel.epochs.v1.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.v1.QueryCurrentEpochResponse")) + } + panic(fmt.Errorf("message mycel.epochs.v1.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_QueryCurrentEpochResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "mycel.epochs.v1.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.v1.QueryCurrentEpochResponse")) + } + panic(fmt.Errorf("message mycel.epochs.v1.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_QueryCurrentEpochResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in mycel.epochs.v1.QueryCurrentEpochResponse", 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_QueryCurrentEpochResponse) 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_QueryCurrentEpochResponse) 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_QueryCurrentEpochResponse) 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_QueryCurrentEpochResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryCurrentEpochResponse) + 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.EpochInfo != nil { + l = options.Size(x.EpochInfo) + 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().(*QueryCurrentEpochResponse) + 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.EpochInfo != nil { + encoded, err := options.Marshal(x.EpochInfo) + 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().(*QueryCurrentEpochResponse) + 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: QueryCurrentEpochResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + 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: + 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 + } + if x.EpochInfo == nil { + x.EpochInfo = &EpochInfo{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.EpochInfo); 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/v1/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) +) + +type QueryEpochsInfoRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *QueryEpochsInfoRequest) Reset() { + *x = QueryEpochsInfoRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_mycel_epochs_v1_query_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryEpochsInfoRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryEpochsInfoRequest) ProtoMessage() {} + +// Deprecated: Use QueryEpochsInfoRequest.ProtoReflect.Descriptor instead. +func (*QueryEpochsInfoRequest) Descriptor() ([]byte, []int) { + return file_mycel_epochs_v1_query_proto_rawDescGZIP(), []int{0} +} + +type QueryEpochsInfoResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Epochs []*EpochInfo `protobuf:"bytes,1,rep,name=epochs,proto3" json:"epochs,omitempty"` +} + +func (x *QueryEpochsInfoResponse) Reset() { + *x = QueryEpochsInfoResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_mycel_epochs_v1_query_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryEpochsInfoResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryEpochsInfoResponse) ProtoMessage() {} + +// Deprecated: Use QueryEpochsInfoResponse.ProtoReflect.Descriptor instead. +func (*QueryEpochsInfoResponse) Descriptor() ([]byte, []int) { + return file_mycel_epochs_v1_query_proto_rawDescGZIP(), []int{1} +} + +func (x *QueryEpochsInfoResponse) GetEpochs() []*EpochInfo { + if x != nil { + return x.Epochs + } + return nil +} + +type QueryCurrentEpochRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Identifier string `protobuf:"bytes,1,opt,name=identifier,proto3" json:"identifier,omitempty"` +} + +func (x *QueryCurrentEpochRequest) Reset() { + *x = QueryCurrentEpochRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_mycel_epochs_v1_query_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryCurrentEpochRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryCurrentEpochRequest) ProtoMessage() {} + +// Deprecated: Use QueryCurrentEpochRequest.ProtoReflect.Descriptor instead. +func (*QueryCurrentEpochRequest) Descriptor() ([]byte, []int) { + return file_mycel_epochs_v1_query_proto_rawDescGZIP(), []int{2} +} + +func (x *QueryCurrentEpochRequest) GetIdentifier() string { + if x != nil { + return x.Identifier + } + return "" +} + +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"` +} + +func (x *QueryCurrentEpochResponse) Reset() { + *x = QueryCurrentEpochResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_mycel_epochs_v1_query_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryCurrentEpochResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryCurrentEpochResponse) ProtoMessage() {} + +// Deprecated: Use QueryCurrentEpochResponse.ProtoReflect.Descriptor instead. +func (*QueryCurrentEpochResponse) Descriptor() ([]byte, []int) { + return file_mycel_epochs_v1_query_proto_rawDescGZIP(), []int{3} +} + +func (x *QueryCurrentEpochResponse) GetEpochInfo() *EpochInfo { + if x != nil { + return x.EpochInfo + } + return nil +} + +var File_mycel_epochs_v1_query_proto protoreflect.FileDescriptor + +var file_mycel_epochs_v1_query_proto_rawDesc = []byte{ + 0x0a, 0x1b, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2f, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x73, 0x2f, 0x76, + 0x31, 0x2f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0f, 0x6d, + 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x73, 0x2e, 0x76, 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, 0x20, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2f, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x73, + 0x2f, 0x76, 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, 0x53, + 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, 0x38, 0x0a, 0x06, 0x65, 0x70, 0x6f, + 0x63, 0x68, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x6d, 0x79, 0x63, 0x65, + 0x6c, 0x2e, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x70, 0x6f, 0x63, + 0x68, 0x49, 0x6e, 0x66, 0x6f, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 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, + 0x5c, 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, 0x3f, 0x0a, 0x0a, + 0x65, 0x70, 0x6f, 0x63, 0x68, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x1a, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x73, 0x2e, + 0x76, 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, 0x9a, 0x02, + 0x0a, 0x05, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x80, 0x01, 0x0a, 0x0a, 0x45, 0x70, 0x6f, 0x63, + 0x68, 0x49, 0x6e, 0x66, 0x6f, 0x73, 0x12, 0x27, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x65, + 0x70, 0x6f, 0x63, 0x68, 0x73, 0x2e, 0x76, 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, + 0x28, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x73, 0x2e, 0x76, + 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, 0x1f, 0x82, 0xd3, 0xe4, 0x93, 0x02, + 0x19, 0x12, 0x17, 0x2f, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2f, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x73, + 0x2f, 0x76, 0x31, 0x2f, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x73, 0x12, 0x8d, 0x01, 0x0a, 0x0c, 0x43, + 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x12, 0x29, 0x2e, 0x6d, 0x79, + 0x63, 0x65, 0x6c, 0x2e, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x73, 0x2e, 0x76, 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, 0x2a, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x65, + 0x70, 0x6f, 0x63, 0x68, 0x73, 0x2e, 0x76, 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, 0x26, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x20, 0x12, 0x1e, 0x2f, 0x6d, 0x79, 0x63, + 0x65, 0x6c, 0x2f, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x75, 0x72, + 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x42, 0xaa, 0x01, 0x0a, 0x13, 0x63, + 0x6f, 0x6d, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x73, 0x2e, + 0x76, 0x31, 0x42, 0x0a, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, + 0x5a, 0x29, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, + 0x70, 0x69, 0x2f, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2f, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x73, 0x2f, + 0x76, 0x31, 0x3b, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x73, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x4d, 0x45, + 0x58, 0xaa, 0x02, 0x0f, 0x4d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x73, + 0x2e, 0x56, 0x31, 0xca, 0x02, 0x0f, 0x4d, 0x79, 0x63, 0x65, 0x6c, 0x5c, 0x45, 0x70, 0x6f, 0x63, + 0x68, 0x73, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x1b, 0x4d, 0x79, 0x63, 0x65, 0x6c, 0x5c, 0x45, 0x70, + 0x6f, 0x63, 0x68, 0x73, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, + 0x61, 0x74, 0x61, 0xea, 0x02, 0x11, 0x4d, 0x79, 0x63, 0x65, 0x6c, 0x3a, 0x3a, 0x45, 0x70, 0x6f, + 0x63, 0x68, 0x73, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_mycel_epochs_v1_query_proto_rawDescOnce sync.Once + file_mycel_epochs_v1_query_proto_rawDescData = file_mycel_epochs_v1_query_proto_rawDesc +) + +func file_mycel_epochs_v1_query_proto_rawDescGZIP() []byte { + file_mycel_epochs_v1_query_proto_rawDescOnce.Do(func() { + file_mycel_epochs_v1_query_proto_rawDescData = protoimpl.X.CompressGZIP(file_mycel_epochs_v1_query_proto_rawDescData) + }) + return file_mycel_epochs_v1_query_proto_rawDescData +} + +var file_mycel_epochs_v1_query_proto_msgTypes = make([]protoimpl.MessageInfo, 4) +var file_mycel_epochs_v1_query_proto_goTypes = []interface{}{ + (*QueryEpochsInfoRequest)(nil), // 0: mycel.epochs.v1.QueryEpochsInfoRequest + (*QueryEpochsInfoResponse)(nil), // 1: mycel.epochs.v1.QueryEpochsInfoResponse + (*QueryCurrentEpochRequest)(nil), // 2: mycel.epochs.v1.QueryCurrentEpochRequest + (*QueryCurrentEpochResponse)(nil), // 3: mycel.epochs.v1.QueryCurrentEpochResponse + (*EpochInfo)(nil), // 4: mycel.epochs.v1.EpochInfo +} +var file_mycel_epochs_v1_query_proto_depIdxs = []int32{ + 4, // 0: mycel.epochs.v1.QueryEpochsInfoResponse.epochs:type_name -> mycel.epochs.v1.EpochInfo + 4, // 1: mycel.epochs.v1.QueryCurrentEpochResponse.epoch_info:type_name -> mycel.epochs.v1.EpochInfo + 0, // 2: mycel.epochs.v1.Query.EpochInfos:input_type -> mycel.epochs.v1.QueryEpochsInfoRequest + 2, // 3: mycel.epochs.v1.Query.CurrentEpoch:input_type -> mycel.epochs.v1.QueryCurrentEpochRequest + 1, // 4: mycel.epochs.v1.Query.EpochInfos:output_type -> mycel.epochs.v1.QueryEpochsInfoResponse + 3, // 5: mycel.epochs.v1.Query.CurrentEpoch:output_type -> mycel.epochs.v1.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_v1_query_proto_init() } +func file_mycel_epochs_v1_query_proto_init() { + if File_mycel_epochs_v1_query_proto != nil { + return + } + file_mycel_epochs_v1_epoch_info_proto_init() + if !protoimpl.UnsafeEnabled { + file_mycel_epochs_v1_query_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryEpochsInfoRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_mycel_epochs_v1_query_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryEpochsInfoResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_mycel_epochs_v1_query_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryCurrentEpochRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_mycel_epochs_v1_query_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryCurrentEpochResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_mycel_epochs_v1_query_proto_rawDesc, + NumEnums: 0, + NumMessages: 4, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_mycel_epochs_v1_query_proto_goTypes, + DependencyIndexes: file_mycel_epochs_v1_query_proto_depIdxs, + MessageInfos: file_mycel_epochs_v1_query_proto_msgTypes, + }.Build() + File_mycel_epochs_v1_query_proto = out.File + file_mycel_epochs_v1_query_proto_rawDesc = nil + file_mycel_epochs_v1_query_proto_goTypes = nil + file_mycel_epochs_v1_query_proto_depIdxs = nil +} diff --git a/api/mycel/epochs/v1/query_grpc.pb.go b/api/mycel/epochs/v1/query_grpc.pb.go new file mode 100644 index 00000000..205bd56d --- /dev/null +++ b/api/mycel/epochs/v1/query_grpc.pb.go @@ -0,0 +1,150 @@ +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. +// versions: +// - protoc-gen-go-grpc v1.3.0 +// - protoc (unknown) +// source: mycel/epochs/v1/query.proto + +package epochsv1 + +import ( + context "context" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" +) + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +// Requires gRPC-Go v1.32.0 or later. +const _ = grpc.SupportPackageIsVersion7 + +const ( + Query_EpochInfos_FullMethodName = "/mycel.epochs.v1.Query/EpochInfos" + Query_CurrentEpoch_FullMethodName = "/mycel.epochs.v1.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 { + // 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 { + cc grpc.ClientConnInterface +} + +func NewQueryClient(cc grpc.ClientConnInterface) QueryClient { + return &queryClient{cc} +} + +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) 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 + } + return out, nil +} + +// QueryServer is the server API for Query service. +// All implementations must embed UnimplementedQueryServer +// for forward compatibility +type QueryServer interface { + // EpochInfos provide running epochInfos + EpochInfos(context.Context, *QueryEpochsInfoRequest) (*QueryEpochsInfoResponse, error) + // CurrentEpoch provide current epoch of specified identifier + CurrentEpoch(context.Context, *QueryCurrentEpochRequest) (*QueryCurrentEpochResponse, error) + mustEmbedUnimplementedQueryServer() +} + +// UnimplementedQueryServer must be embedded to have forward compatible implementations. +type UnimplementedQueryServer struct { +} + +func (UnimplementedQueryServer) EpochInfos(context.Context, *QueryEpochsInfoRequest) (*QueryEpochsInfoResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method EpochInfos not implemented") +} +func (UnimplementedQueryServer) CurrentEpoch(context.Context, *QueryCurrentEpochRequest) (*QueryCurrentEpochResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CurrentEpoch not implemented") +} +func (UnimplementedQueryServer) mustEmbedUnimplementedQueryServer() {} + +// UnsafeQueryServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to QueryServer will +// result in compilation errors. +type UnsafeQueryServer interface { + mustEmbedUnimplementedQueryServer() +} + +func RegisterQueryServer(s grpc.ServiceRegistrar, srv QueryServer) { + s.RegisterService(&Query_ServiceDesc, srv) +} + +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).EpochInfos(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Query_EpochInfos_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).EpochInfos(ctx, req.(*QueryEpochsInfoRequest)) + } + return interceptor(ctx, in, info, handler) +} + +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).CurrentEpoch(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Query_CurrentEpoch_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).CurrentEpoch(ctx, req.(*QueryCurrentEpochRequest)) + } + return interceptor(ctx, in, info, handler) +} + +// Query_ServiceDesc is the grpc.ServiceDesc for Query service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var Query_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "mycel.epochs.v1.Query", + HandlerType: (*QueryServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "EpochInfos", + Handler: _Query_EpochInfos_Handler, + }, + { + MethodName: "CurrentEpoch", + Handler: _Query_CurrentEpoch_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "mycel/epochs/v1/query.proto", +} diff --git a/api/mycel/epochs/v1/tx.pulsar.go b/api/mycel/epochs/v1/tx.pulsar.go new file mode 100644 index 00000000..031bb8c0 --- /dev/null +++ b/api/mycel/epochs/v1/tx.pulsar.go @@ -0,0 +1,84 @@ +// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. +package epochsv1 + +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" +) + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.27.0 +// protoc (unknown) +// source: mycel/epochs/v1/tx.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) +) + +var File_mycel_epochs_v1_tx_proto protoreflect.FileDescriptor + +var file_mycel_epochs_v1_tx_proto_rawDesc = []byte{ + 0x0a, 0x18, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2f, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x73, 0x2f, 0x76, + 0x31, 0x2f, 0x74, 0x78, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0f, 0x6d, 0x79, 0x63, 0x65, + 0x6c, 0x2e, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x73, 0x2e, 0x76, 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, 0xa7, 0x01, 0x0a, 0x13, 0x63, 0x6f, 0x6d, 0x2e, 0x6d, + 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x73, 0x2e, 0x76, 0x31, 0x42, 0x07, + 0x54, 0x78, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x29, 0x63, 0x6f, 0x73, 0x6d, 0x6f, + 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x6d, 0x79, 0x63, 0x65, + 0x6c, 0x2f, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x73, 0x2f, 0x76, 0x31, 0x3b, 0x65, 0x70, 0x6f, 0x63, + 0x68, 0x73, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x4d, 0x45, 0x58, 0xaa, 0x02, 0x0f, 0x4d, 0x79, 0x63, + 0x65, 0x6c, 0x2e, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x73, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x0f, 0x4d, + 0x79, 0x63, 0x65, 0x6c, 0x5c, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x73, 0x5c, 0x56, 0x31, 0xe2, 0x02, + 0x1b, 0x4d, 0x79, 0x63, 0x65, 0x6c, 0x5c, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x73, 0x5c, 0x56, 0x31, + 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x11, 0x4d, + 0x79, 0x63, 0x65, 0x6c, 0x3a, 0x3a, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x73, 0x3a, 0x3a, 0x56, 0x31, + 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var file_mycel_epochs_v1_tx_proto_goTypes = []interface{}{} +var file_mycel_epochs_v1_tx_proto_depIdxs = []int32{ + 0, // [0:0] is the sub-list for method output_type + 0, // [0:0] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} + +func init() { file_mycel_epochs_v1_tx_proto_init() } +func file_mycel_epochs_v1_tx_proto_init() { + if File_mycel_epochs_v1_tx_proto != nil { + return + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_mycel_epochs_v1_tx_proto_rawDesc, + NumEnums: 0, + NumMessages: 0, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_mycel_epochs_v1_tx_proto_goTypes, + DependencyIndexes: file_mycel_epochs_v1_tx_proto_depIdxs, + }.Build() + File_mycel_epochs_v1_tx_proto = out.File + file_mycel_epochs_v1_tx_proto_rawDesc = nil + file_mycel_epochs_v1_tx_proto_goTypes = nil + file_mycel_epochs_v1_tx_proto_depIdxs = nil +} diff --git a/api/mycel/epochs/v1beta1/tx_grpc.pb.go b/api/mycel/epochs/v1/tx_grpc.pb.go similarity index 89% rename from api/mycel/epochs/v1beta1/tx_grpc.pb.go rename to api/mycel/epochs/v1/tx_grpc.pb.go index abdf3c03..5c10401b 100644 --- a/api/mycel/epochs/v1beta1/tx_grpc.pb.go +++ b/api/mycel/epochs/v1/tx_grpc.pb.go @@ -1,6 +1,10 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. +// versions: +// - protoc-gen-go-grpc v1.3.0 +// - protoc (unknown) +// source: mycel/epochs/v1/tx.proto -package types +package epochsv1 import ( grpc "google.golang.org/grpc" @@ -11,6 +15,8 @@ import ( // Requires gRPC-Go v1.32.0 or later. const _ = grpc.SupportPackageIsVersion7 +const () + // MsgClient is the client API for Msg 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. @@ -53,9 +59,9 @@ func RegisterMsgServer(s grpc.ServiceRegistrar, srv MsgServer) { // It's only intended for direct use with grpc.RegisterService, // and not to be introspected or modified (even as a copy) var Msg_ServiceDesc = grpc.ServiceDesc{ - ServiceName: "mycel.epochs.v1beta1.Msg", + ServiceName: "mycel.epochs.v1.Msg", HandlerType: (*MsgServer)(nil), Methods: []grpc.MethodDesc{}, Streams: []grpc.StreamDesc{}, - Metadata: "mycel/epochs/v1beta1/tx.proto", + Metadata: "mycel/epochs/v1/tx.proto", } diff --git a/api/mycel/epochs/v1beta1/params.pulsar.go b/api/mycel/epochs/v1beta1/params.pulsar.go deleted file mode 100644 index 81d063ea..00000000 --- a/api/mycel/epochs/v1beta1/params.pulsar.go +++ /dev/null @@ -1,498 +0,0 @@ -// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. -package types - -import ( - fmt "fmt" - runtime "github.com/cosmos/cosmos-proto/runtime" - _ "github.com/cosmos/gogoproto/gogoproto" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoiface "google.golang.org/protobuf/runtime/protoiface" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - io "io" - reflect "reflect" - sync "sync" -) - -var ( - md_Params protoreflect.MessageDescriptor -) - -func init() { - file_mycel_epochs_v1beta1_params_proto_init() - md_Params = File_mycel_epochs_v1beta1_params_proto.Messages().ByName("Params") -} - -var _ protoreflect.Message = (*fastReflection_Params)(nil) - -type fastReflection_Params Params - -func (x *Params) ProtoReflect() protoreflect.Message { - return (*fastReflection_Params)(x) -} - -func (x *Params) slowProtoReflect() protoreflect.Message { - mi := &file_mycel_epochs_v1beta1_params_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_Params_messageType fastReflection_Params_messageType -var _ protoreflect.MessageType = fastReflection_Params_messageType{} - -type fastReflection_Params_messageType struct{} - -func (x fastReflection_Params_messageType) Zero() protoreflect.Message { - return (*fastReflection_Params)(nil) -} -func (x fastReflection_Params_messageType) New() protoreflect.Message { - return new(fastReflection_Params) -} -func (x fastReflection_Params_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_Params -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_Params) Descriptor() protoreflect.MessageDescriptor { - return md_Params -} - -// 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_Params) Type() protoreflect.MessageType { - return _fastReflection_Params_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_Params) New() protoreflect.Message { - return new(fastReflection_Params) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_Params) Interface() protoreflect.ProtoMessage { - return (*Params)(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_Params) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_Params) 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.Params")) - } - panic(fmt.Errorf("message mycel.epochs.v1beta1.Params 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_Params) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.epochs.v1beta1.Params")) - } - panic(fmt.Errorf("message mycel.epochs.v1beta1.Params 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_Params) 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.Params")) - } - panic(fmt.Errorf("message mycel.epochs.v1beta1.Params 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_Params) 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.Params")) - } - panic(fmt.Errorf("message mycel.epochs.v1beta1.Params 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_Params) 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.Params")) - } - panic(fmt.Errorf("message mycel.epochs.v1beta1.Params 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_Params) 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.Params")) - } - panic(fmt.Errorf("message mycel.epochs.v1beta1.Params 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_Params) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in mycel.epochs.v1beta1.Params", 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_Params) 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_Params) 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_Params) 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_Params) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*Params) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*Params) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*Params) - 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: Params: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Params: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.27.0 -// protoc (unknown) -// source: mycel/epochs/v1beta1/params.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) -) - -// Params defines the parameters for the module. -type Params struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *Params) Reset() { - *x = Params{} - if protoimpl.UnsafeEnabled { - mi := &file_mycel_epochs_v1beta1_params_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Params) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Params) ProtoMessage() {} - -// Deprecated: Use Params.ProtoReflect.Descriptor instead. -func (*Params) Descriptor() ([]byte, []int) { - return file_mycel_epochs_v1beta1_params_proto_rawDescGZIP(), []int{0} -} - -var File_mycel_epochs_v1beta1_params_proto protoreflect.FileDescriptor - -var file_mycel_epochs_v1beta1_params_proto_rawDesc = []byte{ - 0x0a, 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, 0x12, 0x14, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x65, 0x70, 0x6f, 0x63, 0x68, - 0x73, 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, 0x22, - 0x0e, 0x0a, 0x06, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x3a, 0x04, 0x98, 0xa0, 0x1f, 0x00, 0x42, - 0xc7, 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, 0x0b, 0x50, 0x61, - 0x72, 0x61, 0x6d, 0x73, 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_params_proto_rawDescOnce sync.Once - file_mycel_epochs_v1beta1_params_proto_rawDescData = file_mycel_epochs_v1beta1_params_proto_rawDesc -) - -func file_mycel_epochs_v1beta1_params_proto_rawDescGZIP() []byte { - file_mycel_epochs_v1beta1_params_proto_rawDescOnce.Do(func() { - file_mycel_epochs_v1beta1_params_proto_rawDescData = protoimpl.X.CompressGZIP(file_mycel_epochs_v1beta1_params_proto_rawDescData) - }) - return file_mycel_epochs_v1beta1_params_proto_rawDescData -} - -var file_mycel_epochs_v1beta1_params_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_mycel_epochs_v1beta1_params_proto_goTypes = []interface{}{ - (*Params)(nil), // 0: mycel.epochs.v1beta1.Params -} -var file_mycel_epochs_v1beta1_params_proto_depIdxs = []int32{ - 0, // [0:0] is the sub-list for method output_type - 0, // [0:0] is the sub-list for method input_type - 0, // [0:0] is the sub-list for extension type_name - 0, // [0:0] is the sub-list for extension extendee - 0, // [0:0] is the sub-list for field type_name -} - -func init() { file_mycel_epochs_v1beta1_params_proto_init() } -func file_mycel_epochs_v1beta1_params_proto_init() { - if File_mycel_epochs_v1beta1_params_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_mycel_epochs_v1beta1_params_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Params); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_mycel_epochs_v1beta1_params_proto_rawDesc, - NumEnums: 0, - NumMessages: 1, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_mycel_epochs_v1beta1_params_proto_goTypes, - DependencyIndexes: file_mycel_epochs_v1beta1_params_proto_depIdxs, - MessageInfos: file_mycel_epochs_v1beta1_params_proto_msgTypes, - }.Build() - File_mycel_epochs_v1beta1_params_proto = out.File - file_mycel_epochs_v1beta1_params_proto_rawDesc = nil - file_mycel_epochs_v1beta1_params_proto_goTypes = nil - file_mycel_epochs_v1beta1_params_proto_depIdxs = nil -} diff --git a/api/mycel/epochs/v1beta1/query.pulsar.go b/api/mycel/epochs/v1beta1/query.pulsar.go deleted file mode 100644 index b7e71a29..00000000 --- a/api/mycel/epochs/v1beta1/query.pulsar.go +++ /dev/null @@ -1,3135 +0,0 @@ -// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. -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" - _ "google.golang.org/genproto/googleapis/api/annotations" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoiface "google.golang.org/protobuf/runtime/protoiface" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - io "io" - reflect "reflect" - sync "sync" -) - -var ( - md_QueryParamsRequest protoreflect.MessageDescriptor -) - -func init() { - file_mycel_epochs_v1beta1_query_proto_init() - md_QueryParamsRequest = File_mycel_epochs_v1beta1_query_proto.Messages().ByName("QueryParamsRequest") -} - -var _ protoreflect.Message = (*fastReflection_QueryParamsRequest)(nil) - -type fastReflection_QueryParamsRequest QueryParamsRequest - -func (x *QueryParamsRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryParamsRequest)(x) -} - -func (x *QueryParamsRequest) slowProtoReflect() protoreflect.Message { - mi := &file_mycel_epochs_v1beta1_query_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_QueryParamsRequest_messageType fastReflection_QueryParamsRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryParamsRequest_messageType{} - -type fastReflection_QueryParamsRequest_messageType struct{} - -func (x fastReflection_QueryParamsRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryParamsRequest)(nil) -} -func (x fastReflection_QueryParamsRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryParamsRequest) -} -func (x fastReflection_QueryParamsRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryParamsRequest -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_QueryParamsRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryParamsRequest -} - -// 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 -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryParamsRequest) New() protoreflect.Message { - return new(fastReflection_QueryParamsRequest) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryParamsRequest) Interface() protoreflect.ProtoMessage { - return (*QueryParamsRequest)(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_QueryParamsRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryParamsRequest) 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("message mycel.epochs.v1beta1.QueryParamsRequest 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_QueryParamsRequest) 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("message mycel.epochs.v1beta1.QueryParamsRequest 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_QueryParamsRequest) 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("message mycel.epochs.v1beta1.QueryParamsRequest 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_QueryParamsRequest) 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("message mycel.epochs.v1beta1.QueryParamsRequest 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_QueryParamsRequest) 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("message mycel.epochs.v1beta1.QueryParamsRequest 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 { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.epochs.v1beta1.QueryParamsRequest")) - } - panic(fmt.Errorf("message mycel.epochs.v1beta1.QueryParamsRequest 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 { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in mycel.epochs.v1beta1.QueryParamsRequest", 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_QueryParamsRequest) 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_QueryParamsRequest) 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_QueryParamsRequest) 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_QueryParamsRequest) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryParamsRequest) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryParamsRequest) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryParamsRequest) - 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: QueryParamsRequest: 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) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_QueryParamsResponse protoreflect.MessageDescriptor - fd_QueryParamsResponse_params 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") -} - -var _ protoreflect.Message = (*fastReflection_QueryParamsResponse)(nil) - -type fastReflection_QueryParamsResponse QueryParamsResponse - -func (x *QueryParamsResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryParamsResponse)(x) -} - -func (x *QueryParamsResponse) slowProtoReflect() protoreflect.Message { - mi := &file_mycel_epochs_v1beta1_query_proto_msgTypes[1] - 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_QueryParamsResponse_messageType fastReflection_QueryParamsResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryParamsResponse_messageType{} - -type fastReflection_QueryParamsResponse_messageType struct{} - -func (x fastReflection_QueryParamsResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryParamsResponse)(nil) -} -func (x fastReflection_QueryParamsResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryParamsResponse) -} -func (x fastReflection_QueryParamsResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryParamsResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_QueryParamsResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryParamsResponse -} - -// 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 -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryParamsResponse) New() protoreflect.Message { - return new(fastReflection_QueryParamsResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryParamsResponse) Interface() protoreflect.ProtoMessage { - return (*QueryParamsResponse)(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_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) { - 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_QueryParamsResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "mycel.epochs.v1beta1.QueryParamsResponse.params": - return x.Params != nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.epochs.v1beta1.QueryParamsResponse")) - } - panic(fmt.Errorf("message mycel.epochs.v1beta1.QueryParamsResponse 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_QueryParamsResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "mycel.epochs.v1beta1.QueryParamsResponse.params": - x.Params = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.epochs.v1beta1.QueryParamsResponse")) - } - panic(fmt.Errorf("message mycel.epochs.v1beta1.QueryParamsResponse 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_QueryParamsResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "mycel.epochs.v1beta1.QueryParamsResponse.params": - value := x.Params - return protoreflect.ValueOfMessage(value.ProtoReflect()) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.epochs.v1beta1.QueryParamsResponse")) - } - panic(fmt.Errorf("message mycel.epochs.v1beta1.QueryParamsResponse 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_QueryParamsResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "mycel.epochs.v1beta1.QueryParamsResponse.params": - x.Params = value.Message().Interface().(*Params) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.epochs.v1beta1.QueryParamsResponse")) - } - panic(fmt.Errorf("message mycel.epochs.v1beta1.QueryParamsResponse 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_QueryParamsResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "mycel.epochs.v1beta1.QueryParamsResponse.params": - if x.Params == nil { - x.Params = new(Params) - } - return protoreflect.ValueOfMessage(x.Params.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.epochs.v1beta1.QueryParamsResponse")) - } - panic(fmt.Errorf("message mycel.epochs.v1beta1.QueryParamsResponse 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 { - switch fd.FullName() { - case "mycel.epochs.v1beta1.QueryParamsResponse.params": - m := new(Params) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.epochs.v1beta1.QueryParamsResponse")) - } - panic(fmt.Errorf("message mycel.epochs.v1beta1.QueryParamsResponse 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 { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in mycel.epochs.v1beta1.QueryParamsResponse", 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_QueryParamsResponse) 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_QueryParamsResponse) 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_QueryParamsResponse) 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_QueryParamsResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryParamsResponse) - 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.Params != nil { - l = options.Size(x.Params) - 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().(*QueryParamsResponse) - 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.Params != nil { - encoded, err := options.Marshal(x.Params) - 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().(*QueryParamsResponse) - 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: QueryParamsResponse: 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) - } - 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) - } - 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.Params == nil { - x.Params = &Params{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Params); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_QueryGetEpochInfoRequest protoreflect.MessageDescriptor - fd_QueryGetEpochInfoRequest_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") -} - -var _ protoreflect.Message = (*fastReflection_QueryGetEpochInfoRequest)(nil) - -type fastReflection_QueryGetEpochInfoRequest QueryGetEpochInfoRequest - -func (x *QueryGetEpochInfoRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryGetEpochInfoRequest)(x) -} - -func (x *QueryGetEpochInfoRequest) slowProtoReflect() protoreflect.Message { - mi := &file_mycel_epochs_v1beta1_query_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_QueryGetEpochInfoRequest_messageType fastReflection_QueryGetEpochInfoRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryGetEpochInfoRequest_messageType{} - -type fastReflection_QueryGetEpochInfoRequest_messageType struct{} - -func (x fastReflection_QueryGetEpochInfoRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryGetEpochInfoRequest)(nil) -} -func (x fastReflection_QueryGetEpochInfoRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryGetEpochInfoRequest) -} -func (x fastReflection_QueryGetEpochInfoRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryGetEpochInfoRequest -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_QueryGetEpochInfoRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryGetEpochInfoRequest -} - -// 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 -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryGetEpochInfoRequest) New() protoreflect.Message { - return new(fastReflection_QueryGetEpochInfoRequest) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryGetEpochInfoRequest) Interface() protoreflect.ProtoMessage { - return (*QueryGetEpochInfoRequest)(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_QueryGetEpochInfoRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Identifier != "" { - value := protoreflect.ValueOfString(x.Identifier) - if !f(fd_QueryGetEpochInfoRequest_identifier, 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_QueryGetEpochInfoRequest) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "mycel.epochs.v1beta1.QueryGetEpochInfoRequest.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("message mycel.epochs.v1beta1.QueryGetEpochInfoRequest 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_QueryGetEpochInfoRequest) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "mycel.epochs.v1beta1.QueryGetEpochInfoRequest.identifier": - x.Identifier = "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.epochs.v1beta1.QueryGetEpochInfoRequest")) - } - panic(fmt.Errorf("message mycel.epochs.v1beta1.QueryGetEpochInfoRequest 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_QueryGetEpochInfoRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "mycel.epochs.v1beta1.QueryGetEpochInfoRequest.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("message mycel.epochs.v1beta1.QueryGetEpochInfoRequest 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_QueryGetEpochInfoRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "mycel.epochs.v1beta1.QueryGetEpochInfoRequest.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("message mycel.epochs.v1beta1.QueryGetEpochInfoRequest 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_QueryGetEpochInfoRequest) 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")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.epochs.v1beta1.QueryGetEpochInfoRequest")) - } - panic(fmt.Errorf("message mycel.epochs.v1beta1.QueryGetEpochInfoRequest 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 { - switch fd.FullName() { - case "mycel.epochs.v1beta1.QueryGetEpochInfoRequest.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("message mycel.epochs.v1beta1.QueryGetEpochInfoRequest 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 { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in mycel.epochs.v1beta1.QueryGetEpochInfoRequest", 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_QueryGetEpochInfoRequest) 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_QueryGetEpochInfoRequest) 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_QueryGetEpochInfoRequest) 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_QueryGetEpochInfoRequest) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryGetEpochInfoRequest) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - l = len(x.Identifier) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryGetEpochInfoRequest) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if len(x.Identifier) > 0 { - i -= len(x.Identifier) - copy(dAtA[i:], x.Identifier) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Identifier))) - 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().(*QueryGetEpochInfoRequest) - 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: QueryGetEpochInfoRequest: 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) - } - switch fieldNum { - case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Identifier", 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.Identifier = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_QueryGetEpochInfoResponse protoreflect.MessageDescriptor - fd_QueryGetEpochInfoResponse_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") -} - -var _ protoreflect.Message = (*fastReflection_QueryGetEpochInfoResponse)(nil) - -type fastReflection_QueryGetEpochInfoResponse QueryGetEpochInfoResponse - -func (x *QueryGetEpochInfoResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryGetEpochInfoResponse)(x) -} - -func (x *QueryGetEpochInfoResponse) slowProtoReflect() protoreflect.Message { - mi := &file_mycel_epochs_v1beta1_query_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_QueryGetEpochInfoResponse_messageType fastReflection_QueryGetEpochInfoResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryGetEpochInfoResponse_messageType{} - -type fastReflection_QueryGetEpochInfoResponse_messageType struct{} - -func (x fastReflection_QueryGetEpochInfoResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryGetEpochInfoResponse)(nil) -} -func (x fastReflection_QueryGetEpochInfoResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryGetEpochInfoResponse) -} -func (x fastReflection_QueryGetEpochInfoResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryGetEpochInfoResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_QueryGetEpochInfoResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryGetEpochInfoResponse -} - -// 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 -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryGetEpochInfoResponse) New() protoreflect.Message { - return new(fastReflection_QueryGetEpochInfoResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryGetEpochInfoResponse) Interface() protoreflect.ProtoMessage { - return (*QueryGetEpochInfoResponse)(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_QueryGetEpochInfoResponse) 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) { - 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_QueryGetEpochInfoResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "mycel.epochs.v1beta1.QueryGetEpochInfoResponse.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("message mycel.epochs.v1beta1.QueryGetEpochInfoResponse 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_QueryGetEpochInfoResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "mycel.epochs.v1beta1.QueryGetEpochInfoResponse.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("message mycel.epochs.v1beta1.QueryGetEpochInfoResponse 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_QueryGetEpochInfoResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "mycel.epochs.v1beta1.QueryGetEpochInfoResponse.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("message mycel.epochs.v1beta1.QueryGetEpochInfoResponse 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_QueryGetEpochInfoResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "mycel.epochs.v1beta1.QueryGetEpochInfoResponse.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("message mycel.epochs.v1beta1.QueryGetEpochInfoResponse 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_QueryGetEpochInfoResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "mycel.epochs.v1beta1.QueryGetEpochInfoResponse.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("message mycel.epochs.v1beta1.QueryGetEpochInfoResponse 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 { - switch fd.FullName() { - case "mycel.epochs.v1beta1.QueryGetEpochInfoResponse.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("message mycel.epochs.v1beta1.QueryGetEpochInfoResponse 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 { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in mycel.epochs.v1beta1.QueryGetEpochInfoResponse", 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_QueryGetEpochInfoResponse) 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_QueryGetEpochInfoResponse) 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_QueryGetEpochInfoResponse) 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_QueryGetEpochInfoResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryGetEpochInfoResponse) - 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.EpochInfo != nil { - l = options.Size(x.EpochInfo) - 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().(*QueryGetEpochInfoResponse) - 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.EpochInfo != nil { - encoded, err := options.Marshal(x.EpochInfo) - 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().(*QueryGetEpochInfoResponse) - 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: QueryGetEpochInfoResponse: 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) - } - 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 - } - if x.EpochInfo == nil { - x.EpochInfo = &EpochInfo{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.EpochInfo); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_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) - -type fastReflection_QueryAllEpochInfoRequest QueryAllEpochInfoRequest - -func (x *QueryAllEpochInfoRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryAllEpochInfoRequest)(x) -} - -func (x *QueryAllEpochInfoRequest) slowProtoReflect() protoreflect.Message { - mi := &file_mycel_epochs_v1beta1_query_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_QueryAllEpochInfoRequest_messageType fastReflection_QueryAllEpochInfoRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryAllEpochInfoRequest_messageType{} - -type fastReflection_QueryAllEpochInfoRequest_messageType struct{} - -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 -} - -// 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 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 -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryAllEpochInfoRequest) New() protoreflect.Message { - return new(fastReflection_QueryAllEpochInfoRequest) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryAllEpochInfoRequest) Interface() protoreflect.ProtoMessage { - return (*QueryAllEpochInfoRequest)(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_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 - } - } -} - -// 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())) - } -} - -// 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())) - } -} - -// 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())) - } -} - -// 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())) - } -} - -// 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())) - } -} - -// 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())) - } -} - -// 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())) - } - 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 -} - -// 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 (*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) { - 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 { - 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, 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, -} - -var ( - file_mycel_epochs_v1beta1_query_proto_rawDescOnce sync.Once - file_mycel_epochs_v1beta1_query_proto_rawDescData = file_mycel_epochs_v1beta1_query_proto_rawDesc -) - -func file_mycel_epochs_v1beta1_query_proto_rawDescGZIP() []byte { - file_mycel_epochs_v1beta1_query_proto_rawDescOnce.Do(func() { - file_mycel_epochs_v1beta1_query_proto_rawDescData = protoimpl.X.CompressGZIP(file_mycel_epochs_v1beta1_query_proto_rawDescData) - }) - 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_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 -} -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 -} - -func init() { file_mycel_epochs_v1beta1_query_proto_init() } -func file_mycel_epochs_v1beta1_query_proto_init() { - if File_mycel_epochs_v1beta1_query_proto != nil { - 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 { - 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[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryParamsResponse); 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[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryGetEpochInfoRequest); 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[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 { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_mycel_epochs_v1beta1_query_proto_rawDesc, - NumEnums: 0, - NumMessages: 6, - NumExtensions: 0, - NumServices: 1, - }, - GoTypes: file_mycel_epochs_v1beta1_query_proto_goTypes, - DependencyIndexes: file_mycel_epochs_v1beta1_query_proto_depIdxs, - MessageInfos: file_mycel_epochs_v1beta1_query_proto_msgTypes, - }.Build() - File_mycel_epochs_v1beta1_query_proto = out.File - file_mycel_epochs_v1beta1_query_proto_rawDesc = nil - file_mycel_epochs_v1beta1_query_proto_goTypes = nil - file_mycel_epochs_v1beta1_query_proto_depIdxs = nil -} diff --git a/api/mycel/epochs/v1beta1/query_grpc.pb.go b/api/mycel/epochs/v1beta1/query_grpc.pb.go deleted file mode 100644 index 956161d5..00000000 --- a/api/mycel/epochs/v1beta1/query_grpc.pb.go +++ /dev/null @@ -1,177 +0,0 @@ -// Code generated by protoc-gen-go-grpc. DO NOT EDIT. - -package types - -import ( - context "context" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" -) - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 - -// 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) -} - -type queryClient struct { - cc grpc.ClientConnInterface -} - -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, "/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...) - 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...) - if err != nil { - return nil, err - } - return out, nil -} - -// QueryServer is the server API for Query service. -// All implementations must embed UnimplementedQueryServer -// for forward compatibility -type QueryServer interface { - // 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) - mustEmbedUnimplementedQueryServer() -} - -// UnimplementedQueryServer must be embedded to have forward compatible implementations. -type UnimplementedQueryServer struct { -} - -func (UnimplementedQueryServer) Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Params 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) mustEmbedUnimplementedQueryServer() {} - -// UnsafeQueryServer may be embedded to opt out of forward compatibility for this service. -// Use of this interface is not recommended, as added methods to QueryServer will -// result in compilation errors. -type UnsafeQueryServer interface { - mustEmbedUnimplementedQueryServer() -} - -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: "/mycel.epochs.v1beta1.Query/Params", - } - 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) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).EpochInfo(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/mycel.epochs.v1beta1.Query/EpochInfo", - } - 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 interceptor(ctx, in, info, handler) -} - -// Query_ServiceDesc is the grpc.ServiceDesc for Query service. -// It's only intended for direct use with grpc.RegisterService, -// and not to be introspected or modified (even as a copy) -var Query_ServiceDesc = grpc.ServiceDesc{ - ServiceName: "mycel.epochs.v1beta1.Query", - HandlerType: (*QueryServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "Params", - Handler: _Query_Params_Handler, - }, - { - MethodName: "EpochInfo", - Handler: _Query_EpochInfo_Handler, - }, - { - MethodName: "EpochInfoAll", - Handler: _Query_EpochInfoAll_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "mycel/epochs/v1beta1/query.proto", -} diff --git a/api/mycel/epochs/v1beta1/tx.pulsar.go b/api/mycel/epochs/v1beta1/tx.pulsar.go deleted file mode 100644 index 79307416..00000000 --- a/api/mycel/epochs/v1beta1/tx.pulsar.go +++ /dev/null @@ -1,76 +0,0 @@ -// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. -package types - -import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" -) - -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.27.0 -// protoc (unknown) -// source: mycel/epochs/v1beta1/tx.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) -) - -var File_mycel_epochs_v1beta1_tx_proto protoreflect.FileDescriptor - -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, -} - -var file_mycel_epochs_v1beta1_tx_proto_goTypes = []interface{}{} -var file_mycel_epochs_v1beta1_tx_proto_depIdxs = []int32{ - 0, // [0:0] is the sub-list for method output_type - 0, // [0:0] is the sub-list for method input_type - 0, // [0:0] is the sub-list for extension type_name - 0, // [0:0] is the sub-list for extension extendee - 0, // [0:0] is the sub-list for field type_name -} - -func init() { file_mycel_epochs_v1beta1_tx_proto_init() } -func file_mycel_epochs_v1beta1_tx_proto_init() { - if File_mycel_epochs_v1beta1_tx_proto != nil { - return - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_mycel_epochs_v1beta1_tx_proto_rawDesc, - NumEnums: 0, - NumMessages: 0, - NumExtensions: 0, - NumServices: 1, - }, - GoTypes: file_mycel_epochs_v1beta1_tx_proto_goTypes, - DependencyIndexes: file_mycel_epochs_v1beta1_tx_proto_depIdxs, - }.Build() - File_mycel_epochs_v1beta1_tx_proto = out.File - file_mycel_epochs_v1beta1_tx_proto_rawDesc = nil - file_mycel_epochs_v1beta1_tx_proto_goTypes = nil - file_mycel_epochs_v1beta1_tx_proto_depIdxs = nil -} diff --git a/api/mycel/furnace/module/v1/module.pulsar.go b/api/mycel/furnace/module/v1/module.pulsar.go index 291c753f..bccdfee5 100644 --- a/api/mycel/furnace/module/v1/module.pulsar.go +++ b/api/mycel/furnace/module/v1/module.pulsar.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-go-pulsar. DO NOT EDIT. -package furnace +package modulev1 import ( _ "cosmossdk.io/api/cosmos/app/v1alpha1" @@ -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,27 @@ 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, 0xdc, 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, 0x31, 0x63, 0x6f, 0x73, 0x6d, 0x6f, + 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x6d, 0x79, 0x63, 0x65, + 0x6c, 0x2f, 0x66, 0x75, 0x72, 0x6e, 0x61, 0x63, 0x65, 0x2f, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, + 0x2f, 0x76, 0x31, 0x3b, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x76, 0x31, 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/furnace/v1beta1/burn_amount.pulsar.go b/api/mycel/furnace/v1/burn_amount.pulsar.go similarity index 74% rename from api/mycel/furnace/v1beta1/burn_amount.pulsar.go rename to api/mycel/furnace/v1/burn_amount.pulsar.go index fede567e..b6b88fc4 100644 --- a/api/mycel/furnace/v1beta1/burn_amount.pulsar.go +++ b/api/mycel/furnace/v1/burn_amount.pulsar.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-go-pulsar. DO NOT EDIT. -package types +package furnacev1 import ( v1beta1 "cosmossdk.io/api/cosmos/base/v1beta1" @@ -25,8 +25,8 @@ var ( ) func init() { - file_mycel_furnace_v1beta1_burn_amount_proto_init() - md_BurnAmount = File_mycel_furnace_v1beta1_burn_amount_proto.Messages().ByName("BurnAmount") + file_mycel_furnace_v1_burn_amount_proto_init() + md_BurnAmount = File_mycel_furnace_v1_burn_amount_proto.Messages().ByName("BurnAmount") fd_BurnAmount_index = md_BurnAmount.Fields().ByName("index") fd_BurnAmount_burn_started = md_BurnAmount.Fields().ByName("burn_started") fd_BurnAmount_total_epochs = md_BurnAmount.Fields().ByName("total_epochs") @@ -44,7 +44,7 @@ func (x *BurnAmount) ProtoReflect() protoreflect.Message { } func (x *BurnAmount) slowProtoReflect() protoreflect.Message { - mi := &file_mycel_furnace_v1beta1_burn_amount_proto_msgTypes[0] + mi := &file_mycel_furnace_v1_burn_amount_proto_msgTypes[0] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -151,23 +151,23 @@ func (x *fastReflection_BurnAmount) Range(f func(protoreflect.FieldDescriptor, p // a repeated field is populated if it is non-empty. func (x *fastReflection_BurnAmount) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "mycel.furnace.v1beta1.BurnAmount.index": + case "mycel.furnace.v1.BurnAmount.index": return x.Index != uint64(0) - case "mycel.furnace.v1beta1.BurnAmount.burn_started": + case "mycel.furnace.v1.BurnAmount.burn_started": return x.BurnStarted != false - case "mycel.furnace.v1beta1.BurnAmount.total_epochs": + case "mycel.furnace.v1.BurnAmount.total_epochs": return x.TotalEpochs != uint64(0) - case "mycel.furnace.v1beta1.BurnAmount.current_epoch": + case "mycel.furnace.v1.BurnAmount.current_epoch": return x.CurrentEpoch != uint64(0) - case "mycel.furnace.v1beta1.BurnAmount.total_burn_amount": + case "mycel.furnace.v1.BurnAmount.total_burn_amount": return x.TotalBurnAmount != nil - case "mycel.furnace.v1beta1.BurnAmount.cumulative_burnt_amount": + case "mycel.furnace.v1.BurnAmount.cumulative_burnt_amount": return x.CumulativeBurntAmount != nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.furnace.v1beta1.BurnAmount")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.furnace.v1.BurnAmount")) } - panic(fmt.Errorf("message mycel.furnace.v1beta1.BurnAmount does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.furnace.v1.BurnAmount does not contain field %s", fd.FullName())) } } @@ -179,23 +179,23 @@ func (x *fastReflection_BurnAmount) Has(fd protoreflect.FieldDescriptor) bool { // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_BurnAmount) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "mycel.furnace.v1beta1.BurnAmount.index": + case "mycel.furnace.v1.BurnAmount.index": x.Index = uint64(0) - case "mycel.furnace.v1beta1.BurnAmount.burn_started": + case "mycel.furnace.v1.BurnAmount.burn_started": x.BurnStarted = false - case "mycel.furnace.v1beta1.BurnAmount.total_epochs": + case "mycel.furnace.v1.BurnAmount.total_epochs": x.TotalEpochs = uint64(0) - case "mycel.furnace.v1beta1.BurnAmount.current_epoch": + case "mycel.furnace.v1.BurnAmount.current_epoch": x.CurrentEpoch = uint64(0) - case "mycel.furnace.v1beta1.BurnAmount.total_burn_amount": + case "mycel.furnace.v1.BurnAmount.total_burn_amount": x.TotalBurnAmount = nil - case "mycel.furnace.v1beta1.BurnAmount.cumulative_burnt_amount": + case "mycel.furnace.v1.BurnAmount.cumulative_burnt_amount": x.CumulativeBurntAmount = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.furnace.v1beta1.BurnAmount")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.furnace.v1.BurnAmount")) } - panic(fmt.Errorf("message mycel.furnace.v1beta1.BurnAmount does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.furnace.v1.BurnAmount does not contain field %s", fd.FullName())) } } @@ -207,29 +207,29 @@ func (x *fastReflection_BurnAmount) Clear(fd protoreflect.FieldDescriptor) { // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_BurnAmount) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "mycel.furnace.v1beta1.BurnAmount.index": + case "mycel.furnace.v1.BurnAmount.index": value := x.Index return protoreflect.ValueOfUint64(value) - case "mycel.furnace.v1beta1.BurnAmount.burn_started": + case "mycel.furnace.v1.BurnAmount.burn_started": value := x.BurnStarted return protoreflect.ValueOfBool(value) - case "mycel.furnace.v1beta1.BurnAmount.total_epochs": + case "mycel.furnace.v1.BurnAmount.total_epochs": value := x.TotalEpochs return protoreflect.ValueOfUint64(value) - case "mycel.furnace.v1beta1.BurnAmount.current_epoch": + case "mycel.furnace.v1.BurnAmount.current_epoch": value := x.CurrentEpoch return protoreflect.ValueOfUint64(value) - case "mycel.furnace.v1beta1.BurnAmount.total_burn_amount": + case "mycel.furnace.v1.BurnAmount.total_burn_amount": value := x.TotalBurnAmount return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "mycel.furnace.v1beta1.BurnAmount.cumulative_burnt_amount": + case "mycel.furnace.v1.BurnAmount.cumulative_burnt_amount": value := x.CumulativeBurntAmount return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.furnace.v1beta1.BurnAmount")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.furnace.v1.BurnAmount")) } - panic(fmt.Errorf("message mycel.furnace.v1beta1.BurnAmount does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message mycel.furnace.v1.BurnAmount does not contain field %s", descriptor.FullName())) } } @@ -245,23 +245,23 @@ func (x *fastReflection_BurnAmount) Get(descriptor protoreflect.FieldDescriptor) // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_BurnAmount) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "mycel.furnace.v1beta1.BurnAmount.index": + case "mycel.furnace.v1.BurnAmount.index": x.Index = value.Uint() - case "mycel.furnace.v1beta1.BurnAmount.burn_started": + case "mycel.furnace.v1.BurnAmount.burn_started": x.BurnStarted = value.Bool() - case "mycel.furnace.v1beta1.BurnAmount.total_epochs": + case "mycel.furnace.v1.BurnAmount.total_epochs": x.TotalEpochs = value.Uint() - case "mycel.furnace.v1beta1.BurnAmount.current_epoch": + case "mycel.furnace.v1.BurnAmount.current_epoch": x.CurrentEpoch = value.Uint() - case "mycel.furnace.v1beta1.BurnAmount.total_burn_amount": + case "mycel.furnace.v1.BurnAmount.total_burn_amount": x.TotalBurnAmount = value.Message().Interface().(*v1beta1.Coin) - case "mycel.furnace.v1beta1.BurnAmount.cumulative_burnt_amount": + case "mycel.furnace.v1.BurnAmount.cumulative_burnt_amount": x.CumulativeBurntAmount = value.Message().Interface().(*v1beta1.Coin) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.furnace.v1beta1.BurnAmount")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.furnace.v1.BurnAmount")) } - panic(fmt.Errorf("message mycel.furnace.v1beta1.BurnAmount does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.furnace.v1.BurnAmount does not contain field %s", fd.FullName())) } } @@ -277,29 +277,29 @@ func (x *fastReflection_BurnAmount) Set(fd protoreflect.FieldDescriptor, value p // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_BurnAmount) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "mycel.furnace.v1beta1.BurnAmount.total_burn_amount": + case "mycel.furnace.v1.BurnAmount.total_burn_amount": if x.TotalBurnAmount == nil { x.TotalBurnAmount = new(v1beta1.Coin) } return protoreflect.ValueOfMessage(x.TotalBurnAmount.ProtoReflect()) - case "mycel.furnace.v1beta1.BurnAmount.cumulative_burnt_amount": + case "mycel.furnace.v1.BurnAmount.cumulative_burnt_amount": if x.CumulativeBurntAmount == nil { x.CumulativeBurntAmount = new(v1beta1.Coin) } return protoreflect.ValueOfMessage(x.CumulativeBurntAmount.ProtoReflect()) - case "mycel.furnace.v1beta1.BurnAmount.index": - panic(fmt.Errorf("field index of message mycel.furnace.v1beta1.BurnAmount is not mutable")) - case "mycel.furnace.v1beta1.BurnAmount.burn_started": - panic(fmt.Errorf("field burn_started of message mycel.furnace.v1beta1.BurnAmount is not mutable")) - case "mycel.furnace.v1beta1.BurnAmount.total_epochs": - panic(fmt.Errorf("field total_epochs of message mycel.furnace.v1beta1.BurnAmount is not mutable")) - case "mycel.furnace.v1beta1.BurnAmount.current_epoch": - panic(fmt.Errorf("field current_epoch of message mycel.furnace.v1beta1.BurnAmount is not mutable")) + case "mycel.furnace.v1.BurnAmount.index": + panic(fmt.Errorf("field index of message mycel.furnace.v1.BurnAmount is not mutable")) + case "mycel.furnace.v1.BurnAmount.burn_started": + panic(fmt.Errorf("field burn_started of message mycel.furnace.v1.BurnAmount is not mutable")) + case "mycel.furnace.v1.BurnAmount.total_epochs": + panic(fmt.Errorf("field total_epochs of message mycel.furnace.v1.BurnAmount is not mutable")) + case "mycel.furnace.v1.BurnAmount.current_epoch": + panic(fmt.Errorf("field current_epoch of message mycel.furnace.v1.BurnAmount is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.furnace.v1beta1.BurnAmount")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.furnace.v1.BurnAmount")) } - panic(fmt.Errorf("message mycel.furnace.v1beta1.BurnAmount does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.furnace.v1.BurnAmount does not contain field %s", fd.FullName())) } } @@ -308,25 +308,25 @@ func (x *fastReflection_BurnAmount) Mutable(fd protoreflect.FieldDescriptor) pro // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_BurnAmount) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "mycel.furnace.v1beta1.BurnAmount.index": + case "mycel.furnace.v1.BurnAmount.index": return protoreflect.ValueOfUint64(uint64(0)) - case "mycel.furnace.v1beta1.BurnAmount.burn_started": + case "mycel.furnace.v1.BurnAmount.burn_started": return protoreflect.ValueOfBool(false) - case "mycel.furnace.v1beta1.BurnAmount.total_epochs": + case "mycel.furnace.v1.BurnAmount.total_epochs": return protoreflect.ValueOfUint64(uint64(0)) - case "mycel.furnace.v1beta1.BurnAmount.current_epoch": + case "mycel.furnace.v1.BurnAmount.current_epoch": return protoreflect.ValueOfUint64(uint64(0)) - case "mycel.furnace.v1beta1.BurnAmount.total_burn_amount": + case "mycel.furnace.v1.BurnAmount.total_burn_amount": m := new(v1beta1.Coin) return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "mycel.furnace.v1beta1.BurnAmount.cumulative_burnt_amount": + case "mycel.furnace.v1.BurnAmount.cumulative_burnt_amount": m := new(v1beta1.Coin) return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.furnace.v1beta1.BurnAmount")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.furnace.v1.BurnAmount")) } - panic(fmt.Errorf("message mycel.furnace.v1beta1.BurnAmount does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.furnace.v1.BurnAmount does not contain field %s", fd.FullName())) } } @@ -336,7 +336,7 @@ func (x *fastReflection_BurnAmount) NewField(fd protoreflect.FieldDescriptor) pr func (x *fastReflection_BurnAmount) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in mycel.furnace.v1beta1.BurnAmount", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in mycel.furnace.v1.BurnAmount", d.FullName())) } panic("unreachable") } @@ -730,7 +730,7 @@ func (x *fastReflection_BurnAmount) ProtoMethods() *protoiface.Methods { // versions: // protoc-gen-go v1.27.0 // protoc (unknown) -// source: mycel/furnace/v1beta1/burn_amount.proto +// source: mycel/furnace/v1/burn_amount.proto const ( // Verify that this generated code is sufficiently up-to-date. @@ -755,7 +755,7 @@ type BurnAmount struct { func (x *BurnAmount) Reset() { *x = BurnAmount{} if protoimpl.UnsafeEnabled { - mi := &file_mycel_furnace_v1beta1_burn_amount_proto_msgTypes[0] + mi := &file_mycel_furnace_v1_burn_amount_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -769,7 +769,7 @@ func (*BurnAmount) ProtoMessage() {} // Deprecated: Use BurnAmount.ProtoReflect.Descriptor instead. func (*BurnAmount) Descriptor() ([]byte, []int) { - return file_mycel_furnace_v1beta1_burn_amount_proto_rawDescGZIP(), []int{0} + return file_mycel_furnace_v1_burn_amount_proto_rawDescGZIP(), []int{0} } func (x *BurnAmount) GetIndex() uint64 { @@ -814,72 +814,70 @@ func (x *BurnAmount) GetCumulativeBurntAmount() *v1beta1.Coin { return nil } -var File_mycel_furnace_v1beta1_burn_amount_proto protoreflect.FileDescriptor - -var file_mycel_furnace_v1beta1_burn_amount_proto_rawDesc = []byte{ - 0x0a, 0x27, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2f, 0x66, 0x75, 0x72, 0x6e, 0x61, 0x63, 0x65, 0x2f, - 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x62, 0x75, 0x72, 0x6e, 0x5f, 0x61, 0x6d, 0x6f, - 0x75, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x15, 0x6d, 0x79, 0x63, 0x65, 0x6c, - 0x2e, 0x66, 0x75, 0x72, 0x6e, 0x61, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, - 0x1a, 0x1e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x62, 0x61, 0x73, 0x65, 0x2f, 0x76, 0x31, - 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x63, 0x6f, 0x69, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x1a, 0x14, 0x67, 0x6f, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xb3, 0x02, 0x0a, 0x0a, 0x42, 0x75, 0x72, 0x6e, 0x41, - 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x21, 0x0a, 0x0c, 0x62, - 0x75, 0x72, 0x6e, 0x5f, 0x73, 0x74, 0x61, 0x72, 0x74, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x08, 0x52, 0x0b, 0x62, 0x75, 0x72, 0x6e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x65, 0x64, 0x12, 0x21, - 0x0a, 0x0c, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x73, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x45, 0x70, 0x6f, 0x63, 0x68, - 0x73, 0x12, 0x23, 0x0a, 0x0d, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x65, 0x70, 0x6f, - 0x63, 0x68, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0c, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, - 0x74, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x12, 0x4b, 0x0a, 0x11, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, - 0x62, 0x75, 0x72, 0x6e, 0x5f, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, - 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x6f, 0x69, 0x6e, 0x42, 0x04, 0xc8, 0xde, - 0x1f, 0x00, 0x52, 0x0f, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x42, 0x75, 0x72, 0x6e, 0x41, 0x6d, 0x6f, - 0x75, 0x6e, 0x74, 0x12, 0x57, 0x0a, 0x17, 0x63, 0x75, 0x6d, 0x75, 0x6c, 0x61, 0x74, 0x69, 0x76, - 0x65, 0x5f, 0x62, 0x75, 0x72, 0x6e, 0x74, 0x5f, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x06, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, - 0x73, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x6f, 0x69, 0x6e, 0x42, - 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x15, 0x63, 0x75, 0x6d, 0x75, 0x6c, 0x61, 0x74, 0x69, 0x76, - 0x65, 0x42, 0x75, 0x72, 0x6e, 0x74, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x42, 0xd1, 0x01, 0x0a, - 0x19, 0x63, 0x6f, 0x6d, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x66, 0x75, 0x72, 0x6e, 0x61, - 0x63, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x42, 0x0f, 0x42, 0x75, 0x72, 0x6e, - 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2d, 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, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0xa2, 0x02, 0x03, 0x4d, - 0x46, 0x58, 0xaa, 0x02, 0x15, 0x4d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x46, 0x75, 0x72, 0x6e, 0x61, - 0x63, 0x65, 0x2e, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xca, 0x02, 0x15, 0x4d, 0x79, 0x63, - 0x65, 0x6c, 0x5c, 0x46, 0x75, 0x72, 0x6e, 0x61, 0x63, 0x65, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, - 0x61, 0x31, 0xe2, 0x02, 0x21, 0x4d, 0x79, 0x63, 0x65, 0x6c, 0x5c, 0x46, 0x75, 0x72, 0x6e, 0x61, - 0x63, 0x65, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, - 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x17, 0x4d, 0x79, 0x63, 0x65, 0x6c, 0x3a, 0x3a, - 0x46, 0x75, 0x72, 0x6e, 0x61, 0x63, 0x65, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, - 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +var File_mycel_furnace_v1_burn_amount_proto protoreflect.FileDescriptor + +var file_mycel_furnace_v1_burn_amount_proto_rawDesc = []byte{ + 0x0a, 0x22, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2f, 0x66, 0x75, 0x72, 0x6e, 0x61, 0x63, 0x65, 0x2f, + 0x76, 0x31, 0x2f, 0x62, 0x75, 0x72, 0x6e, 0x5f, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x10, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x66, 0x75, 0x72, 0x6e, + 0x61, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x1a, 0x1e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x62, + 0x61, 0x73, 0x65, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x63, 0x6f, 0x69, 0x6e, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x14, 0x67, 0x6f, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xb3, 0x02, 0x0a, + 0x0a, 0x42, 0x75, 0x72, 0x6e, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x69, + 0x6e, 0x64, 0x65, 0x78, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x69, 0x6e, 0x64, 0x65, + 0x78, 0x12, 0x21, 0x0a, 0x0c, 0x62, 0x75, 0x72, 0x6e, 0x5f, 0x73, 0x74, 0x61, 0x72, 0x74, 0x65, + 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0b, 0x62, 0x75, 0x72, 0x6e, 0x53, 0x74, 0x61, + 0x72, 0x74, 0x65, 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x65, 0x70, + 0x6f, 0x63, 0x68, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, 0x74, 0x6f, 0x74, 0x61, + 0x6c, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x73, 0x12, 0x23, 0x0a, 0x0d, 0x63, 0x75, 0x72, 0x72, 0x65, + 0x6e, 0x74, 0x5f, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0c, + 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x12, 0x4b, 0x0a, 0x11, + 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x62, 0x75, 0x72, 0x6e, 0x5f, 0x61, 0x6d, 0x6f, 0x75, 0x6e, + 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, + 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x6f, + 0x69, 0x6e, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0f, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x42, + 0x75, 0x72, 0x6e, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x57, 0x0a, 0x17, 0x63, 0x75, 0x6d, + 0x75, 0x6c, 0x61, 0x74, 0x69, 0x76, 0x65, 0x5f, 0x62, 0x75, 0x72, 0x6e, 0x74, 0x5f, 0x61, 0x6d, + 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x6f, 0x73, + 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, + 0x2e, 0x43, 0x6f, 0x69, 0x6e, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x15, 0x63, 0x75, 0x6d, + 0x75, 0x6c, 0x61, 0x74, 0x69, 0x76, 0x65, 0x42, 0x75, 0x72, 0x6e, 0x74, 0x41, 0x6d, 0x6f, 0x75, + 0x6e, 0x74, 0x42, 0xb6, 0x01, 0x0a, 0x14, 0x63, 0x6f, 0x6d, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, + 0x2e, 0x66, 0x75, 0x72, 0x6e, 0x61, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x42, 0x0f, 0x42, 0x75, 0x72, + 0x6e, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2b, + 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, + 0x2f, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2f, 0x66, 0x75, 0x72, 0x6e, 0x61, 0x63, 0x65, 0x2f, 0x76, + 0x31, 0x3b, 0x66, 0x75, 0x72, 0x6e, 0x61, 0x63, 0x65, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x4d, 0x46, + 0x58, 0xaa, 0x02, 0x10, 0x4d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x46, 0x75, 0x72, 0x6e, 0x61, 0x63, + 0x65, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x10, 0x4d, 0x79, 0x63, 0x65, 0x6c, 0x5c, 0x46, 0x75, 0x72, + 0x6e, 0x61, 0x63, 0x65, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x1c, 0x4d, 0x79, 0x63, 0x65, 0x6c, 0x5c, + 0x46, 0x75, 0x72, 0x6e, 0x61, 0x63, 0x65, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, + 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x12, 0x4d, 0x79, 0x63, 0x65, 0x6c, 0x3a, 0x3a, + 0x46, 0x75, 0x72, 0x6e, 0x61, 0x63, 0x65, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x33, } var ( - file_mycel_furnace_v1beta1_burn_amount_proto_rawDescOnce sync.Once - file_mycel_furnace_v1beta1_burn_amount_proto_rawDescData = file_mycel_furnace_v1beta1_burn_amount_proto_rawDesc + file_mycel_furnace_v1_burn_amount_proto_rawDescOnce sync.Once + file_mycel_furnace_v1_burn_amount_proto_rawDescData = file_mycel_furnace_v1_burn_amount_proto_rawDesc ) -func file_mycel_furnace_v1beta1_burn_amount_proto_rawDescGZIP() []byte { - file_mycel_furnace_v1beta1_burn_amount_proto_rawDescOnce.Do(func() { - file_mycel_furnace_v1beta1_burn_amount_proto_rawDescData = protoimpl.X.CompressGZIP(file_mycel_furnace_v1beta1_burn_amount_proto_rawDescData) +func file_mycel_furnace_v1_burn_amount_proto_rawDescGZIP() []byte { + file_mycel_furnace_v1_burn_amount_proto_rawDescOnce.Do(func() { + file_mycel_furnace_v1_burn_amount_proto_rawDescData = protoimpl.X.CompressGZIP(file_mycel_furnace_v1_burn_amount_proto_rawDescData) }) - return file_mycel_furnace_v1beta1_burn_amount_proto_rawDescData + return file_mycel_furnace_v1_burn_amount_proto_rawDescData } -var file_mycel_furnace_v1beta1_burn_amount_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_mycel_furnace_v1beta1_burn_amount_proto_goTypes = []interface{}{ - (*BurnAmount)(nil), // 0: mycel.furnace.v1beta1.BurnAmount +var file_mycel_furnace_v1_burn_amount_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_mycel_furnace_v1_burn_amount_proto_goTypes = []interface{}{ + (*BurnAmount)(nil), // 0: mycel.furnace.v1.BurnAmount (*v1beta1.Coin)(nil), // 1: cosmos.base.v1beta1.Coin } -var file_mycel_furnace_v1beta1_burn_amount_proto_depIdxs = []int32{ - 1, // 0: mycel.furnace.v1beta1.BurnAmount.total_burn_amount:type_name -> cosmos.base.v1beta1.Coin - 1, // 1: mycel.furnace.v1beta1.BurnAmount.cumulative_burnt_amount:type_name -> cosmos.base.v1beta1.Coin +var file_mycel_furnace_v1_burn_amount_proto_depIdxs = []int32{ + 1, // 0: mycel.furnace.v1.BurnAmount.total_burn_amount:type_name -> cosmos.base.v1beta1.Coin + 1, // 1: mycel.furnace.v1.BurnAmount.cumulative_burnt_amount:type_name -> cosmos.base.v1beta1.Coin 2, // [2:2] is the sub-list for method output_type 2, // [2:2] is the sub-list for method input_type 2, // [2:2] is the sub-list for extension type_name @@ -887,13 +885,13 @@ var file_mycel_furnace_v1beta1_burn_amount_proto_depIdxs = []int32{ 0, // [0:2] is the sub-list for field type_name } -func init() { file_mycel_furnace_v1beta1_burn_amount_proto_init() } -func file_mycel_furnace_v1beta1_burn_amount_proto_init() { - if File_mycel_furnace_v1beta1_burn_amount_proto != nil { +func init() { file_mycel_furnace_v1_burn_amount_proto_init() } +func file_mycel_furnace_v1_burn_amount_proto_init() { + if File_mycel_furnace_v1_burn_amount_proto != nil { return } if !protoimpl.UnsafeEnabled { - file_mycel_furnace_v1beta1_burn_amount_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_mycel_furnace_v1_burn_amount_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*BurnAmount); i { case 0: return &v.state @@ -910,18 +908,18 @@ func file_mycel_furnace_v1beta1_burn_amount_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_mycel_furnace_v1beta1_burn_amount_proto_rawDesc, + RawDescriptor: file_mycel_furnace_v1_burn_amount_proto_rawDesc, NumEnums: 0, NumMessages: 1, NumExtensions: 0, NumServices: 0, }, - GoTypes: file_mycel_furnace_v1beta1_burn_amount_proto_goTypes, - DependencyIndexes: file_mycel_furnace_v1beta1_burn_amount_proto_depIdxs, - MessageInfos: file_mycel_furnace_v1beta1_burn_amount_proto_msgTypes, + GoTypes: file_mycel_furnace_v1_burn_amount_proto_goTypes, + DependencyIndexes: file_mycel_furnace_v1_burn_amount_proto_depIdxs, + MessageInfos: file_mycel_furnace_v1_burn_amount_proto_msgTypes, }.Build() - File_mycel_furnace_v1beta1_burn_amount_proto = out.File - file_mycel_furnace_v1beta1_burn_amount_proto_rawDesc = nil - file_mycel_furnace_v1beta1_burn_amount_proto_goTypes = nil - file_mycel_furnace_v1beta1_burn_amount_proto_depIdxs = nil + File_mycel_furnace_v1_burn_amount_proto = out.File + file_mycel_furnace_v1_burn_amount_proto_rawDesc = nil + file_mycel_furnace_v1_burn_amount_proto_goTypes = nil + file_mycel_furnace_v1_burn_amount_proto_depIdxs = nil } diff --git a/api/mycel/furnace/v1beta1/epoch_burn_config.pulsar.go b/api/mycel/furnace/v1/epoch_burn_config.pulsar.go similarity index 72% rename from api/mycel/furnace/v1beta1/epoch_burn_config.pulsar.go rename to api/mycel/furnace/v1/epoch_burn_config.pulsar.go index 34f82044..09346bcc 100644 --- a/api/mycel/furnace/v1beta1/epoch_burn_config.pulsar.go +++ b/api/mycel/furnace/v1/epoch_burn_config.pulsar.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-go-pulsar. DO NOT EDIT. -package types +package furnacev1 import ( fmt "fmt" @@ -23,8 +23,8 @@ var ( ) func init() { - file_mycel_furnace_v1beta1_epoch_burn_config_proto_init() - md_EpochBurnConfig = File_mycel_furnace_v1beta1_epoch_burn_config_proto.Messages().ByName("EpochBurnConfig") + file_mycel_furnace_v1_epoch_burn_config_proto_init() + md_EpochBurnConfig = File_mycel_furnace_v1_epoch_burn_config_proto.Messages().ByName("EpochBurnConfig") fd_EpochBurnConfig_epoch_identifier = md_EpochBurnConfig.Fields().ByName("epoch_identifier") fd_EpochBurnConfig_current_burn_amount_index = md_EpochBurnConfig.Fields().ByName("current_burn_amount_index") fd_EpochBurnConfig_default_total_epochs = md_EpochBurnConfig.Fields().ByName("default_total_epochs") @@ -40,7 +40,7 @@ func (x *EpochBurnConfig) ProtoReflect() protoreflect.Message { } func (x *EpochBurnConfig) slowProtoReflect() protoreflect.Message { - mi := &file_mycel_furnace_v1beta1_epoch_burn_config_proto_msgTypes[0] + mi := &file_mycel_furnace_v1_epoch_burn_config_proto_msgTypes[0] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -135,19 +135,19 @@ func (x *fastReflection_EpochBurnConfig) Range(f func(protoreflect.FieldDescript // a repeated field is populated if it is non-empty. func (x *fastReflection_EpochBurnConfig) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "mycel.furnace.v1beta1.EpochBurnConfig.epoch_identifier": + case "mycel.furnace.v1.EpochBurnConfig.epoch_identifier": return x.EpochIdentifier != "" - case "mycel.furnace.v1beta1.EpochBurnConfig.current_burn_amount_index": + case "mycel.furnace.v1.EpochBurnConfig.current_burn_amount_index": return x.CurrentBurnAmountIndex != uint64(0) - case "mycel.furnace.v1beta1.EpochBurnConfig.default_total_epochs": + case "mycel.furnace.v1.EpochBurnConfig.default_total_epochs": return x.DefaultTotalEpochs != uint64(0) - case "mycel.furnace.v1beta1.EpochBurnConfig.start_time": + case "mycel.furnace.v1.EpochBurnConfig.start_time": return x.StartTime != nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.furnace.v1beta1.EpochBurnConfig")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.furnace.v1.EpochBurnConfig")) } - panic(fmt.Errorf("message mycel.furnace.v1beta1.EpochBurnConfig does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.furnace.v1.EpochBurnConfig does not contain field %s", fd.FullName())) } } @@ -159,19 +159,19 @@ func (x *fastReflection_EpochBurnConfig) Has(fd protoreflect.FieldDescriptor) bo // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_EpochBurnConfig) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "mycel.furnace.v1beta1.EpochBurnConfig.epoch_identifier": + case "mycel.furnace.v1.EpochBurnConfig.epoch_identifier": x.EpochIdentifier = "" - case "mycel.furnace.v1beta1.EpochBurnConfig.current_burn_amount_index": + case "mycel.furnace.v1.EpochBurnConfig.current_burn_amount_index": x.CurrentBurnAmountIndex = uint64(0) - case "mycel.furnace.v1beta1.EpochBurnConfig.default_total_epochs": + case "mycel.furnace.v1.EpochBurnConfig.default_total_epochs": x.DefaultTotalEpochs = uint64(0) - case "mycel.furnace.v1beta1.EpochBurnConfig.start_time": + case "mycel.furnace.v1.EpochBurnConfig.start_time": x.StartTime = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.furnace.v1beta1.EpochBurnConfig")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.furnace.v1.EpochBurnConfig")) } - panic(fmt.Errorf("message mycel.furnace.v1beta1.EpochBurnConfig does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.furnace.v1.EpochBurnConfig does not contain field %s", fd.FullName())) } } @@ -183,23 +183,23 @@ func (x *fastReflection_EpochBurnConfig) Clear(fd protoreflect.FieldDescriptor) // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_EpochBurnConfig) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "mycel.furnace.v1beta1.EpochBurnConfig.epoch_identifier": + case "mycel.furnace.v1.EpochBurnConfig.epoch_identifier": value := x.EpochIdentifier return protoreflect.ValueOfString(value) - case "mycel.furnace.v1beta1.EpochBurnConfig.current_burn_amount_index": + case "mycel.furnace.v1.EpochBurnConfig.current_burn_amount_index": value := x.CurrentBurnAmountIndex return protoreflect.ValueOfUint64(value) - case "mycel.furnace.v1beta1.EpochBurnConfig.default_total_epochs": + case "mycel.furnace.v1.EpochBurnConfig.default_total_epochs": value := x.DefaultTotalEpochs return protoreflect.ValueOfUint64(value) - case "mycel.furnace.v1beta1.EpochBurnConfig.start_time": + case "mycel.furnace.v1.EpochBurnConfig.start_time": value := x.StartTime return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.furnace.v1beta1.EpochBurnConfig")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.furnace.v1.EpochBurnConfig")) } - panic(fmt.Errorf("message mycel.furnace.v1beta1.EpochBurnConfig does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message mycel.furnace.v1.EpochBurnConfig does not contain field %s", descriptor.FullName())) } } @@ -215,19 +215,19 @@ func (x *fastReflection_EpochBurnConfig) Get(descriptor protoreflect.FieldDescri // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_EpochBurnConfig) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "mycel.furnace.v1beta1.EpochBurnConfig.epoch_identifier": + case "mycel.furnace.v1.EpochBurnConfig.epoch_identifier": x.EpochIdentifier = value.Interface().(string) - case "mycel.furnace.v1beta1.EpochBurnConfig.current_burn_amount_index": + case "mycel.furnace.v1.EpochBurnConfig.current_burn_amount_index": x.CurrentBurnAmountIndex = value.Uint() - case "mycel.furnace.v1beta1.EpochBurnConfig.default_total_epochs": + case "mycel.furnace.v1.EpochBurnConfig.default_total_epochs": x.DefaultTotalEpochs = value.Uint() - case "mycel.furnace.v1beta1.EpochBurnConfig.start_time": + case "mycel.furnace.v1.EpochBurnConfig.start_time": x.StartTime = value.Message().Interface().(*timestamppb.Timestamp) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.furnace.v1beta1.EpochBurnConfig")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.furnace.v1.EpochBurnConfig")) } - panic(fmt.Errorf("message mycel.furnace.v1beta1.EpochBurnConfig does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.furnace.v1.EpochBurnConfig does not contain field %s", fd.FullName())) } } @@ -243,22 +243,22 @@ func (x *fastReflection_EpochBurnConfig) Set(fd protoreflect.FieldDescriptor, va // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_EpochBurnConfig) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "mycel.furnace.v1beta1.EpochBurnConfig.start_time": + case "mycel.furnace.v1.EpochBurnConfig.start_time": if x.StartTime == nil { x.StartTime = new(timestamppb.Timestamp) } return protoreflect.ValueOfMessage(x.StartTime.ProtoReflect()) - case "mycel.furnace.v1beta1.EpochBurnConfig.epoch_identifier": - panic(fmt.Errorf("field epoch_identifier of message mycel.furnace.v1beta1.EpochBurnConfig is not mutable")) - case "mycel.furnace.v1beta1.EpochBurnConfig.current_burn_amount_index": - panic(fmt.Errorf("field current_burn_amount_index of message mycel.furnace.v1beta1.EpochBurnConfig is not mutable")) - case "mycel.furnace.v1beta1.EpochBurnConfig.default_total_epochs": - panic(fmt.Errorf("field default_total_epochs of message mycel.furnace.v1beta1.EpochBurnConfig is not mutable")) + case "mycel.furnace.v1.EpochBurnConfig.epoch_identifier": + panic(fmt.Errorf("field epoch_identifier of message mycel.furnace.v1.EpochBurnConfig is not mutable")) + case "mycel.furnace.v1.EpochBurnConfig.current_burn_amount_index": + panic(fmt.Errorf("field current_burn_amount_index of message mycel.furnace.v1.EpochBurnConfig is not mutable")) + case "mycel.furnace.v1.EpochBurnConfig.default_total_epochs": + panic(fmt.Errorf("field default_total_epochs of message mycel.furnace.v1.EpochBurnConfig is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.furnace.v1beta1.EpochBurnConfig")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.furnace.v1.EpochBurnConfig")) } - panic(fmt.Errorf("message mycel.furnace.v1beta1.EpochBurnConfig does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.furnace.v1.EpochBurnConfig does not contain field %s", fd.FullName())) } } @@ -267,20 +267,20 @@ func (x *fastReflection_EpochBurnConfig) Mutable(fd protoreflect.FieldDescriptor // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_EpochBurnConfig) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "mycel.furnace.v1beta1.EpochBurnConfig.epoch_identifier": + case "mycel.furnace.v1.EpochBurnConfig.epoch_identifier": return protoreflect.ValueOfString("") - case "mycel.furnace.v1beta1.EpochBurnConfig.current_burn_amount_index": + case "mycel.furnace.v1.EpochBurnConfig.current_burn_amount_index": return protoreflect.ValueOfUint64(uint64(0)) - case "mycel.furnace.v1beta1.EpochBurnConfig.default_total_epochs": + case "mycel.furnace.v1.EpochBurnConfig.default_total_epochs": return protoreflect.ValueOfUint64(uint64(0)) - case "mycel.furnace.v1beta1.EpochBurnConfig.start_time": + case "mycel.furnace.v1.EpochBurnConfig.start_time": m := new(timestamppb.Timestamp) return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.furnace.v1beta1.EpochBurnConfig")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.furnace.v1.EpochBurnConfig")) } - panic(fmt.Errorf("message mycel.furnace.v1beta1.EpochBurnConfig does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.furnace.v1.EpochBurnConfig does not contain field %s", fd.FullName())) } } @@ -290,7 +290,7 @@ func (x *fastReflection_EpochBurnConfig) NewField(fd protoreflect.FieldDescripto func (x *fastReflection_EpochBurnConfig) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in mycel.furnace.v1beta1.EpochBurnConfig", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in mycel.furnace.v1.EpochBurnConfig", d.FullName())) } panic("unreachable") } @@ -613,7 +613,7 @@ func (x *fastReflection_EpochBurnConfig) ProtoMethods() *protoiface.Methods { // versions: // protoc-gen-go v1.27.0 // protoc (unknown) -// source: mycel/furnace/v1beta1/epoch_burn_config.proto +// source: mycel/furnace/v1/epoch_burn_config.proto const ( // Verify that this generated code is sufficiently up-to-date. @@ -636,7 +636,7 @@ type EpochBurnConfig struct { func (x *EpochBurnConfig) Reset() { *x = EpochBurnConfig{} if protoimpl.UnsafeEnabled { - mi := &file_mycel_furnace_v1beta1_epoch_burn_config_proto_msgTypes[0] + mi := &file_mycel_furnace_v1_epoch_burn_config_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -650,7 +650,7 @@ func (*EpochBurnConfig) ProtoMessage() {} // Deprecated: Use EpochBurnConfig.ProtoReflect.Descriptor instead. func (*EpochBurnConfig) Descriptor() ([]byte, []int) { - return file_mycel_furnace_v1beta1_epoch_burn_config_proto_rawDescGZIP(), []int{0} + return file_mycel_furnace_v1_epoch_burn_config_proto_rawDescGZIP(), []int{0} } func (x *EpochBurnConfig) GetEpochIdentifier() string { @@ -681,69 +681,66 @@ func (x *EpochBurnConfig) GetStartTime() *timestamppb.Timestamp { return nil } -var File_mycel_furnace_v1beta1_epoch_burn_config_proto protoreflect.FileDescriptor - -var file_mycel_furnace_v1beta1_epoch_burn_config_proto_rawDesc = []byte{ - 0x0a, 0x2d, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2f, 0x66, 0x75, 0x72, 0x6e, 0x61, 0x63, 0x65, 0x2f, - 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x5f, 0x62, 0x75, - 0x72, 0x6e, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, - 0x15, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x66, 0x75, 0x72, 0x6e, 0x61, 0x63, 0x65, 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, 0x1f, 0x67, 0x6f, - 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, - 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x83, 0x02, - 0x0a, 0x0f, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x42, 0x75, 0x72, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, - 0x67, 0x12, 0x29, 0x0a, 0x10, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x5f, 0x69, 0x64, 0x65, 0x6e, 0x74, - 0x69, 0x66, 0x69, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x65, 0x70, 0x6f, - 0x63, 0x68, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x12, 0x39, 0x0a, 0x19, - 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x62, 0x75, 0x72, 0x6e, 0x5f, 0x61, 0x6d, 0x6f, - 0x75, 0x6e, 0x74, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, - 0x16, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x42, 0x75, 0x72, 0x6e, 0x41, 0x6d, 0x6f, 0x75, - 0x6e, 0x74, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x30, 0x0a, 0x14, 0x64, 0x65, 0x66, 0x61, 0x75, - 0x6c, 0x74, 0x5f, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x73, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x12, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x54, 0x6f, - 0x74, 0x61, 0x6c, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x73, 0x12, 0x58, 0x0a, 0x0a, 0x73, 0x74, 0x61, - 0x72, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, - 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x1d, 0xc8, 0xde, 0x1f, 0x00, 0xf2, - 0xde, 0x1f, 0x11, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x74, - 0x69, 0x6d, 0x65, 0x22, 0x90, 0xdf, 0x1f, 0x01, 0x52, 0x09, 0x73, 0x74, 0x61, 0x72, 0x74, 0x54, - 0x69, 0x6d, 0x65, 0x42, 0xd6, 0x01, 0x0a, 0x19, 0x63, 0x6f, 0x6d, 0x2e, 0x6d, 0x79, 0x63, 0x65, - 0x6c, 0x2e, 0x66, 0x75, 0x72, 0x6e, 0x61, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, - 0x31, 0x42, 0x14, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x42, 0x75, 0x72, 0x6e, 0x43, 0x6f, 0x6e, 0x66, - 0x69, 0x67, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2d, 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, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0xa2, 0x02, 0x03, 0x4d, 0x46, 0x58, 0xaa, 0x02, - 0x15, 0x4d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x46, 0x75, 0x72, 0x6e, 0x61, 0x63, 0x65, 0x2e, 0x56, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xca, 0x02, 0x15, 0x4d, 0x79, 0x63, 0x65, 0x6c, 0x5c, 0x46, - 0x75, 0x72, 0x6e, 0x61, 0x63, 0x65, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xe2, 0x02, - 0x21, 0x4d, 0x79, 0x63, 0x65, 0x6c, 0x5c, 0x46, 0x75, 0x72, 0x6e, 0x61, 0x63, 0x65, 0x5c, 0x56, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, - 0x74, 0x61, 0xea, 0x02, 0x17, 0x4d, 0x79, 0x63, 0x65, 0x6c, 0x3a, 0x3a, 0x46, 0x75, 0x72, 0x6e, - 0x61, 0x63, 0x65, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x33, +var File_mycel_furnace_v1_epoch_burn_config_proto protoreflect.FileDescriptor + +var file_mycel_furnace_v1_epoch_burn_config_proto_rawDesc = []byte{ + 0x0a, 0x28, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2f, 0x66, 0x75, 0x72, 0x6e, 0x61, 0x63, 0x65, 0x2f, + 0x76, 0x31, 0x2f, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x5f, 0x62, 0x75, 0x72, 0x6e, 0x5f, 0x63, 0x6f, + 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x10, 0x6d, 0x79, 0x63, 0x65, + 0x6c, 0x2e, 0x66, 0x75, 0x72, 0x6e, 0x61, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x1a, 0x14, 0x67, 0x6f, + 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x22, 0x83, 0x02, 0x0a, 0x0f, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x42, 0x75, 0x72, + 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x29, 0x0a, 0x10, 0x65, 0x70, 0x6f, 0x63, 0x68, + 0x5f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x0f, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, + 0x65, 0x72, 0x12, 0x39, 0x0a, 0x19, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x62, 0x75, + 0x72, 0x6e, 0x5f, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x16, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x42, 0x75, + 0x72, 0x6e, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x30, 0x0a, + 0x14, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x65, + 0x70, 0x6f, 0x63, 0x68, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x12, 0x64, 0x65, 0x66, + 0x61, 0x75, 0x6c, 0x74, 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x73, 0x12, + 0x58, 0x0a, 0x0a, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x04, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, + 0x1d, 0xc8, 0xde, 0x1f, 0x00, 0xf2, 0xde, 0x1f, 0x11, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x73, + 0x74, 0x61, 0x72, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x22, 0x90, 0xdf, 0x1f, 0x01, 0x52, 0x09, + 0x73, 0x74, 0x61, 0x72, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x42, 0xbb, 0x01, 0x0a, 0x14, 0x63, 0x6f, + 0x6d, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x66, 0x75, 0x72, 0x6e, 0x61, 0x63, 0x65, 0x2e, + 0x76, 0x31, 0x42, 0x14, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x42, 0x75, 0x72, 0x6e, 0x43, 0x6f, 0x6e, + 0x66, 0x69, 0x67, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2b, 0x63, 0x6f, 0x73, 0x6d, + 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x6d, 0x79, 0x63, + 0x65, 0x6c, 0x2f, 0x66, 0x75, 0x72, 0x6e, 0x61, 0x63, 0x65, 0x2f, 0x76, 0x31, 0x3b, 0x66, 0x75, + 0x72, 0x6e, 0x61, 0x63, 0x65, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x4d, 0x46, 0x58, 0xaa, 0x02, 0x10, + 0x4d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x46, 0x75, 0x72, 0x6e, 0x61, 0x63, 0x65, 0x2e, 0x56, 0x31, + 0xca, 0x02, 0x10, 0x4d, 0x79, 0x63, 0x65, 0x6c, 0x5c, 0x46, 0x75, 0x72, 0x6e, 0x61, 0x63, 0x65, + 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x1c, 0x4d, 0x79, 0x63, 0x65, 0x6c, 0x5c, 0x46, 0x75, 0x72, 0x6e, + 0x61, 0x63, 0x65, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, + 0x74, 0x61, 0xea, 0x02, 0x12, 0x4d, 0x79, 0x63, 0x65, 0x6c, 0x3a, 0x3a, 0x46, 0x75, 0x72, 0x6e, + 0x61, 0x63, 0x65, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( - file_mycel_furnace_v1beta1_epoch_burn_config_proto_rawDescOnce sync.Once - file_mycel_furnace_v1beta1_epoch_burn_config_proto_rawDescData = file_mycel_furnace_v1beta1_epoch_burn_config_proto_rawDesc + file_mycel_furnace_v1_epoch_burn_config_proto_rawDescOnce sync.Once + file_mycel_furnace_v1_epoch_burn_config_proto_rawDescData = file_mycel_furnace_v1_epoch_burn_config_proto_rawDesc ) -func file_mycel_furnace_v1beta1_epoch_burn_config_proto_rawDescGZIP() []byte { - file_mycel_furnace_v1beta1_epoch_burn_config_proto_rawDescOnce.Do(func() { - file_mycel_furnace_v1beta1_epoch_burn_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_mycel_furnace_v1beta1_epoch_burn_config_proto_rawDescData) +func file_mycel_furnace_v1_epoch_burn_config_proto_rawDescGZIP() []byte { + file_mycel_furnace_v1_epoch_burn_config_proto_rawDescOnce.Do(func() { + file_mycel_furnace_v1_epoch_burn_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_mycel_furnace_v1_epoch_burn_config_proto_rawDescData) }) - return file_mycel_furnace_v1beta1_epoch_burn_config_proto_rawDescData + return file_mycel_furnace_v1_epoch_burn_config_proto_rawDescData } -var file_mycel_furnace_v1beta1_epoch_burn_config_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_mycel_furnace_v1beta1_epoch_burn_config_proto_goTypes = []interface{}{ - (*EpochBurnConfig)(nil), // 0: mycel.furnace.v1beta1.EpochBurnConfig +var file_mycel_furnace_v1_epoch_burn_config_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_mycel_furnace_v1_epoch_burn_config_proto_goTypes = []interface{}{ + (*EpochBurnConfig)(nil), // 0: mycel.furnace.v1.EpochBurnConfig (*timestamppb.Timestamp)(nil), // 1: google.protobuf.Timestamp } -var file_mycel_furnace_v1beta1_epoch_burn_config_proto_depIdxs = []int32{ - 1, // 0: mycel.furnace.v1beta1.EpochBurnConfig.start_time:type_name -> google.protobuf.Timestamp +var file_mycel_furnace_v1_epoch_burn_config_proto_depIdxs = []int32{ + 1, // 0: mycel.furnace.v1.EpochBurnConfig.start_time:type_name -> google.protobuf.Timestamp 1, // [1:1] is the sub-list for method output_type 1, // [1:1] is the sub-list for method input_type 1, // [1:1] is the sub-list for extension type_name @@ -751,13 +748,13 @@ var file_mycel_furnace_v1beta1_epoch_burn_config_proto_depIdxs = []int32{ 0, // [0:1] is the sub-list for field type_name } -func init() { file_mycel_furnace_v1beta1_epoch_burn_config_proto_init() } -func file_mycel_furnace_v1beta1_epoch_burn_config_proto_init() { - if File_mycel_furnace_v1beta1_epoch_burn_config_proto != nil { +func init() { file_mycel_furnace_v1_epoch_burn_config_proto_init() } +func file_mycel_furnace_v1_epoch_burn_config_proto_init() { + if File_mycel_furnace_v1_epoch_burn_config_proto != nil { return } if !protoimpl.UnsafeEnabled { - file_mycel_furnace_v1beta1_epoch_burn_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_mycel_furnace_v1_epoch_burn_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*EpochBurnConfig); i { case 0: return &v.state @@ -774,18 +771,18 @@ func file_mycel_furnace_v1beta1_epoch_burn_config_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_mycel_furnace_v1beta1_epoch_burn_config_proto_rawDesc, + RawDescriptor: file_mycel_furnace_v1_epoch_burn_config_proto_rawDesc, NumEnums: 0, NumMessages: 1, NumExtensions: 0, NumServices: 0, }, - GoTypes: file_mycel_furnace_v1beta1_epoch_burn_config_proto_goTypes, - DependencyIndexes: file_mycel_furnace_v1beta1_epoch_burn_config_proto_depIdxs, - MessageInfos: file_mycel_furnace_v1beta1_epoch_burn_config_proto_msgTypes, + GoTypes: file_mycel_furnace_v1_epoch_burn_config_proto_goTypes, + DependencyIndexes: file_mycel_furnace_v1_epoch_burn_config_proto_depIdxs, + MessageInfos: file_mycel_furnace_v1_epoch_burn_config_proto_msgTypes, }.Build() - File_mycel_furnace_v1beta1_epoch_burn_config_proto = out.File - file_mycel_furnace_v1beta1_epoch_burn_config_proto_rawDesc = nil - file_mycel_furnace_v1beta1_epoch_burn_config_proto_goTypes = nil - file_mycel_furnace_v1beta1_epoch_burn_config_proto_depIdxs = nil + File_mycel_furnace_v1_epoch_burn_config_proto = out.File + file_mycel_furnace_v1_epoch_burn_config_proto_rawDesc = nil + file_mycel_furnace_v1_epoch_burn_config_proto_goTypes = nil + file_mycel_furnace_v1_epoch_burn_config_proto_depIdxs = nil } diff --git a/api/mycel/furnace/v1beta1/genesis.pulsar.go b/api/mycel/furnace/v1/genesis.pulsar.go similarity index 73% rename from api/mycel/furnace/v1beta1/genesis.pulsar.go rename to api/mycel/furnace/v1/genesis.pulsar.go index 3c195408..e9c077b0 100644 --- a/api/mycel/furnace/v1beta1/genesis.pulsar.go +++ b/api/mycel/furnace/v1/genesis.pulsar.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-go-pulsar. DO NOT EDIT. -package types +package furnacev1 import ( fmt "fmt" @@ -72,8 +72,8 @@ var ( ) func init() { - file_mycel_furnace_v1beta1_genesis_proto_init() - md_GenesisState = File_mycel_furnace_v1beta1_genesis_proto.Messages().ByName("GenesisState") + file_mycel_furnace_v1_genesis_proto_init() + md_GenesisState = File_mycel_furnace_v1_genesis_proto.Messages().ByName("GenesisState") fd_GenesisState_params = md_GenesisState.Fields().ByName("params") fd_GenesisState_epoch_burn_config = md_GenesisState.Fields().ByName("epoch_burn_config") fd_GenesisState_burn_amounts = md_GenesisState.Fields().ByName("burn_amounts") @@ -88,7 +88,7 @@ func (x *GenesisState) ProtoReflect() protoreflect.Message { } func (x *GenesisState) slowProtoReflect() protoreflect.Message { - mi := &file_mycel_furnace_v1beta1_genesis_proto_msgTypes[0] + mi := &file_mycel_furnace_v1_genesis_proto_msgTypes[0] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -177,17 +177,17 @@ func (x *fastReflection_GenesisState) Range(f func(protoreflect.FieldDescriptor, // a repeated field is populated if it is non-empty. func (x *fastReflection_GenesisState) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "mycel.furnace.v1beta1.GenesisState.params": + case "mycel.furnace.v1.GenesisState.params": return x.Params != nil - case "mycel.furnace.v1beta1.GenesisState.epoch_burn_config": + case "mycel.furnace.v1.GenesisState.epoch_burn_config": return x.EpochBurnConfig != nil - case "mycel.furnace.v1beta1.GenesisState.burn_amounts": + case "mycel.furnace.v1.GenesisState.burn_amounts": return len(x.BurnAmounts) != 0 default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.furnace.v1beta1.GenesisState")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.furnace.v1.GenesisState")) } - panic(fmt.Errorf("message mycel.furnace.v1beta1.GenesisState does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.furnace.v1.GenesisState does not contain field %s", fd.FullName())) } } @@ -199,17 +199,17 @@ func (x *fastReflection_GenesisState) Has(fd protoreflect.FieldDescriptor) bool // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_GenesisState) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "mycel.furnace.v1beta1.GenesisState.params": + case "mycel.furnace.v1.GenesisState.params": x.Params = nil - case "mycel.furnace.v1beta1.GenesisState.epoch_burn_config": + case "mycel.furnace.v1.GenesisState.epoch_burn_config": x.EpochBurnConfig = nil - case "mycel.furnace.v1beta1.GenesisState.burn_amounts": + case "mycel.furnace.v1.GenesisState.burn_amounts": x.BurnAmounts = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.furnace.v1beta1.GenesisState")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.furnace.v1.GenesisState")) } - panic(fmt.Errorf("message mycel.furnace.v1beta1.GenesisState does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.furnace.v1.GenesisState does not contain field %s", fd.FullName())) } } @@ -221,13 +221,13 @@ func (x *fastReflection_GenesisState) Clear(fd protoreflect.FieldDescriptor) { // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_GenesisState) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "mycel.furnace.v1beta1.GenesisState.params": + case "mycel.furnace.v1.GenesisState.params": value := x.Params return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "mycel.furnace.v1beta1.GenesisState.epoch_burn_config": + case "mycel.furnace.v1.GenesisState.epoch_burn_config": value := x.EpochBurnConfig return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "mycel.furnace.v1beta1.GenesisState.burn_amounts": + case "mycel.furnace.v1.GenesisState.burn_amounts": if len(x.BurnAmounts) == 0 { return protoreflect.ValueOfList(&_GenesisState_3_list{}) } @@ -235,9 +235,9 @@ func (x *fastReflection_GenesisState) Get(descriptor protoreflect.FieldDescripto return protoreflect.ValueOfList(listValue) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.furnace.v1beta1.GenesisState")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.furnace.v1.GenesisState")) } - panic(fmt.Errorf("message mycel.furnace.v1beta1.GenesisState does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message mycel.furnace.v1.GenesisState does not contain field %s", descriptor.FullName())) } } @@ -253,19 +253,19 @@ func (x *fastReflection_GenesisState) Get(descriptor protoreflect.FieldDescripto // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_GenesisState) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "mycel.furnace.v1beta1.GenesisState.params": + case "mycel.furnace.v1.GenesisState.params": x.Params = value.Message().Interface().(*Params) - case "mycel.furnace.v1beta1.GenesisState.epoch_burn_config": + case "mycel.furnace.v1.GenesisState.epoch_burn_config": x.EpochBurnConfig = value.Message().Interface().(*EpochBurnConfig) - case "mycel.furnace.v1beta1.GenesisState.burn_amounts": + case "mycel.furnace.v1.GenesisState.burn_amounts": lv := value.List() clv := lv.(*_GenesisState_3_list) x.BurnAmounts = *clv.list default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.furnace.v1beta1.GenesisState")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.furnace.v1.GenesisState")) } - panic(fmt.Errorf("message mycel.furnace.v1beta1.GenesisState does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.furnace.v1.GenesisState does not contain field %s", fd.FullName())) } } @@ -281,17 +281,17 @@ func (x *fastReflection_GenesisState) Set(fd protoreflect.FieldDescriptor, value // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_GenesisState) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "mycel.furnace.v1beta1.GenesisState.params": + case "mycel.furnace.v1.GenesisState.params": if x.Params == nil { x.Params = new(Params) } return protoreflect.ValueOfMessage(x.Params.ProtoReflect()) - case "mycel.furnace.v1beta1.GenesisState.epoch_burn_config": + case "mycel.furnace.v1.GenesisState.epoch_burn_config": if x.EpochBurnConfig == nil { x.EpochBurnConfig = new(EpochBurnConfig) } return protoreflect.ValueOfMessage(x.EpochBurnConfig.ProtoReflect()) - case "mycel.furnace.v1beta1.GenesisState.burn_amounts": + case "mycel.furnace.v1.GenesisState.burn_amounts": if x.BurnAmounts == nil { x.BurnAmounts = []*BurnAmount{} } @@ -299,9 +299,9 @@ func (x *fastReflection_GenesisState) Mutable(fd protoreflect.FieldDescriptor) p return protoreflect.ValueOfList(value) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.furnace.v1beta1.GenesisState")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.furnace.v1.GenesisState")) } - panic(fmt.Errorf("message mycel.furnace.v1beta1.GenesisState does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.furnace.v1.GenesisState does not contain field %s", fd.FullName())) } } @@ -310,20 +310,20 @@ func (x *fastReflection_GenesisState) Mutable(fd protoreflect.FieldDescriptor) p // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_GenesisState) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "mycel.furnace.v1beta1.GenesisState.params": + case "mycel.furnace.v1.GenesisState.params": m := new(Params) return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "mycel.furnace.v1beta1.GenesisState.epoch_burn_config": + case "mycel.furnace.v1.GenesisState.epoch_burn_config": m := new(EpochBurnConfig) return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "mycel.furnace.v1beta1.GenesisState.burn_amounts": + case "mycel.furnace.v1.GenesisState.burn_amounts": list := []*BurnAmount{} return protoreflect.ValueOfList(&_GenesisState_3_list{list: &list}) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.furnace.v1beta1.GenesisState")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.furnace.v1.GenesisState")) } - panic(fmt.Errorf("message mycel.furnace.v1beta1.GenesisState does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.furnace.v1.GenesisState does not contain field %s", fd.FullName())) } } @@ -333,7 +333,7 @@ func (x *fastReflection_GenesisState) NewField(fd protoreflect.FieldDescriptor) func (x *fastReflection_GenesisState) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in mycel.furnace.v1beta1.GenesisState", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in mycel.furnace.v1.GenesisState", d.FullName())) } panic("unreachable") } @@ -669,7 +669,7 @@ func (x *fastReflection_GenesisState) ProtoMethods() *protoiface.Methods { // versions: // protoc-gen-go v1.27.0 // protoc (unknown) -// source: mycel/furnace/v1beta1/genesis.proto +// source: mycel/furnace/v1/genesis.proto const ( // Verify that this generated code is sufficiently up-to-date. @@ -692,7 +692,7 @@ type GenesisState struct { func (x *GenesisState) Reset() { *x = GenesisState{} if protoimpl.UnsafeEnabled { - mi := &file_mycel_furnace_v1beta1_genesis_proto_msgTypes[0] + mi := &file_mycel_furnace_v1_genesis_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -706,7 +706,7 @@ func (*GenesisState) ProtoMessage() {} // Deprecated: Use GenesisState.ProtoReflect.Descriptor instead. func (*GenesisState) Descriptor() ([]byte, []int) { - return file_mycel_furnace_v1beta1_genesis_proto_rawDescGZIP(), []int{0} + return file_mycel_furnace_v1_genesis_proto_rawDescGZIP(), []int{0} } func (x *GenesisState) GetParams() *Params { @@ -730,76 +730,72 @@ func (x *GenesisState) GetBurnAmounts() []*BurnAmount { return nil } -var File_mycel_furnace_v1beta1_genesis_proto protoreflect.FileDescriptor - -var file_mycel_furnace_v1beta1_genesis_proto_rawDesc = []byte{ - 0x0a, 0x23, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2f, 0x66, 0x75, 0x72, 0x6e, 0x61, 0x63, 0x65, 0x2f, - 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x67, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x15, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x66, 0x75, 0x72, - 0x6e, 0x61, 0x63, 0x65, 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, 0x27, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2f, 0x66, 0x75, 0x72, 0x6e, 0x61, 0x63, - 0x65, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x62, 0x75, 0x72, 0x6e, 0x5f, 0x61, - 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2d, 0x6d, 0x79, 0x63, - 0x65, 0x6c, 0x2f, 0x66, 0x75, 0x72, 0x6e, 0x61, 0x63, 0x65, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, - 0x61, 0x31, 0x2f, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x5f, 0x62, 0x75, 0x72, 0x6e, 0x5f, 0x63, 0x6f, - 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x22, 0x6d, 0x79, 0x63, 0x65, - 0x6c, 0x2f, 0x66, 0x75, 0x72, 0x6e, 0x61, 0x63, 0x65, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, - 0x31, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xf1, - 0x01, 0x0a, 0x0c, 0x47, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, - 0x3b, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x1d, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x66, 0x75, 0x72, 0x6e, 0x61, 0x63, 0x65, 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, 0x12, 0x58, 0x0a, 0x11, - 0x65, 0x70, 0x6f, 0x63, 0x68, 0x5f, 0x62, 0x75, 0x72, 0x6e, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, - 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, - 0x66, 0x75, 0x72, 0x6e, 0x61, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, - 0x45, 0x70, 0x6f, 0x63, 0x68, 0x42, 0x75, 0x72, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x42, - 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0f, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x42, 0x75, 0x72, 0x6e, - 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x4a, 0x0a, 0x0c, 0x62, 0x75, 0x72, 0x6e, 0x5f, 0x61, - 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x6d, - 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x66, 0x75, 0x72, 0x6e, 0x61, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x62, - 0x65, 0x74, 0x61, 0x31, 0x2e, 0x42, 0x75, 0x72, 0x6e, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x42, - 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0b, 0x62, 0x75, 0x72, 0x6e, 0x41, 0x6d, 0x6f, 0x75, 0x6e, - 0x74, 0x73, 0x42, 0xce, 0x01, 0x0a, 0x19, 0x63, 0x6f, 0x6d, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, - 0x2e, 0x66, 0x75, 0x72, 0x6e, 0x61, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, - 0x42, 0x0c, 0x47, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, - 0x5a, 0x2d, 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, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0xa2, - 0x02, 0x03, 0x4d, 0x46, 0x58, 0xaa, 0x02, 0x15, 0x4d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x46, 0x75, - 0x72, 0x6e, 0x61, 0x63, 0x65, 0x2e, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xca, 0x02, 0x15, - 0x4d, 0x79, 0x63, 0x65, 0x6c, 0x5c, 0x46, 0x75, 0x72, 0x6e, 0x61, 0x63, 0x65, 0x5c, 0x56, 0x31, - 0x62, 0x65, 0x74, 0x61, 0x31, 0xe2, 0x02, 0x21, 0x4d, 0x79, 0x63, 0x65, 0x6c, 0x5c, 0x46, 0x75, - 0x72, 0x6e, 0x61, 0x63, 0x65, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x5c, 0x47, 0x50, - 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x17, 0x4d, 0x79, 0x63, 0x65, - 0x6c, 0x3a, 0x3a, 0x46, 0x75, 0x72, 0x6e, 0x61, 0x63, 0x65, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x65, - 0x74, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +var File_mycel_furnace_v1_genesis_proto protoreflect.FileDescriptor + +var file_mycel_furnace_v1_genesis_proto_rawDesc = []byte{ + 0x0a, 0x1e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2f, 0x66, 0x75, 0x72, 0x6e, 0x61, 0x63, 0x65, 0x2f, + 0x76, 0x31, 0x2f, 0x67, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x12, 0x10, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x66, 0x75, 0x72, 0x6e, 0x61, 0x63, 0x65, 0x2e, + 0x76, 0x31, 0x1a, 0x14, 0x67, 0x6f, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, + 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x22, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2f, + 0x66, 0x75, 0x72, 0x6e, 0x61, 0x63, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x62, 0x75, 0x72, 0x6e, 0x5f, + 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x28, 0x6d, 0x79, + 0x63, 0x65, 0x6c, 0x2f, 0x66, 0x75, 0x72, 0x6e, 0x61, 0x63, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x65, + 0x70, 0x6f, 0x63, 0x68, 0x5f, 0x62, 0x75, 0x72, 0x6e, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2f, 0x66, 0x75, + 0x72, 0x6e, 0x61, 0x63, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xe2, 0x01, 0x0a, 0x0c, 0x47, 0x65, 0x6e, 0x65, 0x73, 0x69, + 0x73, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x36, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x66, + 0x75, 0x72, 0x6e, 0x61, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, + 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x53, + 0x0a, 0x11, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x5f, 0x62, 0x75, 0x72, 0x6e, 0x5f, 0x63, 0x6f, 0x6e, + 0x66, 0x69, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x6d, 0x79, 0x63, 0x65, + 0x6c, 0x2e, 0x66, 0x75, 0x72, 0x6e, 0x61, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x70, 0x6f, + 0x63, 0x68, 0x42, 0x75, 0x72, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x42, 0x04, 0xc8, 0xde, + 0x1f, 0x00, 0x52, 0x0f, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x42, 0x75, 0x72, 0x6e, 0x43, 0x6f, 0x6e, + 0x66, 0x69, 0x67, 0x12, 0x45, 0x0a, 0x0c, 0x62, 0x75, 0x72, 0x6e, 0x5f, 0x61, 0x6d, 0x6f, 0x75, + 0x6e, 0x74, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x6d, 0x79, 0x63, 0x65, + 0x6c, 0x2e, 0x66, 0x75, 0x72, 0x6e, 0x61, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x75, 0x72, + 0x6e, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0b, 0x62, + 0x75, 0x72, 0x6e, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x42, 0xb3, 0x01, 0x0a, 0x14, 0x63, + 0x6f, 0x6d, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x66, 0x75, 0x72, 0x6e, 0x61, 0x63, 0x65, + 0x2e, 0x76, 0x31, 0x42, 0x0c, 0x47, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x50, 0x72, 0x6f, 0x74, + 0x6f, 0x50, 0x01, 0x5a, 0x2b, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, + 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2f, 0x66, 0x75, 0x72, 0x6e, + 0x61, 0x63, 0x65, 0x2f, 0x76, 0x31, 0x3b, 0x66, 0x75, 0x72, 0x6e, 0x61, 0x63, 0x65, 0x76, 0x31, + 0xa2, 0x02, 0x03, 0x4d, 0x46, 0x58, 0xaa, 0x02, 0x10, 0x4d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x46, + 0x75, 0x72, 0x6e, 0x61, 0x63, 0x65, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x10, 0x4d, 0x79, 0x63, 0x65, + 0x6c, 0x5c, 0x46, 0x75, 0x72, 0x6e, 0x61, 0x63, 0x65, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x1c, 0x4d, + 0x79, 0x63, 0x65, 0x6c, 0x5c, 0x46, 0x75, 0x72, 0x6e, 0x61, 0x63, 0x65, 0x5c, 0x56, 0x31, 0x5c, + 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x12, 0x4d, 0x79, + 0x63, 0x65, 0x6c, 0x3a, 0x3a, 0x46, 0x75, 0x72, 0x6e, 0x61, 0x63, 0x65, 0x3a, 0x3a, 0x56, 0x31, + 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( - file_mycel_furnace_v1beta1_genesis_proto_rawDescOnce sync.Once - file_mycel_furnace_v1beta1_genesis_proto_rawDescData = file_mycel_furnace_v1beta1_genesis_proto_rawDesc + file_mycel_furnace_v1_genesis_proto_rawDescOnce sync.Once + file_mycel_furnace_v1_genesis_proto_rawDescData = file_mycel_furnace_v1_genesis_proto_rawDesc ) -func file_mycel_furnace_v1beta1_genesis_proto_rawDescGZIP() []byte { - file_mycel_furnace_v1beta1_genesis_proto_rawDescOnce.Do(func() { - file_mycel_furnace_v1beta1_genesis_proto_rawDescData = protoimpl.X.CompressGZIP(file_mycel_furnace_v1beta1_genesis_proto_rawDescData) +func file_mycel_furnace_v1_genesis_proto_rawDescGZIP() []byte { + file_mycel_furnace_v1_genesis_proto_rawDescOnce.Do(func() { + file_mycel_furnace_v1_genesis_proto_rawDescData = protoimpl.X.CompressGZIP(file_mycel_furnace_v1_genesis_proto_rawDescData) }) - return file_mycel_furnace_v1beta1_genesis_proto_rawDescData + return file_mycel_furnace_v1_genesis_proto_rawDescData } -var file_mycel_furnace_v1beta1_genesis_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_mycel_furnace_v1beta1_genesis_proto_goTypes = []interface{}{ - (*GenesisState)(nil), // 0: mycel.furnace.v1beta1.GenesisState - (*Params)(nil), // 1: mycel.furnace.v1beta1.Params - (*EpochBurnConfig)(nil), // 2: mycel.furnace.v1beta1.EpochBurnConfig - (*BurnAmount)(nil), // 3: mycel.furnace.v1beta1.BurnAmount +var file_mycel_furnace_v1_genesis_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_mycel_furnace_v1_genesis_proto_goTypes = []interface{}{ + (*GenesisState)(nil), // 0: mycel.furnace.v1.GenesisState + (*Params)(nil), // 1: mycel.furnace.v1.Params + (*EpochBurnConfig)(nil), // 2: mycel.furnace.v1.EpochBurnConfig + (*BurnAmount)(nil), // 3: mycel.furnace.v1.BurnAmount } -var file_mycel_furnace_v1beta1_genesis_proto_depIdxs = []int32{ - 1, // 0: mycel.furnace.v1beta1.GenesisState.params:type_name -> mycel.furnace.v1beta1.Params - 2, // 1: mycel.furnace.v1beta1.GenesisState.epoch_burn_config:type_name -> mycel.furnace.v1beta1.EpochBurnConfig - 3, // 2: mycel.furnace.v1beta1.GenesisState.burn_amounts:type_name -> mycel.furnace.v1beta1.BurnAmount +var file_mycel_furnace_v1_genesis_proto_depIdxs = []int32{ + 1, // 0: mycel.furnace.v1.GenesisState.params:type_name -> mycel.furnace.v1.Params + 2, // 1: mycel.furnace.v1.GenesisState.epoch_burn_config:type_name -> mycel.furnace.v1.EpochBurnConfig + 3, // 2: mycel.furnace.v1.GenesisState.burn_amounts:type_name -> mycel.furnace.v1.BurnAmount 3, // [3:3] is the sub-list for method output_type 3, // [3:3] is the sub-list for method input_type 3, // [3:3] is the sub-list for extension type_name @@ -807,16 +803,16 @@ var file_mycel_furnace_v1beta1_genesis_proto_depIdxs = []int32{ 0, // [0:3] is the sub-list for field type_name } -func init() { file_mycel_furnace_v1beta1_genesis_proto_init() } -func file_mycel_furnace_v1beta1_genesis_proto_init() { - if File_mycel_furnace_v1beta1_genesis_proto != nil { +func init() { file_mycel_furnace_v1_genesis_proto_init() } +func file_mycel_furnace_v1_genesis_proto_init() { + if File_mycel_furnace_v1_genesis_proto != nil { return } - file_mycel_furnace_v1beta1_burn_amount_proto_init() - file_mycel_furnace_v1beta1_epoch_burn_config_proto_init() - file_mycel_furnace_v1beta1_params_proto_init() + file_mycel_furnace_v1_burn_amount_proto_init() + file_mycel_furnace_v1_epoch_burn_config_proto_init() + file_mycel_furnace_v1_params_proto_init() if !protoimpl.UnsafeEnabled { - file_mycel_furnace_v1beta1_genesis_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_mycel_furnace_v1_genesis_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*GenesisState); i { case 0: return &v.state @@ -833,18 +829,18 @@ func file_mycel_furnace_v1beta1_genesis_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_mycel_furnace_v1beta1_genesis_proto_rawDesc, + RawDescriptor: file_mycel_furnace_v1_genesis_proto_rawDesc, NumEnums: 0, NumMessages: 1, NumExtensions: 0, NumServices: 0, }, - GoTypes: file_mycel_furnace_v1beta1_genesis_proto_goTypes, - DependencyIndexes: file_mycel_furnace_v1beta1_genesis_proto_depIdxs, - MessageInfos: file_mycel_furnace_v1beta1_genesis_proto_msgTypes, + GoTypes: file_mycel_furnace_v1_genesis_proto_goTypes, + DependencyIndexes: file_mycel_furnace_v1_genesis_proto_depIdxs, + MessageInfos: file_mycel_furnace_v1_genesis_proto_msgTypes, }.Build() - File_mycel_furnace_v1beta1_genesis_proto = out.File - file_mycel_furnace_v1beta1_genesis_proto_rawDesc = nil - file_mycel_furnace_v1beta1_genesis_proto_goTypes = nil - file_mycel_furnace_v1beta1_genesis_proto_depIdxs = nil + File_mycel_furnace_v1_genesis_proto = out.File + file_mycel_furnace_v1_genesis_proto_rawDesc = nil + file_mycel_furnace_v1_genesis_proto_goTypes = nil + file_mycel_furnace_v1_genesis_proto_depIdxs = nil } diff --git a/api/mycel/furnace/v1beta1/params.pulsar.go b/api/mycel/furnace/v1/params.pulsar.go similarity index 74% rename from api/mycel/furnace/v1beta1/params.pulsar.go rename to api/mycel/furnace/v1/params.pulsar.go index 75ceaed4..fc90a2d0 100644 --- a/api/mycel/furnace/v1beta1/params.pulsar.go +++ b/api/mycel/furnace/v1/params.pulsar.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-go-pulsar. DO NOT EDIT. -package types +package furnacev1 import ( fmt "fmt" @@ -18,8 +18,8 @@ var ( ) func init() { - file_mycel_furnace_v1beta1_params_proto_init() - md_Params = File_mycel_furnace_v1beta1_params_proto.Messages().ByName("Params") + file_mycel_furnace_v1_params_proto_init() + md_Params = File_mycel_furnace_v1_params_proto.Messages().ByName("Params") } var _ protoreflect.Message = (*fastReflection_Params)(nil) @@ -31,7 +31,7 @@ func (x *Params) ProtoReflect() protoreflect.Message { } func (x *Params) slowProtoReflect() protoreflect.Message { - mi := &file_mycel_furnace_v1beta1_params_proto_msgTypes[0] + mi := &file_mycel_furnace_v1_params_proto_msgTypes[0] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -104,9 +104,9 @@ func (x *fastReflection_Params) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.furnace.v1beta1.Params")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.furnace.v1.Params")) } - panic(fmt.Errorf("message mycel.furnace.v1beta1.Params does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.furnace.v1.Params does not contain field %s", fd.FullName())) } } @@ -120,9 +120,9 @@ func (x *fastReflection_Params) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.furnace.v1beta1.Params")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.furnace.v1.Params")) } - panic(fmt.Errorf("message mycel.furnace.v1beta1.Params does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.furnace.v1.Params does not contain field %s", fd.FullName())) } } @@ -136,9 +136,9 @@ func (x *fastReflection_Params) Get(descriptor protoreflect.FieldDescriptor) pro switch descriptor.FullName() { default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.furnace.v1beta1.Params")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.furnace.v1.Params")) } - panic(fmt.Errorf("message mycel.furnace.v1beta1.Params does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message mycel.furnace.v1.Params does not contain field %s", descriptor.FullName())) } } @@ -156,9 +156,9 @@ func (x *fastReflection_Params) Set(fd protoreflect.FieldDescriptor, value proto switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.furnace.v1beta1.Params")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.furnace.v1.Params")) } - panic(fmt.Errorf("message mycel.furnace.v1beta1.Params does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.furnace.v1.Params does not contain field %s", fd.FullName())) } } @@ -176,9 +176,9 @@ func (x *fastReflection_Params) Mutable(fd protoreflect.FieldDescriptor) protore switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.furnace.v1beta1.Params")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.furnace.v1.Params")) } - panic(fmt.Errorf("message mycel.furnace.v1beta1.Params does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.furnace.v1.Params does not contain field %s", fd.FullName())) } } @@ -189,9 +189,9 @@ func (x *fastReflection_Params) NewField(fd protoreflect.FieldDescriptor) protor switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.furnace.v1beta1.Params")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.furnace.v1.Params")) } - panic(fmt.Errorf("message mycel.furnace.v1beta1.Params does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.furnace.v1.Params does not contain field %s", fd.FullName())) } } @@ -201,7 +201,7 @@ func (x *fastReflection_Params) NewField(fd protoreflect.FieldDescriptor) protor func (x *fastReflection_Params) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in mycel.furnace.v1beta1.Params", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in mycel.furnace.v1.Params", d.FullName())) } panic("unreachable") } @@ -373,7 +373,7 @@ func (x *fastReflection_Params) ProtoMethods() *protoiface.Methods { // versions: // protoc-gen-go v1.27.0 // protoc (unknown) -// source: mycel/furnace/v1beta1/params.proto +// source: mycel/furnace/v1/params.proto const ( // Verify that this generated code is sufficiently up-to-date. @@ -392,7 +392,7 @@ type Params struct { func (x *Params) Reset() { *x = Params{} if protoimpl.UnsafeEnabled { - mi := &file_mycel_furnace_v1beta1_params_proto_msgTypes[0] + mi := &file_mycel_furnace_v1_params_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -406,51 +406,49 @@ func (*Params) ProtoMessage() {} // Deprecated: Use Params.ProtoReflect.Descriptor instead. func (*Params) Descriptor() ([]byte, []int) { - return file_mycel_furnace_v1beta1_params_proto_rawDescGZIP(), []int{0} + return file_mycel_furnace_v1_params_proto_rawDescGZIP(), []int{0} } -var File_mycel_furnace_v1beta1_params_proto protoreflect.FileDescriptor - -var file_mycel_furnace_v1beta1_params_proto_rawDesc = []byte{ - 0x0a, 0x22, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2f, 0x66, 0x75, 0x72, 0x6e, 0x61, 0x63, 0x65, 0x2f, - 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x15, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x66, 0x75, 0x72, 0x6e, - 0x61, 0x63, 0x65, 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, 0x22, 0x0e, 0x0a, 0x06, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x3a, 0x04, 0x98, 0xa0, 0x1f, - 0x00, 0x42, 0xcd, 0x01, 0x0a, 0x19, 0x63, 0x6f, 0x6d, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, - 0x66, 0x75, 0x72, 0x6e, 0x61, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x42, - 0x0b, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2d, - 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, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0xa2, 0x02, 0x03, - 0x4d, 0x46, 0x58, 0xaa, 0x02, 0x15, 0x4d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x46, 0x75, 0x72, 0x6e, - 0x61, 0x63, 0x65, 0x2e, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xca, 0x02, 0x15, 0x4d, 0x79, - 0x63, 0x65, 0x6c, 0x5c, 0x46, 0x75, 0x72, 0x6e, 0x61, 0x63, 0x65, 0x5c, 0x56, 0x31, 0x62, 0x65, - 0x74, 0x61, 0x31, 0xe2, 0x02, 0x21, 0x4d, 0x79, 0x63, 0x65, 0x6c, 0x5c, 0x46, 0x75, 0x72, 0x6e, - 0x61, 0x63, 0x65, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, - 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x17, 0x4d, 0x79, 0x63, 0x65, 0x6c, 0x3a, - 0x3a, 0x46, 0x75, 0x72, 0x6e, 0x61, 0x63, 0x65, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, - 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +var File_mycel_furnace_v1_params_proto protoreflect.FileDescriptor + +var file_mycel_furnace_v1_params_proto_rawDesc = []byte{ + 0x0a, 0x1d, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2f, 0x66, 0x75, 0x72, 0x6e, 0x61, 0x63, 0x65, 0x2f, + 0x76, 0x31, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, + 0x10, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x66, 0x75, 0x72, 0x6e, 0x61, 0x63, 0x65, 0x2e, 0x76, + 0x31, 0x1a, 0x14, 0x67, 0x6f, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, + 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x0e, 0x0a, 0x06, 0x50, 0x61, 0x72, 0x61, 0x6d, + 0x73, 0x3a, 0x04, 0x98, 0xa0, 0x1f, 0x00, 0x42, 0xb2, 0x01, 0x0a, 0x14, 0x63, 0x6f, 0x6d, 0x2e, + 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x66, 0x75, 0x72, 0x6e, 0x61, 0x63, 0x65, 0x2e, 0x76, 0x31, + 0x42, 0x0b, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, + 0x2b, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, + 0x69, 0x2f, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2f, 0x66, 0x75, 0x72, 0x6e, 0x61, 0x63, 0x65, 0x2f, + 0x76, 0x31, 0x3b, 0x66, 0x75, 0x72, 0x6e, 0x61, 0x63, 0x65, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x4d, + 0x46, 0x58, 0xaa, 0x02, 0x10, 0x4d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x46, 0x75, 0x72, 0x6e, 0x61, + 0x63, 0x65, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x10, 0x4d, 0x79, 0x63, 0x65, 0x6c, 0x5c, 0x46, 0x75, + 0x72, 0x6e, 0x61, 0x63, 0x65, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x1c, 0x4d, 0x79, 0x63, 0x65, 0x6c, + 0x5c, 0x46, 0x75, 0x72, 0x6e, 0x61, 0x63, 0x65, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, + 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x12, 0x4d, 0x79, 0x63, 0x65, 0x6c, 0x3a, + 0x3a, 0x46, 0x75, 0x72, 0x6e, 0x61, 0x63, 0x65, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x33, } var ( - file_mycel_furnace_v1beta1_params_proto_rawDescOnce sync.Once - file_mycel_furnace_v1beta1_params_proto_rawDescData = file_mycel_furnace_v1beta1_params_proto_rawDesc + file_mycel_furnace_v1_params_proto_rawDescOnce sync.Once + file_mycel_furnace_v1_params_proto_rawDescData = file_mycel_furnace_v1_params_proto_rawDesc ) -func file_mycel_furnace_v1beta1_params_proto_rawDescGZIP() []byte { - file_mycel_furnace_v1beta1_params_proto_rawDescOnce.Do(func() { - file_mycel_furnace_v1beta1_params_proto_rawDescData = protoimpl.X.CompressGZIP(file_mycel_furnace_v1beta1_params_proto_rawDescData) +func file_mycel_furnace_v1_params_proto_rawDescGZIP() []byte { + file_mycel_furnace_v1_params_proto_rawDescOnce.Do(func() { + file_mycel_furnace_v1_params_proto_rawDescData = protoimpl.X.CompressGZIP(file_mycel_furnace_v1_params_proto_rawDescData) }) - return file_mycel_furnace_v1beta1_params_proto_rawDescData + return file_mycel_furnace_v1_params_proto_rawDescData } -var file_mycel_furnace_v1beta1_params_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_mycel_furnace_v1beta1_params_proto_goTypes = []interface{}{ - (*Params)(nil), // 0: mycel.furnace.v1beta1.Params +var file_mycel_furnace_v1_params_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_mycel_furnace_v1_params_proto_goTypes = []interface{}{ + (*Params)(nil), // 0: mycel.furnace.v1.Params } -var file_mycel_furnace_v1beta1_params_proto_depIdxs = []int32{ +var file_mycel_furnace_v1_params_proto_depIdxs = []int32{ 0, // [0:0] is the sub-list for method output_type 0, // [0:0] is the sub-list for method input_type 0, // [0:0] is the sub-list for extension type_name @@ -458,13 +456,13 @@ var file_mycel_furnace_v1beta1_params_proto_depIdxs = []int32{ 0, // [0:0] is the sub-list for field type_name } -func init() { file_mycel_furnace_v1beta1_params_proto_init() } -func file_mycel_furnace_v1beta1_params_proto_init() { - if File_mycel_furnace_v1beta1_params_proto != nil { +func init() { file_mycel_furnace_v1_params_proto_init() } +func file_mycel_furnace_v1_params_proto_init() { + if File_mycel_furnace_v1_params_proto != nil { return } if !protoimpl.UnsafeEnabled { - file_mycel_furnace_v1beta1_params_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_mycel_furnace_v1_params_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Params); i { case 0: return &v.state @@ -481,18 +479,18 @@ func file_mycel_furnace_v1beta1_params_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_mycel_furnace_v1beta1_params_proto_rawDesc, + RawDescriptor: file_mycel_furnace_v1_params_proto_rawDesc, NumEnums: 0, NumMessages: 1, NumExtensions: 0, NumServices: 0, }, - GoTypes: file_mycel_furnace_v1beta1_params_proto_goTypes, - DependencyIndexes: file_mycel_furnace_v1beta1_params_proto_depIdxs, - MessageInfos: file_mycel_furnace_v1beta1_params_proto_msgTypes, + GoTypes: file_mycel_furnace_v1_params_proto_goTypes, + DependencyIndexes: file_mycel_furnace_v1_params_proto_depIdxs, + MessageInfos: file_mycel_furnace_v1_params_proto_msgTypes, }.Build() - File_mycel_furnace_v1beta1_params_proto = out.File - file_mycel_furnace_v1beta1_params_proto_rawDesc = nil - file_mycel_furnace_v1beta1_params_proto_goTypes = nil - file_mycel_furnace_v1beta1_params_proto_depIdxs = nil + File_mycel_furnace_v1_params_proto = out.File + file_mycel_furnace_v1_params_proto_rawDesc = nil + file_mycel_furnace_v1_params_proto_goTypes = nil + file_mycel_furnace_v1_params_proto_depIdxs = nil } diff --git a/api/mycel/furnace/v1beta1/query.pulsar.go b/api/mycel/furnace/v1/query.pulsar.go similarity index 81% rename from api/mycel/furnace/v1beta1/query.pulsar.go rename to api/mycel/furnace/v1/query.pulsar.go index e6be384c..d7e6fe1f 100644 --- a/api/mycel/furnace/v1beta1/query.pulsar.go +++ b/api/mycel/furnace/v1/query.pulsar.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-go-pulsar. DO NOT EDIT. -package types +package furnacev1 import ( v1beta1 "cosmossdk.io/api/cosmos/base/query/v1beta1" @@ -20,8 +20,8 @@ var ( ) func init() { - file_mycel_furnace_v1beta1_query_proto_init() - md_QueryParamsRequest = File_mycel_furnace_v1beta1_query_proto.Messages().ByName("QueryParamsRequest") + file_mycel_furnace_v1_query_proto_init() + md_QueryParamsRequest = File_mycel_furnace_v1_query_proto.Messages().ByName("QueryParamsRequest") } var _ protoreflect.Message = (*fastReflection_QueryParamsRequest)(nil) @@ -33,7 +33,7 @@ func (x *QueryParamsRequest) ProtoReflect() protoreflect.Message { } func (x *QueryParamsRequest) slowProtoReflect() protoreflect.Message { - mi := &file_mycel_furnace_v1beta1_query_proto_msgTypes[0] + mi := &file_mycel_furnace_v1_query_proto_msgTypes[0] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -106,9 +106,9 @@ func (x *fastReflection_QueryParamsRequest) Has(fd protoreflect.FieldDescriptor) switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.furnace.v1beta1.QueryParamsRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.furnace.v1.QueryParamsRequest")) } - panic(fmt.Errorf("message mycel.furnace.v1beta1.QueryParamsRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.furnace.v1.QueryParamsRequest does not contain field %s", fd.FullName())) } } @@ -122,9 +122,9 @@ func (x *fastReflection_QueryParamsRequest) Clear(fd protoreflect.FieldDescripto switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.furnace.v1beta1.QueryParamsRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.furnace.v1.QueryParamsRequest")) } - panic(fmt.Errorf("message mycel.furnace.v1beta1.QueryParamsRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.furnace.v1.QueryParamsRequest does not contain field %s", fd.FullName())) } } @@ -138,9 +138,9 @@ func (x *fastReflection_QueryParamsRequest) Get(descriptor protoreflect.FieldDes switch descriptor.FullName() { default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.furnace.v1beta1.QueryParamsRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.furnace.v1.QueryParamsRequest")) } - panic(fmt.Errorf("message mycel.furnace.v1beta1.QueryParamsRequest does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message mycel.furnace.v1.QueryParamsRequest does not contain field %s", descriptor.FullName())) } } @@ -158,9 +158,9 @@ func (x *fastReflection_QueryParamsRequest) Set(fd protoreflect.FieldDescriptor, switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.furnace.v1beta1.QueryParamsRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.furnace.v1.QueryParamsRequest")) } - panic(fmt.Errorf("message mycel.furnace.v1beta1.QueryParamsRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.furnace.v1.QueryParamsRequest does not contain field %s", fd.FullName())) } } @@ -178,9 +178,9 @@ func (x *fastReflection_QueryParamsRequest) Mutable(fd protoreflect.FieldDescrip switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.furnace.v1beta1.QueryParamsRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.furnace.v1.QueryParamsRequest")) } - panic(fmt.Errorf("message mycel.furnace.v1beta1.QueryParamsRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.furnace.v1.QueryParamsRequest does not contain field %s", fd.FullName())) } } @@ -191,9 +191,9 @@ func (x *fastReflection_QueryParamsRequest) NewField(fd protoreflect.FieldDescri switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.furnace.v1beta1.QueryParamsRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.furnace.v1.QueryParamsRequest")) } - panic(fmt.Errorf("message mycel.furnace.v1beta1.QueryParamsRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.furnace.v1.QueryParamsRequest does not contain field %s", fd.FullName())) } } @@ -203,7 +203,7 @@ func (x *fastReflection_QueryParamsRequest) NewField(fd protoreflect.FieldDescri func (x *fastReflection_QueryParamsRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in mycel.furnace.v1beta1.QueryParamsRequest", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in mycel.furnace.v1.QueryParamsRequest", d.FullName())) } panic("unreachable") } @@ -377,8 +377,8 @@ var ( ) func init() { - file_mycel_furnace_v1beta1_query_proto_init() - md_QueryParamsResponse = File_mycel_furnace_v1beta1_query_proto.Messages().ByName("QueryParamsResponse") + file_mycel_furnace_v1_query_proto_init() + md_QueryParamsResponse = File_mycel_furnace_v1_query_proto.Messages().ByName("QueryParamsResponse") fd_QueryParamsResponse_params = md_QueryParamsResponse.Fields().ByName("params") } @@ -391,7 +391,7 @@ func (x *QueryParamsResponse) ProtoReflect() protoreflect.Message { } func (x *QueryParamsResponse) slowProtoReflect() protoreflect.Message { - mi := &file_mycel_furnace_v1beta1_query_proto_msgTypes[1] + mi := &file_mycel_furnace_v1_query_proto_msgTypes[1] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -468,13 +468,13 @@ func (x *fastReflection_QueryParamsResponse) Range(f func(protoreflect.FieldDesc // a repeated field is populated if it is non-empty. func (x *fastReflection_QueryParamsResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "mycel.furnace.v1beta1.QueryParamsResponse.params": + case "mycel.furnace.v1.QueryParamsResponse.params": return x.Params != nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.furnace.v1beta1.QueryParamsResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.furnace.v1.QueryParamsResponse")) } - panic(fmt.Errorf("message mycel.furnace.v1beta1.QueryParamsResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.furnace.v1.QueryParamsResponse does not contain field %s", fd.FullName())) } } @@ -486,13 +486,13 @@ func (x *fastReflection_QueryParamsResponse) Has(fd protoreflect.FieldDescriptor // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_QueryParamsResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "mycel.furnace.v1beta1.QueryParamsResponse.params": + case "mycel.furnace.v1.QueryParamsResponse.params": x.Params = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.furnace.v1beta1.QueryParamsResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.furnace.v1.QueryParamsResponse")) } - panic(fmt.Errorf("message mycel.furnace.v1beta1.QueryParamsResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.furnace.v1.QueryParamsResponse does not contain field %s", fd.FullName())) } } @@ -504,14 +504,14 @@ func (x *fastReflection_QueryParamsResponse) Clear(fd protoreflect.FieldDescript // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_QueryParamsResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "mycel.furnace.v1beta1.QueryParamsResponse.params": + case "mycel.furnace.v1.QueryParamsResponse.params": value := x.Params return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.furnace.v1beta1.QueryParamsResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.furnace.v1.QueryParamsResponse")) } - panic(fmt.Errorf("message mycel.furnace.v1beta1.QueryParamsResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message mycel.furnace.v1.QueryParamsResponse does not contain field %s", descriptor.FullName())) } } @@ -527,13 +527,13 @@ func (x *fastReflection_QueryParamsResponse) Get(descriptor protoreflect.FieldDe // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_QueryParamsResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "mycel.furnace.v1beta1.QueryParamsResponse.params": + case "mycel.furnace.v1.QueryParamsResponse.params": x.Params = value.Message().Interface().(*Params) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.furnace.v1beta1.QueryParamsResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.furnace.v1.QueryParamsResponse")) } - panic(fmt.Errorf("message mycel.furnace.v1beta1.QueryParamsResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.furnace.v1.QueryParamsResponse does not contain field %s", fd.FullName())) } } @@ -549,16 +549,16 @@ func (x *fastReflection_QueryParamsResponse) Set(fd protoreflect.FieldDescriptor // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_QueryParamsResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "mycel.furnace.v1beta1.QueryParamsResponse.params": + case "mycel.furnace.v1.QueryParamsResponse.params": if x.Params == nil { x.Params = new(Params) } return protoreflect.ValueOfMessage(x.Params.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.furnace.v1beta1.QueryParamsResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.furnace.v1.QueryParamsResponse")) } - panic(fmt.Errorf("message mycel.furnace.v1beta1.QueryParamsResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.furnace.v1.QueryParamsResponse does not contain field %s", fd.FullName())) } } @@ -567,14 +567,14 @@ func (x *fastReflection_QueryParamsResponse) Mutable(fd protoreflect.FieldDescri // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_QueryParamsResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "mycel.furnace.v1beta1.QueryParamsResponse.params": + case "mycel.furnace.v1.QueryParamsResponse.params": m := new(Params) return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.furnace.v1beta1.QueryParamsResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.furnace.v1.QueryParamsResponse")) } - panic(fmt.Errorf("message mycel.furnace.v1beta1.QueryParamsResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.furnace.v1.QueryParamsResponse does not contain field %s", fd.FullName())) } } @@ -584,7 +584,7 @@ func (x *fastReflection_QueryParamsResponse) NewField(fd protoreflect.FieldDescr func (x *fastReflection_QueryParamsResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in mycel.furnace.v1beta1.QueryParamsResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in mycel.furnace.v1.QueryParamsResponse", d.FullName())) } panic("unreachable") } @@ -811,8 +811,8 @@ var ( ) func init() { - file_mycel_furnace_v1beta1_query_proto_init() - md_QueryGetEpochBurnConfigRequest = File_mycel_furnace_v1beta1_query_proto.Messages().ByName("QueryGetEpochBurnConfigRequest") + file_mycel_furnace_v1_query_proto_init() + md_QueryGetEpochBurnConfigRequest = File_mycel_furnace_v1_query_proto.Messages().ByName("QueryGetEpochBurnConfigRequest") } var _ protoreflect.Message = (*fastReflection_QueryGetEpochBurnConfigRequest)(nil) @@ -824,7 +824,7 @@ func (x *QueryGetEpochBurnConfigRequest) ProtoReflect() protoreflect.Message { } func (x *QueryGetEpochBurnConfigRequest) slowProtoReflect() protoreflect.Message { - mi := &file_mycel_furnace_v1beta1_query_proto_msgTypes[2] + mi := &file_mycel_furnace_v1_query_proto_msgTypes[2] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -897,9 +897,9 @@ func (x *fastReflection_QueryGetEpochBurnConfigRequest) Has(fd protoreflect.Fiel switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.furnace.v1beta1.QueryGetEpochBurnConfigRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.furnace.v1.QueryGetEpochBurnConfigRequest")) } - panic(fmt.Errorf("message mycel.furnace.v1beta1.QueryGetEpochBurnConfigRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.furnace.v1.QueryGetEpochBurnConfigRequest does not contain field %s", fd.FullName())) } } @@ -913,9 +913,9 @@ func (x *fastReflection_QueryGetEpochBurnConfigRequest) Clear(fd protoreflect.Fi switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.furnace.v1beta1.QueryGetEpochBurnConfigRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.furnace.v1.QueryGetEpochBurnConfigRequest")) } - panic(fmt.Errorf("message mycel.furnace.v1beta1.QueryGetEpochBurnConfigRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.furnace.v1.QueryGetEpochBurnConfigRequest does not contain field %s", fd.FullName())) } } @@ -929,9 +929,9 @@ func (x *fastReflection_QueryGetEpochBurnConfigRequest) Get(descriptor protorefl switch descriptor.FullName() { default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.furnace.v1beta1.QueryGetEpochBurnConfigRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.furnace.v1.QueryGetEpochBurnConfigRequest")) } - panic(fmt.Errorf("message mycel.furnace.v1beta1.QueryGetEpochBurnConfigRequest does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message mycel.furnace.v1.QueryGetEpochBurnConfigRequest does not contain field %s", descriptor.FullName())) } } @@ -949,9 +949,9 @@ func (x *fastReflection_QueryGetEpochBurnConfigRequest) Set(fd protoreflect.Fiel switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.furnace.v1beta1.QueryGetEpochBurnConfigRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.furnace.v1.QueryGetEpochBurnConfigRequest")) } - panic(fmt.Errorf("message mycel.furnace.v1beta1.QueryGetEpochBurnConfigRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.furnace.v1.QueryGetEpochBurnConfigRequest does not contain field %s", fd.FullName())) } } @@ -969,9 +969,9 @@ func (x *fastReflection_QueryGetEpochBurnConfigRequest) Mutable(fd protoreflect. switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.furnace.v1beta1.QueryGetEpochBurnConfigRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.furnace.v1.QueryGetEpochBurnConfigRequest")) } - panic(fmt.Errorf("message mycel.furnace.v1beta1.QueryGetEpochBurnConfigRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.furnace.v1.QueryGetEpochBurnConfigRequest does not contain field %s", fd.FullName())) } } @@ -982,9 +982,9 @@ func (x *fastReflection_QueryGetEpochBurnConfigRequest) NewField(fd protoreflect switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.furnace.v1beta1.QueryGetEpochBurnConfigRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.furnace.v1.QueryGetEpochBurnConfigRequest")) } - panic(fmt.Errorf("message mycel.furnace.v1beta1.QueryGetEpochBurnConfigRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.furnace.v1.QueryGetEpochBurnConfigRequest does not contain field %s", fd.FullName())) } } @@ -994,7 +994,7 @@ func (x *fastReflection_QueryGetEpochBurnConfigRequest) NewField(fd protoreflect func (x *fastReflection_QueryGetEpochBurnConfigRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in mycel.furnace.v1beta1.QueryGetEpochBurnConfigRequest", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in mycel.furnace.v1.QueryGetEpochBurnConfigRequest", d.FullName())) } panic("unreachable") } @@ -1168,8 +1168,8 @@ var ( ) func init() { - file_mycel_furnace_v1beta1_query_proto_init() - md_QueryGetEpochBurnConfigResponse = File_mycel_furnace_v1beta1_query_proto.Messages().ByName("QueryGetEpochBurnConfigResponse") + file_mycel_furnace_v1_query_proto_init() + md_QueryGetEpochBurnConfigResponse = File_mycel_furnace_v1_query_proto.Messages().ByName("QueryGetEpochBurnConfigResponse") fd_QueryGetEpochBurnConfigResponse_epoch_burn_config = md_QueryGetEpochBurnConfigResponse.Fields().ByName("epoch_burn_config") } @@ -1182,7 +1182,7 @@ func (x *QueryGetEpochBurnConfigResponse) ProtoReflect() protoreflect.Message { } func (x *QueryGetEpochBurnConfigResponse) slowProtoReflect() protoreflect.Message { - mi := &file_mycel_furnace_v1beta1_query_proto_msgTypes[3] + mi := &file_mycel_furnace_v1_query_proto_msgTypes[3] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1259,13 +1259,13 @@ func (x *fastReflection_QueryGetEpochBurnConfigResponse) Range(f func(protorefle // a repeated field is populated if it is non-empty. func (x *fastReflection_QueryGetEpochBurnConfigResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "mycel.furnace.v1beta1.QueryGetEpochBurnConfigResponse.epoch_burn_config": + case "mycel.furnace.v1.QueryGetEpochBurnConfigResponse.epoch_burn_config": return x.EpochBurnConfig != nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.furnace.v1beta1.QueryGetEpochBurnConfigResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.furnace.v1.QueryGetEpochBurnConfigResponse")) } - panic(fmt.Errorf("message mycel.furnace.v1beta1.QueryGetEpochBurnConfigResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.furnace.v1.QueryGetEpochBurnConfigResponse does not contain field %s", fd.FullName())) } } @@ -1277,13 +1277,13 @@ func (x *fastReflection_QueryGetEpochBurnConfigResponse) Has(fd protoreflect.Fie // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_QueryGetEpochBurnConfigResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "mycel.furnace.v1beta1.QueryGetEpochBurnConfigResponse.epoch_burn_config": + case "mycel.furnace.v1.QueryGetEpochBurnConfigResponse.epoch_burn_config": x.EpochBurnConfig = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.furnace.v1beta1.QueryGetEpochBurnConfigResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.furnace.v1.QueryGetEpochBurnConfigResponse")) } - panic(fmt.Errorf("message mycel.furnace.v1beta1.QueryGetEpochBurnConfigResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.furnace.v1.QueryGetEpochBurnConfigResponse does not contain field %s", fd.FullName())) } } @@ -1295,14 +1295,14 @@ func (x *fastReflection_QueryGetEpochBurnConfigResponse) Clear(fd protoreflect.F // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_QueryGetEpochBurnConfigResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "mycel.furnace.v1beta1.QueryGetEpochBurnConfigResponse.epoch_burn_config": + case "mycel.furnace.v1.QueryGetEpochBurnConfigResponse.epoch_burn_config": value := x.EpochBurnConfig return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.furnace.v1beta1.QueryGetEpochBurnConfigResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.furnace.v1.QueryGetEpochBurnConfigResponse")) } - panic(fmt.Errorf("message mycel.furnace.v1beta1.QueryGetEpochBurnConfigResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message mycel.furnace.v1.QueryGetEpochBurnConfigResponse does not contain field %s", descriptor.FullName())) } } @@ -1318,13 +1318,13 @@ func (x *fastReflection_QueryGetEpochBurnConfigResponse) Get(descriptor protoref // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_QueryGetEpochBurnConfigResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "mycel.furnace.v1beta1.QueryGetEpochBurnConfigResponse.epoch_burn_config": + case "mycel.furnace.v1.QueryGetEpochBurnConfigResponse.epoch_burn_config": x.EpochBurnConfig = value.Message().Interface().(*EpochBurnConfig) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.furnace.v1beta1.QueryGetEpochBurnConfigResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.furnace.v1.QueryGetEpochBurnConfigResponse")) } - panic(fmt.Errorf("message mycel.furnace.v1beta1.QueryGetEpochBurnConfigResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.furnace.v1.QueryGetEpochBurnConfigResponse does not contain field %s", fd.FullName())) } } @@ -1340,16 +1340,16 @@ func (x *fastReflection_QueryGetEpochBurnConfigResponse) Set(fd protoreflect.Fie // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_QueryGetEpochBurnConfigResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "mycel.furnace.v1beta1.QueryGetEpochBurnConfigResponse.epoch_burn_config": + case "mycel.furnace.v1.QueryGetEpochBurnConfigResponse.epoch_burn_config": if x.EpochBurnConfig == nil { x.EpochBurnConfig = new(EpochBurnConfig) } return protoreflect.ValueOfMessage(x.EpochBurnConfig.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.furnace.v1beta1.QueryGetEpochBurnConfigResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.furnace.v1.QueryGetEpochBurnConfigResponse")) } - panic(fmt.Errorf("message mycel.furnace.v1beta1.QueryGetEpochBurnConfigResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.furnace.v1.QueryGetEpochBurnConfigResponse does not contain field %s", fd.FullName())) } } @@ -1358,14 +1358,14 @@ func (x *fastReflection_QueryGetEpochBurnConfigResponse) Mutable(fd protoreflect // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_QueryGetEpochBurnConfigResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "mycel.furnace.v1beta1.QueryGetEpochBurnConfigResponse.epoch_burn_config": + case "mycel.furnace.v1.QueryGetEpochBurnConfigResponse.epoch_burn_config": m := new(EpochBurnConfig) return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.furnace.v1beta1.QueryGetEpochBurnConfigResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.furnace.v1.QueryGetEpochBurnConfigResponse")) } - panic(fmt.Errorf("message mycel.furnace.v1beta1.QueryGetEpochBurnConfigResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.furnace.v1.QueryGetEpochBurnConfigResponse does not contain field %s", fd.FullName())) } } @@ -1375,7 +1375,7 @@ func (x *fastReflection_QueryGetEpochBurnConfigResponse) NewField(fd protoreflec func (x *fastReflection_QueryGetEpochBurnConfigResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in mycel.furnace.v1beta1.QueryGetEpochBurnConfigResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in mycel.furnace.v1.QueryGetEpochBurnConfigResponse", d.FullName())) } panic("unreachable") } @@ -1603,8 +1603,8 @@ var ( ) func init() { - file_mycel_furnace_v1beta1_query_proto_init() - md_QueryGetBurnAmountRequest = File_mycel_furnace_v1beta1_query_proto.Messages().ByName("QueryGetBurnAmountRequest") + file_mycel_furnace_v1_query_proto_init() + md_QueryGetBurnAmountRequest = File_mycel_furnace_v1_query_proto.Messages().ByName("QueryGetBurnAmountRequest") fd_QueryGetBurnAmountRequest_index = md_QueryGetBurnAmountRequest.Fields().ByName("index") } @@ -1617,7 +1617,7 @@ func (x *QueryGetBurnAmountRequest) ProtoReflect() protoreflect.Message { } func (x *QueryGetBurnAmountRequest) slowProtoReflect() protoreflect.Message { - mi := &file_mycel_furnace_v1beta1_query_proto_msgTypes[4] + mi := &file_mycel_furnace_v1_query_proto_msgTypes[4] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1694,13 +1694,13 @@ func (x *fastReflection_QueryGetBurnAmountRequest) Range(f func(protoreflect.Fie // a repeated field is populated if it is non-empty. func (x *fastReflection_QueryGetBurnAmountRequest) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "mycel.furnace.v1beta1.QueryGetBurnAmountRequest.index": + case "mycel.furnace.v1.QueryGetBurnAmountRequest.index": return x.Index != uint64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.furnace.v1beta1.QueryGetBurnAmountRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.furnace.v1.QueryGetBurnAmountRequest")) } - panic(fmt.Errorf("message mycel.furnace.v1beta1.QueryGetBurnAmountRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.furnace.v1.QueryGetBurnAmountRequest does not contain field %s", fd.FullName())) } } @@ -1712,13 +1712,13 @@ func (x *fastReflection_QueryGetBurnAmountRequest) Has(fd protoreflect.FieldDesc // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_QueryGetBurnAmountRequest) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "mycel.furnace.v1beta1.QueryGetBurnAmountRequest.index": + case "mycel.furnace.v1.QueryGetBurnAmountRequest.index": x.Index = uint64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.furnace.v1beta1.QueryGetBurnAmountRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.furnace.v1.QueryGetBurnAmountRequest")) } - panic(fmt.Errorf("message mycel.furnace.v1beta1.QueryGetBurnAmountRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.furnace.v1.QueryGetBurnAmountRequest does not contain field %s", fd.FullName())) } } @@ -1730,14 +1730,14 @@ func (x *fastReflection_QueryGetBurnAmountRequest) Clear(fd protoreflect.FieldDe // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_QueryGetBurnAmountRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "mycel.furnace.v1beta1.QueryGetBurnAmountRequest.index": + case "mycel.furnace.v1.QueryGetBurnAmountRequest.index": value := x.Index return protoreflect.ValueOfUint64(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.furnace.v1beta1.QueryGetBurnAmountRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.furnace.v1.QueryGetBurnAmountRequest")) } - panic(fmt.Errorf("message mycel.furnace.v1beta1.QueryGetBurnAmountRequest does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message mycel.furnace.v1.QueryGetBurnAmountRequest does not contain field %s", descriptor.FullName())) } } @@ -1753,13 +1753,13 @@ func (x *fastReflection_QueryGetBurnAmountRequest) Get(descriptor protoreflect.F // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_QueryGetBurnAmountRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "mycel.furnace.v1beta1.QueryGetBurnAmountRequest.index": + case "mycel.furnace.v1.QueryGetBurnAmountRequest.index": x.Index = value.Uint() default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.furnace.v1beta1.QueryGetBurnAmountRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.furnace.v1.QueryGetBurnAmountRequest")) } - panic(fmt.Errorf("message mycel.furnace.v1beta1.QueryGetBurnAmountRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.furnace.v1.QueryGetBurnAmountRequest does not contain field %s", fd.FullName())) } } @@ -1775,13 +1775,13 @@ func (x *fastReflection_QueryGetBurnAmountRequest) Set(fd protoreflect.FieldDesc // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_QueryGetBurnAmountRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "mycel.furnace.v1beta1.QueryGetBurnAmountRequest.index": - panic(fmt.Errorf("field index of message mycel.furnace.v1beta1.QueryGetBurnAmountRequest is not mutable")) + case "mycel.furnace.v1.QueryGetBurnAmountRequest.index": + panic(fmt.Errorf("field index of message mycel.furnace.v1.QueryGetBurnAmountRequest is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.furnace.v1beta1.QueryGetBurnAmountRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.furnace.v1.QueryGetBurnAmountRequest")) } - panic(fmt.Errorf("message mycel.furnace.v1beta1.QueryGetBurnAmountRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.furnace.v1.QueryGetBurnAmountRequest does not contain field %s", fd.FullName())) } } @@ -1790,13 +1790,13 @@ func (x *fastReflection_QueryGetBurnAmountRequest) Mutable(fd protoreflect.Field // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_QueryGetBurnAmountRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "mycel.furnace.v1beta1.QueryGetBurnAmountRequest.index": + case "mycel.furnace.v1.QueryGetBurnAmountRequest.index": return protoreflect.ValueOfUint64(uint64(0)) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.furnace.v1beta1.QueryGetBurnAmountRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.furnace.v1.QueryGetBurnAmountRequest")) } - panic(fmt.Errorf("message mycel.furnace.v1beta1.QueryGetBurnAmountRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.furnace.v1.QueryGetBurnAmountRequest does not contain field %s", fd.FullName())) } } @@ -1806,7 +1806,7 @@ func (x *fastReflection_QueryGetBurnAmountRequest) NewField(fd protoreflect.Fiel func (x *fastReflection_QueryGetBurnAmountRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in mycel.furnace.v1beta1.QueryGetBurnAmountRequest", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in mycel.furnace.v1.QueryGetBurnAmountRequest", d.FullName())) } panic("unreachable") } @@ -2007,8 +2007,8 @@ var ( ) func init() { - file_mycel_furnace_v1beta1_query_proto_init() - md_QueryGetBurnAmountResponse = File_mycel_furnace_v1beta1_query_proto.Messages().ByName("QueryGetBurnAmountResponse") + file_mycel_furnace_v1_query_proto_init() + md_QueryGetBurnAmountResponse = File_mycel_furnace_v1_query_proto.Messages().ByName("QueryGetBurnAmountResponse") fd_QueryGetBurnAmountResponse_burn_amount = md_QueryGetBurnAmountResponse.Fields().ByName("burn_amount") } @@ -2021,7 +2021,7 @@ func (x *QueryGetBurnAmountResponse) ProtoReflect() protoreflect.Message { } func (x *QueryGetBurnAmountResponse) slowProtoReflect() protoreflect.Message { - mi := &file_mycel_furnace_v1beta1_query_proto_msgTypes[5] + mi := &file_mycel_furnace_v1_query_proto_msgTypes[5] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2098,13 +2098,13 @@ func (x *fastReflection_QueryGetBurnAmountResponse) Range(f func(protoreflect.Fi // a repeated field is populated if it is non-empty. func (x *fastReflection_QueryGetBurnAmountResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "mycel.furnace.v1beta1.QueryGetBurnAmountResponse.burn_amount": + case "mycel.furnace.v1.QueryGetBurnAmountResponse.burn_amount": return x.BurnAmount != nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.furnace.v1beta1.QueryGetBurnAmountResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.furnace.v1.QueryGetBurnAmountResponse")) } - panic(fmt.Errorf("message mycel.furnace.v1beta1.QueryGetBurnAmountResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.furnace.v1.QueryGetBurnAmountResponse does not contain field %s", fd.FullName())) } } @@ -2116,13 +2116,13 @@ func (x *fastReflection_QueryGetBurnAmountResponse) Has(fd protoreflect.FieldDes // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_QueryGetBurnAmountResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "mycel.furnace.v1beta1.QueryGetBurnAmountResponse.burn_amount": + case "mycel.furnace.v1.QueryGetBurnAmountResponse.burn_amount": x.BurnAmount = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.furnace.v1beta1.QueryGetBurnAmountResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.furnace.v1.QueryGetBurnAmountResponse")) } - panic(fmt.Errorf("message mycel.furnace.v1beta1.QueryGetBurnAmountResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.furnace.v1.QueryGetBurnAmountResponse does not contain field %s", fd.FullName())) } } @@ -2134,14 +2134,14 @@ func (x *fastReflection_QueryGetBurnAmountResponse) Clear(fd protoreflect.FieldD // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_QueryGetBurnAmountResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "mycel.furnace.v1beta1.QueryGetBurnAmountResponse.burn_amount": + case "mycel.furnace.v1.QueryGetBurnAmountResponse.burn_amount": value := x.BurnAmount return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.furnace.v1beta1.QueryGetBurnAmountResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.furnace.v1.QueryGetBurnAmountResponse")) } - panic(fmt.Errorf("message mycel.furnace.v1beta1.QueryGetBurnAmountResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message mycel.furnace.v1.QueryGetBurnAmountResponse does not contain field %s", descriptor.FullName())) } } @@ -2157,13 +2157,13 @@ func (x *fastReflection_QueryGetBurnAmountResponse) Get(descriptor protoreflect. // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_QueryGetBurnAmountResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "mycel.furnace.v1beta1.QueryGetBurnAmountResponse.burn_amount": + case "mycel.furnace.v1.QueryGetBurnAmountResponse.burn_amount": x.BurnAmount = value.Message().Interface().(*BurnAmount) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.furnace.v1beta1.QueryGetBurnAmountResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.furnace.v1.QueryGetBurnAmountResponse")) } - panic(fmt.Errorf("message mycel.furnace.v1beta1.QueryGetBurnAmountResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.furnace.v1.QueryGetBurnAmountResponse does not contain field %s", fd.FullName())) } } @@ -2179,16 +2179,16 @@ func (x *fastReflection_QueryGetBurnAmountResponse) Set(fd protoreflect.FieldDes // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_QueryGetBurnAmountResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "mycel.furnace.v1beta1.QueryGetBurnAmountResponse.burn_amount": + case "mycel.furnace.v1.QueryGetBurnAmountResponse.burn_amount": if x.BurnAmount == nil { x.BurnAmount = new(BurnAmount) } return protoreflect.ValueOfMessage(x.BurnAmount.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.furnace.v1beta1.QueryGetBurnAmountResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.furnace.v1.QueryGetBurnAmountResponse")) } - panic(fmt.Errorf("message mycel.furnace.v1beta1.QueryGetBurnAmountResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.furnace.v1.QueryGetBurnAmountResponse does not contain field %s", fd.FullName())) } } @@ -2197,14 +2197,14 @@ func (x *fastReflection_QueryGetBurnAmountResponse) Mutable(fd protoreflect.Fiel // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_QueryGetBurnAmountResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "mycel.furnace.v1beta1.QueryGetBurnAmountResponse.burn_amount": + case "mycel.furnace.v1.QueryGetBurnAmountResponse.burn_amount": m := new(BurnAmount) return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.furnace.v1beta1.QueryGetBurnAmountResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.furnace.v1.QueryGetBurnAmountResponse")) } - panic(fmt.Errorf("message mycel.furnace.v1beta1.QueryGetBurnAmountResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.furnace.v1.QueryGetBurnAmountResponse does not contain field %s", fd.FullName())) } } @@ -2214,7 +2214,7 @@ func (x *fastReflection_QueryGetBurnAmountResponse) NewField(fd protoreflect.Fie func (x *fastReflection_QueryGetBurnAmountResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in mycel.furnace.v1beta1.QueryGetBurnAmountResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in mycel.furnace.v1.QueryGetBurnAmountResponse", d.FullName())) } panic("unreachable") } @@ -2442,8 +2442,8 @@ var ( ) func init() { - file_mycel_furnace_v1beta1_query_proto_init() - md_QueryAllBurnAmountRequest = File_mycel_furnace_v1beta1_query_proto.Messages().ByName("QueryAllBurnAmountRequest") + file_mycel_furnace_v1_query_proto_init() + md_QueryAllBurnAmountRequest = File_mycel_furnace_v1_query_proto.Messages().ByName("QueryAllBurnAmountRequest") fd_QueryAllBurnAmountRequest_pagination = md_QueryAllBurnAmountRequest.Fields().ByName("pagination") } @@ -2456,7 +2456,7 @@ func (x *QueryAllBurnAmountRequest) ProtoReflect() protoreflect.Message { } func (x *QueryAllBurnAmountRequest) slowProtoReflect() protoreflect.Message { - mi := &file_mycel_furnace_v1beta1_query_proto_msgTypes[6] + mi := &file_mycel_furnace_v1_query_proto_msgTypes[6] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2533,13 +2533,13 @@ func (x *fastReflection_QueryAllBurnAmountRequest) Range(f func(protoreflect.Fie // a repeated field is populated if it is non-empty. func (x *fastReflection_QueryAllBurnAmountRequest) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "mycel.furnace.v1beta1.QueryAllBurnAmountRequest.pagination": + case "mycel.furnace.v1.QueryAllBurnAmountRequest.pagination": return x.Pagination != nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.furnace.v1beta1.QueryAllBurnAmountRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.furnace.v1.QueryAllBurnAmountRequest")) } - panic(fmt.Errorf("message mycel.furnace.v1beta1.QueryAllBurnAmountRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.furnace.v1.QueryAllBurnAmountRequest does not contain field %s", fd.FullName())) } } @@ -2551,13 +2551,13 @@ func (x *fastReflection_QueryAllBurnAmountRequest) Has(fd protoreflect.FieldDesc // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_QueryAllBurnAmountRequest) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "mycel.furnace.v1beta1.QueryAllBurnAmountRequest.pagination": + case "mycel.furnace.v1.QueryAllBurnAmountRequest.pagination": x.Pagination = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.furnace.v1beta1.QueryAllBurnAmountRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.furnace.v1.QueryAllBurnAmountRequest")) } - panic(fmt.Errorf("message mycel.furnace.v1beta1.QueryAllBurnAmountRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.furnace.v1.QueryAllBurnAmountRequest does not contain field %s", fd.FullName())) } } @@ -2569,14 +2569,14 @@ func (x *fastReflection_QueryAllBurnAmountRequest) Clear(fd protoreflect.FieldDe // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_QueryAllBurnAmountRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "mycel.furnace.v1beta1.QueryAllBurnAmountRequest.pagination": + case "mycel.furnace.v1.QueryAllBurnAmountRequest.pagination": value := x.Pagination return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.furnace.v1beta1.QueryAllBurnAmountRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.furnace.v1.QueryAllBurnAmountRequest")) } - panic(fmt.Errorf("message mycel.furnace.v1beta1.QueryAllBurnAmountRequest does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message mycel.furnace.v1.QueryAllBurnAmountRequest does not contain field %s", descriptor.FullName())) } } @@ -2592,13 +2592,13 @@ func (x *fastReflection_QueryAllBurnAmountRequest) Get(descriptor protoreflect.F // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_QueryAllBurnAmountRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "mycel.furnace.v1beta1.QueryAllBurnAmountRequest.pagination": + case "mycel.furnace.v1.QueryAllBurnAmountRequest.pagination": x.Pagination = value.Message().Interface().(*v1beta1.PageRequest) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.furnace.v1beta1.QueryAllBurnAmountRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.furnace.v1.QueryAllBurnAmountRequest")) } - panic(fmt.Errorf("message mycel.furnace.v1beta1.QueryAllBurnAmountRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.furnace.v1.QueryAllBurnAmountRequest does not contain field %s", fd.FullName())) } } @@ -2614,16 +2614,16 @@ func (x *fastReflection_QueryAllBurnAmountRequest) Set(fd protoreflect.FieldDesc // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_QueryAllBurnAmountRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "mycel.furnace.v1beta1.QueryAllBurnAmountRequest.pagination": + case "mycel.furnace.v1.QueryAllBurnAmountRequest.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.furnace.v1beta1.QueryAllBurnAmountRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.furnace.v1.QueryAllBurnAmountRequest")) } - panic(fmt.Errorf("message mycel.furnace.v1beta1.QueryAllBurnAmountRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.furnace.v1.QueryAllBurnAmountRequest does not contain field %s", fd.FullName())) } } @@ -2632,14 +2632,14 @@ func (x *fastReflection_QueryAllBurnAmountRequest) Mutable(fd protoreflect.Field // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_QueryAllBurnAmountRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "mycel.furnace.v1beta1.QueryAllBurnAmountRequest.pagination": + case "mycel.furnace.v1.QueryAllBurnAmountRequest.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.furnace.v1beta1.QueryAllBurnAmountRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.furnace.v1.QueryAllBurnAmountRequest")) } - panic(fmt.Errorf("message mycel.furnace.v1beta1.QueryAllBurnAmountRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.furnace.v1.QueryAllBurnAmountRequest does not contain field %s", fd.FullName())) } } @@ -2649,7 +2649,7 @@ func (x *fastReflection_QueryAllBurnAmountRequest) NewField(fd protoreflect.Fiel func (x *fastReflection_QueryAllBurnAmountRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in mycel.furnace.v1beta1.QueryAllBurnAmountRequest", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in mycel.furnace.v1.QueryAllBurnAmountRequest", d.FullName())) } panic("unreachable") } @@ -2929,8 +2929,8 @@ var ( ) func init() { - file_mycel_furnace_v1beta1_query_proto_init() - md_QueryAllBurnAmountResponse = File_mycel_furnace_v1beta1_query_proto.Messages().ByName("QueryAllBurnAmountResponse") + file_mycel_furnace_v1_query_proto_init() + md_QueryAllBurnAmountResponse = File_mycel_furnace_v1_query_proto.Messages().ByName("QueryAllBurnAmountResponse") fd_QueryAllBurnAmountResponse_burn_amount = md_QueryAllBurnAmountResponse.Fields().ByName("burn_amount") fd_QueryAllBurnAmountResponse_pagination = md_QueryAllBurnAmountResponse.Fields().ByName("pagination") } @@ -2944,7 +2944,7 @@ func (x *QueryAllBurnAmountResponse) ProtoReflect() protoreflect.Message { } func (x *QueryAllBurnAmountResponse) slowProtoReflect() protoreflect.Message { - mi := &file_mycel_furnace_v1beta1_query_proto_msgTypes[7] + mi := &file_mycel_furnace_v1_query_proto_msgTypes[7] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3027,15 +3027,15 @@ func (x *fastReflection_QueryAllBurnAmountResponse) Range(f func(protoreflect.Fi // a repeated field is populated if it is non-empty. func (x *fastReflection_QueryAllBurnAmountResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "mycel.furnace.v1beta1.QueryAllBurnAmountResponse.burn_amount": + case "mycel.furnace.v1.QueryAllBurnAmountResponse.burn_amount": return len(x.BurnAmount) != 0 - case "mycel.furnace.v1beta1.QueryAllBurnAmountResponse.pagination": + case "mycel.furnace.v1.QueryAllBurnAmountResponse.pagination": return x.Pagination != nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.furnace.v1beta1.QueryAllBurnAmountResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.furnace.v1.QueryAllBurnAmountResponse")) } - panic(fmt.Errorf("message mycel.furnace.v1beta1.QueryAllBurnAmountResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.furnace.v1.QueryAllBurnAmountResponse does not contain field %s", fd.FullName())) } } @@ -3047,15 +3047,15 @@ func (x *fastReflection_QueryAllBurnAmountResponse) Has(fd protoreflect.FieldDes // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_QueryAllBurnAmountResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "mycel.furnace.v1beta1.QueryAllBurnAmountResponse.burn_amount": + case "mycel.furnace.v1.QueryAllBurnAmountResponse.burn_amount": x.BurnAmount = nil - case "mycel.furnace.v1beta1.QueryAllBurnAmountResponse.pagination": + case "mycel.furnace.v1.QueryAllBurnAmountResponse.pagination": x.Pagination = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.furnace.v1beta1.QueryAllBurnAmountResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.furnace.v1.QueryAllBurnAmountResponse")) } - panic(fmt.Errorf("message mycel.furnace.v1beta1.QueryAllBurnAmountResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.furnace.v1.QueryAllBurnAmountResponse does not contain field %s", fd.FullName())) } } @@ -3067,20 +3067,20 @@ func (x *fastReflection_QueryAllBurnAmountResponse) Clear(fd protoreflect.FieldD // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_QueryAllBurnAmountResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "mycel.furnace.v1beta1.QueryAllBurnAmountResponse.burn_amount": + case "mycel.furnace.v1.QueryAllBurnAmountResponse.burn_amount": if len(x.BurnAmount) == 0 { return protoreflect.ValueOfList(&_QueryAllBurnAmountResponse_1_list{}) } listValue := &_QueryAllBurnAmountResponse_1_list{list: &x.BurnAmount} return protoreflect.ValueOfList(listValue) - case "mycel.furnace.v1beta1.QueryAllBurnAmountResponse.pagination": + case "mycel.furnace.v1.QueryAllBurnAmountResponse.pagination": value := x.Pagination return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.furnace.v1beta1.QueryAllBurnAmountResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.furnace.v1.QueryAllBurnAmountResponse")) } - panic(fmt.Errorf("message mycel.furnace.v1beta1.QueryAllBurnAmountResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message mycel.furnace.v1.QueryAllBurnAmountResponse does not contain field %s", descriptor.FullName())) } } @@ -3096,17 +3096,17 @@ func (x *fastReflection_QueryAllBurnAmountResponse) Get(descriptor protoreflect. // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_QueryAllBurnAmountResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "mycel.furnace.v1beta1.QueryAllBurnAmountResponse.burn_amount": + case "mycel.furnace.v1.QueryAllBurnAmountResponse.burn_amount": lv := value.List() clv := lv.(*_QueryAllBurnAmountResponse_1_list) x.BurnAmount = *clv.list - case "mycel.furnace.v1beta1.QueryAllBurnAmountResponse.pagination": + case "mycel.furnace.v1.QueryAllBurnAmountResponse.pagination": x.Pagination = value.Message().Interface().(*v1beta1.PageResponse) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.furnace.v1beta1.QueryAllBurnAmountResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.furnace.v1.QueryAllBurnAmountResponse")) } - panic(fmt.Errorf("message mycel.furnace.v1beta1.QueryAllBurnAmountResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.furnace.v1.QueryAllBurnAmountResponse does not contain field %s", fd.FullName())) } } @@ -3122,22 +3122,22 @@ func (x *fastReflection_QueryAllBurnAmountResponse) Set(fd protoreflect.FieldDes // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_QueryAllBurnAmountResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "mycel.furnace.v1beta1.QueryAllBurnAmountResponse.burn_amount": + case "mycel.furnace.v1.QueryAllBurnAmountResponse.burn_amount": if x.BurnAmount == nil { x.BurnAmount = []*BurnAmount{} } value := &_QueryAllBurnAmountResponse_1_list{list: &x.BurnAmount} return protoreflect.ValueOfList(value) - case "mycel.furnace.v1beta1.QueryAllBurnAmountResponse.pagination": + case "mycel.furnace.v1.QueryAllBurnAmountResponse.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.furnace.v1beta1.QueryAllBurnAmountResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.furnace.v1.QueryAllBurnAmountResponse")) } - panic(fmt.Errorf("message mycel.furnace.v1beta1.QueryAllBurnAmountResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.furnace.v1.QueryAllBurnAmountResponse does not contain field %s", fd.FullName())) } } @@ -3146,17 +3146,17 @@ func (x *fastReflection_QueryAllBurnAmountResponse) Mutable(fd protoreflect.Fiel // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_QueryAllBurnAmountResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "mycel.furnace.v1beta1.QueryAllBurnAmountResponse.burn_amount": + case "mycel.furnace.v1.QueryAllBurnAmountResponse.burn_amount": list := []*BurnAmount{} return protoreflect.ValueOfList(&_QueryAllBurnAmountResponse_1_list{list: &list}) - case "mycel.furnace.v1beta1.QueryAllBurnAmountResponse.pagination": + case "mycel.furnace.v1.QueryAllBurnAmountResponse.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.furnace.v1beta1.QueryAllBurnAmountResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.furnace.v1.QueryAllBurnAmountResponse")) } - panic(fmt.Errorf("message mycel.furnace.v1beta1.QueryAllBurnAmountResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.furnace.v1.QueryAllBurnAmountResponse does not contain field %s", fd.FullName())) } } @@ -3166,7 +3166,7 @@ func (x *fastReflection_QueryAllBurnAmountResponse) NewField(fd protoreflect.Fie func (x *fastReflection_QueryAllBurnAmountResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in mycel.furnace.v1beta1.QueryAllBurnAmountResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in mycel.furnace.v1.QueryAllBurnAmountResponse", d.FullName())) } panic("unreachable") } @@ -3448,7 +3448,7 @@ func (x *fastReflection_QueryAllBurnAmountResponse) ProtoMethods() *protoiface.M // versions: // protoc-gen-go v1.27.0 // protoc (unknown) -// source: mycel/furnace/v1beta1/query.proto +// source: mycel/furnace/v1/query.proto const ( // Verify that this generated code is sufficiently up-to-date. @@ -3467,7 +3467,7 @@ type QueryParamsRequest struct { func (x *QueryParamsRequest) Reset() { *x = QueryParamsRequest{} if protoimpl.UnsafeEnabled { - mi := &file_mycel_furnace_v1beta1_query_proto_msgTypes[0] + mi := &file_mycel_furnace_v1_query_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3481,7 +3481,7 @@ func (*QueryParamsRequest) ProtoMessage() {} // Deprecated: Use QueryParamsRequest.ProtoReflect.Descriptor instead. func (*QueryParamsRequest) Descriptor() ([]byte, []int) { - return file_mycel_furnace_v1beta1_query_proto_rawDescGZIP(), []int{0} + return file_mycel_furnace_v1_query_proto_rawDescGZIP(), []int{0} } // QueryParamsResponse is response type for the Query/Params RPC method. @@ -3497,7 +3497,7 @@ type QueryParamsResponse struct { func (x *QueryParamsResponse) Reset() { *x = QueryParamsResponse{} if protoimpl.UnsafeEnabled { - mi := &file_mycel_furnace_v1beta1_query_proto_msgTypes[1] + mi := &file_mycel_furnace_v1_query_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3511,7 +3511,7 @@ func (*QueryParamsResponse) ProtoMessage() {} // Deprecated: Use QueryParamsResponse.ProtoReflect.Descriptor instead. func (*QueryParamsResponse) Descriptor() ([]byte, []int) { - return file_mycel_furnace_v1beta1_query_proto_rawDescGZIP(), []int{1} + return file_mycel_furnace_v1_query_proto_rawDescGZIP(), []int{1} } func (x *QueryParamsResponse) GetParams() *Params { @@ -3530,7 +3530,7 @@ type QueryGetEpochBurnConfigRequest struct { func (x *QueryGetEpochBurnConfigRequest) Reset() { *x = QueryGetEpochBurnConfigRequest{} if protoimpl.UnsafeEnabled { - mi := &file_mycel_furnace_v1beta1_query_proto_msgTypes[2] + mi := &file_mycel_furnace_v1_query_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3544,7 +3544,7 @@ func (*QueryGetEpochBurnConfigRequest) ProtoMessage() {} // Deprecated: Use QueryGetEpochBurnConfigRequest.ProtoReflect.Descriptor instead. func (*QueryGetEpochBurnConfigRequest) Descriptor() ([]byte, []int) { - return file_mycel_furnace_v1beta1_query_proto_rawDescGZIP(), []int{2} + return file_mycel_furnace_v1_query_proto_rawDescGZIP(), []int{2} } type QueryGetEpochBurnConfigResponse struct { @@ -3558,7 +3558,7 @@ type QueryGetEpochBurnConfigResponse struct { func (x *QueryGetEpochBurnConfigResponse) Reset() { *x = QueryGetEpochBurnConfigResponse{} if protoimpl.UnsafeEnabled { - mi := &file_mycel_furnace_v1beta1_query_proto_msgTypes[3] + mi := &file_mycel_furnace_v1_query_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3572,7 +3572,7 @@ func (*QueryGetEpochBurnConfigResponse) ProtoMessage() {} // Deprecated: Use QueryGetEpochBurnConfigResponse.ProtoReflect.Descriptor instead. func (*QueryGetEpochBurnConfigResponse) Descriptor() ([]byte, []int) { - return file_mycel_furnace_v1beta1_query_proto_rawDescGZIP(), []int{3} + return file_mycel_furnace_v1_query_proto_rawDescGZIP(), []int{3} } func (x *QueryGetEpochBurnConfigResponse) GetEpochBurnConfig() *EpochBurnConfig { @@ -3593,7 +3593,7 @@ type QueryGetBurnAmountRequest struct { func (x *QueryGetBurnAmountRequest) Reset() { *x = QueryGetBurnAmountRequest{} if protoimpl.UnsafeEnabled { - mi := &file_mycel_furnace_v1beta1_query_proto_msgTypes[4] + mi := &file_mycel_furnace_v1_query_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3607,7 +3607,7 @@ func (*QueryGetBurnAmountRequest) ProtoMessage() {} // Deprecated: Use QueryGetBurnAmountRequest.ProtoReflect.Descriptor instead. func (*QueryGetBurnAmountRequest) Descriptor() ([]byte, []int) { - return file_mycel_furnace_v1beta1_query_proto_rawDescGZIP(), []int{4} + return file_mycel_furnace_v1_query_proto_rawDescGZIP(), []int{4} } func (x *QueryGetBurnAmountRequest) GetIndex() uint64 { @@ -3628,7 +3628,7 @@ type QueryGetBurnAmountResponse struct { func (x *QueryGetBurnAmountResponse) Reset() { *x = QueryGetBurnAmountResponse{} if protoimpl.UnsafeEnabled { - mi := &file_mycel_furnace_v1beta1_query_proto_msgTypes[5] + mi := &file_mycel_furnace_v1_query_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3642,7 +3642,7 @@ func (*QueryGetBurnAmountResponse) ProtoMessage() {} // Deprecated: Use QueryGetBurnAmountResponse.ProtoReflect.Descriptor instead. func (*QueryGetBurnAmountResponse) Descriptor() ([]byte, []int) { - return file_mycel_furnace_v1beta1_query_proto_rawDescGZIP(), []int{5} + return file_mycel_furnace_v1_query_proto_rawDescGZIP(), []int{5} } func (x *QueryGetBurnAmountResponse) GetBurnAmount() *BurnAmount { @@ -3663,7 +3663,7 @@ type QueryAllBurnAmountRequest struct { func (x *QueryAllBurnAmountRequest) Reset() { *x = QueryAllBurnAmountRequest{} if protoimpl.UnsafeEnabled { - mi := &file_mycel_furnace_v1beta1_query_proto_msgTypes[6] + mi := &file_mycel_furnace_v1_query_proto_msgTypes[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3677,7 +3677,7 @@ func (*QueryAllBurnAmountRequest) ProtoMessage() {} // Deprecated: Use QueryAllBurnAmountRequest.ProtoReflect.Descriptor instead. func (*QueryAllBurnAmountRequest) Descriptor() ([]byte, []int) { - return file_mycel_furnace_v1beta1_query_proto_rawDescGZIP(), []int{6} + return file_mycel_furnace_v1_query_proto_rawDescGZIP(), []int{6} } func (x *QueryAllBurnAmountRequest) GetPagination() *v1beta1.PageRequest { @@ -3699,7 +3699,7 @@ type QueryAllBurnAmountResponse struct { func (x *QueryAllBurnAmountResponse) Reset() { *x = QueryAllBurnAmountResponse{} if protoimpl.UnsafeEnabled { - mi := &file_mycel_furnace_v1beta1_query_proto_msgTypes[7] + mi := &file_mycel_furnace_v1_query_proto_msgTypes[7] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3713,7 +3713,7 @@ func (*QueryAllBurnAmountResponse) ProtoMessage() {} // Deprecated: Use QueryAllBurnAmountResponse.ProtoReflect.Descriptor instead. func (*QueryAllBurnAmountResponse) Descriptor() ([]byte, []int) { - return file_mycel_furnace_v1beta1_query_proto_rawDescGZIP(), []int{7} + return file_mycel_furnace_v1_query_proto_rawDescGZIP(), []int{7} } func (x *QueryAllBurnAmountResponse) GetBurnAmount() []*BurnAmount { @@ -3730,173 +3730,162 @@ func (x *QueryAllBurnAmountResponse) GetPagination() *v1beta1.PageResponse { return nil } -var File_mycel_furnace_v1beta1_query_proto protoreflect.FileDescriptor - -var file_mycel_furnace_v1beta1_query_proto_rawDesc = []byte{ - 0x0a, 0x21, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2f, 0x66, 0x75, 0x72, 0x6e, 0x61, 0x63, 0x65, 0x2f, - 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x12, 0x15, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x66, 0x75, 0x72, 0x6e, 0x61, - 0x63, 0x65, 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, 0x27, 0x6d, 0x79, 0x63, 0x65, - 0x6c, 0x2f, 0x66, 0x75, 0x72, 0x6e, 0x61, 0x63, 0x65, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, - 0x31, 0x2f, 0x62, 0x75, 0x72, 0x6e, 0x5f, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x1a, 0x2d, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2f, 0x66, 0x75, 0x72, 0x6e, 0x61, - 0x63, 0x65, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x65, 0x70, 0x6f, 0x63, 0x68, - 0x5f, 0x62, 0x75, 0x72, 0x6e, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x1a, 0x22, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2f, 0x66, 0x75, 0x72, 0x6e, 0x61, 0x63, - 0x65, 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, 0x52, 0x0a, 0x13, - 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x3b, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x66, 0x75, 0x72, 0x6e, - 0x61, 0x63, 0x65, 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, 0x20, 0x0a, 0x1e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x45, 0x70, 0x6f, 0x63, - 0x68, 0x42, 0x75, 0x72, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x22, 0x7b, 0x0a, 0x1f, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x45, 0x70, - 0x6f, 0x63, 0x68, 0x42, 0x75, 0x72, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x58, 0x0a, 0x11, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x5f, 0x62, - 0x75, 0x72, 0x6e, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x26, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x66, 0x75, 0x72, 0x6e, 0x61, 0x63, 0x65, - 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x42, 0x75, - 0x72, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0f, - 0x65, 0x70, 0x6f, 0x63, 0x68, 0x42, 0x75, 0x72, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x22, - 0x31, 0x0a, 0x19, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x42, 0x75, 0x72, 0x6e, 0x41, - 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, - 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x69, 0x6e, 0x64, - 0x65, 0x78, 0x22, 0x66, 0x0a, 0x1a, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x42, 0x75, - 0x72, 0x6e, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x48, 0x0a, 0x0b, 0x62, 0x75, 0x72, 0x6e, 0x5f, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x66, 0x75, - 0x72, 0x6e, 0x61, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x42, 0x75, - 0x72, 0x6e, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0a, - 0x62, 0x75, 0x72, 0x6e, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x63, 0x0a, 0x19, 0x51, 0x75, - 0x65, 0x72, 0x79, 0x41, 0x6c, 0x6c, 0x42, 0x75, 0x72, 0x6e, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, - 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, - 0xaf, 0x01, 0x0a, 0x1a, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x6c, 0x6c, 0x42, 0x75, 0x72, 0x6e, - 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x48, - 0x0a, 0x0b, 0x62, 0x75, 0x72, 0x6e, 0x5f, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x66, 0x75, 0x72, 0x6e, - 0x61, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x42, 0x75, 0x72, 0x6e, - 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0a, 0x62, 0x75, - 0x72, 0x6e, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 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, 0xc4, 0x05, 0x0a, 0x05, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x93, 0x01, 0x0a, 0x06, - 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x29, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x66, - 0x75, 0x72, 0x6e, 0x61, 0x63, 0x65, 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, 0x2a, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x66, 0x75, 0x72, 0x6e, 0x61, 0x63, - 0x65, 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, 0x32, 0x82, - 0xd3, 0xe4, 0x93, 0x02, 0x2c, 0x12, 0x2a, 0x2f, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2d, 0x64, 0x6f, - 0x6d, 0x61, 0x69, 0x6e, 0x2f, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2f, 0x66, 0x75, 0x72, 0x6e, 0x61, - 0x63, 0x65, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, - 0x73, 0x12, 0xbf, 0x01, 0x0a, 0x0f, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x42, 0x75, 0x72, 0x6e, 0x43, - 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x35, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x66, 0x75, - 0x72, 0x6e, 0x61, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x51, 0x75, - 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x42, 0x75, 0x72, 0x6e, 0x43, - 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x36, 0x2e, 0x6d, - 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x66, 0x75, 0x72, 0x6e, 0x61, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x62, - 0x65, 0x74, 0x61, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x45, 0x70, 0x6f, - 0x63, 0x68, 0x42, 0x75, 0x72, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x3d, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x37, 0x12, 0x35, 0x2f, 0x6d, - 0x79, 0x63, 0x65, 0x6c, 0x2d, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x2f, 0x6d, 0x79, 0x63, 0x65, - 0x6c, 0x2f, 0x66, 0x75, 0x72, 0x6e, 0x61, 0x63, 0x65, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, - 0x31, 0x2f, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x5f, 0x62, 0x75, 0x72, 0x6e, 0x5f, 0x63, 0x6f, 0x6e, - 0x66, 0x69, 0x67, 0x12, 0xb2, 0x01, 0x0a, 0x0a, 0x42, 0x75, 0x72, 0x6e, 0x41, 0x6d, 0x6f, 0x75, - 0x6e, 0x74, 0x12, 0x30, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x66, 0x75, 0x72, 0x6e, 0x61, - 0x63, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, - 0x47, 0x65, 0x74, 0x42, 0x75, 0x72, 0x6e, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x31, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x66, 0x75, 0x72, - 0x6e, 0x61, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x51, 0x75, 0x65, - 0x72, 0x79, 0x47, 0x65, 0x74, 0x42, 0x75, 0x72, 0x6e, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x3f, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x39, 0x12, - 0x37, 0x2f, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2d, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x2f, 0x6d, - 0x79, 0x63, 0x65, 0x6c, 0x2f, 0x66, 0x75, 0x72, 0x6e, 0x61, 0x63, 0x65, 0x2f, 0x76, 0x31, 0x62, - 0x65, 0x74, 0x61, 0x31, 0x2f, 0x62, 0x75, 0x72, 0x6e, 0x5f, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, - 0x2f, 0x7b, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x7d, 0x12, 0xad, 0x01, 0x0a, 0x0d, 0x42, 0x75, 0x72, - 0x6e, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x41, 0x6c, 0x6c, 0x12, 0x30, 0x2e, 0x6d, 0x79, 0x63, - 0x65, 0x6c, 0x2e, 0x66, 0x75, 0x72, 0x6e, 0x61, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, - 0x61, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x6c, 0x6c, 0x42, 0x75, 0x72, 0x6e, 0x41, - 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x31, 0x2e, 0x6d, - 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x66, 0x75, 0x72, 0x6e, 0x61, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x62, - 0x65, 0x74, 0x61, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x6c, 0x6c, 0x42, 0x75, 0x72, - 0x6e, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, - 0x37, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x31, 0x12, 0x2f, 0x2f, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2d, - 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x2f, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2f, 0x66, 0x75, 0x72, - 0x6e, 0x61, 0x63, 0x65, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x62, 0x75, 0x72, - 0x6e, 0x5f, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x42, 0xcc, 0x01, 0x0a, 0x19, 0x63, 0x6f, 0x6d, +var File_mycel_furnace_v1_query_proto protoreflect.FileDescriptor + +var file_mycel_furnace_v1_query_proto_rawDesc = []byte{ + 0x0a, 0x1c, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2f, 0x66, 0x75, 0x72, 0x6e, 0x61, 0x63, 0x65, 0x2f, + 0x76, 0x31, 0x2f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x10, + 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x66, 0x75, 0x72, 0x6e, 0x61, 0x63, 0x65, 0x2e, 0x76, 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, 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, 0x22, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2f, 0x66, 0x75, 0x72, 0x6e, 0x61, 0x63, 0x65, 0x2f, + 0x76, 0x31, 0x2f, 0x62, 0x75, 0x72, 0x6e, 0x5f, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x28, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2f, 0x66, 0x75, 0x72, 0x6e, + 0x61, 0x63, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x5f, 0x62, 0x75, 0x72, + 0x6e, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, + 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2f, 0x66, 0x75, 0x72, 0x6e, 0x61, 0x63, 0x65, 0x2f, 0x76, 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, 0x4d, 0x0a, 0x13, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, + 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x36, 0x0a, 0x06, 0x70, 0x61, + 0x72, 0x61, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x6d, 0x79, 0x63, + 0x65, 0x6c, 0x2e, 0x66, 0x75, 0x72, 0x6e, 0x61, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x61, + 0x72, 0x61, 0x6d, 0x73, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x06, 0x70, 0x61, 0x72, 0x61, + 0x6d, 0x73, 0x22, 0x20, 0x0a, 0x1e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x45, 0x70, + 0x6f, 0x63, 0x68, 0x42, 0x75, 0x72, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x22, 0x76, 0x0a, 0x1f, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, + 0x45, 0x70, 0x6f, 0x63, 0x68, 0x42, 0x75, 0x72, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x53, 0x0a, 0x11, 0x65, 0x70, 0x6f, 0x63, 0x68, + 0x5f, 0x62, 0x75, 0x72, 0x6e, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x66, 0x75, 0x72, 0x6e, 0x61, + 0x63, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x42, 0x75, 0x72, 0x6e, 0x43, + 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0f, 0x65, 0x70, 0x6f, + 0x63, 0x68, 0x42, 0x75, 0x72, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x22, 0x31, 0x0a, 0x19, + 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x42, 0x75, 0x72, 0x6e, 0x41, 0x6d, 0x6f, 0x75, + 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x69, 0x6e, 0x64, + 0x65, 0x78, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x22, + 0x61, 0x0a, 0x1a, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x42, 0x75, 0x72, 0x6e, 0x41, + 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x43, 0x0a, + 0x0b, 0x62, 0x75, 0x72, 0x6e, 0x5f, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x66, 0x75, 0x72, 0x6e, 0x61, + 0x63, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x75, 0x72, 0x6e, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, + 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0a, 0x62, 0x75, 0x72, 0x6e, 0x41, 0x6d, 0x6f, 0x75, + 0x6e, 0x74, 0x22, 0x63, 0x0a, 0x19, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x6c, 0x6c, 0x42, 0x75, + 0x72, 0x6e, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 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, 0x1a, 0x51, 0x75, 0x65, 0x72, + 0x79, 0x41, 0x6c, 0x6c, 0x42, 0x75, 0x72, 0x6e, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x43, 0x0a, 0x0b, 0x62, 0x75, 0x72, 0x6e, 0x5f, 0x61, + 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x6d, 0x79, + 0x63, 0x65, 0x6c, 0x2e, 0x66, 0x75, 0x72, 0x6e, 0x61, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x42, + 0x75, 0x72, 0x6e, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, + 0x0a, 0x62, 0x75, 0x72, 0x6e, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 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, 0xd3, 0x04, 0x0a, 0x05, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x77, + 0x0a, 0x06, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x24, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, + 0x2e, 0x66, 0x75, 0x72, 0x6e, 0x61, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, + 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x66, 0x75, 0x72, 0x6e, 0x61, 0x63, 0x65, 0x2e, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x42, 0x0a, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, - 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2d, 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, 0x2f, 0x74, 0x79, - 0x70, 0x65, 0x73, 0xa2, 0x02, 0x03, 0x4d, 0x46, 0x58, 0xaa, 0x02, 0x15, 0x4d, 0x79, 0x63, 0x65, - 0x6c, 0x2e, 0x46, 0x75, 0x72, 0x6e, 0x61, 0x63, 0x65, 0x2e, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, - 0x31, 0xca, 0x02, 0x15, 0x4d, 0x79, 0x63, 0x65, 0x6c, 0x5c, 0x46, 0x75, 0x72, 0x6e, 0x61, 0x63, - 0x65, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xe2, 0x02, 0x21, 0x4d, 0x79, 0x63, 0x65, - 0x6c, 0x5c, 0x46, 0x75, 0x72, 0x6e, 0x61, 0x63, 0x65, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, - 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x17, - 0x4d, 0x79, 0x63, 0x65, 0x6c, 0x3a, 0x3a, 0x46, 0x75, 0x72, 0x6e, 0x61, 0x63, 0x65, 0x3a, 0x3a, - 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x20, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1a, 0x12, 0x18, 0x2f, + 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2f, 0x66, 0x75, 0x72, 0x6e, 0x61, 0x63, 0x65, 0x2f, 0x76, 0x31, + 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0xa3, 0x01, 0x0a, 0x0f, 0x45, 0x70, 0x6f, 0x63, + 0x68, 0x42, 0x75, 0x72, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x30, 0x2e, 0x6d, 0x79, + 0x63, 0x65, 0x6c, 0x2e, 0x66, 0x75, 0x72, 0x6e, 0x61, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x51, + 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x42, 0x75, 0x72, 0x6e, + 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x31, 0x2e, + 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x66, 0x75, 0x72, 0x6e, 0x61, 0x63, 0x65, 0x2e, 0x76, 0x31, + 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x42, 0x75, + 0x72, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 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, 0x66, 0x75, 0x72, 0x6e, 0x61, 0x63, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x65, 0x70, 0x6f, 0x63, + 0x68, 0x5f, 0x62, 0x75, 0x72, 0x6e, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x96, 0x01, + 0x0a, 0x0a, 0x42, 0x75, 0x72, 0x6e, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x2b, 0x2e, 0x6d, + 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x66, 0x75, 0x72, 0x6e, 0x61, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x2e, + 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x42, 0x75, 0x72, 0x6e, 0x41, 0x6d, 0x6f, 0x75, + 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x6d, 0x79, 0x63, 0x65, + 0x6c, 0x2e, 0x66, 0x75, 0x72, 0x6e, 0x61, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, + 0x72, 0x79, 0x47, 0x65, 0x74, 0x42, 0x75, 0x72, 0x6e, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2d, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x27, 0x12, + 0x25, 0x2f, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2f, 0x66, 0x75, 0x72, 0x6e, 0x61, 0x63, 0x65, 0x2f, + 0x76, 0x31, 0x2f, 0x62, 0x75, 0x72, 0x6e, 0x5f, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x2f, 0x7b, + 0x69, 0x6e, 0x64, 0x65, 0x78, 0x7d, 0x12, 0x91, 0x01, 0x0a, 0x0d, 0x42, 0x75, 0x72, 0x6e, 0x41, + 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x41, 0x6c, 0x6c, 0x12, 0x2b, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, + 0x2e, 0x66, 0x75, 0x72, 0x6e, 0x61, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, + 0x79, 0x41, 0x6c, 0x6c, 0x42, 0x75, 0x72, 0x6e, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x66, 0x75, + 0x72, 0x6e, 0x61, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x6c, + 0x6c, 0x42, 0x75, 0x72, 0x6e, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x22, 0x25, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1f, 0x12, 0x1d, 0x2f, 0x6d, 0x79, + 0x63, 0x65, 0x6c, 0x2f, 0x66, 0x75, 0x72, 0x6e, 0x61, 0x63, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x62, + 0x75, 0x72, 0x6e, 0x5f, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x42, 0xb1, 0x01, 0x0a, 0x14, 0x63, + 0x6f, 0x6d, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x66, 0x75, 0x72, 0x6e, 0x61, 0x63, 0x65, + 0x2e, 0x76, 0x31, 0x42, 0x0a, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, + 0x01, 0x5a, 0x2b, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, + 0x61, 0x70, 0x69, 0x2f, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2f, 0x66, 0x75, 0x72, 0x6e, 0x61, 0x63, + 0x65, 0x2f, 0x76, 0x31, 0x3b, 0x66, 0x75, 0x72, 0x6e, 0x61, 0x63, 0x65, 0x76, 0x31, 0xa2, 0x02, + 0x03, 0x4d, 0x46, 0x58, 0xaa, 0x02, 0x10, 0x4d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x46, 0x75, 0x72, + 0x6e, 0x61, 0x63, 0x65, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x10, 0x4d, 0x79, 0x63, 0x65, 0x6c, 0x5c, + 0x46, 0x75, 0x72, 0x6e, 0x61, 0x63, 0x65, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x1c, 0x4d, 0x79, 0x63, + 0x65, 0x6c, 0x5c, 0x46, 0x75, 0x72, 0x6e, 0x61, 0x63, 0x65, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, + 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x12, 0x4d, 0x79, 0x63, 0x65, + 0x6c, 0x3a, 0x3a, 0x46, 0x75, 0x72, 0x6e, 0x61, 0x63, 0x65, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( - file_mycel_furnace_v1beta1_query_proto_rawDescOnce sync.Once - file_mycel_furnace_v1beta1_query_proto_rawDescData = file_mycel_furnace_v1beta1_query_proto_rawDesc + file_mycel_furnace_v1_query_proto_rawDescOnce sync.Once + file_mycel_furnace_v1_query_proto_rawDescData = file_mycel_furnace_v1_query_proto_rawDesc ) -func file_mycel_furnace_v1beta1_query_proto_rawDescGZIP() []byte { - file_mycel_furnace_v1beta1_query_proto_rawDescOnce.Do(func() { - file_mycel_furnace_v1beta1_query_proto_rawDescData = protoimpl.X.CompressGZIP(file_mycel_furnace_v1beta1_query_proto_rawDescData) +func file_mycel_furnace_v1_query_proto_rawDescGZIP() []byte { + file_mycel_furnace_v1_query_proto_rawDescOnce.Do(func() { + file_mycel_furnace_v1_query_proto_rawDescData = protoimpl.X.CompressGZIP(file_mycel_furnace_v1_query_proto_rawDescData) }) - return file_mycel_furnace_v1beta1_query_proto_rawDescData -} - -var file_mycel_furnace_v1beta1_query_proto_msgTypes = make([]protoimpl.MessageInfo, 8) -var file_mycel_furnace_v1beta1_query_proto_goTypes = []interface{}{ - (*QueryParamsRequest)(nil), // 0: mycel.furnace.v1beta1.QueryParamsRequest - (*QueryParamsResponse)(nil), // 1: mycel.furnace.v1beta1.QueryParamsResponse - (*QueryGetEpochBurnConfigRequest)(nil), // 2: mycel.furnace.v1beta1.QueryGetEpochBurnConfigRequest - (*QueryGetEpochBurnConfigResponse)(nil), // 3: mycel.furnace.v1beta1.QueryGetEpochBurnConfigResponse - (*QueryGetBurnAmountRequest)(nil), // 4: mycel.furnace.v1beta1.QueryGetBurnAmountRequest - (*QueryGetBurnAmountResponse)(nil), // 5: mycel.furnace.v1beta1.QueryGetBurnAmountResponse - (*QueryAllBurnAmountRequest)(nil), // 6: mycel.furnace.v1beta1.QueryAllBurnAmountRequest - (*QueryAllBurnAmountResponse)(nil), // 7: mycel.furnace.v1beta1.QueryAllBurnAmountResponse - (*Params)(nil), // 8: mycel.furnace.v1beta1.Params - (*EpochBurnConfig)(nil), // 9: mycel.furnace.v1beta1.EpochBurnConfig - (*BurnAmount)(nil), // 10: mycel.furnace.v1beta1.BurnAmount + return file_mycel_furnace_v1_query_proto_rawDescData +} + +var file_mycel_furnace_v1_query_proto_msgTypes = make([]protoimpl.MessageInfo, 8) +var file_mycel_furnace_v1_query_proto_goTypes = []interface{}{ + (*QueryParamsRequest)(nil), // 0: mycel.furnace.v1.QueryParamsRequest + (*QueryParamsResponse)(nil), // 1: mycel.furnace.v1.QueryParamsResponse + (*QueryGetEpochBurnConfigRequest)(nil), // 2: mycel.furnace.v1.QueryGetEpochBurnConfigRequest + (*QueryGetEpochBurnConfigResponse)(nil), // 3: mycel.furnace.v1.QueryGetEpochBurnConfigResponse + (*QueryGetBurnAmountRequest)(nil), // 4: mycel.furnace.v1.QueryGetBurnAmountRequest + (*QueryGetBurnAmountResponse)(nil), // 5: mycel.furnace.v1.QueryGetBurnAmountResponse + (*QueryAllBurnAmountRequest)(nil), // 6: mycel.furnace.v1.QueryAllBurnAmountRequest + (*QueryAllBurnAmountResponse)(nil), // 7: mycel.furnace.v1.QueryAllBurnAmountResponse + (*Params)(nil), // 8: mycel.furnace.v1.Params + (*EpochBurnConfig)(nil), // 9: mycel.furnace.v1.EpochBurnConfig + (*BurnAmount)(nil), // 10: mycel.furnace.v1.BurnAmount (*v1beta1.PageRequest)(nil), // 11: cosmos.base.query.v1beta1.PageRequest (*v1beta1.PageResponse)(nil), // 12: cosmos.base.query.v1beta1.PageResponse } -var file_mycel_furnace_v1beta1_query_proto_depIdxs = []int32{ - 8, // 0: mycel.furnace.v1beta1.QueryParamsResponse.params:type_name -> mycel.furnace.v1beta1.Params - 9, // 1: mycel.furnace.v1beta1.QueryGetEpochBurnConfigResponse.epoch_burn_config:type_name -> mycel.furnace.v1beta1.EpochBurnConfig - 10, // 2: mycel.furnace.v1beta1.QueryGetBurnAmountResponse.burn_amount:type_name -> mycel.furnace.v1beta1.BurnAmount - 11, // 3: mycel.furnace.v1beta1.QueryAllBurnAmountRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest - 10, // 4: mycel.furnace.v1beta1.QueryAllBurnAmountResponse.burn_amount:type_name -> mycel.furnace.v1beta1.BurnAmount - 12, // 5: mycel.furnace.v1beta1.QueryAllBurnAmountResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse - 0, // 6: mycel.furnace.v1beta1.Query.Params:input_type -> mycel.furnace.v1beta1.QueryParamsRequest - 2, // 7: mycel.furnace.v1beta1.Query.EpochBurnConfig:input_type -> mycel.furnace.v1beta1.QueryGetEpochBurnConfigRequest - 4, // 8: mycel.furnace.v1beta1.Query.BurnAmount:input_type -> mycel.furnace.v1beta1.QueryGetBurnAmountRequest - 6, // 9: mycel.furnace.v1beta1.Query.BurnAmountAll:input_type -> mycel.furnace.v1beta1.QueryAllBurnAmountRequest - 1, // 10: mycel.furnace.v1beta1.Query.Params:output_type -> mycel.furnace.v1beta1.QueryParamsResponse - 3, // 11: mycel.furnace.v1beta1.Query.EpochBurnConfig:output_type -> mycel.furnace.v1beta1.QueryGetEpochBurnConfigResponse - 5, // 12: mycel.furnace.v1beta1.Query.BurnAmount:output_type -> mycel.furnace.v1beta1.QueryGetBurnAmountResponse - 7, // 13: mycel.furnace.v1beta1.Query.BurnAmountAll:output_type -> mycel.furnace.v1beta1.QueryAllBurnAmountResponse +var file_mycel_furnace_v1_query_proto_depIdxs = []int32{ + 8, // 0: mycel.furnace.v1.QueryParamsResponse.params:type_name -> mycel.furnace.v1.Params + 9, // 1: mycel.furnace.v1.QueryGetEpochBurnConfigResponse.epoch_burn_config:type_name -> mycel.furnace.v1.EpochBurnConfig + 10, // 2: mycel.furnace.v1.QueryGetBurnAmountResponse.burn_amount:type_name -> mycel.furnace.v1.BurnAmount + 11, // 3: mycel.furnace.v1.QueryAllBurnAmountRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest + 10, // 4: mycel.furnace.v1.QueryAllBurnAmountResponse.burn_amount:type_name -> mycel.furnace.v1.BurnAmount + 12, // 5: mycel.furnace.v1.QueryAllBurnAmountResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse + 0, // 6: mycel.furnace.v1.Query.Params:input_type -> mycel.furnace.v1.QueryParamsRequest + 2, // 7: mycel.furnace.v1.Query.EpochBurnConfig:input_type -> mycel.furnace.v1.QueryGetEpochBurnConfigRequest + 4, // 8: mycel.furnace.v1.Query.BurnAmount:input_type -> mycel.furnace.v1.QueryGetBurnAmountRequest + 6, // 9: mycel.furnace.v1.Query.BurnAmountAll:input_type -> mycel.furnace.v1.QueryAllBurnAmountRequest + 1, // 10: mycel.furnace.v1.Query.Params:output_type -> mycel.furnace.v1.QueryParamsResponse + 3, // 11: mycel.furnace.v1.Query.EpochBurnConfig:output_type -> mycel.furnace.v1.QueryGetEpochBurnConfigResponse + 5, // 12: mycel.furnace.v1.Query.BurnAmount:output_type -> mycel.furnace.v1.QueryGetBurnAmountResponse + 7, // 13: mycel.furnace.v1.Query.BurnAmountAll:output_type -> mycel.furnace.v1.QueryAllBurnAmountResponse 10, // [10:14] is the sub-list for method output_type 6, // [6:10] is the sub-list for method input_type 6, // [6:6] is the sub-list for extension type_name @@ -3904,16 +3893,16 @@ var file_mycel_furnace_v1beta1_query_proto_depIdxs = []int32{ 0, // [0:6] is the sub-list for field type_name } -func init() { file_mycel_furnace_v1beta1_query_proto_init() } -func file_mycel_furnace_v1beta1_query_proto_init() { - if File_mycel_furnace_v1beta1_query_proto != nil { +func init() { file_mycel_furnace_v1_query_proto_init() } +func file_mycel_furnace_v1_query_proto_init() { + if File_mycel_furnace_v1_query_proto != nil { return } - file_mycel_furnace_v1beta1_burn_amount_proto_init() - file_mycel_furnace_v1beta1_epoch_burn_config_proto_init() - file_mycel_furnace_v1beta1_params_proto_init() + file_mycel_furnace_v1_burn_amount_proto_init() + file_mycel_furnace_v1_epoch_burn_config_proto_init() + file_mycel_furnace_v1_params_proto_init() if !protoimpl.UnsafeEnabled { - file_mycel_furnace_v1beta1_query_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_mycel_furnace_v1_query_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*QueryParamsRequest); i { case 0: return &v.state @@ -3925,7 +3914,7 @@ func file_mycel_furnace_v1beta1_query_proto_init() { return nil } } - file_mycel_furnace_v1beta1_query_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_mycel_furnace_v1_query_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*QueryParamsResponse); i { case 0: return &v.state @@ -3937,7 +3926,7 @@ func file_mycel_furnace_v1beta1_query_proto_init() { return nil } } - file_mycel_furnace_v1beta1_query_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + file_mycel_furnace_v1_query_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*QueryGetEpochBurnConfigRequest); i { case 0: return &v.state @@ -3949,7 +3938,7 @@ func file_mycel_furnace_v1beta1_query_proto_init() { return nil } } - file_mycel_furnace_v1beta1_query_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + file_mycel_furnace_v1_query_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*QueryGetEpochBurnConfigResponse); i { case 0: return &v.state @@ -3961,7 +3950,7 @@ func file_mycel_furnace_v1beta1_query_proto_init() { return nil } } - file_mycel_furnace_v1beta1_query_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + file_mycel_furnace_v1_query_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*QueryGetBurnAmountRequest); i { case 0: return &v.state @@ -3973,7 +3962,7 @@ func file_mycel_furnace_v1beta1_query_proto_init() { return nil } } - file_mycel_furnace_v1beta1_query_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + file_mycel_furnace_v1_query_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*QueryGetBurnAmountResponse); i { case 0: return &v.state @@ -3985,7 +3974,7 @@ func file_mycel_furnace_v1beta1_query_proto_init() { return nil } } - file_mycel_furnace_v1beta1_query_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + file_mycel_furnace_v1_query_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*QueryAllBurnAmountRequest); i { case 0: return &v.state @@ -3997,7 +3986,7 @@ func file_mycel_furnace_v1beta1_query_proto_init() { return nil } } - file_mycel_furnace_v1beta1_query_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + file_mycel_furnace_v1_query_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*QueryAllBurnAmountResponse); i { case 0: return &v.state @@ -4014,18 +4003,18 @@ func file_mycel_furnace_v1beta1_query_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_mycel_furnace_v1beta1_query_proto_rawDesc, + RawDescriptor: file_mycel_furnace_v1_query_proto_rawDesc, NumEnums: 0, NumMessages: 8, NumExtensions: 0, NumServices: 1, }, - GoTypes: file_mycel_furnace_v1beta1_query_proto_goTypes, - DependencyIndexes: file_mycel_furnace_v1beta1_query_proto_depIdxs, - MessageInfos: file_mycel_furnace_v1beta1_query_proto_msgTypes, + GoTypes: file_mycel_furnace_v1_query_proto_goTypes, + DependencyIndexes: file_mycel_furnace_v1_query_proto_depIdxs, + MessageInfos: file_mycel_furnace_v1_query_proto_msgTypes, }.Build() - File_mycel_furnace_v1beta1_query_proto = out.File - file_mycel_furnace_v1beta1_query_proto_rawDesc = nil - file_mycel_furnace_v1beta1_query_proto_goTypes = nil - file_mycel_furnace_v1beta1_query_proto_depIdxs = nil + File_mycel_furnace_v1_query_proto = out.File + file_mycel_furnace_v1_query_proto_rawDesc = nil + file_mycel_furnace_v1_query_proto_goTypes = nil + file_mycel_furnace_v1_query_proto_depIdxs = nil } diff --git a/api/mycel/furnace/v1beta1/query_grpc.pb.go b/api/mycel/furnace/v1/query_grpc.pb.go similarity index 87% rename from api/mycel/furnace/v1beta1/query_grpc.pb.go rename to api/mycel/furnace/v1/query_grpc.pb.go index d04833e2..225a872f 100644 --- a/api/mycel/furnace/v1beta1/query_grpc.pb.go +++ b/api/mycel/furnace/v1/query_grpc.pb.go @@ -1,6 +1,10 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. +// versions: +// - protoc-gen-go-grpc v1.3.0 +// - protoc (unknown) +// source: mycel/furnace/v1/query.proto -package types +package furnacev1 import ( context "context" @@ -14,6 +18,13 @@ import ( // Requires gRPC-Go v1.32.0 or later. const _ = grpc.SupportPackageIsVersion7 +const ( + Query_Params_FullMethodName = "/mycel.furnace.v1.Query/Params" + Query_EpochBurnConfig_FullMethodName = "/mycel.furnace.v1.Query/EpochBurnConfig" + Query_BurnAmount_FullMethodName = "/mycel.furnace.v1.Query/BurnAmount" + Query_BurnAmountAll_FullMethodName = "/mycel.furnace.v1.Query/BurnAmountAll" +) + // 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. @@ -37,7 +48,7 @@ func NewQueryClient(cc grpc.ClientConnInterface) QueryClient { func (c *queryClient) Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) { out := new(QueryParamsResponse) - err := c.cc.Invoke(ctx, "/mycel.furnace.v1beta1.Query/Params", in, out, opts...) + err := c.cc.Invoke(ctx, Query_Params_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -46,7 +57,7 @@ func (c *queryClient) Params(ctx context.Context, in *QueryParamsRequest, opts . func (c *queryClient) EpochBurnConfig(ctx context.Context, in *QueryGetEpochBurnConfigRequest, opts ...grpc.CallOption) (*QueryGetEpochBurnConfigResponse, error) { out := new(QueryGetEpochBurnConfigResponse) - err := c.cc.Invoke(ctx, "/mycel.furnace.v1beta1.Query/EpochBurnConfig", in, out, opts...) + err := c.cc.Invoke(ctx, Query_EpochBurnConfig_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -55,7 +66,7 @@ func (c *queryClient) EpochBurnConfig(ctx context.Context, in *QueryGetEpochBurn func (c *queryClient) BurnAmount(ctx context.Context, in *QueryGetBurnAmountRequest, opts ...grpc.CallOption) (*QueryGetBurnAmountResponse, error) { out := new(QueryGetBurnAmountResponse) - err := c.cc.Invoke(ctx, "/mycel.furnace.v1beta1.Query/BurnAmount", in, out, opts...) + err := c.cc.Invoke(ctx, Query_BurnAmount_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -64,7 +75,7 @@ func (c *queryClient) BurnAmount(ctx context.Context, in *QueryGetBurnAmountRequ func (c *queryClient) BurnAmountAll(ctx context.Context, in *QueryAllBurnAmountRequest, opts ...grpc.CallOption) (*QueryAllBurnAmountResponse, error) { out := new(QueryAllBurnAmountResponse) - err := c.cc.Invoke(ctx, "/mycel.furnace.v1beta1.Query/BurnAmountAll", in, out, opts...) + err := c.cc.Invoke(ctx, Query_BurnAmountAll_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -124,7 +135,7 @@ func _Query_Params_Handler(srv interface{}, ctx context.Context, dec func(interf } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mycel.furnace.v1beta1.Query/Params", + FullMethod: Query_Params_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).Params(ctx, req.(*QueryParamsRequest)) @@ -142,7 +153,7 @@ func _Query_EpochBurnConfig_Handler(srv interface{}, ctx context.Context, dec fu } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mycel.furnace.v1beta1.Query/EpochBurnConfig", + FullMethod: Query_EpochBurnConfig_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).EpochBurnConfig(ctx, req.(*QueryGetEpochBurnConfigRequest)) @@ -160,7 +171,7 @@ func _Query_BurnAmount_Handler(srv interface{}, ctx context.Context, dec func(in } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mycel.furnace.v1beta1.Query/BurnAmount", + FullMethod: Query_BurnAmount_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).BurnAmount(ctx, req.(*QueryGetBurnAmountRequest)) @@ -178,7 +189,7 @@ func _Query_BurnAmountAll_Handler(srv interface{}, ctx context.Context, dec func } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mycel.furnace.v1beta1.Query/BurnAmountAll", + FullMethod: Query_BurnAmountAll_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).BurnAmountAll(ctx, req.(*QueryAllBurnAmountRequest)) @@ -190,7 +201,7 @@ func _Query_BurnAmountAll_Handler(srv interface{}, ctx context.Context, dec func // It's only intended for direct use with grpc.RegisterService, // and not to be introspected or modified (even as a copy) var Query_ServiceDesc = grpc.ServiceDesc{ - ServiceName: "mycel.furnace.v1beta1.Query", + ServiceName: "mycel.furnace.v1.Query", HandlerType: (*QueryServer)(nil), Methods: []grpc.MethodDesc{ { @@ -211,5 +222,5 @@ var Query_ServiceDesc = grpc.ServiceDesc{ }, }, Streams: []grpc.StreamDesc{}, - Metadata: "mycel/furnace/v1beta1/query.proto", + Metadata: "mycel/furnace/v1/query.proto", } diff --git a/api/mycel/furnace/v1/tx.pulsar.go b/api/mycel/furnace/v1/tx.pulsar.go new file mode 100644 index 00000000..5592c4e0 --- /dev/null +++ b/api/mycel/furnace/v1/tx.pulsar.go @@ -0,0 +1,77 @@ +// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. +package furnacev1 + +import ( + _ "cosmossdk.io/api/cosmos/msg/v1" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" +) + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.27.0 +// protoc (unknown) +// source: mycel/furnace/v1/tx.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) +) + +var File_mycel_furnace_v1_tx_proto protoreflect.FileDescriptor + +var file_mycel_furnace_v1_tx_proto_rawDesc = []byte{ + 0x0a, 0x19, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2f, 0x66, 0x75, 0x72, 0x6e, 0x61, 0x63, 0x65, 0x2f, + 0x76, 0x31, 0x2f, 0x74, 0x78, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x10, 0x6d, 0x79, 0x63, + 0x65, 0x6c, 0x2e, 0x66, 0x75, 0x72, 0x6e, 0x61, 0x63, 0x65, 0x2e, 0x76, 0x31, 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, 0x32, 0x0c, 0x0a, 0x03, 0x4d, 0x73, 0x67, 0x1a, 0x05, 0x80, + 0xe7, 0xb0, 0x2a, 0x01, 0x42, 0xae, 0x01, 0x0a, 0x14, 0x63, 0x6f, 0x6d, 0x2e, 0x6d, 0x79, 0x63, + 0x65, 0x6c, 0x2e, 0x66, 0x75, 0x72, 0x6e, 0x61, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x42, 0x07, 0x54, + 0x78, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2b, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, + 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x6d, 0x79, 0x63, 0x65, 0x6c, + 0x2f, 0x66, 0x75, 0x72, 0x6e, 0x61, 0x63, 0x65, 0x2f, 0x76, 0x31, 0x3b, 0x66, 0x75, 0x72, 0x6e, + 0x61, 0x63, 0x65, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x4d, 0x46, 0x58, 0xaa, 0x02, 0x10, 0x4d, 0x79, + 0x63, 0x65, 0x6c, 0x2e, 0x46, 0x75, 0x72, 0x6e, 0x61, 0x63, 0x65, 0x2e, 0x56, 0x31, 0xca, 0x02, + 0x10, 0x4d, 0x79, 0x63, 0x65, 0x6c, 0x5c, 0x46, 0x75, 0x72, 0x6e, 0x61, 0x63, 0x65, 0x5c, 0x56, + 0x31, 0xe2, 0x02, 0x1c, 0x4d, 0x79, 0x63, 0x65, 0x6c, 0x5c, 0x46, 0x75, 0x72, 0x6e, 0x61, 0x63, + 0x65, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, + 0xea, 0x02, 0x12, 0x4d, 0x79, 0x63, 0x65, 0x6c, 0x3a, 0x3a, 0x46, 0x75, 0x72, 0x6e, 0x61, 0x63, + 0x65, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var file_mycel_furnace_v1_tx_proto_goTypes = []interface{}{} +var file_mycel_furnace_v1_tx_proto_depIdxs = []int32{ + 0, // [0:0] is the sub-list for method output_type + 0, // [0:0] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} + +func init() { file_mycel_furnace_v1_tx_proto_init() } +func file_mycel_furnace_v1_tx_proto_init() { + if File_mycel_furnace_v1_tx_proto != nil { + return + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_mycel_furnace_v1_tx_proto_rawDesc, + NumEnums: 0, + NumMessages: 0, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_mycel_furnace_v1_tx_proto_goTypes, + DependencyIndexes: file_mycel_furnace_v1_tx_proto_depIdxs, + }.Build() + File_mycel_furnace_v1_tx_proto = out.File + file_mycel_furnace_v1_tx_proto_rawDesc = nil + file_mycel_furnace_v1_tx_proto_goTypes = nil + file_mycel_furnace_v1_tx_proto_depIdxs = nil +} diff --git a/api/mycel/resolver/v1beta1/tx_grpc.pb.go b/api/mycel/furnace/v1/tx_grpc.pb.go similarity index 88% rename from api/mycel/resolver/v1beta1/tx_grpc.pb.go rename to api/mycel/furnace/v1/tx_grpc.pb.go index 9188cc20..b120d3d2 100644 --- a/api/mycel/resolver/v1beta1/tx_grpc.pb.go +++ b/api/mycel/furnace/v1/tx_grpc.pb.go @@ -1,6 +1,10 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. +// versions: +// - protoc-gen-go-grpc v1.3.0 +// - protoc (unknown) +// source: mycel/furnace/v1/tx.proto -package types +package furnacev1 import ( grpc "google.golang.org/grpc" @@ -11,6 +15,8 @@ import ( // Requires gRPC-Go v1.32.0 or later. const _ = grpc.SupportPackageIsVersion7 +const () + // MsgClient is the client API for Msg 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. @@ -53,9 +59,9 @@ func RegisterMsgServer(s grpc.ServiceRegistrar, srv MsgServer) { // It's only intended for direct use with grpc.RegisterService, // and not to be introspected or modified (even as a copy) var Msg_ServiceDesc = grpc.ServiceDesc{ - ServiceName: "mycel.resolver.v1beta1.Msg", + ServiceName: "mycel.furnace.v1.Msg", HandlerType: (*MsgServer)(nil), Methods: []grpc.MethodDesc{}, Streams: []grpc.StreamDesc{}, - Metadata: "mycel/resolver/v1beta1/tx.proto", + Metadata: "mycel/furnace/v1/tx.proto", } diff --git a/api/mycel/furnace/v1beta1/tx.pulsar.go b/api/mycel/furnace/v1beta1/tx.pulsar.go deleted file mode 100644 index 5fd9c6ea..00000000 --- a/api/mycel/furnace/v1beta1/tx.pulsar.go +++ /dev/null @@ -1,77 +0,0 @@ -// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. -package types - -import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" -) - -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.27.0 -// protoc (unknown) -// source: mycel/furnace/v1beta1/tx.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) -) - -var File_mycel_furnace_v1beta1_tx_proto protoreflect.FileDescriptor - -var file_mycel_furnace_v1beta1_tx_proto_rawDesc = []byte{ - 0x0a, 0x1e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2f, 0x66, 0x75, 0x72, 0x6e, 0x61, 0x63, 0x65, 0x2f, - 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x74, 0x78, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x12, 0x15, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x66, 0x75, 0x72, 0x6e, 0x61, 0x63, 0x65, 0x2e, - 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x32, 0x05, 0x0a, 0x03, 0x4d, 0x73, 0x67, 0x42, 0xc9, - 0x01, 0x0a, 0x19, 0x63, 0x6f, 0x6d, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x66, 0x75, 0x72, - 0x6e, 0x61, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x42, 0x07, 0x54, 0x78, - 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2d, 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, - 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0xa2, 0x02, 0x03, 0x4d, 0x46, 0x58, 0xaa, 0x02, 0x15, 0x4d, - 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x46, 0x75, 0x72, 0x6e, 0x61, 0x63, 0x65, 0x2e, 0x56, 0x31, 0x62, - 0x65, 0x74, 0x61, 0x31, 0xca, 0x02, 0x15, 0x4d, 0x79, 0x63, 0x65, 0x6c, 0x5c, 0x46, 0x75, 0x72, - 0x6e, 0x61, 0x63, 0x65, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xe2, 0x02, 0x21, 0x4d, - 0x79, 0x63, 0x65, 0x6c, 0x5c, 0x46, 0x75, 0x72, 0x6e, 0x61, 0x63, 0x65, 0x5c, 0x56, 0x31, 0x62, - 0x65, 0x74, 0x61, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, - 0xea, 0x02, 0x17, 0x4d, 0x79, 0x63, 0x65, 0x6c, 0x3a, 0x3a, 0x46, 0x75, 0x72, 0x6e, 0x61, 0x63, - 0x65, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x33, -} - -var file_mycel_furnace_v1beta1_tx_proto_goTypes = []interface{}{} -var file_mycel_furnace_v1beta1_tx_proto_depIdxs = []int32{ - 0, // [0:0] is the sub-list for method output_type - 0, // [0:0] is the sub-list for method input_type - 0, // [0:0] is the sub-list for extension type_name - 0, // [0:0] is the sub-list for extension extendee - 0, // [0:0] is the sub-list for field type_name -} - -func init() { file_mycel_furnace_v1beta1_tx_proto_init() } -func file_mycel_furnace_v1beta1_tx_proto_init() { - if File_mycel_furnace_v1beta1_tx_proto != nil { - return - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_mycel_furnace_v1beta1_tx_proto_rawDesc, - NumEnums: 0, - NumMessages: 0, - NumExtensions: 0, - NumServices: 1, - }, - GoTypes: file_mycel_furnace_v1beta1_tx_proto_goTypes, - DependencyIndexes: file_mycel_furnace_v1beta1_tx_proto_depIdxs, - }.Build() - File_mycel_furnace_v1beta1_tx_proto = out.File - file_mycel_furnace_v1beta1_tx_proto_rawDesc = nil - file_mycel_furnace_v1beta1_tx_proto_goTypes = nil - file_mycel_furnace_v1beta1_tx_proto_depIdxs = nil -} diff --git a/api/mycel/furnace/v1beta1/tx_grpc.pb.go b/api/mycel/furnace/v1beta1/tx_grpc.pb.go deleted file mode 100644 index 431b2fd0..00000000 --- a/api/mycel/furnace/v1beta1/tx_grpc.pb.go +++ /dev/null @@ -1,61 +0,0 @@ -// Code generated by protoc-gen-go-grpc. DO NOT EDIT. - -package types - -import ( - grpc "google.golang.org/grpc" -) - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 - -// MsgClient is the client API for Msg 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 MsgClient interface { -} - -type msgClient struct { - cc grpc.ClientConnInterface -} - -func NewMsgClient(cc grpc.ClientConnInterface) MsgClient { - return &msgClient{cc} -} - -// MsgServer is the server API for Msg service. -// All implementations must embed UnimplementedMsgServer -// for forward compatibility -type MsgServer interface { - mustEmbedUnimplementedMsgServer() -} - -// UnimplementedMsgServer must be embedded to have forward compatible implementations. -type UnimplementedMsgServer struct { -} - -func (UnimplementedMsgServer) mustEmbedUnimplementedMsgServer() {} - -// UnsafeMsgServer may be embedded to opt out of forward compatibility for this service. -// Use of this interface is not recommended, as added methods to MsgServer will -// result in compilation errors. -type UnsafeMsgServer interface { - mustEmbedUnimplementedMsgServer() -} - -func RegisterMsgServer(s grpc.ServiceRegistrar, srv MsgServer) { - s.RegisterService(&Msg_ServiceDesc, srv) -} - -// Msg_ServiceDesc is the grpc.ServiceDesc for Msg service. -// It's only intended for direct use with grpc.RegisterService, -// and not to be introspected or modified (even as a copy) -var Msg_ServiceDesc = grpc.ServiceDesc{ - ServiceName: "mycel.furnace.v1beta1.Msg", - HandlerType: (*MsgServer)(nil), - Methods: []grpc.MethodDesc{}, - Streams: []grpc.StreamDesc{}, - Metadata: "mycel/furnace/v1beta1/tx.proto", -} diff --git a/api/mycel/registry/module/v1/module.pulsar.go b/api/mycel/registry/module/v1/module.pulsar.go index 8d9c10b4..ffa56311 100644 --- a/api/mycel/registry/module/v1/module.pulsar.go +++ b/api/mycel/registry/module/v1/module.pulsar.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-go-pulsar. DO NOT EDIT. -package registry +package modulev1 import ( _ "cosmossdk.io/api/cosmos/app/v1alpha1" @@ -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,27 @@ 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, 0xe2, 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, 0x32, 0x63, + 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, + 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f, 0x6d, + 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2f, 0x76, 0x31, 0x3b, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x76, + 0x31, 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/api/mycel/registry/v1beta1/access_control.pulsar.go b/api/mycel/registry/v1/access_control.pulsar.go similarity index 71% rename from api/mycel/registry/v1beta1/access_control.pulsar.go rename to api/mycel/registry/v1/access_control.pulsar.go index e159e147..07d8160a 100644 --- a/api/mycel/registry/v1beta1/access_control.pulsar.go +++ b/api/mycel/registry/v1/access_control.pulsar.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-go-pulsar. DO NOT EDIT. -package types +package registryv1 import ( fmt "fmt" @@ -19,8 +19,8 @@ var ( ) func init() { - file_mycel_registry_v1beta1_access_control_proto_init() - md_AccessControl = File_mycel_registry_v1beta1_access_control_proto.Messages().ByName("AccessControl") + file_mycel_registry_v1_access_control_proto_init() + md_AccessControl = File_mycel_registry_v1_access_control_proto.Messages().ByName("AccessControl") fd_AccessControl_address = md_AccessControl.Fields().ByName("address") fd_AccessControl_role = md_AccessControl.Fields().ByName("role") } @@ -34,7 +34,7 @@ func (x *AccessControl) ProtoReflect() protoreflect.Message { } func (x *AccessControl) slowProtoReflect() protoreflect.Message { - mi := &file_mycel_registry_v1beta1_access_control_proto_msgTypes[0] + mi := &file_mycel_registry_v1_access_control_proto_msgTypes[0] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -117,15 +117,15 @@ func (x *fastReflection_AccessControl) Range(f func(protoreflect.FieldDescriptor // a repeated field is populated if it is non-empty. func (x *fastReflection_AccessControl) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "mycel.registry.v1beta1.AccessControl.address": + case "mycel.registry.v1.AccessControl.address": return x.Address != "" - case "mycel.registry.v1beta1.AccessControl.role": + case "mycel.registry.v1.AccessControl.role": return x.Role != 0 default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.AccessControl")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.AccessControl")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.AccessControl does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.AccessControl does not contain field %s", fd.FullName())) } } @@ -137,15 +137,15 @@ func (x *fastReflection_AccessControl) Has(fd protoreflect.FieldDescriptor) bool // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_AccessControl) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "mycel.registry.v1beta1.AccessControl.address": + case "mycel.registry.v1.AccessControl.address": x.Address = "" - case "mycel.registry.v1beta1.AccessControl.role": + case "mycel.registry.v1.AccessControl.role": x.Role = 0 default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.AccessControl")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.AccessControl")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.AccessControl does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.AccessControl does not contain field %s", fd.FullName())) } } @@ -157,17 +157,17 @@ func (x *fastReflection_AccessControl) Clear(fd protoreflect.FieldDescriptor) { // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_AccessControl) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "mycel.registry.v1beta1.AccessControl.address": + case "mycel.registry.v1.AccessControl.address": value := x.Address return protoreflect.ValueOfString(value) - case "mycel.registry.v1beta1.AccessControl.role": + case "mycel.registry.v1.AccessControl.role": value := x.Role return protoreflect.ValueOfEnum((protoreflect.EnumNumber)(value)) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.AccessControl")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.AccessControl")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.AccessControl does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.AccessControl does not contain field %s", descriptor.FullName())) } } @@ -183,15 +183,15 @@ func (x *fastReflection_AccessControl) Get(descriptor protoreflect.FieldDescript // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_AccessControl) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "mycel.registry.v1beta1.AccessControl.address": + case "mycel.registry.v1.AccessControl.address": x.Address = value.Interface().(string) - case "mycel.registry.v1beta1.AccessControl.role": + case "mycel.registry.v1.AccessControl.role": x.Role = (DomainRole)(value.Enum()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.AccessControl")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.AccessControl")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.AccessControl does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.AccessControl does not contain field %s", fd.FullName())) } } @@ -207,15 +207,15 @@ func (x *fastReflection_AccessControl) Set(fd protoreflect.FieldDescriptor, valu // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_AccessControl) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "mycel.registry.v1beta1.AccessControl.address": - panic(fmt.Errorf("field address of message mycel.registry.v1beta1.AccessControl is not mutable")) - case "mycel.registry.v1beta1.AccessControl.role": - panic(fmt.Errorf("field role of message mycel.registry.v1beta1.AccessControl is not mutable")) + case "mycel.registry.v1.AccessControl.address": + panic(fmt.Errorf("field address of message mycel.registry.v1.AccessControl is not mutable")) + case "mycel.registry.v1.AccessControl.role": + panic(fmt.Errorf("field role of message mycel.registry.v1.AccessControl is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.AccessControl")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.AccessControl")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.AccessControl does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.AccessControl does not contain field %s", fd.FullName())) } } @@ -224,15 +224,15 @@ func (x *fastReflection_AccessControl) Mutable(fd protoreflect.FieldDescriptor) // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_AccessControl) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "mycel.registry.v1beta1.AccessControl.address": + case "mycel.registry.v1.AccessControl.address": return protoreflect.ValueOfString("") - case "mycel.registry.v1beta1.AccessControl.role": + case "mycel.registry.v1.AccessControl.role": return protoreflect.ValueOfEnum(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.AccessControl")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.AccessControl")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.AccessControl does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.AccessControl does not contain field %s", fd.FullName())) } } @@ -242,7 +242,7 @@ func (x *fastReflection_AccessControl) NewField(fd protoreflect.FieldDescriptor) func (x *fastReflection_AccessControl) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in mycel.registry.v1beta1.AccessControl", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in mycel.registry.v1.AccessControl", d.FullName())) } panic("unreachable") } @@ -484,7 +484,7 @@ func (x *fastReflection_AccessControl) ProtoMethods() *protoiface.Methods { // versions: // protoc-gen-go v1.27.0 // protoc (unknown) -// source: mycel/registry/v1beta1/access_control.proto +// source: mycel/registry/v1/access_control.proto const ( // Verify that this generated code is sufficiently up-to-date. @@ -526,11 +526,11 @@ func (x DomainRole) String() string { } func (DomainRole) Descriptor() protoreflect.EnumDescriptor { - return file_mycel_registry_v1beta1_access_control_proto_enumTypes[0].Descriptor() + return file_mycel_registry_v1_access_control_proto_enumTypes[0].Descriptor() } func (DomainRole) Type() protoreflect.EnumType { - return &file_mycel_registry_v1beta1_access_control_proto_enumTypes[0] + return &file_mycel_registry_v1_access_control_proto_enumTypes[0] } func (x DomainRole) Number() protoreflect.EnumNumber { @@ -539,7 +539,7 @@ func (x DomainRole) Number() protoreflect.EnumNumber { // Deprecated: Use DomainRole.Descriptor instead. func (DomainRole) EnumDescriptor() ([]byte, []int) { - return file_mycel_registry_v1beta1_access_control_proto_rawDescGZIP(), []int{0} + return file_mycel_registry_v1_access_control_proto_rawDescGZIP(), []int{0} } type AccessControl struct { @@ -548,13 +548,13 @@ type AccessControl struct { unknownFields protoimpl.UnknownFields Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` - Role DomainRole `protobuf:"varint,2,opt,name=role,proto3,enum=mycel.registry.v1beta1.DomainRole" json:"role,omitempty"` + Role DomainRole `protobuf:"varint,2,opt,name=role,proto3,enum=mycel.registry.v1.DomainRole" json:"role,omitempty"` } func (x *AccessControl) Reset() { *x = AccessControl{} if protoimpl.UnsafeEnabled { - mi := &file_mycel_registry_v1beta1_access_control_proto_msgTypes[0] + mi := &file_mycel_registry_v1_access_control_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -568,7 +568,7 @@ func (*AccessControl) ProtoMessage() {} // Deprecated: Use AccessControl.ProtoReflect.Descriptor instead. func (*AccessControl) Descriptor() ([]byte, []int) { - return file_mycel_registry_v1beta1_access_control_proto_rawDescGZIP(), []int{0} + return file_mycel_registry_v1_access_control_proto_rawDescGZIP(), []int{0} } func (x *AccessControl) GetAddress() string { @@ -585,59 +585,57 @@ func (x *AccessControl) GetRole() DomainRole { return DomainRole_NO_ROLE } -var File_mycel_registry_v1beta1_access_control_proto protoreflect.FileDescriptor - -var file_mycel_registry_v1beta1_access_control_proto_rawDesc = []byte{ - 0x0a, 0x2b, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, - 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f, - 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x16, 0x6d, - 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, - 0x62, 0x65, 0x74, 0x61, 0x31, 0x22, 0x61, 0x0a, 0x0d, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x43, - 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, - 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, - 0x12, 0x36, 0x0a, 0x04, 0x72, 0x6f, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x22, - 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, - 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x6f, - 0x6c, 0x65, 0x52, 0x04, 0x72, 0x6f, 0x6c, 0x65, 0x2a, 0x30, 0x0a, 0x0a, 0x44, 0x6f, 0x6d, 0x61, - 0x69, 0x6e, 0x52, 0x6f, 0x6c, 0x65, 0x12, 0x0b, 0x0a, 0x07, 0x4e, 0x4f, 0x5f, 0x52, 0x4f, 0x4c, - 0x45, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x4f, 0x57, 0x4e, 0x45, 0x52, 0x10, 0x01, 0x12, 0x0a, - 0x0a, 0x06, 0x45, 0x44, 0x49, 0x54, 0x4f, 0x52, 0x10, 0x02, 0x42, 0xda, 0x01, 0x0a, 0x1a, 0x63, - 0x6f, 0x6d, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, - 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x42, 0x12, 0x41, 0x63, 0x63, 0x65, 0x73, - 0x73, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, - 0x2e, 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, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0xa2, - 0x02, 0x03, 0x4d, 0x52, 0x58, 0xaa, 0x02, 0x16, 0x4d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x52, 0x65, - 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xca, 0x02, - 0x16, 0x4d, 0x79, 0x63, 0x65, 0x6c, 0x5c, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x5c, - 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xe2, 0x02, 0x22, 0x4d, 0x79, 0x63, 0x65, 0x6c, 0x5c, - 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, - 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x18, 0x4d, - 0x79, 0x63, 0x65, 0x6c, 0x3a, 0x3a, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x3a, 0x3a, - 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +var File_mycel_registry_v1_access_control_proto protoreflect.FileDescriptor + +var file_mycel_registry_v1_access_control_proto_rawDesc = []byte{ + 0x0a, 0x26, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, + 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x72, + 0x6f, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x11, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, + 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x22, 0x5c, 0x0a, 0x0d, 0x41, + 0x63, 0x63, 0x65, 0x73, 0x73, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x12, 0x18, 0x0a, 0x07, + 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, + 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x31, 0x0a, 0x04, 0x72, 0x6f, 0x6c, 0x65, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1d, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x72, 0x65, 0x67, + 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, + 0x6f, 0x6c, 0x65, 0x52, 0x04, 0x72, 0x6f, 0x6c, 0x65, 0x2a, 0x30, 0x0a, 0x0a, 0x44, 0x6f, 0x6d, + 0x61, 0x69, 0x6e, 0x52, 0x6f, 0x6c, 0x65, 0x12, 0x0b, 0x0a, 0x07, 0x4e, 0x4f, 0x5f, 0x52, 0x4f, + 0x4c, 0x45, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x4f, 0x57, 0x4e, 0x45, 0x52, 0x10, 0x01, 0x12, + 0x0a, 0x0a, 0x06, 0x45, 0x44, 0x49, 0x54, 0x4f, 0x52, 0x10, 0x02, 0x42, 0xc0, 0x01, 0x0a, 0x15, + 0x63, 0x6f, 0x6d, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, + 0x72, 0x79, 0x2e, 0x76, 0x31, 0x42, 0x12, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x43, 0x6f, 0x6e, + 0x74, 0x72, 0x6f, 0x6c, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2d, 0x63, 0x6f, 0x73, + 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x6d, 0x79, + 0x63, 0x65, 0x6c, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x3b, + 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x4d, 0x52, 0x58, + 0xaa, 0x02, 0x11, 0x4d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, + 0x79, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x11, 0x4d, 0x79, 0x63, 0x65, 0x6c, 0x5c, 0x52, 0x65, 0x67, + 0x69, 0x73, 0x74, 0x72, 0x79, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x1d, 0x4d, 0x79, 0x63, 0x65, 0x6c, + 0x5c, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, + 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x13, 0x4d, 0x79, 0x63, 0x65, 0x6c, + 0x3a, 0x3a, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( - file_mycel_registry_v1beta1_access_control_proto_rawDescOnce sync.Once - file_mycel_registry_v1beta1_access_control_proto_rawDescData = file_mycel_registry_v1beta1_access_control_proto_rawDesc + file_mycel_registry_v1_access_control_proto_rawDescOnce sync.Once + file_mycel_registry_v1_access_control_proto_rawDescData = file_mycel_registry_v1_access_control_proto_rawDesc ) -func file_mycel_registry_v1beta1_access_control_proto_rawDescGZIP() []byte { - file_mycel_registry_v1beta1_access_control_proto_rawDescOnce.Do(func() { - file_mycel_registry_v1beta1_access_control_proto_rawDescData = protoimpl.X.CompressGZIP(file_mycel_registry_v1beta1_access_control_proto_rawDescData) +func file_mycel_registry_v1_access_control_proto_rawDescGZIP() []byte { + file_mycel_registry_v1_access_control_proto_rawDescOnce.Do(func() { + file_mycel_registry_v1_access_control_proto_rawDescData = protoimpl.X.CompressGZIP(file_mycel_registry_v1_access_control_proto_rawDescData) }) - return file_mycel_registry_v1beta1_access_control_proto_rawDescData + return file_mycel_registry_v1_access_control_proto_rawDescData } -var file_mycel_registry_v1beta1_access_control_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_mycel_registry_v1beta1_access_control_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_mycel_registry_v1beta1_access_control_proto_goTypes = []interface{}{ - (DomainRole)(0), // 0: mycel.registry.v1beta1.DomainRole - (*AccessControl)(nil), // 1: mycel.registry.v1beta1.AccessControl +var file_mycel_registry_v1_access_control_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_mycel_registry_v1_access_control_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_mycel_registry_v1_access_control_proto_goTypes = []interface{}{ + (DomainRole)(0), // 0: mycel.registry.v1.DomainRole + (*AccessControl)(nil), // 1: mycel.registry.v1.AccessControl } -var file_mycel_registry_v1beta1_access_control_proto_depIdxs = []int32{ - 0, // 0: mycel.registry.v1beta1.AccessControl.role:type_name -> mycel.registry.v1beta1.DomainRole +var file_mycel_registry_v1_access_control_proto_depIdxs = []int32{ + 0, // 0: mycel.registry.v1.AccessControl.role:type_name -> mycel.registry.v1.DomainRole 1, // [1:1] is the sub-list for method output_type 1, // [1:1] is the sub-list for method input_type 1, // [1:1] is the sub-list for extension type_name @@ -645,13 +643,13 @@ var file_mycel_registry_v1beta1_access_control_proto_depIdxs = []int32{ 0, // [0:1] is the sub-list for field type_name } -func init() { file_mycel_registry_v1beta1_access_control_proto_init() } -func file_mycel_registry_v1beta1_access_control_proto_init() { - if File_mycel_registry_v1beta1_access_control_proto != nil { +func init() { file_mycel_registry_v1_access_control_proto_init() } +func file_mycel_registry_v1_access_control_proto_init() { + if File_mycel_registry_v1_access_control_proto != nil { return } if !protoimpl.UnsafeEnabled { - file_mycel_registry_v1beta1_access_control_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_mycel_registry_v1_access_control_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*AccessControl); i { case 0: return &v.state @@ -668,19 +666,19 @@ func file_mycel_registry_v1beta1_access_control_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_mycel_registry_v1beta1_access_control_proto_rawDesc, + RawDescriptor: file_mycel_registry_v1_access_control_proto_rawDesc, NumEnums: 1, NumMessages: 1, NumExtensions: 0, NumServices: 0, }, - GoTypes: file_mycel_registry_v1beta1_access_control_proto_goTypes, - DependencyIndexes: file_mycel_registry_v1beta1_access_control_proto_depIdxs, - EnumInfos: file_mycel_registry_v1beta1_access_control_proto_enumTypes, - MessageInfos: file_mycel_registry_v1beta1_access_control_proto_msgTypes, + GoTypes: file_mycel_registry_v1_access_control_proto_goTypes, + DependencyIndexes: file_mycel_registry_v1_access_control_proto_depIdxs, + EnumInfos: file_mycel_registry_v1_access_control_proto_enumTypes, + MessageInfos: file_mycel_registry_v1_access_control_proto_msgTypes, }.Build() - File_mycel_registry_v1beta1_access_control_proto = out.File - file_mycel_registry_v1beta1_access_control_proto_rawDesc = nil - file_mycel_registry_v1beta1_access_control_proto_goTypes = nil - file_mycel_registry_v1beta1_access_control_proto_depIdxs = nil + File_mycel_registry_v1_access_control_proto = out.File + file_mycel_registry_v1_access_control_proto_rawDesc = nil + file_mycel_registry_v1_access_control_proto_goTypes = nil + file_mycel_registry_v1_access_control_proto_depIdxs = nil } diff --git a/api/mycel/registry/v1/dns_record.pulsar.go b/api/mycel/registry/v1/dns_record.pulsar.go new file mode 100644 index 00000000..3530bd46 --- /dev/null +++ b/api/mycel/registry/v1/dns_record.pulsar.go @@ -0,0 +1,170 @@ +// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. +package registryv1 + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.27.0 +// protoc (unknown) +// source: mycel/registry/v1/dns_record.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) +) + +type DnsRecordType int32 + +const ( + DnsRecordType_NO_RECORD_TYPE DnsRecordType = 0 + DnsRecordType_A DnsRecordType = 1 + DnsRecordType_AAAA DnsRecordType = 2 + DnsRecordType_CNAME DnsRecordType = 3 + DnsRecordType_NS DnsRecordType = 4 + DnsRecordType_MX DnsRecordType = 5 + DnsRecordType_PTR DnsRecordType = 6 + DnsRecordType_SOA DnsRecordType = 7 + DnsRecordType_SRV DnsRecordType = 8 + DnsRecordType_TXT DnsRecordType = 9 +) + +// Enum value maps for DnsRecordType. +var ( + DnsRecordType_name = map[int32]string{ + 0: "NO_RECORD_TYPE", + 1: "A", + 2: "AAAA", + 3: "CNAME", + 4: "NS", + 5: "MX", + 6: "PTR", + 7: "SOA", + 8: "SRV", + 9: "TXT", + } + DnsRecordType_value = map[string]int32{ + "NO_RECORD_TYPE": 0, + "A": 1, + "AAAA": 2, + "CNAME": 3, + "NS": 4, + "MX": 5, + "PTR": 6, + "SOA": 7, + "SRV": 8, + "TXT": 9, + } +) + +func (x DnsRecordType) Enum() *DnsRecordType { + p := new(DnsRecordType) + *p = x + return p +} + +func (x DnsRecordType) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (DnsRecordType) Descriptor() protoreflect.EnumDescriptor { + return file_mycel_registry_v1_dns_record_proto_enumTypes[0].Descriptor() +} + +func (DnsRecordType) Type() protoreflect.EnumType { + return &file_mycel_registry_v1_dns_record_proto_enumTypes[0] +} + +func (x DnsRecordType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use DnsRecordType.Descriptor instead. +func (DnsRecordType) EnumDescriptor() ([]byte, []int) { + return file_mycel_registry_v1_dns_record_proto_rawDescGZIP(), []int{0} +} + +var File_mycel_registry_v1_dns_record_proto protoreflect.FileDescriptor + +var file_mycel_registry_v1_dns_record_proto_rawDesc = []byte{ + 0x0a, 0x22, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, + 0x2f, 0x76, 0x31, 0x2f, 0x64, 0x6e, 0x73, 0x5f, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x11, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x72, 0x65, 0x67, 0x69, + 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2a, 0x73, 0x0a, 0x0d, 0x44, 0x6e, 0x73, 0x52, 0x65, + 0x63, 0x6f, 0x72, 0x64, 0x54, 0x79, 0x70, 0x65, 0x12, 0x12, 0x0a, 0x0e, 0x4e, 0x4f, 0x5f, 0x52, + 0x45, 0x43, 0x4f, 0x52, 0x44, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x10, 0x00, 0x12, 0x05, 0x0a, 0x01, + 0x41, 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x41, 0x41, 0x41, 0x41, 0x10, 0x02, 0x12, 0x09, 0x0a, + 0x05, 0x43, 0x4e, 0x41, 0x4d, 0x45, 0x10, 0x03, 0x12, 0x06, 0x0a, 0x02, 0x4e, 0x53, 0x10, 0x04, + 0x12, 0x06, 0x0a, 0x02, 0x4d, 0x58, 0x10, 0x05, 0x12, 0x07, 0x0a, 0x03, 0x50, 0x54, 0x52, 0x10, + 0x06, 0x12, 0x07, 0x0a, 0x03, 0x53, 0x4f, 0x41, 0x10, 0x07, 0x12, 0x07, 0x0a, 0x03, 0x53, 0x52, + 0x56, 0x10, 0x08, 0x12, 0x07, 0x0a, 0x03, 0x54, 0x58, 0x54, 0x10, 0x09, 0x42, 0xbc, 0x01, 0x0a, + 0x15, 0x63, 0x6f, 0x6d, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, + 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x42, 0x0e, 0x44, 0x6e, 0x73, 0x52, 0x65, 0x63, 0x6f, 0x72, + 0x64, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2d, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, + 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x6d, 0x79, 0x63, 0x65, 0x6c, + 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x3b, 0x72, 0x65, 0x67, + 0x69, 0x73, 0x74, 0x72, 0x79, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x4d, 0x52, 0x58, 0xaa, 0x02, 0x11, + 0x4d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x56, + 0x31, 0xca, 0x02, 0x11, 0x4d, 0x79, 0x63, 0x65, 0x6c, 0x5c, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, + 0x72, 0x79, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x1d, 0x4d, 0x79, 0x63, 0x65, 0x6c, 0x5c, 0x52, 0x65, + 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, + 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x13, 0x4d, 0x79, 0x63, 0x65, 0x6c, 0x3a, 0x3a, 0x52, + 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x33, +} + +var ( + file_mycel_registry_v1_dns_record_proto_rawDescOnce sync.Once + file_mycel_registry_v1_dns_record_proto_rawDescData = file_mycel_registry_v1_dns_record_proto_rawDesc +) + +func file_mycel_registry_v1_dns_record_proto_rawDescGZIP() []byte { + file_mycel_registry_v1_dns_record_proto_rawDescOnce.Do(func() { + file_mycel_registry_v1_dns_record_proto_rawDescData = protoimpl.X.CompressGZIP(file_mycel_registry_v1_dns_record_proto_rawDescData) + }) + return file_mycel_registry_v1_dns_record_proto_rawDescData +} + +var file_mycel_registry_v1_dns_record_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_mycel_registry_v1_dns_record_proto_goTypes = []interface{}{ + (DnsRecordType)(0), // 0: mycel.registry.v1.DnsRecordType +} +var file_mycel_registry_v1_dns_record_proto_depIdxs = []int32{ + 0, // [0:0] is the sub-list for method output_type + 0, // [0:0] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} + +func init() { file_mycel_registry_v1_dns_record_proto_init() } +func file_mycel_registry_v1_dns_record_proto_init() { + if File_mycel_registry_v1_dns_record_proto != nil { + return + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_mycel_registry_v1_dns_record_proto_rawDesc, + NumEnums: 1, + NumMessages: 0, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_mycel_registry_v1_dns_record_proto_goTypes, + DependencyIndexes: file_mycel_registry_v1_dns_record_proto_depIdxs, + EnumInfos: file_mycel_registry_v1_dns_record_proto_enumTypes, + }.Build() + File_mycel_registry_v1_dns_record_proto = out.File + file_mycel_registry_v1_dns_record_proto_rawDesc = nil + file_mycel_registry_v1_dns_record_proto_goTypes = nil + file_mycel_registry_v1_dns_record_proto_depIdxs = nil +} diff --git a/api/mycel/registry/v1beta1/domain_ownership.pulsar.go b/api/mycel/registry/v1/domain_ownership.pulsar.go similarity index 80% rename from api/mycel/registry/v1beta1/domain_ownership.pulsar.go rename to api/mycel/registry/v1/domain_ownership.pulsar.go index ff1e35a0..eb1ac914 100644 --- a/api/mycel/registry/v1beta1/domain_ownership.pulsar.go +++ b/api/mycel/registry/v1/domain_ownership.pulsar.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-go-pulsar. DO NOT EDIT. -package types +package registryv1 import ( fmt "fmt" @@ -20,8 +20,8 @@ var ( ) func init() { - file_mycel_registry_v1beta1_domain_ownership_proto_init() - md_OwnedDomain = File_mycel_registry_v1beta1_domain_ownership_proto.Messages().ByName("OwnedDomain") + file_mycel_registry_v1_domain_ownership_proto_init() + md_OwnedDomain = File_mycel_registry_v1_domain_ownership_proto.Messages().ByName("OwnedDomain") fd_OwnedDomain_name = md_OwnedDomain.Fields().ByName("name") fd_OwnedDomain_parent = md_OwnedDomain.Fields().ByName("parent") } @@ -35,7 +35,7 @@ func (x *OwnedDomain) ProtoReflect() protoreflect.Message { } func (x *OwnedDomain) slowProtoReflect() protoreflect.Message { - mi := &file_mycel_registry_v1beta1_domain_ownership_proto_msgTypes[0] + mi := &file_mycel_registry_v1_domain_ownership_proto_msgTypes[0] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -118,15 +118,15 @@ func (x *fastReflection_OwnedDomain) Range(f func(protoreflect.FieldDescriptor, // a repeated field is populated if it is non-empty. func (x *fastReflection_OwnedDomain) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "mycel.registry.v1beta1.OwnedDomain.name": + case "mycel.registry.v1.OwnedDomain.name": return x.Name != "" - case "mycel.registry.v1beta1.OwnedDomain.parent": + case "mycel.registry.v1.OwnedDomain.parent": return x.Parent != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.OwnedDomain")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.OwnedDomain")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.OwnedDomain does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.OwnedDomain does not contain field %s", fd.FullName())) } } @@ -138,15 +138,15 @@ func (x *fastReflection_OwnedDomain) Has(fd protoreflect.FieldDescriptor) bool { // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_OwnedDomain) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "mycel.registry.v1beta1.OwnedDomain.name": + case "mycel.registry.v1.OwnedDomain.name": x.Name = "" - case "mycel.registry.v1beta1.OwnedDomain.parent": + case "mycel.registry.v1.OwnedDomain.parent": x.Parent = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.OwnedDomain")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.OwnedDomain")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.OwnedDomain does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.OwnedDomain does not contain field %s", fd.FullName())) } } @@ -158,17 +158,17 @@ func (x *fastReflection_OwnedDomain) Clear(fd protoreflect.FieldDescriptor) { // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_OwnedDomain) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "mycel.registry.v1beta1.OwnedDomain.name": + case "mycel.registry.v1.OwnedDomain.name": value := x.Name return protoreflect.ValueOfString(value) - case "mycel.registry.v1beta1.OwnedDomain.parent": + case "mycel.registry.v1.OwnedDomain.parent": value := x.Parent return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.OwnedDomain")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.OwnedDomain")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.OwnedDomain does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.OwnedDomain does not contain field %s", descriptor.FullName())) } } @@ -184,15 +184,15 @@ func (x *fastReflection_OwnedDomain) Get(descriptor protoreflect.FieldDescriptor // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_OwnedDomain) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "mycel.registry.v1beta1.OwnedDomain.name": + case "mycel.registry.v1.OwnedDomain.name": x.Name = value.Interface().(string) - case "mycel.registry.v1beta1.OwnedDomain.parent": + case "mycel.registry.v1.OwnedDomain.parent": x.Parent = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.OwnedDomain")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.OwnedDomain")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.OwnedDomain does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.OwnedDomain does not contain field %s", fd.FullName())) } } @@ -208,15 +208,15 @@ func (x *fastReflection_OwnedDomain) Set(fd protoreflect.FieldDescriptor, value // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_OwnedDomain) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "mycel.registry.v1beta1.OwnedDomain.name": - panic(fmt.Errorf("field name of message mycel.registry.v1beta1.OwnedDomain is not mutable")) - case "mycel.registry.v1beta1.OwnedDomain.parent": - panic(fmt.Errorf("field parent of message mycel.registry.v1beta1.OwnedDomain is not mutable")) + case "mycel.registry.v1.OwnedDomain.name": + panic(fmt.Errorf("field name of message mycel.registry.v1.OwnedDomain is not mutable")) + case "mycel.registry.v1.OwnedDomain.parent": + panic(fmt.Errorf("field parent of message mycel.registry.v1.OwnedDomain is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.OwnedDomain")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.OwnedDomain")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.OwnedDomain does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.OwnedDomain does not contain field %s", fd.FullName())) } } @@ -225,15 +225,15 @@ func (x *fastReflection_OwnedDomain) Mutable(fd protoreflect.FieldDescriptor) pr // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_OwnedDomain) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "mycel.registry.v1beta1.OwnedDomain.name": + case "mycel.registry.v1.OwnedDomain.name": return protoreflect.ValueOfString("") - case "mycel.registry.v1beta1.OwnedDomain.parent": + case "mycel.registry.v1.OwnedDomain.parent": return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.OwnedDomain")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.OwnedDomain")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.OwnedDomain does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.OwnedDomain does not contain field %s", fd.FullName())) } } @@ -243,7 +243,7 @@ func (x *fastReflection_OwnedDomain) NewField(fd protoreflect.FieldDescriptor) p func (x *fastReflection_OwnedDomain) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in mycel.registry.v1beta1.OwnedDomain", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in mycel.registry.v1.OwnedDomain", d.FullName())) } panic("unreachable") } @@ -555,8 +555,8 @@ var ( ) func init() { - file_mycel_registry_v1beta1_domain_ownership_proto_init() - md_DomainOwnership = File_mycel_registry_v1beta1_domain_ownership_proto.Messages().ByName("DomainOwnership") + file_mycel_registry_v1_domain_ownership_proto_init() + md_DomainOwnership = File_mycel_registry_v1_domain_ownership_proto.Messages().ByName("DomainOwnership") fd_DomainOwnership_owner = md_DomainOwnership.Fields().ByName("owner") fd_DomainOwnership_domains = md_DomainOwnership.Fields().ByName("domains") } @@ -570,7 +570,7 @@ func (x *DomainOwnership) ProtoReflect() protoreflect.Message { } func (x *DomainOwnership) slowProtoReflect() protoreflect.Message { - mi := &file_mycel_registry_v1beta1_domain_ownership_proto_msgTypes[1] + mi := &file_mycel_registry_v1_domain_ownership_proto_msgTypes[1] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -653,15 +653,15 @@ func (x *fastReflection_DomainOwnership) Range(f func(protoreflect.FieldDescript // a repeated field is populated if it is non-empty. func (x *fastReflection_DomainOwnership) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "mycel.registry.v1beta1.DomainOwnership.owner": + case "mycel.registry.v1.DomainOwnership.owner": return x.Owner != "" - case "mycel.registry.v1beta1.DomainOwnership.domains": + case "mycel.registry.v1.DomainOwnership.domains": return len(x.Domains) != 0 default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.DomainOwnership")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.DomainOwnership")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.DomainOwnership does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.DomainOwnership does not contain field %s", fd.FullName())) } } @@ -673,15 +673,15 @@ func (x *fastReflection_DomainOwnership) Has(fd protoreflect.FieldDescriptor) bo // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_DomainOwnership) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "mycel.registry.v1beta1.DomainOwnership.owner": + case "mycel.registry.v1.DomainOwnership.owner": x.Owner = "" - case "mycel.registry.v1beta1.DomainOwnership.domains": + case "mycel.registry.v1.DomainOwnership.domains": x.Domains = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.DomainOwnership")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.DomainOwnership")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.DomainOwnership does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.DomainOwnership does not contain field %s", fd.FullName())) } } @@ -693,10 +693,10 @@ func (x *fastReflection_DomainOwnership) Clear(fd protoreflect.FieldDescriptor) // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_DomainOwnership) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "mycel.registry.v1beta1.DomainOwnership.owner": + case "mycel.registry.v1.DomainOwnership.owner": value := x.Owner return protoreflect.ValueOfString(value) - case "mycel.registry.v1beta1.DomainOwnership.domains": + case "mycel.registry.v1.DomainOwnership.domains": if len(x.Domains) == 0 { return protoreflect.ValueOfList(&_DomainOwnership_2_list{}) } @@ -704,9 +704,9 @@ func (x *fastReflection_DomainOwnership) Get(descriptor protoreflect.FieldDescri return protoreflect.ValueOfList(listValue) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.DomainOwnership")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.DomainOwnership")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.DomainOwnership does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.DomainOwnership does not contain field %s", descriptor.FullName())) } } @@ -722,17 +722,17 @@ func (x *fastReflection_DomainOwnership) Get(descriptor protoreflect.FieldDescri // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_DomainOwnership) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "mycel.registry.v1beta1.DomainOwnership.owner": + case "mycel.registry.v1.DomainOwnership.owner": x.Owner = value.Interface().(string) - case "mycel.registry.v1beta1.DomainOwnership.domains": + case "mycel.registry.v1.DomainOwnership.domains": lv := value.List() clv := lv.(*_DomainOwnership_2_list) x.Domains = *clv.list default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.DomainOwnership")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.DomainOwnership")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.DomainOwnership does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.DomainOwnership does not contain field %s", fd.FullName())) } } @@ -748,19 +748,19 @@ func (x *fastReflection_DomainOwnership) Set(fd protoreflect.FieldDescriptor, va // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_DomainOwnership) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "mycel.registry.v1beta1.DomainOwnership.domains": + case "mycel.registry.v1.DomainOwnership.domains": if x.Domains == nil { x.Domains = []*OwnedDomain{} } value := &_DomainOwnership_2_list{list: &x.Domains} return protoreflect.ValueOfList(value) - case "mycel.registry.v1beta1.DomainOwnership.owner": - panic(fmt.Errorf("field owner of message mycel.registry.v1beta1.DomainOwnership is not mutable")) + case "mycel.registry.v1.DomainOwnership.owner": + panic(fmt.Errorf("field owner of message mycel.registry.v1.DomainOwnership is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.DomainOwnership")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.DomainOwnership")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.DomainOwnership does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.DomainOwnership does not contain field %s", fd.FullName())) } } @@ -769,16 +769,16 @@ func (x *fastReflection_DomainOwnership) Mutable(fd protoreflect.FieldDescriptor // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_DomainOwnership) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "mycel.registry.v1beta1.DomainOwnership.owner": + case "mycel.registry.v1.DomainOwnership.owner": return protoreflect.ValueOfString("") - case "mycel.registry.v1beta1.DomainOwnership.domains": + case "mycel.registry.v1.DomainOwnership.domains": list := []*OwnedDomain{} return protoreflect.ValueOfList(&_DomainOwnership_2_list{list: &list}) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.DomainOwnership")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.DomainOwnership")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.DomainOwnership does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.DomainOwnership does not contain field %s", fd.FullName())) } } @@ -788,7 +788,7 @@ func (x *fastReflection_DomainOwnership) NewField(fd protoreflect.FieldDescripto func (x *fastReflection_DomainOwnership) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in mycel.registry.v1beta1.DomainOwnership", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in mycel.registry.v1.DomainOwnership", d.FullName())) } panic("unreachable") } @@ -1059,7 +1059,7 @@ func (x *fastReflection_DomainOwnership) ProtoMethods() *protoiface.Methods { // versions: // protoc-gen-go v1.27.0 // protoc (unknown) -// source: mycel/registry/v1beta1/domain_ownership.proto +// source: mycel/registry/v1/domain_ownership.proto const ( // Verify that this generated code is sufficiently up-to-date. @@ -1080,7 +1080,7 @@ type OwnedDomain struct { func (x *OwnedDomain) Reset() { *x = OwnedDomain{} if protoimpl.UnsafeEnabled { - mi := &file_mycel_registry_v1beta1_domain_ownership_proto_msgTypes[0] + mi := &file_mycel_registry_v1_domain_ownership_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1094,7 +1094,7 @@ func (*OwnedDomain) ProtoMessage() {} // Deprecated: Use OwnedDomain.ProtoReflect.Descriptor instead. func (*OwnedDomain) Descriptor() ([]byte, []int) { - return file_mycel_registry_v1beta1_domain_ownership_proto_rawDescGZIP(), []int{0} + return file_mycel_registry_v1_domain_ownership_proto_rawDescGZIP(), []int{0} } func (x *OwnedDomain) GetName() string { @@ -1123,7 +1123,7 @@ type DomainOwnership struct { func (x *DomainOwnership) Reset() { *x = DomainOwnership{} if protoimpl.UnsafeEnabled { - mi := &file_mycel_registry_v1beta1_domain_ownership_proto_msgTypes[1] + mi := &file_mycel_registry_v1_domain_ownership_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1137,7 +1137,7 @@ func (*DomainOwnership) ProtoMessage() {} // Deprecated: Use DomainOwnership.ProtoReflect.Descriptor instead. func (*DomainOwnership) Descriptor() ([]byte, []int) { - return file_mycel_registry_v1beta1_domain_ownership_proto_rawDescGZIP(), []int{1} + return file_mycel_registry_v1_domain_ownership_proto_rawDescGZIP(), []int{1} } func (x *DomainOwnership) GetOwner() string { @@ -1154,63 +1154,60 @@ func (x *DomainOwnership) GetDomains() []*OwnedDomain { return nil } -var File_mycel_registry_v1beta1_domain_ownership_proto protoreflect.FileDescriptor - -var file_mycel_registry_v1beta1_domain_ownership_proto_rawDesc = []byte{ - 0x0a, 0x2d, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, - 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x5f, - 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x73, 0x68, 0x69, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, - 0x16, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, - 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x1a, 0x19, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5f, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x22, 0x39, 0x0a, 0x0b, 0x4f, 0x77, 0x6e, 0x65, 0x64, 0x44, 0x6f, 0x6d, 0x61, 0x69, - 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x22, 0x80, 0x01, - 0x0a, 0x0f, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x73, 0x68, 0x69, - 0x70, 0x12, 0x2e, 0x0a, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, - 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x05, 0x6f, 0x77, 0x6e, 0x65, - 0x72, 0x12, 0x3d, 0x0a, 0x07, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x03, - 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, - 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x77, 0x6e, 0x65, +var File_mycel_registry_v1_domain_ownership_proto protoreflect.FileDescriptor + +var file_mycel_registry_v1_domain_ownership_proto_rawDesc = []byte{ + 0x0a, 0x28, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, + 0x2f, 0x76, 0x31, 0x2f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x5f, 0x6f, 0x77, 0x6e, 0x65, 0x72, + 0x73, 0x68, 0x69, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x11, 0x6d, 0x79, 0x63, 0x65, + 0x6c, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x1a, 0x19, 0x63, + 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x63, 0x6f, 0x73, 0x6d, + 0x6f, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x39, 0x0a, 0x0b, 0x4f, 0x77, 0x6e, 0x65, + 0x64, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x70, + 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x70, 0x61, 0x72, + 0x65, 0x6e, 0x74, 0x22, 0x7b, 0x0a, 0x0f, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x4f, 0x77, 0x6e, + 0x65, 0x72, 0x73, 0x68, 0x69, 0x70, 0x12, 0x2e, 0x0a, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, + 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, + 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x12, 0x38, 0x0a, 0x07, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, + 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, + 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x77, 0x6e, 0x65, 0x64, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x07, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x73, - 0x42, 0xdc, 0x01, 0x0a, 0x1a, 0x63, 0x6f, 0x6d, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x72, - 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x42, - 0x14, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x73, 0x68, 0x69, 0x70, - 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2e, 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, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0xa2, 0x02, 0x03, 0x4d, 0x52, 0x58, 0xaa, 0x02, 0x16, - 0x4d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x56, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xca, 0x02, 0x16, 0x4d, 0x79, 0x63, 0x65, 0x6c, 0x5c, 0x52, - 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xe2, - 0x02, 0x22, 0x4d, 0x79, 0x63, 0x65, 0x6c, 0x5c, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, - 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, - 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x18, 0x4d, 0x79, 0x63, 0x65, 0x6c, 0x3a, 0x3a, 0x52, 0x65, - 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x62, - 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x42, 0xc2, 0x01, 0x0a, 0x15, 0x63, 0x6f, 0x6d, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x72, + 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x42, 0x14, 0x44, 0x6f, 0x6d, 0x61, + 0x69, 0x6e, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x73, 0x68, 0x69, 0x70, 0x50, 0x72, 0x6f, 0x74, 0x6f, + 0x50, 0x01, 0x5a, 0x2d, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, + 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, + 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x3b, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x76, + 0x31, 0xa2, 0x02, 0x03, 0x4d, 0x52, 0x58, 0xaa, 0x02, 0x11, 0x4d, 0x79, 0x63, 0x65, 0x6c, 0x2e, + 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x11, 0x4d, 0x79, + 0x63, 0x65, 0x6c, 0x5c, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x5c, 0x56, 0x31, 0xe2, + 0x02, 0x1d, 0x4d, 0x79, 0x63, 0x65, 0x6c, 0x5c, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, + 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, + 0x02, 0x13, 0x4d, 0x79, 0x63, 0x65, 0x6c, 0x3a, 0x3a, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, + 0x79, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( - file_mycel_registry_v1beta1_domain_ownership_proto_rawDescOnce sync.Once - file_mycel_registry_v1beta1_domain_ownership_proto_rawDescData = file_mycel_registry_v1beta1_domain_ownership_proto_rawDesc + file_mycel_registry_v1_domain_ownership_proto_rawDescOnce sync.Once + file_mycel_registry_v1_domain_ownership_proto_rawDescData = file_mycel_registry_v1_domain_ownership_proto_rawDesc ) -func file_mycel_registry_v1beta1_domain_ownership_proto_rawDescGZIP() []byte { - file_mycel_registry_v1beta1_domain_ownership_proto_rawDescOnce.Do(func() { - file_mycel_registry_v1beta1_domain_ownership_proto_rawDescData = protoimpl.X.CompressGZIP(file_mycel_registry_v1beta1_domain_ownership_proto_rawDescData) +func file_mycel_registry_v1_domain_ownership_proto_rawDescGZIP() []byte { + file_mycel_registry_v1_domain_ownership_proto_rawDescOnce.Do(func() { + file_mycel_registry_v1_domain_ownership_proto_rawDescData = protoimpl.X.CompressGZIP(file_mycel_registry_v1_domain_ownership_proto_rawDescData) }) - return file_mycel_registry_v1beta1_domain_ownership_proto_rawDescData + return file_mycel_registry_v1_domain_ownership_proto_rawDescData } -var file_mycel_registry_v1beta1_domain_ownership_proto_msgTypes = make([]protoimpl.MessageInfo, 2) -var file_mycel_registry_v1beta1_domain_ownership_proto_goTypes = []interface{}{ - (*OwnedDomain)(nil), // 0: mycel.registry.v1beta1.OwnedDomain - (*DomainOwnership)(nil), // 1: mycel.registry.v1beta1.DomainOwnership +var file_mycel_registry_v1_domain_ownership_proto_msgTypes = make([]protoimpl.MessageInfo, 2) +var file_mycel_registry_v1_domain_ownership_proto_goTypes = []interface{}{ + (*OwnedDomain)(nil), // 0: mycel.registry.v1.OwnedDomain + (*DomainOwnership)(nil), // 1: mycel.registry.v1.DomainOwnership } -var file_mycel_registry_v1beta1_domain_ownership_proto_depIdxs = []int32{ - 0, // 0: mycel.registry.v1beta1.DomainOwnership.domains:type_name -> mycel.registry.v1beta1.OwnedDomain +var file_mycel_registry_v1_domain_ownership_proto_depIdxs = []int32{ + 0, // 0: mycel.registry.v1.DomainOwnership.domains:type_name -> mycel.registry.v1.OwnedDomain 1, // [1:1] is the sub-list for method output_type 1, // [1:1] is the sub-list for method input_type 1, // [1:1] is the sub-list for extension type_name @@ -1218,13 +1215,13 @@ var file_mycel_registry_v1beta1_domain_ownership_proto_depIdxs = []int32{ 0, // [0:1] is the sub-list for field type_name } -func init() { file_mycel_registry_v1beta1_domain_ownership_proto_init() } -func file_mycel_registry_v1beta1_domain_ownership_proto_init() { - if File_mycel_registry_v1beta1_domain_ownership_proto != nil { +func init() { file_mycel_registry_v1_domain_ownership_proto_init() } +func file_mycel_registry_v1_domain_ownership_proto_init() { + if File_mycel_registry_v1_domain_ownership_proto != nil { return } if !protoimpl.UnsafeEnabled { - file_mycel_registry_v1beta1_domain_ownership_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_mycel_registry_v1_domain_ownership_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*OwnedDomain); i { case 0: return &v.state @@ -1236,7 +1233,7 @@ func file_mycel_registry_v1beta1_domain_ownership_proto_init() { return nil } } - file_mycel_registry_v1beta1_domain_ownership_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_mycel_registry_v1_domain_ownership_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*DomainOwnership); i { case 0: return &v.state @@ -1253,18 +1250,18 @@ func file_mycel_registry_v1beta1_domain_ownership_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_mycel_registry_v1beta1_domain_ownership_proto_rawDesc, + RawDescriptor: file_mycel_registry_v1_domain_ownership_proto_rawDesc, NumEnums: 0, NumMessages: 2, NumExtensions: 0, NumServices: 0, }, - GoTypes: file_mycel_registry_v1beta1_domain_ownership_proto_goTypes, - DependencyIndexes: file_mycel_registry_v1beta1_domain_ownership_proto_depIdxs, - MessageInfos: file_mycel_registry_v1beta1_domain_ownership_proto_msgTypes, + GoTypes: file_mycel_registry_v1_domain_ownership_proto_goTypes, + DependencyIndexes: file_mycel_registry_v1_domain_ownership_proto_depIdxs, + MessageInfos: file_mycel_registry_v1_domain_ownership_proto_msgTypes, }.Build() - File_mycel_registry_v1beta1_domain_ownership_proto = out.File - file_mycel_registry_v1beta1_domain_ownership_proto_rawDesc = nil - file_mycel_registry_v1beta1_domain_ownership_proto_goTypes = nil - file_mycel_registry_v1beta1_domain_ownership_proto_depIdxs = nil + File_mycel_registry_v1_domain_ownership_proto = out.File + file_mycel_registry_v1_domain_ownership_proto_rawDesc = nil + file_mycel_registry_v1_domain_ownership_proto_goTypes = nil + file_mycel_registry_v1_domain_ownership_proto_depIdxs = nil } diff --git a/api/mycel/registry/v1beta1/genesis.pulsar.go b/api/mycel/registry/v1/genesis.pulsar.go similarity index 75% rename from api/mycel/registry/v1beta1/genesis.pulsar.go rename to api/mycel/registry/v1/genesis.pulsar.go index d319bb28..ad78b82c 100644 --- a/api/mycel/registry/v1beta1/genesis.pulsar.go +++ b/api/mycel/registry/v1/genesis.pulsar.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-go-pulsar. DO NOT EDIT. -package types +package registryv1 import ( fmt "fmt" @@ -175,8 +175,8 @@ var ( ) func init() { - file_mycel_registry_v1beta1_genesis_proto_init() - md_GenesisState = File_mycel_registry_v1beta1_genesis_proto.Messages().ByName("GenesisState") + file_mycel_registry_v1_genesis_proto_init() + md_GenesisState = File_mycel_registry_v1_genesis_proto.Messages().ByName("GenesisState") fd_GenesisState_params = md_GenesisState.Fields().ByName("params") fd_GenesisState_top_level_domains = md_GenesisState.Fields().ByName("top_level_domains") fd_GenesisState_second_level_domains = md_GenesisState.Fields().ByName("second_level_domains") @@ -192,7 +192,7 @@ func (x *GenesisState) ProtoReflect() protoreflect.Message { } func (x *GenesisState) slowProtoReflect() protoreflect.Message { - mi := &file_mycel_registry_v1beta1_genesis_proto_msgTypes[0] + mi := &file_mycel_registry_v1_genesis_proto_msgTypes[0] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -287,19 +287,19 @@ func (x *fastReflection_GenesisState) Range(f func(protoreflect.FieldDescriptor, // a repeated field is populated if it is non-empty. func (x *fastReflection_GenesisState) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "mycel.registry.v1beta1.GenesisState.params": + case "mycel.registry.v1.GenesisState.params": return x.Params != nil - case "mycel.registry.v1beta1.GenesisState.top_level_domains": + case "mycel.registry.v1.GenesisState.top_level_domains": return len(x.TopLevelDomains) != 0 - case "mycel.registry.v1beta1.GenesisState.second_level_domains": + case "mycel.registry.v1.GenesisState.second_level_domains": return len(x.SecondLevelDomains) != 0 - case "mycel.registry.v1beta1.GenesisState.domain_ownerships": + case "mycel.registry.v1.GenesisState.domain_ownerships": return len(x.DomainOwnerships) != 0 default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.GenesisState")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.GenesisState")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.GenesisState does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.GenesisState does not contain field %s", fd.FullName())) } } @@ -311,19 +311,19 @@ func (x *fastReflection_GenesisState) Has(fd protoreflect.FieldDescriptor) bool // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_GenesisState) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "mycel.registry.v1beta1.GenesisState.params": + case "mycel.registry.v1.GenesisState.params": x.Params = nil - case "mycel.registry.v1beta1.GenesisState.top_level_domains": + case "mycel.registry.v1.GenesisState.top_level_domains": x.TopLevelDomains = nil - case "mycel.registry.v1beta1.GenesisState.second_level_domains": + case "mycel.registry.v1.GenesisState.second_level_domains": x.SecondLevelDomains = nil - case "mycel.registry.v1beta1.GenesisState.domain_ownerships": + case "mycel.registry.v1.GenesisState.domain_ownerships": x.DomainOwnerships = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.GenesisState")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.GenesisState")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.GenesisState does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.GenesisState does not contain field %s", fd.FullName())) } } @@ -335,22 +335,22 @@ func (x *fastReflection_GenesisState) Clear(fd protoreflect.FieldDescriptor) { // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_GenesisState) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "mycel.registry.v1beta1.GenesisState.params": + case "mycel.registry.v1.GenesisState.params": value := x.Params return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "mycel.registry.v1beta1.GenesisState.top_level_domains": + case "mycel.registry.v1.GenesisState.top_level_domains": if len(x.TopLevelDomains) == 0 { return protoreflect.ValueOfList(&_GenesisState_2_list{}) } listValue := &_GenesisState_2_list{list: &x.TopLevelDomains} return protoreflect.ValueOfList(listValue) - case "mycel.registry.v1beta1.GenesisState.second_level_domains": + case "mycel.registry.v1.GenesisState.second_level_domains": if len(x.SecondLevelDomains) == 0 { return protoreflect.ValueOfList(&_GenesisState_3_list{}) } listValue := &_GenesisState_3_list{list: &x.SecondLevelDomains} return protoreflect.ValueOfList(listValue) - case "mycel.registry.v1beta1.GenesisState.domain_ownerships": + case "mycel.registry.v1.GenesisState.domain_ownerships": if len(x.DomainOwnerships) == 0 { return protoreflect.ValueOfList(&_GenesisState_4_list{}) } @@ -358,9 +358,9 @@ func (x *fastReflection_GenesisState) Get(descriptor protoreflect.FieldDescripto return protoreflect.ValueOfList(listValue) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.GenesisState")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.GenesisState")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.GenesisState does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.GenesisState does not contain field %s", descriptor.FullName())) } } @@ -376,25 +376,25 @@ func (x *fastReflection_GenesisState) Get(descriptor protoreflect.FieldDescripto // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_GenesisState) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "mycel.registry.v1beta1.GenesisState.params": + case "mycel.registry.v1.GenesisState.params": x.Params = value.Message().Interface().(*Params) - case "mycel.registry.v1beta1.GenesisState.top_level_domains": + case "mycel.registry.v1.GenesisState.top_level_domains": lv := value.List() clv := lv.(*_GenesisState_2_list) x.TopLevelDomains = *clv.list - case "mycel.registry.v1beta1.GenesisState.second_level_domains": + case "mycel.registry.v1.GenesisState.second_level_domains": lv := value.List() clv := lv.(*_GenesisState_3_list) x.SecondLevelDomains = *clv.list - case "mycel.registry.v1beta1.GenesisState.domain_ownerships": + case "mycel.registry.v1.GenesisState.domain_ownerships": lv := value.List() clv := lv.(*_GenesisState_4_list) x.DomainOwnerships = *clv.list default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.GenesisState")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.GenesisState")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.GenesisState does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.GenesisState does not contain field %s", fd.FullName())) } } @@ -410,24 +410,24 @@ func (x *fastReflection_GenesisState) Set(fd protoreflect.FieldDescriptor, value // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_GenesisState) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "mycel.registry.v1beta1.GenesisState.params": + case "mycel.registry.v1.GenesisState.params": if x.Params == nil { x.Params = new(Params) } return protoreflect.ValueOfMessage(x.Params.ProtoReflect()) - case "mycel.registry.v1beta1.GenesisState.top_level_domains": + case "mycel.registry.v1.GenesisState.top_level_domains": if x.TopLevelDomains == nil { x.TopLevelDomains = []*TopLevelDomain{} } value := &_GenesisState_2_list{list: &x.TopLevelDomains} return protoreflect.ValueOfList(value) - case "mycel.registry.v1beta1.GenesisState.second_level_domains": + case "mycel.registry.v1.GenesisState.second_level_domains": if x.SecondLevelDomains == nil { x.SecondLevelDomains = []*SecondLevelDomain{} } value := &_GenesisState_3_list{list: &x.SecondLevelDomains} return protoreflect.ValueOfList(value) - case "mycel.registry.v1beta1.GenesisState.domain_ownerships": + case "mycel.registry.v1.GenesisState.domain_ownerships": if x.DomainOwnerships == nil { x.DomainOwnerships = []*DomainOwnership{} } @@ -435,9 +435,9 @@ func (x *fastReflection_GenesisState) Mutable(fd protoreflect.FieldDescriptor) p return protoreflect.ValueOfList(value) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.GenesisState")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.GenesisState")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.GenesisState does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.GenesisState does not contain field %s", fd.FullName())) } } @@ -446,23 +446,23 @@ func (x *fastReflection_GenesisState) Mutable(fd protoreflect.FieldDescriptor) p // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_GenesisState) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "mycel.registry.v1beta1.GenesisState.params": + case "mycel.registry.v1.GenesisState.params": m := new(Params) return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "mycel.registry.v1beta1.GenesisState.top_level_domains": + case "mycel.registry.v1.GenesisState.top_level_domains": list := []*TopLevelDomain{} return protoreflect.ValueOfList(&_GenesisState_2_list{list: &list}) - case "mycel.registry.v1beta1.GenesisState.second_level_domains": + case "mycel.registry.v1.GenesisState.second_level_domains": list := []*SecondLevelDomain{} return protoreflect.ValueOfList(&_GenesisState_3_list{list: &list}) - case "mycel.registry.v1beta1.GenesisState.domain_ownerships": + case "mycel.registry.v1.GenesisState.domain_ownerships": list := []*DomainOwnership{} return protoreflect.ValueOfList(&_GenesisState_4_list{list: &list}) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.GenesisState")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.GenesisState")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.GenesisState does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.GenesisState does not contain field %s", fd.FullName())) } } @@ -472,7 +472,7 @@ func (x *fastReflection_GenesisState) NewField(fd protoreflect.FieldDescriptor) func (x *fastReflection_GenesisState) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in mycel.registry.v1beta1.GenesisState", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in mycel.registry.v1.GenesisState", d.FullName())) } panic("unreachable") } @@ -866,7 +866,7 @@ func (x *fastReflection_GenesisState) ProtoMethods() *protoiface.Methods { // versions: // protoc-gen-go v1.27.0 // protoc (unknown) -// source: mycel/registry/v1beta1/genesis.proto +// source: mycel/registry/v1/genesis.proto const ( // Verify that this generated code is sufficiently up-to-date. @@ -890,7 +890,7 @@ type GenesisState struct { func (x *GenesisState) Reset() { *x = GenesisState{} if protoimpl.UnsafeEnabled { - mi := &file_mycel_registry_v1beta1_genesis_proto_msgTypes[0] + mi := &file_mycel_registry_v1_genesis_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -904,7 +904,7 @@ func (*GenesisState) ProtoMessage() {} // Deprecated: Use GenesisState.ProtoReflect.Descriptor instead. func (*GenesisState) Descriptor() ([]byte, []int) { - return file_mycel_registry_v1beta1_genesis_proto_rawDescGZIP(), []int{0} + return file_mycel_registry_v1_genesis_proto_rawDescGZIP(), []int{0} } func (x *GenesisState) GetParams() *Params { @@ -935,89 +935,85 @@ func (x *GenesisState) GetDomainOwnerships() []*DomainOwnership { return nil } -var File_mycel_registry_v1beta1_genesis_proto protoreflect.FileDescriptor - -var file_mycel_registry_v1beta1_genesis_proto_rawDesc = []byte{ - 0x0a, 0x24, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, - 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x67, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x16, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x72, 0x65, - 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 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, 0x2d, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2f, 0x72, 0x65, 0x67, 0x69, - 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x64, 0x6f, 0x6d, - 0x61, 0x69, 0x6e, 0x5f, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x73, 0x68, 0x69, 0x70, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x1a, 0x23, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, - 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x70, 0x61, 0x72, 0x61, - 0x6d, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x30, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2f, - 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, - 0x2f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x5f, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x5f, 0x64, 0x6f, - 0x6d, 0x61, 0x69, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2d, 0x6d, 0x79, 0x63, 0x65, - 0x6c, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, - 0x61, 0x31, 0x2f, 0x74, 0x6f, 0x70, 0x5f, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x5f, 0x64, 0x6f, 0x6d, - 0x61, 0x69, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xe5, 0x02, 0x0a, 0x0c, 0x47, 0x65, - 0x6e, 0x65, 0x73, 0x69, 0x73, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x3c, 0x0a, 0x06, 0x70, 0x61, - 0x72, 0x61, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x6d, 0x79, 0x63, - 0x65, 0x6c, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 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, 0x12, 0x58, 0x0a, 0x11, 0x74, 0x6f, 0x70, 0x5f, - 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x5f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x73, 0x18, 0x02, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x72, 0x65, 0x67, 0x69, - 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x54, 0x6f, 0x70, - 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x42, 0x04, 0xc8, 0xde, 0x1f, - 0x00, 0x52, 0x0f, 0x74, 0x6f, 0x70, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x44, 0x6f, 0x6d, 0x61, 0x69, - 0x6e, 0x73, 0x12, 0x61, 0x0a, 0x14, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x5f, 0x6c, 0x65, 0x76, - 0x65, 0x6c, 0x5f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x29, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, - 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x65, 0x63, 0x6f, 0x6e, 0x64, - 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x42, 0x04, 0xc8, 0xde, 0x1f, - 0x00, 0x52, 0x12, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x44, 0x6f, - 0x6d, 0x61, 0x69, 0x6e, 0x73, 0x12, 0x5a, 0x0a, 0x11, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x5f, - 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x73, 0x68, 0x69, 0x70, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x27, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, - 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, - 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x73, 0x68, 0x69, 0x70, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, - 0x10, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x73, 0x68, 0x69, 0x70, - 0x73, 0x42, 0xd4, 0x01, 0x0a, 0x1a, 0x63, 0x6f, 0x6d, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, - 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, - 0x42, 0x0c, 0x47, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, - 0x5a, 0x2e, 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, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, - 0xa2, 0x02, 0x03, 0x4d, 0x52, 0x58, 0xaa, 0x02, 0x16, 0x4d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x52, - 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xca, - 0x02, 0x16, 0x4d, 0x79, 0x63, 0x65, 0x6c, 0x5c, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, - 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xe2, 0x02, 0x22, 0x4d, 0x79, 0x63, 0x65, 0x6c, - 0x5c, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, - 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x18, - 0x4d, 0x79, 0x63, 0x65, 0x6c, 0x3a, 0x3a, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x3a, - 0x3a, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +var File_mycel_registry_v1_genesis_proto protoreflect.FileDescriptor + +var file_mycel_registry_v1_genesis_proto_rawDesc = []byte{ + 0x0a, 0x1f, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, + 0x2f, 0x76, 0x31, 0x2f, 0x67, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x12, 0x11, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, + 0x79, 0x2e, 0x76, 0x31, 0x1a, 0x14, 0x67, 0x6f, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, + 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x28, 0x6d, 0x79, 0x63, 0x65, + 0x6c, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x2f, 0x64, 0x6f, + 0x6d, 0x61, 0x69, 0x6e, 0x5f, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x73, 0x68, 0x69, 0x70, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2f, 0x72, 0x65, 0x67, 0x69, + 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2b, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2f, 0x72, 0x65, 0x67, 0x69, + 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x5f, 0x6c, + 0x65, 0x76, 0x65, 0x6c, 0x5f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x1a, 0x28, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, + 0x79, 0x2f, 0x76, 0x31, 0x2f, 0x74, 0x6f, 0x70, 0x5f, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x5f, 0x64, + 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xd1, 0x02, 0x0a, 0x0c, + 0x47, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x37, 0x0a, 0x06, + 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x6d, + 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, + 0x2e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x06, 0x70, + 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x53, 0x0a, 0x11, 0x74, 0x6f, 0x70, 0x5f, 0x6c, 0x65, 0x76, + 0x65, 0x6c, 0x5f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x21, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, + 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x6f, 0x70, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x44, 0x6f, 0x6d, + 0x61, 0x69, 0x6e, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0f, 0x74, 0x6f, 0x70, 0x4c, 0x65, + 0x76, 0x65, 0x6c, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x73, 0x12, 0x5c, 0x0a, 0x14, 0x73, 0x65, + 0x63, 0x6f, 0x6e, 0x64, 0x5f, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x5f, 0x64, 0x6f, 0x6d, 0x61, 0x69, + 0x6e, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, + 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x63, + 0x6f, 0x6e, 0x64, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x42, 0x04, + 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x12, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x4c, 0x65, 0x76, 0x65, + 0x6c, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x73, 0x12, 0x55, 0x0a, 0x11, 0x64, 0x6f, 0x6d, 0x61, + 0x69, 0x6e, 0x5f, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x73, 0x68, 0x69, 0x70, 0x73, 0x18, 0x04, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x72, 0x65, 0x67, 0x69, + 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x4f, 0x77, + 0x6e, 0x65, 0x72, 0x73, 0x68, 0x69, 0x70, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x10, 0x64, + 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x73, 0x68, 0x69, 0x70, 0x73, 0x42, + 0xba, 0x01, 0x0a, 0x15, 0x63, 0x6f, 0x6d, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x72, 0x65, + 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x42, 0x0c, 0x47, 0x65, 0x6e, 0x65, 0x73, + 0x69, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2d, 0x63, 0x6f, 0x73, 0x6d, 0x6f, + 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x6d, 0x79, 0x63, 0x65, + 0x6c, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x3b, 0x72, 0x65, + 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x4d, 0x52, 0x58, 0xaa, 0x02, + 0x11, 0x4d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, + 0x56, 0x31, 0xca, 0x02, 0x11, 0x4d, 0x79, 0x63, 0x65, 0x6c, 0x5c, 0x52, 0x65, 0x67, 0x69, 0x73, + 0x74, 0x72, 0x79, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x1d, 0x4d, 0x79, 0x63, 0x65, 0x6c, 0x5c, 0x52, + 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, + 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x13, 0x4d, 0x79, 0x63, 0x65, 0x6c, 0x3a, 0x3a, + 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x33, } var ( - file_mycel_registry_v1beta1_genesis_proto_rawDescOnce sync.Once - file_mycel_registry_v1beta1_genesis_proto_rawDescData = file_mycel_registry_v1beta1_genesis_proto_rawDesc + file_mycel_registry_v1_genesis_proto_rawDescOnce sync.Once + file_mycel_registry_v1_genesis_proto_rawDescData = file_mycel_registry_v1_genesis_proto_rawDesc ) -func file_mycel_registry_v1beta1_genesis_proto_rawDescGZIP() []byte { - file_mycel_registry_v1beta1_genesis_proto_rawDescOnce.Do(func() { - file_mycel_registry_v1beta1_genesis_proto_rawDescData = protoimpl.X.CompressGZIP(file_mycel_registry_v1beta1_genesis_proto_rawDescData) +func file_mycel_registry_v1_genesis_proto_rawDescGZIP() []byte { + file_mycel_registry_v1_genesis_proto_rawDescOnce.Do(func() { + file_mycel_registry_v1_genesis_proto_rawDescData = protoimpl.X.CompressGZIP(file_mycel_registry_v1_genesis_proto_rawDescData) }) - return file_mycel_registry_v1beta1_genesis_proto_rawDescData + return file_mycel_registry_v1_genesis_proto_rawDescData } -var file_mycel_registry_v1beta1_genesis_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_mycel_registry_v1beta1_genesis_proto_goTypes = []interface{}{ - (*GenesisState)(nil), // 0: mycel.registry.v1beta1.GenesisState - (*Params)(nil), // 1: mycel.registry.v1beta1.Params - (*TopLevelDomain)(nil), // 2: mycel.registry.v1beta1.TopLevelDomain - (*SecondLevelDomain)(nil), // 3: mycel.registry.v1beta1.SecondLevelDomain - (*DomainOwnership)(nil), // 4: mycel.registry.v1beta1.DomainOwnership +var file_mycel_registry_v1_genesis_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_mycel_registry_v1_genesis_proto_goTypes = []interface{}{ + (*GenesisState)(nil), // 0: mycel.registry.v1.GenesisState + (*Params)(nil), // 1: mycel.registry.v1.Params + (*TopLevelDomain)(nil), // 2: mycel.registry.v1.TopLevelDomain + (*SecondLevelDomain)(nil), // 3: mycel.registry.v1.SecondLevelDomain + (*DomainOwnership)(nil), // 4: mycel.registry.v1.DomainOwnership } -var file_mycel_registry_v1beta1_genesis_proto_depIdxs = []int32{ - 1, // 0: mycel.registry.v1beta1.GenesisState.params:type_name -> mycel.registry.v1beta1.Params - 2, // 1: mycel.registry.v1beta1.GenesisState.top_level_domains:type_name -> mycel.registry.v1beta1.TopLevelDomain - 3, // 2: mycel.registry.v1beta1.GenesisState.second_level_domains:type_name -> mycel.registry.v1beta1.SecondLevelDomain - 4, // 3: mycel.registry.v1beta1.GenesisState.domain_ownerships:type_name -> mycel.registry.v1beta1.DomainOwnership +var file_mycel_registry_v1_genesis_proto_depIdxs = []int32{ + 1, // 0: mycel.registry.v1.GenesisState.params:type_name -> mycel.registry.v1.Params + 2, // 1: mycel.registry.v1.GenesisState.top_level_domains:type_name -> mycel.registry.v1.TopLevelDomain + 3, // 2: mycel.registry.v1.GenesisState.second_level_domains:type_name -> mycel.registry.v1.SecondLevelDomain + 4, // 3: mycel.registry.v1.GenesisState.domain_ownerships:type_name -> mycel.registry.v1.DomainOwnership 4, // [4:4] is the sub-list for method output_type 4, // [4:4] is the sub-list for method input_type 4, // [4:4] is the sub-list for extension type_name @@ -1025,17 +1021,17 @@ var file_mycel_registry_v1beta1_genesis_proto_depIdxs = []int32{ 0, // [0:4] is the sub-list for field type_name } -func init() { file_mycel_registry_v1beta1_genesis_proto_init() } -func file_mycel_registry_v1beta1_genesis_proto_init() { - if File_mycel_registry_v1beta1_genesis_proto != nil { +func init() { file_mycel_registry_v1_genesis_proto_init() } +func file_mycel_registry_v1_genesis_proto_init() { + if File_mycel_registry_v1_genesis_proto != nil { return } - file_mycel_registry_v1beta1_domain_ownership_proto_init() - file_mycel_registry_v1beta1_params_proto_init() - file_mycel_registry_v1beta1_second_level_domain_proto_init() - file_mycel_registry_v1beta1_top_level_domain_proto_init() + file_mycel_registry_v1_domain_ownership_proto_init() + file_mycel_registry_v1_params_proto_init() + file_mycel_registry_v1_second_level_domain_proto_init() + file_mycel_registry_v1_top_level_domain_proto_init() if !protoimpl.UnsafeEnabled { - file_mycel_registry_v1beta1_genesis_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_mycel_registry_v1_genesis_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*GenesisState); i { case 0: return &v.state @@ -1052,18 +1048,18 @@ func file_mycel_registry_v1beta1_genesis_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_mycel_registry_v1beta1_genesis_proto_rawDesc, + RawDescriptor: file_mycel_registry_v1_genesis_proto_rawDesc, NumEnums: 0, NumMessages: 1, NumExtensions: 0, NumServices: 0, }, - GoTypes: file_mycel_registry_v1beta1_genesis_proto_goTypes, - DependencyIndexes: file_mycel_registry_v1beta1_genesis_proto_depIdxs, - MessageInfos: file_mycel_registry_v1beta1_genesis_proto_msgTypes, + GoTypes: file_mycel_registry_v1_genesis_proto_goTypes, + DependencyIndexes: file_mycel_registry_v1_genesis_proto_depIdxs, + MessageInfos: file_mycel_registry_v1_genesis_proto_msgTypes, }.Build() - File_mycel_registry_v1beta1_genesis_proto = out.File - file_mycel_registry_v1beta1_genesis_proto_rawDesc = nil - file_mycel_registry_v1beta1_genesis_proto_goTypes = nil - file_mycel_registry_v1beta1_genesis_proto_depIdxs = nil + File_mycel_registry_v1_genesis_proto = out.File + file_mycel_registry_v1_genesis_proto_rawDesc = nil + file_mycel_registry_v1_genesis_proto_goTypes = nil + file_mycel_registry_v1_genesis_proto_depIdxs = nil } diff --git a/api/mycel/registry/v1/network_name.pulsar.go b/api/mycel/registry/v1/network_name.pulsar.go new file mode 100644 index 00000000..19bb76f4 --- /dev/null +++ b/api/mycel/registry/v1/network_name.pulsar.go @@ -0,0 +1,302 @@ +// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. +package registryv1 + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.27.0 +// protoc (unknown) +// source: mycel/registry/v1/network_name.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) +) + +type NetworkName int32 + +const ( + NetworkName_NO_NETWORK NetworkName = 0 + // BTC 1xxx + NetworkName_BITCOIN_MAINNET_MAINNET NetworkName = 10000 + NetworkName_BITCOIN_TESTNET_TESTNET NetworkName = 10001 + // DEFAULT + NetworkName_BITCOIN_DEFAULT_DEFAULT NetworkName = 19999 + // EVM 2xxxx + // Etheruem + NetworkName_ETHEREUM_MAINNET_MAINNET NetworkName = 20000 + NetworkName_ETHEREUM_TESTNET_GOERLI NetworkName = 20001 + NetworkName_ETHEREUM_TESTNET_SEPOLIA NetworkName = 20002 + // Polygon + NetworkName_POLYGON_MAINNET_MAINNET NetworkName = 20003 + NetworkName_POLYGON_TESTNET_MUMBAI NetworkName = 20004 + // BNB Chain + NetworkName_BNB_MAINNET_MAINNET NetworkName = 20005 + NetworkName_BNB_TESTNET_TESTNET NetworkName = 20006 + // Avalanche + NetworkName_AVALANCHE_MAINNET_CCHAIN NetworkName = 20007 + NetworkName_AVALANCHE_TESTNET_FUJI NetworkName = 20008 + // Gnosis + NetworkName_GNOSIS_MAINNET_MAINNET NetworkName = 20009 + NetworkName_GNOSIS_TESTNET_CHIADO NetworkName = 20010 + // Optimism + NetworkName_OPTIMISM_MAINNET_MAINNET NetworkName = 20011 + NetworkName_OPTIMISM_TESTNET_GOERLI NetworkName = 20012 + // Arbitrum + NetworkName_ARBITRUM_MAINNET_MAINNET NetworkName = 20013 + NetworkName_ARBITRUM_TESTNET_GOERLI NetworkName = 20014 + // Shardeum + // + // SHARDEUM_MAINNET_ = 20015; + // SHARDEUM_TESTNET_ = 20016; + NetworkName_SHARDEUM_BETANET_SPHINX NetworkName = 20017 + // Zetachain + // ZETA_MAINNET_MAINNET = 20018; + NetworkName_ZETA_TESTNET_ATHENS NetworkName = 20019 + // DEFAULT + NetworkName_EVM_DEFAULT_DEFAULT NetworkName = 29999 + // MOVE 3xxxx + // Aptos + NetworkName_APTOS_MAINNET_MAINNET NetworkName = 30000 + NetworkName_APTOS_TESTNET_TESTNET NetworkName = 30001 + // Sui + NetworkName_SUI_MAINNET_MAINNET NetworkName = 30002 + NetworkName_SUI_TESTNET_TESTNET NetworkName = 30003 + // DEFAULT + NetworkName_MOVE_DEFAULT_DEFAULT NetworkName = 39999 + // SOLANA 4xxxx + NetworkName_SOLANA_MAINNET_MAINNET NetworkName = 40000 + NetworkName_SOLANA_TESTNET_TESTNET NetworkName = 40001 + // DEFAULT + NetworkName_SOLANA_DEFAULT_DEFAULT NetworkName = 49999 +) + +// Enum value maps for NetworkName. +var ( + NetworkName_name = map[int32]string{ + 0: "NO_NETWORK", + 10000: "BITCOIN_MAINNET_MAINNET", + 10001: "BITCOIN_TESTNET_TESTNET", + 19999: "BITCOIN_DEFAULT_DEFAULT", + 20000: "ETHEREUM_MAINNET_MAINNET", + 20001: "ETHEREUM_TESTNET_GOERLI", + 20002: "ETHEREUM_TESTNET_SEPOLIA", + 20003: "POLYGON_MAINNET_MAINNET", + 20004: "POLYGON_TESTNET_MUMBAI", + 20005: "BNB_MAINNET_MAINNET", + 20006: "BNB_TESTNET_TESTNET", + 20007: "AVALANCHE_MAINNET_CCHAIN", + 20008: "AVALANCHE_TESTNET_FUJI", + 20009: "GNOSIS_MAINNET_MAINNET", + 20010: "GNOSIS_TESTNET_CHIADO", + 20011: "OPTIMISM_MAINNET_MAINNET", + 20012: "OPTIMISM_TESTNET_GOERLI", + 20013: "ARBITRUM_MAINNET_MAINNET", + 20014: "ARBITRUM_TESTNET_GOERLI", + 20017: "SHARDEUM_BETANET_SPHINX", + 20019: "ZETA_TESTNET_ATHENS", + 29999: "EVM_DEFAULT_DEFAULT", + 30000: "APTOS_MAINNET_MAINNET", + 30001: "APTOS_TESTNET_TESTNET", + 30002: "SUI_MAINNET_MAINNET", + 30003: "SUI_TESTNET_TESTNET", + 39999: "MOVE_DEFAULT_DEFAULT", + 40000: "SOLANA_MAINNET_MAINNET", + 40001: "SOLANA_TESTNET_TESTNET", + 49999: "SOLANA_DEFAULT_DEFAULT", + } + NetworkName_value = map[string]int32{ + "NO_NETWORK": 0, + "BITCOIN_MAINNET_MAINNET": 10000, + "BITCOIN_TESTNET_TESTNET": 10001, + "BITCOIN_DEFAULT_DEFAULT": 19999, + "ETHEREUM_MAINNET_MAINNET": 20000, + "ETHEREUM_TESTNET_GOERLI": 20001, + "ETHEREUM_TESTNET_SEPOLIA": 20002, + "POLYGON_MAINNET_MAINNET": 20003, + "POLYGON_TESTNET_MUMBAI": 20004, + "BNB_MAINNET_MAINNET": 20005, + "BNB_TESTNET_TESTNET": 20006, + "AVALANCHE_MAINNET_CCHAIN": 20007, + "AVALANCHE_TESTNET_FUJI": 20008, + "GNOSIS_MAINNET_MAINNET": 20009, + "GNOSIS_TESTNET_CHIADO": 20010, + "OPTIMISM_MAINNET_MAINNET": 20011, + "OPTIMISM_TESTNET_GOERLI": 20012, + "ARBITRUM_MAINNET_MAINNET": 20013, + "ARBITRUM_TESTNET_GOERLI": 20014, + "SHARDEUM_BETANET_SPHINX": 20017, + "ZETA_TESTNET_ATHENS": 20019, + "EVM_DEFAULT_DEFAULT": 29999, + "APTOS_MAINNET_MAINNET": 30000, + "APTOS_TESTNET_TESTNET": 30001, + "SUI_MAINNET_MAINNET": 30002, + "SUI_TESTNET_TESTNET": 30003, + "MOVE_DEFAULT_DEFAULT": 39999, + "SOLANA_MAINNET_MAINNET": 40000, + "SOLANA_TESTNET_TESTNET": 40001, + "SOLANA_DEFAULT_DEFAULT": 49999, + } +) + +func (x NetworkName) Enum() *NetworkName { + p := new(NetworkName) + *p = x + return p +} + +func (x NetworkName) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (NetworkName) Descriptor() protoreflect.EnumDescriptor { + return file_mycel_registry_v1_network_name_proto_enumTypes[0].Descriptor() +} + +func (NetworkName) Type() protoreflect.EnumType { + return &file_mycel_registry_v1_network_name_proto_enumTypes[0] +} + +func (x NetworkName) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use NetworkName.Descriptor instead. +func (NetworkName) EnumDescriptor() ([]byte, []int) { + return file_mycel_registry_v1_network_name_proto_rawDescGZIP(), []int{0} +} + +var File_mycel_registry_v1_network_name_proto protoreflect.FileDescriptor + +var file_mycel_registry_v1_network_name_proto_rawDesc = []byte{ + 0x0a, 0x24, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, + 0x2f, 0x76, 0x31, 0x2f, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x5f, 0x6e, 0x61, 0x6d, 0x65, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x11, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x72, 0x65, + 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2a, 0xfc, 0x06, 0x0a, 0x0b, 0x4e, 0x65, + 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x0e, 0x0a, 0x0a, 0x4e, 0x4f, 0x5f, + 0x4e, 0x45, 0x54, 0x57, 0x4f, 0x52, 0x4b, 0x10, 0x00, 0x12, 0x1c, 0x0a, 0x17, 0x42, 0x49, 0x54, + 0x43, 0x4f, 0x49, 0x4e, 0x5f, 0x4d, 0x41, 0x49, 0x4e, 0x4e, 0x45, 0x54, 0x5f, 0x4d, 0x41, 0x49, + 0x4e, 0x4e, 0x45, 0x54, 0x10, 0x90, 0x4e, 0x12, 0x1c, 0x0a, 0x17, 0x42, 0x49, 0x54, 0x43, 0x4f, + 0x49, 0x4e, 0x5f, 0x54, 0x45, 0x53, 0x54, 0x4e, 0x45, 0x54, 0x5f, 0x54, 0x45, 0x53, 0x54, 0x4e, + 0x45, 0x54, 0x10, 0x91, 0x4e, 0x12, 0x1d, 0x0a, 0x17, 0x42, 0x49, 0x54, 0x43, 0x4f, 0x49, 0x4e, + 0x5f, 0x44, 0x45, 0x46, 0x41, 0x55, 0x4c, 0x54, 0x5f, 0x44, 0x45, 0x46, 0x41, 0x55, 0x4c, 0x54, + 0x10, 0x9f, 0x9c, 0x01, 0x12, 0x1e, 0x0a, 0x18, 0x45, 0x54, 0x48, 0x45, 0x52, 0x45, 0x55, 0x4d, + 0x5f, 0x4d, 0x41, 0x49, 0x4e, 0x4e, 0x45, 0x54, 0x5f, 0x4d, 0x41, 0x49, 0x4e, 0x4e, 0x45, 0x54, + 0x10, 0xa0, 0x9c, 0x01, 0x12, 0x1d, 0x0a, 0x17, 0x45, 0x54, 0x48, 0x45, 0x52, 0x45, 0x55, 0x4d, + 0x5f, 0x54, 0x45, 0x53, 0x54, 0x4e, 0x45, 0x54, 0x5f, 0x47, 0x4f, 0x45, 0x52, 0x4c, 0x49, 0x10, + 0xa1, 0x9c, 0x01, 0x12, 0x1e, 0x0a, 0x18, 0x45, 0x54, 0x48, 0x45, 0x52, 0x45, 0x55, 0x4d, 0x5f, + 0x54, 0x45, 0x53, 0x54, 0x4e, 0x45, 0x54, 0x5f, 0x53, 0x45, 0x50, 0x4f, 0x4c, 0x49, 0x41, 0x10, + 0xa2, 0x9c, 0x01, 0x12, 0x1d, 0x0a, 0x17, 0x50, 0x4f, 0x4c, 0x59, 0x47, 0x4f, 0x4e, 0x5f, 0x4d, + 0x41, 0x49, 0x4e, 0x4e, 0x45, 0x54, 0x5f, 0x4d, 0x41, 0x49, 0x4e, 0x4e, 0x45, 0x54, 0x10, 0xa3, + 0x9c, 0x01, 0x12, 0x1c, 0x0a, 0x16, 0x50, 0x4f, 0x4c, 0x59, 0x47, 0x4f, 0x4e, 0x5f, 0x54, 0x45, + 0x53, 0x54, 0x4e, 0x45, 0x54, 0x5f, 0x4d, 0x55, 0x4d, 0x42, 0x41, 0x49, 0x10, 0xa4, 0x9c, 0x01, + 0x12, 0x19, 0x0a, 0x13, 0x42, 0x4e, 0x42, 0x5f, 0x4d, 0x41, 0x49, 0x4e, 0x4e, 0x45, 0x54, 0x5f, + 0x4d, 0x41, 0x49, 0x4e, 0x4e, 0x45, 0x54, 0x10, 0xa5, 0x9c, 0x01, 0x12, 0x19, 0x0a, 0x13, 0x42, + 0x4e, 0x42, 0x5f, 0x54, 0x45, 0x53, 0x54, 0x4e, 0x45, 0x54, 0x5f, 0x54, 0x45, 0x53, 0x54, 0x4e, + 0x45, 0x54, 0x10, 0xa6, 0x9c, 0x01, 0x12, 0x1e, 0x0a, 0x18, 0x41, 0x56, 0x41, 0x4c, 0x41, 0x4e, + 0x43, 0x48, 0x45, 0x5f, 0x4d, 0x41, 0x49, 0x4e, 0x4e, 0x45, 0x54, 0x5f, 0x43, 0x43, 0x48, 0x41, + 0x49, 0x4e, 0x10, 0xa7, 0x9c, 0x01, 0x12, 0x1c, 0x0a, 0x16, 0x41, 0x56, 0x41, 0x4c, 0x41, 0x4e, + 0x43, 0x48, 0x45, 0x5f, 0x54, 0x45, 0x53, 0x54, 0x4e, 0x45, 0x54, 0x5f, 0x46, 0x55, 0x4a, 0x49, + 0x10, 0xa8, 0x9c, 0x01, 0x12, 0x1c, 0x0a, 0x16, 0x47, 0x4e, 0x4f, 0x53, 0x49, 0x53, 0x5f, 0x4d, + 0x41, 0x49, 0x4e, 0x4e, 0x45, 0x54, 0x5f, 0x4d, 0x41, 0x49, 0x4e, 0x4e, 0x45, 0x54, 0x10, 0xa9, + 0x9c, 0x01, 0x12, 0x1b, 0x0a, 0x15, 0x47, 0x4e, 0x4f, 0x53, 0x49, 0x53, 0x5f, 0x54, 0x45, 0x53, + 0x54, 0x4e, 0x45, 0x54, 0x5f, 0x43, 0x48, 0x49, 0x41, 0x44, 0x4f, 0x10, 0xaa, 0x9c, 0x01, 0x12, + 0x1e, 0x0a, 0x18, 0x4f, 0x50, 0x54, 0x49, 0x4d, 0x49, 0x53, 0x4d, 0x5f, 0x4d, 0x41, 0x49, 0x4e, + 0x4e, 0x45, 0x54, 0x5f, 0x4d, 0x41, 0x49, 0x4e, 0x4e, 0x45, 0x54, 0x10, 0xab, 0x9c, 0x01, 0x12, + 0x1d, 0x0a, 0x17, 0x4f, 0x50, 0x54, 0x49, 0x4d, 0x49, 0x53, 0x4d, 0x5f, 0x54, 0x45, 0x53, 0x54, + 0x4e, 0x45, 0x54, 0x5f, 0x47, 0x4f, 0x45, 0x52, 0x4c, 0x49, 0x10, 0xac, 0x9c, 0x01, 0x12, 0x1e, + 0x0a, 0x18, 0x41, 0x52, 0x42, 0x49, 0x54, 0x52, 0x55, 0x4d, 0x5f, 0x4d, 0x41, 0x49, 0x4e, 0x4e, + 0x45, 0x54, 0x5f, 0x4d, 0x41, 0x49, 0x4e, 0x4e, 0x45, 0x54, 0x10, 0xad, 0x9c, 0x01, 0x12, 0x1d, + 0x0a, 0x17, 0x41, 0x52, 0x42, 0x49, 0x54, 0x52, 0x55, 0x4d, 0x5f, 0x54, 0x45, 0x53, 0x54, 0x4e, + 0x45, 0x54, 0x5f, 0x47, 0x4f, 0x45, 0x52, 0x4c, 0x49, 0x10, 0xae, 0x9c, 0x01, 0x12, 0x1d, 0x0a, + 0x17, 0x53, 0x48, 0x41, 0x52, 0x44, 0x45, 0x55, 0x4d, 0x5f, 0x42, 0x45, 0x54, 0x41, 0x4e, 0x45, + 0x54, 0x5f, 0x53, 0x50, 0x48, 0x49, 0x4e, 0x58, 0x10, 0xb1, 0x9c, 0x01, 0x12, 0x19, 0x0a, 0x13, + 0x5a, 0x45, 0x54, 0x41, 0x5f, 0x54, 0x45, 0x53, 0x54, 0x4e, 0x45, 0x54, 0x5f, 0x41, 0x54, 0x48, + 0x45, 0x4e, 0x53, 0x10, 0xb3, 0x9c, 0x01, 0x12, 0x19, 0x0a, 0x13, 0x45, 0x56, 0x4d, 0x5f, 0x44, + 0x45, 0x46, 0x41, 0x55, 0x4c, 0x54, 0x5f, 0x44, 0x45, 0x46, 0x41, 0x55, 0x4c, 0x54, 0x10, 0xaf, + 0xea, 0x01, 0x12, 0x1b, 0x0a, 0x15, 0x41, 0x50, 0x54, 0x4f, 0x53, 0x5f, 0x4d, 0x41, 0x49, 0x4e, + 0x4e, 0x45, 0x54, 0x5f, 0x4d, 0x41, 0x49, 0x4e, 0x4e, 0x45, 0x54, 0x10, 0xb0, 0xea, 0x01, 0x12, + 0x1b, 0x0a, 0x15, 0x41, 0x50, 0x54, 0x4f, 0x53, 0x5f, 0x54, 0x45, 0x53, 0x54, 0x4e, 0x45, 0x54, + 0x5f, 0x54, 0x45, 0x53, 0x54, 0x4e, 0x45, 0x54, 0x10, 0xb1, 0xea, 0x01, 0x12, 0x19, 0x0a, 0x13, + 0x53, 0x55, 0x49, 0x5f, 0x4d, 0x41, 0x49, 0x4e, 0x4e, 0x45, 0x54, 0x5f, 0x4d, 0x41, 0x49, 0x4e, + 0x4e, 0x45, 0x54, 0x10, 0xb2, 0xea, 0x01, 0x12, 0x19, 0x0a, 0x13, 0x53, 0x55, 0x49, 0x5f, 0x54, + 0x45, 0x53, 0x54, 0x4e, 0x45, 0x54, 0x5f, 0x54, 0x45, 0x53, 0x54, 0x4e, 0x45, 0x54, 0x10, 0xb3, + 0xea, 0x01, 0x12, 0x1a, 0x0a, 0x14, 0x4d, 0x4f, 0x56, 0x45, 0x5f, 0x44, 0x45, 0x46, 0x41, 0x55, + 0x4c, 0x54, 0x5f, 0x44, 0x45, 0x46, 0x41, 0x55, 0x4c, 0x54, 0x10, 0xbf, 0xb8, 0x02, 0x12, 0x1c, + 0x0a, 0x16, 0x53, 0x4f, 0x4c, 0x41, 0x4e, 0x41, 0x5f, 0x4d, 0x41, 0x49, 0x4e, 0x4e, 0x45, 0x54, + 0x5f, 0x4d, 0x41, 0x49, 0x4e, 0x4e, 0x45, 0x54, 0x10, 0xc0, 0xb8, 0x02, 0x12, 0x1c, 0x0a, 0x16, + 0x53, 0x4f, 0x4c, 0x41, 0x4e, 0x41, 0x5f, 0x54, 0x45, 0x53, 0x54, 0x4e, 0x45, 0x54, 0x5f, 0x54, + 0x45, 0x53, 0x54, 0x4e, 0x45, 0x54, 0x10, 0xc1, 0xb8, 0x02, 0x12, 0x1c, 0x0a, 0x16, 0x53, 0x4f, + 0x4c, 0x41, 0x4e, 0x41, 0x5f, 0x44, 0x45, 0x46, 0x41, 0x55, 0x4c, 0x54, 0x5f, 0x44, 0x45, 0x46, + 0x41, 0x55, 0x4c, 0x54, 0x10, 0xcf, 0x86, 0x03, 0x42, 0xbe, 0x01, 0x0a, 0x15, 0x63, 0x6f, 0x6d, + 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, + 0x76, 0x31, 0x42, 0x10, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x4e, 0x61, 0x6d, 0x65, 0x50, + 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2d, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, + 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2f, 0x72, + 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x3b, 0x72, 0x65, 0x67, 0x69, 0x73, + 0x74, 0x72, 0x79, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x4d, 0x52, 0x58, 0xaa, 0x02, 0x11, 0x4d, 0x79, + 0x63, 0x65, 0x6c, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x56, 0x31, 0xca, + 0x02, 0x11, 0x4d, 0x79, 0x63, 0x65, 0x6c, 0x5c, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, + 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x1d, 0x4d, 0x79, 0x63, 0x65, 0x6c, 0x5c, 0x52, 0x65, 0x67, 0x69, + 0x73, 0x74, 0x72, 0x79, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, + 0x61, 0x74, 0x61, 0xea, 0x02, 0x13, 0x4d, 0x79, 0x63, 0x65, 0x6c, 0x3a, 0x3a, 0x52, 0x65, 0x67, + 0x69, 0x73, 0x74, 0x72, 0x79, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x33, +} + +var ( + file_mycel_registry_v1_network_name_proto_rawDescOnce sync.Once + file_mycel_registry_v1_network_name_proto_rawDescData = file_mycel_registry_v1_network_name_proto_rawDesc +) + +func file_mycel_registry_v1_network_name_proto_rawDescGZIP() []byte { + file_mycel_registry_v1_network_name_proto_rawDescOnce.Do(func() { + file_mycel_registry_v1_network_name_proto_rawDescData = protoimpl.X.CompressGZIP(file_mycel_registry_v1_network_name_proto_rawDescData) + }) + return file_mycel_registry_v1_network_name_proto_rawDescData +} + +var file_mycel_registry_v1_network_name_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_mycel_registry_v1_network_name_proto_goTypes = []interface{}{ + (NetworkName)(0), // 0: mycel.registry.v1.NetworkName +} +var file_mycel_registry_v1_network_name_proto_depIdxs = []int32{ + 0, // [0:0] is the sub-list for method output_type + 0, // [0:0] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} + +func init() { file_mycel_registry_v1_network_name_proto_init() } +func file_mycel_registry_v1_network_name_proto_init() { + if File_mycel_registry_v1_network_name_proto != nil { + return + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_mycel_registry_v1_network_name_proto_rawDesc, + NumEnums: 1, + NumMessages: 0, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_mycel_registry_v1_network_name_proto_goTypes, + DependencyIndexes: file_mycel_registry_v1_network_name_proto_depIdxs, + EnumInfos: file_mycel_registry_v1_network_name_proto_enumTypes, + }.Build() + File_mycel_registry_v1_network_name_proto = out.File + file_mycel_registry_v1_network_name_proto_rawDesc = nil + file_mycel_registry_v1_network_name_proto_goTypes = nil + file_mycel_registry_v1_network_name_proto_depIdxs = nil +} diff --git a/api/mycel/registry/v1beta1/params.pulsar.go b/api/mycel/registry/v1/params.pulsar.go similarity index 73% rename from api/mycel/registry/v1beta1/params.pulsar.go rename to api/mycel/registry/v1/params.pulsar.go index 935cc529..940cdbf3 100644 --- a/api/mycel/registry/v1beta1/params.pulsar.go +++ b/api/mycel/registry/v1/params.pulsar.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-go-pulsar. DO NOT EDIT. -package types +package registryv1 import ( binary "encoding/binary" @@ -22,8 +22,8 @@ var ( ) func init() { - file_mycel_registry_v1beta1_params_proto_init() - md_Params = File_mycel_registry_v1beta1_params_proto.Messages().ByName("Params") + file_mycel_registry_v1_params_proto_init() + md_Params = File_mycel_registry_v1_params_proto.Messages().ByName("Params") fd_Params_staking_inflation_ratio = md_Params.Fields().ByName("staking_inflation_ratio") fd_Params_top_level_domain_base_fee_in_usd = md_Params.Fields().ByName("top_level_domain_base_fee_in_usd") } @@ -37,7 +37,7 @@ func (x *Params) ProtoReflect() protoreflect.Message { } func (x *Params) slowProtoReflect() protoreflect.Message { - mi := &file_mycel_registry_v1beta1_params_proto_msgTypes[0] + mi := &file_mycel_registry_v1_params_proto_msgTypes[0] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -120,15 +120,15 @@ func (x *fastReflection_Params) Range(f func(protoreflect.FieldDescriptor, proto // a repeated field is populated if it is non-empty. func (x *fastReflection_Params) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "mycel.registry.v1beta1.Params.staking_inflation_ratio": + case "mycel.registry.v1.Params.staking_inflation_ratio": return x.StakingInflationRatio != float32(0) || math.Signbit(float64(x.StakingInflationRatio)) - case "mycel.registry.v1beta1.Params.top_level_domain_base_fee_in_usd": + case "mycel.registry.v1.Params.top_level_domain_base_fee_in_usd": return x.TopLevelDomainBaseFeeInUsd != int64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.Params")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.Params")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.Params does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.Params does not contain field %s", fd.FullName())) } } @@ -140,15 +140,15 @@ func (x *fastReflection_Params) Has(fd protoreflect.FieldDescriptor) bool { // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_Params) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "mycel.registry.v1beta1.Params.staking_inflation_ratio": + case "mycel.registry.v1.Params.staking_inflation_ratio": x.StakingInflationRatio = float32(0) - case "mycel.registry.v1beta1.Params.top_level_domain_base_fee_in_usd": + case "mycel.registry.v1.Params.top_level_domain_base_fee_in_usd": x.TopLevelDomainBaseFeeInUsd = int64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.Params")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.Params")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.Params does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.Params does not contain field %s", fd.FullName())) } } @@ -160,17 +160,17 @@ func (x *fastReflection_Params) Clear(fd protoreflect.FieldDescriptor) { // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_Params) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "mycel.registry.v1beta1.Params.staking_inflation_ratio": + case "mycel.registry.v1.Params.staking_inflation_ratio": value := x.StakingInflationRatio return protoreflect.ValueOfFloat32(value) - case "mycel.registry.v1beta1.Params.top_level_domain_base_fee_in_usd": + case "mycel.registry.v1.Params.top_level_domain_base_fee_in_usd": value := x.TopLevelDomainBaseFeeInUsd return protoreflect.ValueOfInt64(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.Params")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.Params")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.Params does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.Params does not contain field %s", descriptor.FullName())) } } @@ -186,15 +186,15 @@ func (x *fastReflection_Params) Get(descriptor protoreflect.FieldDescriptor) pro // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_Params) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "mycel.registry.v1beta1.Params.staking_inflation_ratio": + case "mycel.registry.v1.Params.staking_inflation_ratio": x.StakingInflationRatio = float32(value.Float()) - case "mycel.registry.v1beta1.Params.top_level_domain_base_fee_in_usd": + case "mycel.registry.v1.Params.top_level_domain_base_fee_in_usd": x.TopLevelDomainBaseFeeInUsd = value.Int() default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.Params")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.Params")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.Params does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.Params does not contain field %s", fd.FullName())) } } @@ -210,15 +210,15 @@ func (x *fastReflection_Params) Set(fd protoreflect.FieldDescriptor, value proto // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_Params) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "mycel.registry.v1beta1.Params.staking_inflation_ratio": - panic(fmt.Errorf("field staking_inflation_ratio of message mycel.registry.v1beta1.Params is not mutable")) - case "mycel.registry.v1beta1.Params.top_level_domain_base_fee_in_usd": - panic(fmt.Errorf("field top_level_domain_base_fee_in_usd of message mycel.registry.v1beta1.Params is not mutable")) + case "mycel.registry.v1.Params.staking_inflation_ratio": + panic(fmt.Errorf("field staking_inflation_ratio of message mycel.registry.v1.Params is not mutable")) + case "mycel.registry.v1.Params.top_level_domain_base_fee_in_usd": + panic(fmt.Errorf("field top_level_domain_base_fee_in_usd of message mycel.registry.v1.Params is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.Params")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.Params")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.Params does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.Params does not contain field %s", fd.FullName())) } } @@ -227,15 +227,15 @@ func (x *fastReflection_Params) Mutable(fd protoreflect.FieldDescriptor) protore // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_Params) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "mycel.registry.v1beta1.Params.staking_inflation_ratio": + case "mycel.registry.v1.Params.staking_inflation_ratio": return protoreflect.ValueOfFloat32(float32(0)) - case "mycel.registry.v1beta1.Params.top_level_domain_base_fee_in_usd": + case "mycel.registry.v1.Params.top_level_domain_base_fee_in_usd": return protoreflect.ValueOfInt64(int64(0)) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.Params")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.Params")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.Params does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.Params does not contain field %s", fd.FullName())) } } @@ -245,7 +245,7 @@ func (x *fastReflection_Params) NewField(fd protoreflect.FieldDescriptor) protor func (x *fastReflection_Params) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in mycel.registry.v1beta1.Params", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in mycel.registry.v1.Params", d.FullName())) } panic("unreachable") } @@ -464,7 +464,7 @@ func (x *fastReflection_Params) ProtoMethods() *protoiface.Methods { // versions: // protoc-gen-go v1.27.0 // protoc (unknown) -// source: mycel/registry/v1beta1/params.proto +// source: mycel/registry/v1/params.proto const ( // Verify that this generated code is sufficiently up-to-date. @@ -486,7 +486,7 @@ type Params struct { func (x *Params) Reset() { *x = Params{} if protoimpl.UnsafeEnabled { - mi := &file_mycel_registry_v1beta1_params_proto_msgTypes[0] + mi := &file_mycel_registry_v1_params_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -500,7 +500,7 @@ func (*Params) ProtoMessage() {} // Deprecated: Use Params.ProtoReflect.Descriptor instead. func (*Params) Descriptor() ([]byte, []int) { - return file_mycel_registry_v1beta1_params_proto_rawDescGZIP(), []int{0} + return file_mycel_registry_v1_params_proto_rawDescGZIP(), []int{0} } func (x *Params) GetStakingInflationRatio() float32 { @@ -517,56 +517,54 @@ func (x *Params) GetTopLevelDomainBaseFeeInUsd() int64 { return 0 } -var File_mycel_registry_v1beta1_params_proto protoreflect.FileDescriptor - -var file_mycel_registry_v1beta1_params_proto_rawDesc = []byte{ - 0x0a, 0x23, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, - 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x16, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x72, 0x65, 0x67, - 0x69, 0x73, 0x74, 0x72, 0x79, 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, 0x22, 0x8c, 0x01, 0x0a, 0x06, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x36, - 0x0a, 0x17, 0x73, 0x74, 0x61, 0x6b, 0x69, 0x6e, 0x67, 0x5f, 0x69, 0x6e, 0x66, 0x6c, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x5f, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x18, 0x01, 0x20, 0x01, 0x28, 0x02, 0x52, - 0x15, 0x73, 0x74, 0x61, 0x6b, 0x69, 0x6e, 0x67, 0x49, 0x6e, 0x66, 0x6c, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x52, 0x61, 0x74, 0x69, 0x6f, 0x12, 0x44, 0x0a, 0x20, 0x74, 0x6f, 0x70, 0x5f, 0x6c, 0x65, - 0x76, 0x65, 0x6c, 0x5f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x5f, 0x62, 0x61, 0x73, 0x65, 0x5f, - 0x66, 0x65, 0x65, 0x5f, 0x69, 0x6e, 0x5f, 0x75, 0x73, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, - 0x52, 0x1a, 0x74, 0x6f, 0x70, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, - 0x42, 0x61, 0x73, 0x65, 0x46, 0x65, 0x65, 0x49, 0x6e, 0x55, 0x73, 0x64, 0x3a, 0x04, 0x98, 0xa0, - 0x1f, 0x00, 0x42, 0xd3, 0x01, 0x0a, 0x1a, 0x63, 0x6f, 0x6d, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, - 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, - 0x31, 0x42, 0x0b, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, - 0x5a, 0x2e, 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, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, - 0xa2, 0x02, 0x03, 0x4d, 0x52, 0x58, 0xaa, 0x02, 0x16, 0x4d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x52, - 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xca, - 0x02, 0x16, 0x4d, 0x79, 0x63, 0x65, 0x6c, 0x5c, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, - 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xe2, 0x02, 0x22, 0x4d, 0x79, 0x63, 0x65, 0x6c, - 0x5c, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, - 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x18, - 0x4d, 0x79, 0x63, 0x65, 0x6c, 0x3a, 0x3a, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x3a, - 0x3a, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +var File_mycel_registry_v1_params_proto protoreflect.FileDescriptor + +var file_mycel_registry_v1_params_proto_rawDesc = []byte{ + 0x0a, 0x1e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, + 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x12, 0x11, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, + 0x2e, 0x76, 0x31, 0x1a, 0x14, 0x67, 0x6f, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, + 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x8c, 0x01, 0x0a, 0x06, 0x50, 0x61, + 0x72, 0x61, 0x6d, 0x73, 0x12, 0x36, 0x0a, 0x17, 0x73, 0x74, 0x61, 0x6b, 0x69, 0x6e, 0x67, 0x5f, + 0x69, 0x6e, 0x66, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x02, 0x52, 0x15, 0x73, 0x74, 0x61, 0x6b, 0x69, 0x6e, 0x67, 0x49, 0x6e, + 0x66, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x61, 0x74, 0x69, 0x6f, 0x12, 0x44, 0x0a, 0x20, + 0x74, 0x6f, 0x70, 0x5f, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x5f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, + 0x5f, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x66, 0x65, 0x65, 0x5f, 0x69, 0x6e, 0x5f, 0x75, 0x73, 0x64, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x1a, 0x74, 0x6f, 0x70, 0x4c, 0x65, 0x76, 0x65, 0x6c, + 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x42, 0x61, 0x73, 0x65, 0x46, 0x65, 0x65, 0x49, 0x6e, 0x55, + 0x73, 0x64, 0x3a, 0x04, 0x98, 0xa0, 0x1f, 0x00, 0x42, 0xb9, 0x01, 0x0a, 0x15, 0x63, 0x6f, 0x6d, + 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, + 0x76, 0x31, 0x42, 0x0b, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, + 0x01, 0x5a, 0x2d, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, + 0x61, 0x70, 0x69, 0x2f, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, + 0x72, 0x79, 0x2f, 0x76, 0x31, 0x3b, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x76, 0x31, + 0xa2, 0x02, 0x03, 0x4d, 0x52, 0x58, 0xaa, 0x02, 0x11, 0x4d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x52, + 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x11, 0x4d, 0x79, 0x63, + 0x65, 0x6c, 0x5c, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x5c, 0x56, 0x31, 0xe2, 0x02, + 0x1d, 0x4d, 0x79, 0x63, 0x65, 0x6c, 0x5c, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x5c, + 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, + 0x13, 0x4d, 0x79, 0x63, 0x65, 0x6c, 0x3a, 0x3a, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, + 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( - file_mycel_registry_v1beta1_params_proto_rawDescOnce sync.Once - file_mycel_registry_v1beta1_params_proto_rawDescData = file_mycel_registry_v1beta1_params_proto_rawDesc + file_mycel_registry_v1_params_proto_rawDescOnce sync.Once + file_mycel_registry_v1_params_proto_rawDescData = file_mycel_registry_v1_params_proto_rawDesc ) -func file_mycel_registry_v1beta1_params_proto_rawDescGZIP() []byte { - file_mycel_registry_v1beta1_params_proto_rawDescOnce.Do(func() { - file_mycel_registry_v1beta1_params_proto_rawDescData = protoimpl.X.CompressGZIP(file_mycel_registry_v1beta1_params_proto_rawDescData) +func file_mycel_registry_v1_params_proto_rawDescGZIP() []byte { + file_mycel_registry_v1_params_proto_rawDescOnce.Do(func() { + file_mycel_registry_v1_params_proto_rawDescData = protoimpl.X.CompressGZIP(file_mycel_registry_v1_params_proto_rawDescData) }) - return file_mycel_registry_v1beta1_params_proto_rawDescData + return file_mycel_registry_v1_params_proto_rawDescData } -var file_mycel_registry_v1beta1_params_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_mycel_registry_v1beta1_params_proto_goTypes = []interface{}{ - (*Params)(nil), // 0: mycel.registry.v1beta1.Params +var file_mycel_registry_v1_params_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_mycel_registry_v1_params_proto_goTypes = []interface{}{ + (*Params)(nil), // 0: mycel.registry.v1.Params } -var file_mycel_registry_v1beta1_params_proto_depIdxs = []int32{ +var file_mycel_registry_v1_params_proto_depIdxs = []int32{ 0, // [0:0] is the sub-list for method output_type 0, // [0:0] is the sub-list for method input_type 0, // [0:0] is the sub-list for extension type_name @@ -574,13 +572,13 @@ var file_mycel_registry_v1beta1_params_proto_depIdxs = []int32{ 0, // [0:0] is the sub-list for field type_name } -func init() { file_mycel_registry_v1beta1_params_proto_init() } -func file_mycel_registry_v1beta1_params_proto_init() { - if File_mycel_registry_v1beta1_params_proto != nil { +func init() { file_mycel_registry_v1_params_proto_init() } +func file_mycel_registry_v1_params_proto_init() { + if File_mycel_registry_v1_params_proto != nil { return } if !protoimpl.UnsafeEnabled { - file_mycel_registry_v1beta1_params_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_mycel_registry_v1_params_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Params); i { case 0: return &v.state @@ -597,18 +595,18 @@ func file_mycel_registry_v1beta1_params_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_mycel_registry_v1beta1_params_proto_rawDesc, + RawDescriptor: file_mycel_registry_v1_params_proto_rawDesc, NumEnums: 0, NumMessages: 1, NumExtensions: 0, NumServices: 0, }, - GoTypes: file_mycel_registry_v1beta1_params_proto_goTypes, - DependencyIndexes: file_mycel_registry_v1beta1_params_proto_depIdxs, - MessageInfos: file_mycel_registry_v1beta1_params_proto_msgTypes, + GoTypes: file_mycel_registry_v1_params_proto_goTypes, + DependencyIndexes: file_mycel_registry_v1_params_proto_depIdxs, + MessageInfos: file_mycel_registry_v1_params_proto_msgTypes, }.Build() - File_mycel_registry_v1beta1_params_proto = out.File - file_mycel_registry_v1beta1_params_proto_rawDesc = nil - file_mycel_registry_v1beta1_params_proto_goTypes = nil - file_mycel_registry_v1beta1_params_proto_depIdxs = nil + File_mycel_registry_v1_params_proto = out.File + file_mycel_registry_v1_params_proto_rawDesc = nil + file_mycel_registry_v1_params_proto_goTypes = nil + file_mycel_registry_v1_params_proto_depIdxs = nil } diff --git a/api/mycel/registry/v1beta1/query.pulsar.go b/api/mycel/registry/v1/query.pulsar.go similarity index 58% rename from api/mycel/registry/v1beta1/query.pulsar.go rename to api/mycel/registry/v1/query.pulsar.go index be2e240b..bf675f6f 100644 --- a/api/mycel/registry/v1beta1/query.pulsar.go +++ b/api/mycel/registry/v1/query.pulsar.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-go-pulsar. DO NOT EDIT. -package types +package registryv1 import ( v1beta1 "cosmossdk.io/api/cosmos/base/query/v1beta1" @@ -14,6 +14,7 @@ import ( timestamppb "google.golang.org/protobuf/types/known/timestamppb" io "io" reflect "reflect" + sort "sort" sync "sync" ) @@ -22,8 +23,8 @@ var ( ) func init() { - file_mycel_registry_v1beta1_query_proto_init() - md_QueryParamsRequest = File_mycel_registry_v1beta1_query_proto.Messages().ByName("QueryParamsRequest") + file_mycel_registry_v1_query_proto_init() + md_QueryParamsRequest = File_mycel_registry_v1_query_proto.Messages().ByName("QueryParamsRequest") } var _ protoreflect.Message = (*fastReflection_QueryParamsRequest)(nil) @@ -35,7 +36,7 @@ func (x *QueryParamsRequest) ProtoReflect() protoreflect.Message { } func (x *QueryParamsRequest) slowProtoReflect() protoreflect.Message { - mi := &file_mycel_registry_v1beta1_query_proto_msgTypes[0] + mi := &file_mycel_registry_v1_query_proto_msgTypes[0] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -108,9 +109,9 @@ func (x *fastReflection_QueryParamsRequest) Has(fd protoreflect.FieldDescriptor) switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.QueryParamsRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.QueryParamsRequest")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.QueryParamsRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.QueryParamsRequest does not contain field %s", fd.FullName())) } } @@ -124,9 +125,9 @@ func (x *fastReflection_QueryParamsRequest) Clear(fd protoreflect.FieldDescripto switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.QueryParamsRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.QueryParamsRequest")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.QueryParamsRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.QueryParamsRequest does not contain field %s", fd.FullName())) } } @@ -140,9 +141,9 @@ func (x *fastReflection_QueryParamsRequest) Get(descriptor protoreflect.FieldDes switch descriptor.FullName() { default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.QueryParamsRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.QueryParamsRequest")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.QueryParamsRequest does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.QueryParamsRequest does not contain field %s", descriptor.FullName())) } } @@ -160,9 +161,9 @@ func (x *fastReflection_QueryParamsRequest) Set(fd protoreflect.FieldDescriptor, switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.QueryParamsRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.QueryParamsRequest")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.QueryParamsRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.QueryParamsRequest does not contain field %s", fd.FullName())) } } @@ -180,9 +181,9 @@ func (x *fastReflection_QueryParamsRequest) Mutable(fd protoreflect.FieldDescrip switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.QueryParamsRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.QueryParamsRequest")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.QueryParamsRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.QueryParamsRequest does not contain field %s", fd.FullName())) } } @@ -193,9 +194,9 @@ func (x *fastReflection_QueryParamsRequest) NewField(fd protoreflect.FieldDescri switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.QueryParamsRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.QueryParamsRequest")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.QueryParamsRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.QueryParamsRequest does not contain field %s", fd.FullName())) } } @@ -205,7 +206,7 @@ func (x *fastReflection_QueryParamsRequest) NewField(fd protoreflect.FieldDescri func (x *fastReflection_QueryParamsRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in mycel.registry.v1beta1.QueryParamsRequest", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in mycel.registry.v1.QueryParamsRequest", d.FullName())) } panic("unreachable") } @@ -379,8 +380,8 @@ var ( ) func init() { - file_mycel_registry_v1beta1_query_proto_init() - md_QueryParamsResponse = File_mycel_registry_v1beta1_query_proto.Messages().ByName("QueryParamsResponse") + file_mycel_registry_v1_query_proto_init() + md_QueryParamsResponse = File_mycel_registry_v1_query_proto.Messages().ByName("QueryParamsResponse") fd_QueryParamsResponse_params = md_QueryParamsResponse.Fields().ByName("params") } @@ -393,7 +394,7 @@ func (x *QueryParamsResponse) ProtoReflect() protoreflect.Message { } func (x *QueryParamsResponse) slowProtoReflect() protoreflect.Message { - mi := &file_mycel_registry_v1beta1_query_proto_msgTypes[1] + mi := &file_mycel_registry_v1_query_proto_msgTypes[1] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -470,13 +471,13 @@ func (x *fastReflection_QueryParamsResponse) Range(f func(protoreflect.FieldDesc // a repeated field is populated if it is non-empty. func (x *fastReflection_QueryParamsResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "mycel.registry.v1beta1.QueryParamsResponse.params": + case "mycel.registry.v1.QueryParamsResponse.params": return x.Params != nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.QueryParamsResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.QueryParamsResponse")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.QueryParamsResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.QueryParamsResponse does not contain field %s", fd.FullName())) } } @@ -488,13 +489,13 @@ func (x *fastReflection_QueryParamsResponse) Has(fd protoreflect.FieldDescriptor // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_QueryParamsResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "mycel.registry.v1beta1.QueryParamsResponse.params": + case "mycel.registry.v1.QueryParamsResponse.params": x.Params = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.QueryParamsResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.QueryParamsResponse")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.QueryParamsResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.QueryParamsResponse does not contain field %s", fd.FullName())) } } @@ -506,14 +507,14 @@ func (x *fastReflection_QueryParamsResponse) Clear(fd protoreflect.FieldDescript // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_QueryParamsResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "mycel.registry.v1beta1.QueryParamsResponse.params": + case "mycel.registry.v1.QueryParamsResponse.params": value := x.Params return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.QueryParamsResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.QueryParamsResponse")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.QueryParamsResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.QueryParamsResponse does not contain field %s", descriptor.FullName())) } } @@ -529,13 +530,13 @@ func (x *fastReflection_QueryParamsResponse) Get(descriptor protoreflect.FieldDe // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_QueryParamsResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "mycel.registry.v1beta1.QueryParamsResponse.params": + case "mycel.registry.v1.QueryParamsResponse.params": x.Params = value.Message().Interface().(*Params) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.QueryParamsResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.QueryParamsResponse")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.QueryParamsResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.QueryParamsResponse does not contain field %s", fd.FullName())) } } @@ -551,16 +552,16 @@ func (x *fastReflection_QueryParamsResponse) Set(fd protoreflect.FieldDescriptor // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_QueryParamsResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "mycel.registry.v1beta1.QueryParamsResponse.params": + case "mycel.registry.v1.QueryParamsResponse.params": if x.Params == nil { x.Params = new(Params) } return protoreflect.ValueOfMessage(x.Params.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.QueryParamsResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.QueryParamsResponse")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.QueryParamsResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.QueryParamsResponse does not contain field %s", fd.FullName())) } } @@ -569,14 +570,14 @@ func (x *fastReflection_QueryParamsResponse) Mutable(fd protoreflect.FieldDescri // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_QueryParamsResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "mycel.registry.v1beta1.QueryParamsResponse.params": + case "mycel.registry.v1.QueryParamsResponse.params": m := new(Params) return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.QueryParamsResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.QueryParamsResponse")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.QueryParamsResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.QueryParamsResponse does not contain field %s", fd.FullName())) } } @@ -586,7 +587,7 @@ func (x *fastReflection_QueryParamsResponse) NewField(fd protoreflect.FieldDescr func (x *fastReflection_QueryParamsResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in mycel.registry.v1beta1.QueryParamsResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in mycel.registry.v1.QueryParamsResponse", d.FullName())) } panic("unreachable") } @@ -814,8 +815,8 @@ var ( ) func init() { - file_mycel_registry_v1beta1_query_proto_init() - md_QueryGetTopLevelDomainRequest = File_mycel_registry_v1beta1_query_proto.Messages().ByName("QueryGetTopLevelDomainRequest") + file_mycel_registry_v1_query_proto_init() + md_QueryGetTopLevelDomainRequest = File_mycel_registry_v1_query_proto.Messages().ByName("QueryGetTopLevelDomainRequest") fd_QueryGetTopLevelDomainRequest_name = md_QueryGetTopLevelDomainRequest.Fields().ByName("name") } @@ -828,7 +829,7 @@ func (x *QueryGetTopLevelDomainRequest) ProtoReflect() protoreflect.Message { } func (x *QueryGetTopLevelDomainRequest) slowProtoReflect() protoreflect.Message { - mi := &file_mycel_registry_v1beta1_query_proto_msgTypes[2] + mi := &file_mycel_registry_v1_query_proto_msgTypes[2] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -905,13 +906,13 @@ func (x *fastReflection_QueryGetTopLevelDomainRequest) Range(f func(protoreflect // a repeated field is populated if it is non-empty. func (x *fastReflection_QueryGetTopLevelDomainRequest) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "mycel.registry.v1beta1.QueryGetTopLevelDomainRequest.name": + case "mycel.registry.v1.QueryGetTopLevelDomainRequest.name": return x.Name != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.QueryGetTopLevelDomainRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.QueryGetTopLevelDomainRequest")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.QueryGetTopLevelDomainRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.QueryGetTopLevelDomainRequest does not contain field %s", fd.FullName())) } } @@ -923,13 +924,13 @@ func (x *fastReflection_QueryGetTopLevelDomainRequest) Has(fd protoreflect.Field // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_QueryGetTopLevelDomainRequest) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "mycel.registry.v1beta1.QueryGetTopLevelDomainRequest.name": + case "mycel.registry.v1.QueryGetTopLevelDomainRequest.name": x.Name = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.QueryGetTopLevelDomainRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.QueryGetTopLevelDomainRequest")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.QueryGetTopLevelDomainRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.QueryGetTopLevelDomainRequest does not contain field %s", fd.FullName())) } } @@ -941,14 +942,14 @@ func (x *fastReflection_QueryGetTopLevelDomainRequest) Clear(fd protoreflect.Fie // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_QueryGetTopLevelDomainRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "mycel.registry.v1beta1.QueryGetTopLevelDomainRequest.name": + case "mycel.registry.v1.QueryGetTopLevelDomainRequest.name": value := x.Name return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.QueryGetTopLevelDomainRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.QueryGetTopLevelDomainRequest")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.QueryGetTopLevelDomainRequest does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.QueryGetTopLevelDomainRequest does not contain field %s", descriptor.FullName())) } } @@ -964,13 +965,13 @@ func (x *fastReflection_QueryGetTopLevelDomainRequest) Get(descriptor protorefle // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_QueryGetTopLevelDomainRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "mycel.registry.v1beta1.QueryGetTopLevelDomainRequest.name": + case "mycel.registry.v1.QueryGetTopLevelDomainRequest.name": x.Name = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.QueryGetTopLevelDomainRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.QueryGetTopLevelDomainRequest")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.QueryGetTopLevelDomainRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.QueryGetTopLevelDomainRequest does not contain field %s", fd.FullName())) } } @@ -986,13 +987,13 @@ func (x *fastReflection_QueryGetTopLevelDomainRequest) Set(fd protoreflect.Field // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_QueryGetTopLevelDomainRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "mycel.registry.v1beta1.QueryGetTopLevelDomainRequest.name": - panic(fmt.Errorf("field name of message mycel.registry.v1beta1.QueryGetTopLevelDomainRequest is not mutable")) + case "mycel.registry.v1.QueryGetTopLevelDomainRequest.name": + panic(fmt.Errorf("field name of message mycel.registry.v1.QueryGetTopLevelDomainRequest is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.QueryGetTopLevelDomainRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.QueryGetTopLevelDomainRequest")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.QueryGetTopLevelDomainRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.QueryGetTopLevelDomainRequest does not contain field %s", fd.FullName())) } } @@ -1001,13 +1002,13 @@ func (x *fastReflection_QueryGetTopLevelDomainRequest) Mutable(fd protoreflect.F // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_QueryGetTopLevelDomainRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "mycel.registry.v1beta1.QueryGetTopLevelDomainRequest.name": + case "mycel.registry.v1.QueryGetTopLevelDomainRequest.name": return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.QueryGetTopLevelDomainRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.QueryGetTopLevelDomainRequest")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.QueryGetTopLevelDomainRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.QueryGetTopLevelDomainRequest does not contain field %s", fd.FullName())) } } @@ -1017,7 +1018,7 @@ func (x *fastReflection_QueryGetTopLevelDomainRequest) NewField(fd protoreflect. func (x *fastReflection_QueryGetTopLevelDomainRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in mycel.registry.v1beta1.QueryGetTopLevelDomainRequest", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in mycel.registry.v1.QueryGetTopLevelDomainRequest", d.FullName())) } panic("unreachable") } @@ -1234,8 +1235,8 @@ var ( ) func init() { - file_mycel_registry_v1beta1_query_proto_init() - md_QueryGetTopLevelDomainResponse = File_mycel_registry_v1beta1_query_proto.Messages().ByName("QueryGetTopLevelDomainResponse") + file_mycel_registry_v1_query_proto_init() + md_QueryGetTopLevelDomainResponse = File_mycel_registry_v1_query_proto.Messages().ByName("QueryGetTopLevelDomainResponse") fd_QueryGetTopLevelDomainResponse_top_level_domain = md_QueryGetTopLevelDomainResponse.Fields().ByName("top_level_domain") } @@ -1248,7 +1249,7 @@ func (x *QueryGetTopLevelDomainResponse) ProtoReflect() protoreflect.Message { } func (x *QueryGetTopLevelDomainResponse) slowProtoReflect() protoreflect.Message { - mi := &file_mycel_registry_v1beta1_query_proto_msgTypes[3] + mi := &file_mycel_registry_v1_query_proto_msgTypes[3] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1325,13 +1326,13 @@ func (x *fastReflection_QueryGetTopLevelDomainResponse) Range(f func(protoreflec // a repeated field is populated if it is non-empty. func (x *fastReflection_QueryGetTopLevelDomainResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "mycel.registry.v1beta1.QueryGetTopLevelDomainResponse.top_level_domain": + case "mycel.registry.v1.QueryGetTopLevelDomainResponse.top_level_domain": return x.TopLevelDomain != nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.QueryGetTopLevelDomainResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.QueryGetTopLevelDomainResponse")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.QueryGetTopLevelDomainResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.QueryGetTopLevelDomainResponse does not contain field %s", fd.FullName())) } } @@ -1343,13 +1344,13 @@ func (x *fastReflection_QueryGetTopLevelDomainResponse) Has(fd protoreflect.Fiel // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_QueryGetTopLevelDomainResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "mycel.registry.v1beta1.QueryGetTopLevelDomainResponse.top_level_domain": + case "mycel.registry.v1.QueryGetTopLevelDomainResponse.top_level_domain": x.TopLevelDomain = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.QueryGetTopLevelDomainResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.QueryGetTopLevelDomainResponse")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.QueryGetTopLevelDomainResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.QueryGetTopLevelDomainResponse does not contain field %s", fd.FullName())) } } @@ -1361,14 +1362,14 @@ func (x *fastReflection_QueryGetTopLevelDomainResponse) Clear(fd protoreflect.Fi // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_QueryGetTopLevelDomainResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "mycel.registry.v1beta1.QueryGetTopLevelDomainResponse.top_level_domain": + case "mycel.registry.v1.QueryGetTopLevelDomainResponse.top_level_domain": value := x.TopLevelDomain return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.QueryGetTopLevelDomainResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.QueryGetTopLevelDomainResponse")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.QueryGetTopLevelDomainResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.QueryGetTopLevelDomainResponse does not contain field %s", descriptor.FullName())) } } @@ -1384,13 +1385,13 @@ func (x *fastReflection_QueryGetTopLevelDomainResponse) Get(descriptor protorefl // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_QueryGetTopLevelDomainResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "mycel.registry.v1beta1.QueryGetTopLevelDomainResponse.top_level_domain": + case "mycel.registry.v1.QueryGetTopLevelDomainResponse.top_level_domain": x.TopLevelDomain = value.Message().Interface().(*TopLevelDomain) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.QueryGetTopLevelDomainResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.QueryGetTopLevelDomainResponse")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.QueryGetTopLevelDomainResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.QueryGetTopLevelDomainResponse does not contain field %s", fd.FullName())) } } @@ -1406,16 +1407,16 @@ func (x *fastReflection_QueryGetTopLevelDomainResponse) Set(fd protoreflect.Fiel // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_QueryGetTopLevelDomainResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "mycel.registry.v1beta1.QueryGetTopLevelDomainResponse.top_level_domain": + case "mycel.registry.v1.QueryGetTopLevelDomainResponse.top_level_domain": if x.TopLevelDomain == nil { x.TopLevelDomain = new(TopLevelDomain) } return protoreflect.ValueOfMessage(x.TopLevelDomain.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.QueryGetTopLevelDomainResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.QueryGetTopLevelDomainResponse")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.QueryGetTopLevelDomainResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.QueryGetTopLevelDomainResponse does not contain field %s", fd.FullName())) } } @@ -1424,14 +1425,14 @@ func (x *fastReflection_QueryGetTopLevelDomainResponse) Mutable(fd protoreflect. // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_QueryGetTopLevelDomainResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "mycel.registry.v1beta1.QueryGetTopLevelDomainResponse.top_level_domain": + case "mycel.registry.v1.QueryGetTopLevelDomainResponse.top_level_domain": m := new(TopLevelDomain) return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.QueryGetTopLevelDomainResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.QueryGetTopLevelDomainResponse")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.QueryGetTopLevelDomainResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.QueryGetTopLevelDomainResponse does not contain field %s", fd.FullName())) } } @@ -1441,7 +1442,7 @@ func (x *fastReflection_QueryGetTopLevelDomainResponse) NewField(fd protoreflect func (x *fastReflection_QueryGetTopLevelDomainResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in mycel.registry.v1beta1.QueryGetTopLevelDomainResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in mycel.registry.v1.QueryGetTopLevelDomainResponse", d.FullName())) } panic("unreachable") } @@ -1669,8 +1670,8 @@ var ( ) func init() { - file_mycel_registry_v1beta1_query_proto_init() - md_QueryAllTopLevelDomainRequest = File_mycel_registry_v1beta1_query_proto.Messages().ByName("QueryAllTopLevelDomainRequest") + file_mycel_registry_v1_query_proto_init() + md_QueryAllTopLevelDomainRequest = File_mycel_registry_v1_query_proto.Messages().ByName("QueryAllTopLevelDomainRequest") fd_QueryAllTopLevelDomainRequest_pagination = md_QueryAllTopLevelDomainRequest.Fields().ByName("pagination") } @@ -1683,7 +1684,7 @@ func (x *QueryAllTopLevelDomainRequest) ProtoReflect() protoreflect.Message { } func (x *QueryAllTopLevelDomainRequest) slowProtoReflect() protoreflect.Message { - mi := &file_mycel_registry_v1beta1_query_proto_msgTypes[4] + mi := &file_mycel_registry_v1_query_proto_msgTypes[4] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1760,13 +1761,13 @@ func (x *fastReflection_QueryAllTopLevelDomainRequest) Range(f func(protoreflect // a repeated field is populated if it is non-empty. func (x *fastReflection_QueryAllTopLevelDomainRequest) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "mycel.registry.v1beta1.QueryAllTopLevelDomainRequest.pagination": + case "mycel.registry.v1.QueryAllTopLevelDomainRequest.pagination": return x.Pagination != nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.QueryAllTopLevelDomainRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.QueryAllTopLevelDomainRequest")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.QueryAllTopLevelDomainRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.QueryAllTopLevelDomainRequest does not contain field %s", fd.FullName())) } } @@ -1778,13 +1779,13 @@ func (x *fastReflection_QueryAllTopLevelDomainRequest) Has(fd protoreflect.Field // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_QueryAllTopLevelDomainRequest) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "mycel.registry.v1beta1.QueryAllTopLevelDomainRequest.pagination": + case "mycel.registry.v1.QueryAllTopLevelDomainRequest.pagination": x.Pagination = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.QueryAllTopLevelDomainRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.QueryAllTopLevelDomainRequest")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.QueryAllTopLevelDomainRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.QueryAllTopLevelDomainRequest does not contain field %s", fd.FullName())) } } @@ -1796,14 +1797,14 @@ func (x *fastReflection_QueryAllTopLevelDomainRequest) Clear(fd protoreflect.Fie // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_QueryAllTopLevelDomainRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "mycel.registry.v1beta1.QueryAllTopLevelDomainRequest.pagination": + case "mycel.registry.v1.QueryAllTopLevelDomainRequest.pagination": value := x.Pagination return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.QueryAllTopLevelDomainRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.QueryAllTopLevelDomainRequest")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.QueryAllTopLevelDomainRequest does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.QueryAllTopLevelDomainRequest does not contain field %s", descriptor.FullName())) } } @@ -1819,13 +1820,13 @@ func (x *fastReflection_QueryAllTopLevelDomainRequest) Get(descriptor protorefle // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_QueryAllTopLevelDomainRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "mycel.registry.v1beta1.QueryAllTopLevelDomainRequest.pagination": + case "mycel.registry.v1.QueryAllTopLevelDomainRequest.pagination": x.Pagination = value.Message().Interface().(*v1beta1.PageRequest) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.QueryAllTopLevelDomainRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.QueryAllTopLevelDomainRequest")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.QueryAllTopLevelDomainRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.QueryAllTopLevelDomainRequest does not contain field %s", fd.FullName())) } } @@ -1841,16 +1842,16 @@ func (x *fastReflection_QueryAllTopLevelDomainRequest) Set(fd protoreflect.Field // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_QueryAllTopLevelDomainRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "mycel.registry.v1beta1.QueryAllTopLevelDomainRequest.pagination": + case "mycel.registry.v1.QueryAllTopLevelDomainRequest.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.registry.v1beta1.QueryAllTopLevelDomainRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.QueryAllTopLevelDomainRequest")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.QueryAllTopLevelDomainRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.QueryAllTopLevelDomainRequest does not contain field %s", fd.FullName())) } } @@ -1859,14 +1860,14 @@ func (x *fastReflection_QueryAllTopLevelDomainRequest) Mutable(fd protoreflect.F // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_QueryAllTopLevelDomainRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "mycel.registry.v1beta1.QueryAllTopLevelDomainRequest.pagination": + case "mycel.registry.v1.QueryAllTopLevelDomainRequest.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.registry.v1beta1.QueryAllTopLevelDomainRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.QueryAllTopLevelDomainRequest")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.QueryAllTopLevelDomainRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.QueryAllTopLevelDomainRequest does not contain field %s", fd.FullName())) } } @@ -1876,7 +1877,7 @@ func (x *fastReflection_QueryAllTopLevelDomainRequest) NewField(fd protoreflect. func (x *fastReflection_QueryAllTopLevelDomainRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in mycel.registry.v1beta1.QueryAllTopLevelDomainRequest", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in mycel.registry.v1.QueryAllTopLevelDomainRequest", d.FullName())) } panic("unreachable") } @@ -2156,8 +2157,8 @@ var ( ) func init() { - file_mycel_registry_v1beta1_query_proto_init() - md_QueryAllTopLevelDomainResponse = File_mycel_registry_v1beta1_query_proto.Messages().ByName("QueryAllTopLevelDomainResponse") + file_mycel_registry_v1_query_proto_init() + md_QueryAllTopLevelDomainResponse = File_mycel_registry_v1_query_proto.Messages().ByName("QueryAllTopLevelDomainResponse") fd_QueryAllTopLevelDomainResponse_top_level_domain = md_QueryAllTopLevelDomainResponse.Fields().ByName("top_level_domain") fd_QueryAllTopLevelDomainResponse_pagination = md_QueryAllTopLevelDomainResponse.Fields().ByName("pagination") } @@ -2171,7 +2172,7 @@ func (x *QueryAllTopLevelDomainResponse) ProtoReflect() protoreflect.Message { } func (x *QueryAllTopLevelDomainResponse) slowProtoReflect() protoreflect.Message { - mi := &file_mycel_registry_v1beta1_query_proto_msgTypes[5] + mi := &file_mycel_registry_v1_query_proto_msgTypes[5] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2254,15 +2255,15 @@ func (x *fastReflection_QueryAllTopLevelDomainResponse) Range(f func(protoreflec // a repeated field is populated if it is non-empty. func (x *fastReflection_QueryAllTopLevelDomainResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "mycel.registry.v1beta1.QueryAllTopLevelDomainResponse.top_level_domain": + case "mycel.registry.v1.QueryAllTopLevelDomainResponse.top_level_domain": return len(x.TopLevelDomain) != 0 - case "mycel.registry.v1beta1.QueryAllTopLevelDomainResponse.pagination": + case "mycel.registry.v1.QueryAllTopLevelDomainResponse.pagination": return x.Pagination != nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.QueryAllTopLevelDomainResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.QueryAllTopLevelDomainResponse")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.QueryAllTopLevelDomainResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.QueryAllTopLevelDomainResponse does not contain field %s", fd.FullName())) } } @@ -2274,15 +2275,15 @@ func (x *fastReflection_QueryAllTopLevelDomainResponse) Has(fd protoreflect.Fiel // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_QueryAllTopLevelDomainResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "mycel.registry.v1beta1.QueryAllTopLevelDomainResponse.top_level_domain": + case "mycel.registry.v1.QueryAllTopLevelDomainResponse.top_level_domain": x.TopLevelDomain = nil - case "mycel.registry.v1beta1.QueryAllTopLevelDomainResponse.pagination": + case "mycel.registry.v1.QueryAllTopLevelDomainResponse.pagination": x.Pagination = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.QueryAllTopLevelDomainResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.QueryAllTopLevelDomainResponse")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.QueryAllTopLevelDomainResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.QueryAllTopLevelDomainResponse does not contain field %s", fd.FullName())) } } @@ -2294,20 +2295,20 @@ func (x *fastReflection_QueryAllTopLevelDomainResponse) Clear(fd protoreflect.Fi // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_QueryAllTopLevelDomainResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "mycel.registry.v1beta1.QueryAllTopLevelDomainResponse.top_level_domain": + case "mycel.registry.v1.QueryAllTopLevelDomainResponse.top_level_domain": if len(x.TopLevelDomain) == 0 { return protoreflect.ValueOfList(&_QueryAllTopLevelDomainResponse_1_list{}) } listValue := &_QueryAllTopLevelDomainResponse_1_list{list: &x.TopLevelDomain} return protoreflect.ValueOfList(listValue) - case "mycel.registry.v1beta1.QueryAllTopLevelDomainResponse.pagination": + case "mycel.registry.v1.QueryAllTopLevelDomainResponse.pagination": value := x.Pagination return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.QueryAllTopLevelDomainResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.QueryAllTopLevelDomainResponse")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.QueryAllTopLevelDomainResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.QueryAllTopLevelDomainResponse does not contain field %s", descriptor.FullName())) } } @@ -2323,17 +2324,17 @@ func (x *fastReflection_QueryAllTopLevelDomainResponse) Get(descriptor protorefl // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_QueryAllTopLevelDomainResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "mycel.registry.v1beta1.QueryAllTopLevelDomainResponse.top_level_domain": + case "mycel.registry.v1.QueryAllTopLevelDomainResponse.top_level_domain": lv := value.List() clv := lv.(*_QueryAllTopLevelDomainResponse_1_list) x.TopLevelDomain = *clv.list - case "mycel.registry.v1beta1.QueryAllTopLevelDomainResponse.pagination": + case "mycel.registry.v1.QueryAllTopLevelDomainResponse.pagination": x.Pagination = value.Message().Interface().(*v1beta1.PageResponse) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.QueryAllTopLevelDomainResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.QueryAllTopLevelDomainResponse")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.QueryAllTopLevelDomainResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.QueryAllTopLevelDomainResponse does not contain field %s", fd.FullName())) } } @@ -2349,22 +2350,22 @@ func (x *fastReflection_QueryAllTopLevelDomainResponse) Set(fd protoreflect.Fiel // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_QueryAllTopLevelDomainResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "mycel.registry.v1beta1.QueryAllTopLevelDomainResponse.top_level_domain": + case "mycel.registry.v1.QueryAllTopLevelDomainResponse.top_level_domain": if x.TopLevelDomain == nil { x.TopLevelDomain = []*TopLevelDomain{} } value := &_QueryAllTopLevelDomainResponse_1_list{list: &x.TopLevelDomain} return protoreflect.ValueOfList(value) - case "mycel.registry.v1beta1.QueryAllTopLevelDomainResponse.pagination": + case "mycel.registry.v1.QueryAllTopLevelDomainResponse.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.registry.v1beta1.QueryAllTopLevelDomainResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.QueryAllTopLevelDomainResponse")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.QueryAllTopLevelDomainResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.QueryAllTopLevelDomainResponse does not contain field %s", fd.FullName())) } } @@ -2373,17 +2374,17 @@ func (x *fastReflection_QueryAllTopLevelDomainResponse) Mutable(fd protoreflect. // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_QueryAllTopLevelDomainResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "mycel.registry.v1beta1.QueryAllTopLevelDomainResponse.top_level_domain": + case "mycel.registry.v1.QueryAllTopLevelDomainResponse.top_level_domain": list := []*TopLevelDomain{} return protoreflect.ValueOfList(&_QueryAllTopLevelDomainResponse_1_list{list: &list}) - case "mycel.registry.v1beta1.QueryAllTopLevelDomainResponse.pagination": + case "mycel.registry.v1.QueryAllTopLevelDomainResponse.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.registry.v1beta1.QueryAllTopLevelDomainResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.QueryAllTopLevelDomainResponse")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.QueryAllTopLevelDomainResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.QueryAllTopLevelDomainResponse does not contain field %s", fd.FullName())) } } @@ -2393,7 +2394,7 @@ func (x *fastReflection_QueryAllTopLevelDomainResponse) NewField(fd protoreflect func (x *fastReflection_QueryAllTopLevelDomainResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in mycel.registry.v1beta1.QueryAllTopLevelDomainResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in mycel.registry.v1.QueryAllTopLevelDomainResponse", d.FullName())) } panic("unreachable") } @@ -2678,8 +2679,8 @@ var ( ) func init() { - file_mycel_registry_v1beta1_query_proto_init() - md_QueryGetSecondLevelDomainRequest = File_mycel_registry_v1beta1_query_proto.Messages().ByName("QueryGetSecondLevelDomainRequest") + file_mycel_registry_v1_query_proto_init() + md_QueryGetSecondLevelDomainRequest = File_mycel_registry_v1_query_proto.Messages().ByName("QueryGetSecondLevelDomainRequest") fd_QueryGetSecondLevelDomainRequest_name = md_QueryGetSecondLevelDomainRequest.Fields().ByName("name") fd_QueryGetSecondLevelDomainRequest_parent = md_QueryGetSecondLevelDomainRequest.Fields().ByName("parent") } @@ -2693,7 +2694,7 @@ func (x *QueryGetSecondLevelDomainRequest) ProtoReflect() protoreflect.Message { } func (x *QueryGetSecondLevelDomainRequest) slowProtoReflect() protoreflect.Message { - mi := &file_mycel_registry_v1beta1_query_proto_msgTypes[6] + mi := &file_mycel_registry_v1_query_proto_msgTypes[6] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2776,15 +2777,15 @@ func (x *fastReflection_QueryGetSecondLevelDomainRequest) Range(f func(protorefl // a repeated field is populated if it is non-empty. func (x *fastReflection_QueryGetSecondLevelDomainRequest) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "mycel.registry.v1beta1.QueryGetSecondLevelDomainRequest.name": + case "mycel.registry.v1.QueryGetSecondLevelDomainRequest.name": return x.Name != "" - case "mycel.registry.v1beta1.QueryGetSecondLevelDomainRequest.parent": + case "mycel.registry.v1.QueryGetSecondLevelDomainRequest.parent": return x.Parent != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.QueryGetSecondLevelDomainRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.QueryGetSecondLevelDomainRequest")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.QueryGetSecondLevelDomainRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.QueryGetSecondLevelDomainRequest does not contain field %s", fd.FullName())) } } @@ -2796,15 +2797,15 @@ func (x *fastReflection_QueryGetSecondLevelDomainRequest) Has(fd protoreflect.Fi // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_QueryGetSecondLevelDomainRequest) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "mycel.registry.v1beta1.QueryGetSecondLevelDomainRequest.name": + case "mycel.registry.v1.QueryGetSecondLevelDomainRequest.name": x.Name = "" - case "mycel.registry.v1beta1.QueryGetSecondLevelDomainRequest.parent": + case "mycel.registry.v1.QueryGetSecondLevelDomainRequest.parent": x.Parent = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.QueryGetSecondLevelDomainRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.QueryGetSecondLevelDomainRequest")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.QueryGetSecondLevelDomainRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.QueryGetSecondLevelDomainRequest does not contain field %s", fd.FullName())) } } @@ -2816,17 +2817,17 @@ func (x *fastReflection_QueryGetSecondLevelDomainRequest) Clear(fd protoreflect. // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_QueryGetSecondLevelDomainRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "mycel.registry.v1beta1.QueryGetSecondLevelDomainRequest.name": + case "mycel.registry.v1.QueryGetSecondLevelDomainRequest.name": value := x.Name return protoreflect.ValueOfString(value) - case "mycel.registry.v1beta1.QueryGetSecondLevelDomainRequest.parent": + case "mycel.registry.v1.QueryGetSecondLevelDomainRequest.parent": value := x.Parent return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.QueryGetSecondLevelDomainRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.QueryGetSecondLevelDomainRequest")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.QueryGetSecondLevelDomainRequest does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.QueryGetSecondLevelDomainRequest does not contain field %s", descriptor.FullName())) } } @@ -2842,15 +2843,15 @@ func (x *fastReflection_QueryGetSecondLevelDomainRequest) Get(descriptor protore // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_QueryGetSecondLevelDomainRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "mycel.registry.v1beta1.QueryGetSecondLevelDomainRequest.name": + case "mycel.registry.v1.QueryGetSecondLevelDomainRequest.name": x.Name = value.Interface().(string) - case "mycel.registry.v1beta1.QueryGetSecondLevelDomainRequest.parent": + case "mycel.registry.v1.QueryGetSecondLevelDomainRequest.parent": x.Parent = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.QueryGetSecondLevelDomainRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.QueryGetSecondLevelDomainRequest")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.QueryGetSecondLevelDomainRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.QueryGetSecondLevelDomainRequest does not contain field %s", fd.FullName())) } } @@ -2866,15 +2867,15 @@ func (x *fastReflection_QueryGetSecondLevelDomainRequest) Set(fd protoreflect.Fi // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_QueryGetSecondLevelDomainRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "mycel.registry.v1beta1.QueryGetSecondLevelDomainRequest.name": - panic(fmt.Errorf("field name of message mycel.registry.v1beta1.QueryGetSecondLevelDomainRequest is not mutable")) - case "mycel.registry.v1beta1.QueryGetSecondLevelDomainRequest.parent": - panic(fmt.Errorf("field parent of message mycel.registry.v1beta1.QueryGetSecondLevelDomainRequest is not mutable")) + case "mycel.registry.v1.QueryGetSecondLevelDomainRequest.name": + panic(fmt.Errorf("field name of message mycel.registry.v1.QueryGetSecondLevelDomainRequest is not mutable")) + case "mycel.registry.v1.QueryGetSecondLevelDomainRequest.parent": + panic(fmt.Errorf("field parent of message mycel.registry.v1.QueryGetSecondLevelDomainRequest is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.QueryGetSecondLevelDomainRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.QueryGetSecondLevelDomainRequest")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.QueryGetSecondLevelDomainRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.QueryGetSecondLevelDomainRequest does not contain field %s", fd.FullName())) } } @@ -2883,15 +2884,15 @@ func (x *fastReflection_QueryGetSecondLevelDomainRequest) Mutable(fd protoreflec // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_QueryGetSecondLevelDomainRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "mycel.registry.v1beta1.QueryGetSecondLevelDomainRequest.name": + case "mycel.registry.v1.QueryGetSecondLevelDomainRequest.name": return protoreflect.ValueOfString("") - case "mycel.registry.v1beta1.QueryGetSecondLevelDomainRequest.parent": + case "mycel.registry.v1.QueryGetSecondLevelDomainRequest.parent": return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.QueryGetSecondLevelDomainRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.QueryGetSecondLevelDomainRequest")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.QueryGetSecondLevelDomainRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.QueryGetSecondLevelDomainRequest does not contain field %s", fd.FullName())) } } @@ -2901,7 +2902,7 @@ func (x *fastReflection_QueryGetSecondLevelDomainRequest) NewField(fd protorefle func (x *fastReflection_QueryGetSecondLevelDomainRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in mycel.registry.v1beta1.QueryGetSecondLevelDomainRequest", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in mycel.registry.v1.QueryGetSecondLevelDomainRequest", d.FullName())) } panic("unreachable") } @@ -3163,8 +3164,8 @@ var ( ) func init() { - file_mycel_registry_v1beta1_query_proto_init() - md_SecondLevelDomainResponse = File_mycel_registry_v1beta1_query_proto.Messages().ByName("SecondLevelDomainResponse") + file_mycel_registry_v1_query_proto_init() + md_SecondLevelDomainResponse = File_mycel_registry_v1_query_proto.Messages().ByName("SecondLevelDomainResponse") fd_SecondLevelDomainResponse_name = md_SecondLevelDomainResponse.Fields().ByName("name") fd_SecondLevelDomainResponse_parent = md_SecondLevelDomainResponse.Fields().ByName("parent") fd_SecondLevelDomainResponse_expiration_date = md_SecondLevelDomainResponse.Fields().ByName("expiration_date") @@ -3179,7 +3180,7 @@ func (x *SecondLevelDomainResponse) ProtoReflect() protoreflect.Message { } func (x *SecondLevelDomainResponse) slowProtoReflect() protoreflect.Message { - mi := &file_mycel_registry_v1beta1_query_proto_msgTypes[7] + mi := &file_mycel_registry_v1_query_proto_msgTypes[7] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3268,17 +3269,17 @@ func (x *fastReflection_SecondLevelDomainResponse) Range(f func(protoreflect.Fie // a repeated field is populated if it is non-empty. func (x *fastReflection_SecondLevelDomainResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "mycel.registry.v1beta1.SecondLevelDomainResponse.name": + case "mycel.registry.v1.SecondLevelDomainResponse.name": return x.Name != "" - case "mycel.registry.v1beta1.SecondLevelDomainResponse.parent": + case "mycel.registry.v1.SecondLevelDomainResponse.parent": return x.Parent != "" - case "mycel.registry.v1beta1.SecondLevelDomainResponse.expiration_date": + case "mycel.registry.v1.SecondLevelDomainResponse.expiration_date": return x.ExpirationDate != nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.SecondLevelDomainResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.SecondLevelDomainResponse")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.SecondLevelDomainResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.SecondLevelDomainResponse does not contain field %s", fd.FullName())) } } @@ -3290,17 +3291,17 @@ func (x *fastReflection_SecondLevelDomainResponse) Has(fd protoreflect.FieldDesc // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_SecondLevelDomainResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "mycel.registry.v1beta1.SecondLevelDomainResponse.name": + case "mycel.registry.v1.SecondLevelDomainResponse.name": x.Name = "" - case "mycel.registry.v1beta1.SecondLevelDomainResponse.parent": + case "mycel.registry.v1.SecondLevelDomainResponse.parent": x.Parent = "" - case "mycel.registry.v1beta1.SecondLevelDomainResponse.expiration_date": + case "mycel.registry.v1.SecondLevelDomainResponse.expiration_date": x.ExpirationDate = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.SecondLevelDomainResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.SecondLevelDomainResponse")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.SecondLevelDomainResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.SecondLevelDomainResponse does not contain field %s", fd.FullName())) } } @@ -3312,20 +3313,20 @@ func (x *fastReflection_SecondLevelDomainResponse) Clear(fd protoreflect.FieldDe // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_SecondLevelDomainResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "mycel.registry.v1beta1.SecondLevelDomainResponse.name": + case "mycel.registry.v1.SecondLevelDomainResponse.name": value := x.Name return protoreflect.ValueOfString(value) - case "mycel.registry.v1beta1.SecondLevelDomainResponse.parent": + case "mycel.registry.v1.SecondLevelDomainResponse.parent": value := x.Parent return protoreflect.ValueOfString(value) - case "mycel.registry.v1beta1.SecondLevelDomainResponse.expiration_date": + case "mycel.registry.v1.SecondLevelDomainResponse.expiration_date": value := x.ExpirationDate return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.SecondLevelDomainResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.SecondLevelDomainResponse")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.SecondLevelDomainResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.SecondLevelDomainResponse does not contain field %s", descriptor.FullName())) } } @@ -3341,17 +3342,17 @@ func (x *fastReflection_SecondLevelDomainResponse) Get(descriptor protoreflect.F // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_SecondLevelDomainResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "mycel.registry.v1beta1.SecondLevelDomainResponse.name": + case "mycel.registry.v1.SecondLevelDomainResponse.name": x.Name = value.Interface().(string) - case "mycel.registry.v1beta1.SecondLevelDomainResponse.parent": + case "mycel.registry.v1.SecondLevelDomainResponse.parent": x.Parent = value.Interface().(string) - case "mycel.registry.v1beta1.SecondLevelDomainResponse.expiration_date": + case "mycel.registry.v1.SecondLevelDomainResponse.expiration_date": x.ExpirationDate = value.Message().Interface().(*timestamppb.Timestamp) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.SecondLevelDomainResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.SecondLevelDomainResponse")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.SecondLevelDomainResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.SecondLevelDomainResponse does not contain field %s", fd.FullName())) } } @@ -3367,20 +3368,20 @@ func (x *fastReflection_SecondLevelDomainResponse) Set(fd protoreflect.FieldDesc // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_SecondLevelDomainResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "mycel.registry.v1beta1.SecondLevelDomainResponse.expiration_date": + case "mycel.registry.v1.SecondLevelDomainResponse.expiration_date": if x.ExpirationDate == nil { x.ExpirationDate = new(timestamppb.Timestamp) } return protoreflect.ValueOfMessage(x.ExpirationDate.ProtoReflect()) - case "mycel.registry.v1beta1.SecondLevelDomainResponse.name": - panic(fmt.Errorf("field name of message mycel.registry.v1beta1.SecondLevelDomainResponse is not mutable")) - case "mycel.registry.v1beta1.SecondLevelDomainResponse.parent": - panic(fmt.Errorf("field parent of message mycel.registry.v1beta1.SecondLevelDomainResponse is not mutable")) + case "mycel.registry.v1.SecondLevelDomainResponse.name": + panic(fmt.Errorf("field name of message mycel.registry.v1.SecondLevelDomainResponse is not mutable")) + case "mycel.registry.v1.SecondLevelDomainResponse.parent": + panic(fmt.Errorf("field parent of message mycel.registry.v1.SecondLevelDomainResponse is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.SecondLevelDomainResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.SecondLevelDomainResponse")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.SecondLevelDomainResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.SecondLevelDomainResponse does not contain field %s", fd.FullName())) } } @@ -3389,18 +3390,18 @@ func (x *fastReflection_SecondLevelDomainResponse) Mutable(fd protoreflect.Field // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_SecondLevelDomainResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "mycel.registry.v1beta1.SecondLevelDomainResponse.name": + case "mycel.registry.v1.SecondLevelDomainResponse.name": return protoreflect.ValueOfString("") - case "mycel.registry.v1beta1.SecondLevelDomainResponse.parent": + case "mycel.registry.v1.SecondLevelDomainResponse.parent": return protoreflect.ValueOfString("") - case "mycel.registry.v1beta1.SecondLevelDomainResponse.expiration_date": + case "mycel.registry.v1.SecondLevelDomainResponse.expiration_date": m := new(timestamppb.Timestamp) return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.SecondLevelDomainResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.SecondLevelDomainResponse")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.SecondLevelDomainResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.SecondLevelDomainResponse does not contain field %s", fd.FullName())) } } @@ -3410,7 +3411,7 @@ func (x *fastReflection_SecondLevelDomainResponse) NewField(fd protoreflect.Fiel func (x *fastReflection_SecondLevelDomainResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in mycel.registry.v1beta1.SecondLevelDomainResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in mycel.registry.v1.SecondLevelDomainResponse", d.FullName())) } panic("unreachable") } @@ -3724,8 +3725,8 @@ var ( ) func init() { - file_mycel_registry_v1beta1_query_proto_init() - md_QueryGetSecondLevelDomainResponse = File_mycel_registry_v1beta1_query_proto.Messages().ByName("QueryGetSecondLevelDomainResponse") + file_mycel_registry_v1_query_proto_init() + md_QueryGetSecondLevelDomainResponse = File_mycel_registry_v1_query_proto.Messages().ByName("QueryGetSecondLevelDomainResponse") fd_QueryGetSecondLevelDomainResponse_second_level_domain = md_QueryGetSecondLevelDomainResponse.Fields().ByName("second_level_domain") } @@ -3738,7 +3739,7 @@ func (x *QueryGetSecondLevelDomainResponse) ProtoReflect() protoreflect.Message } func (x *QueryGetSecondLevelDomainResponse) slowProtoReflect() protoreflect.Message { - mi := &file_mycel_registry_v1beta1_query_proto_msgTypes[8] + mi := &file_mycel_registry_v1_query_proto_msgTypes[8] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3815,13 +3816,13 @@ func (x *fastReflection_QueryGetSecondLevelDomainResponse) Range(f func(protoref // a repeated field is populated if it is non-empty. func (x *fastReflection_QueryGetSecondLevelDomainResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "mycel.registry.v1beta1.QueryGetSecondLevelDomainResponse.second_level_domain": + case "mycel.registry.v1.QueryGetSecondLevelDomainResponse.second_level_domain": return x.SecondLevelDomain != nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.QueryGetSecondLevelDomainResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.QueryGetSecondLevelDomainResponse")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.QueryGetSecondLevelDomainResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.QueryGetSecondLevelDomainResponse does not contain field %s", fd.FullName())) } } @@ -3833,13 +3834,13 @@ func (x *fastReflection_QueryGetSecondLevelDomainResponse) Has(fd protoreflect.F // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_QueryGetSecondLevelDomainResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "mycel.registry.v1beta1.QueryGetSecondLevelDomainResponse.second_level_domain": + case "mycel.registry.v1.QueryGetSecondLevelDomainResponse.second_level_domain": x.SecondLevelDomain = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.QueryGetSecondLevelDomainResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.QueryGetSecondLevelDomainResponse")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.QueryGetSecondLevelDomainResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.QueryGetSecondLevelDomainResponse does not contain field %s", fd.FullName())) } } @@ -3851,14 +3852,14 @@ func (x *fastReflection_QueryGetSecondLevelDomainResponse) Clear(fd protoreflect // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_QueryGetSecondLevelDomainResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "mycel.registry.v1beta1.QueryGetSecondLevelDomainResponse.second_level_domain": + case "mycel.registry.v1.QueryGetSecondLevelDomainResponse.second_level_domain": value := x.SecondLevelDomain return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.QueryGetSecondLevelDomainResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.QueryGetSecondLevelDomainResponse")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.QueryGetSecondLevelDomainResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.QueryGetSecondLevelDomainResponse does not contain field %s", descriptor.FullName())) } } @@ -3874,13 +3875,13 @@ func (x *fastReflection_QueryGetSecondLevelDomainResponse) Get(descriptor protor // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_QueryGetSecondLevelDomainResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "mycel.registry.v1beta1.QueryGetSecondLevelDomainResponse.second_level_domain": + case "mycel.registry.v1.QueryGetSecondLevelDomainResponse.second_level_domain": x.SecondLevelDomain = value.Message().Interface().(*SecondLevelDomainResponse) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.QueryGetSecondLevelDomainResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.QueryGetSecondLevelDomainResponse")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.QueryGetSecondLevelDomainResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.QueryGetSecondLevelDomainResponse does not contain field %s", fd.FullName())) } } @@ -3896,16 +3897,16 @@ func (x *fastReflection_QueryGetSecondLevelDomainResponse) Set(fd protoreflect.F // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_QueryGetSecondLevelDomainResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "mycel.registry.v1beta1.QueryGetSecondLevelDomainResponse.second_level_domain": + case "mycel.registry.v1.QueryGetSecondLevelDomainResponse.second_level_domain": if x.SecondLevelDomain == nil { x.SecondLevelDomain = new(SecondLevelDomainResponse) } return protoreflect.ValueOfMessage(x.SecondLevelDomain.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.QueryGetSecondLevelDomainResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.QueryGetSecondLevelDomainResponse")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.QueryGetSecondLevelDomainResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.QueryGetSecondLevelDomainResponse does not contain field %s", fd.FullName())) } } @@ -3914,14 +3915,14 @@ func (x *fastReflection_QueryGetSecondLevelDomainResponse) Mutable(fd protorefle // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_QueryGetSecondLevelDomainResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "mycel.registry.v1beta1.QueryGetSecondLevelDomainResponse.second_level_domain": + case "mycel.registry.v1.QueryGetSecondLevelDomainResponse.second_level_domain": m := new(SecondLevelDomainResponse) return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.QueryGetSecondLevelDomainResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.QueryGetSecondLevelDomainResponse")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.QueryGetSecondLevelDomainResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.QueryGetSecondLevelDomainResponse does not contain field %s", fd.FullName())) } } @@ -3931,7 +3932,7 @@ func (x *fastReflection_QueryGetSecondLevelDomainResponse) NewField(fd protorefl func (x *fastReflection_QueryGetSecondLevelDomainResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in mycel.registry.v1beta1.QueryGetSecondLevelDomainResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in mycel.registry.v1.QueryGetSecondLevelDomainResponse", d.FullName())) } panic("unreachable") } @@ -4159,8 +4160,8 @@ var ( ) func init() { - file_mycel_registry_v1beta1_query_proto_init() - md_QueryAllSecondLevelDomainRequest = File_mycel_registry_v1beta1_query_proto.Messages().ByName("QueryAllSecondLevelDomainRequest") + file_mycel_registry_v1_query_proto_init() + md_QueryAllSecondLevelDomainRequest = File_mycel_registry_v1_query_proto.Messages().ByName("QueryAllSecondLevelDomainRequest") fd_QueryAllSecondLevelDomainRequest_pagination = md_QueryAllSecondLevelDomainRequest.Fields().ByName("pagination") } @@ -4173,7 +4174,7 @@ func (x *QueryAllSecondLevelDomainRequest) ProtoReflect() protoreflect.Message { } func (x *QueryAllSecondLevelDomainRequest) slowProtoReflect() protoreflect.Message { - mi := &file_mycel_registry_v1beta1_query_proto_msgTypes[9] + mi := &file_mycel_registry_v1_query_proto_msgTypes[9] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4250,13 +4251,13 @@ func (x *fastReflection_QueryAllSecondLevelDomainRequest) Range(f func(protorefl // a repeated field is populated if it is non-empty. func (x *fastReflection_QueryAllSecondLevelDomainRequest) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "mycel.registry.v1beta1.QueryAllSecondLevelDomainRequest.pagination": + case "mycel.registry.v1.QueryAllSecondLevelDomainRequest.pagination": return x.Pagination != nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.QueryAllSecondLevelDomainRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.QueryAllSecondLevelDomainRequest")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.QueryAllSecondLevelDomainRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.QueryAllSecondLevelDomainRequest does not contain field %s", fd.FullName())) } } @@ -4268,13 +4269,13 @@ func (x *fastReflection_QueryAllSecondLevelDomainRequest) Has(fd protoreflect.Fi // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_QueryAllSecondLevelDomainRequest) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "mycel.registry.v1beta1.QueryAllSecondLevelDomainRequest.pagination": + case "mycel.registry.v1.QueryAllSecondLevelDomainRequest.pagination": x.Pagination = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.QueryAllSecondLevelDomainRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.QueryAllSecondLevelDomainRequest")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.QueryAllSecondLevelDomainRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.QueryAllSecondLevelDomainRequest does not contain field %s", fd.FullName())) } } @@ -4286,14 +4287,14 @@ func (x *fastReflection_QueryAllSecondLevelDomainRequest) Clear(fd protoreflect. // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_QueryAllSecondLevelDomainRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "mycel.registry.v1beta1.QueryAllSecondLevelDomainRequest.pagination": + case "mycel.registry.v1.QueryAllSecondLevelDomainRequest.pagination": value := x.Pagination return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.QueryAllSecondLevelDomainRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.QueryAllSecondLevelDomainRequest")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.QueryAllSecondLevelDomainRequest does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.QueryAllSecondLevelDomainRequest does not contain field %s", descriptor.FullName())) } } @@ -4309,13 +4310,13 @@ func (x *fastReflection_QueryAllSecondLevelDomainRequest) Get(descriptor protore // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_QueryAllSecondLevelDomainRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "mycel.registry.v1beta1.QueryAllSecondLevelDomainRequest.pagination": + case "mycel.registry.v1.QueryAllSecondLevelDomainRequest.pagination": x.Pagination = value.Message().Interface().(*v1beta1.PageRequest) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.QueryAllSecondLevelDomainRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.QueryAllSecondLevelDomainRequest")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.QueryAllSecondLevelDomainRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.QueryAllSecondLevelDomainRequest does not contain field %s", fd.FullName())) } } @@ -4331,16 +4332,16 @@ func (x *fastReflection_QueryAllSecondLevelDomainRequest) Set(fd protoreflect.Fi // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_QueryAllSecondLevelDomainRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "mycel.registry.v1beta1.QueryAllSecondLevelDomainRequest.pagination": + case "mycel.registry.v1.QueryAllSecondLevelDomainRequest.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.registry.v1beta1.QueryAllSecondLevelDomainRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.QueryAllSecondLevelDomainRequest")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.QueryAllSecondLevelDomainRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.QueryAllSecondLevelDomainRequest does not contain field %s", fd.FullName())) } } @@ -4349,14 +4350,14 @@ func (x *fastReflection_QueryAllSecondLevelDomainRequest) Mutable(fd protoreflec // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_QueryAllSecondLevelDomainRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "mycel.registry.v1beta1.QueryAllSecondLevelDomainRequest.pagination": + case "mycel.registry.v1.QueryAllSecondLevelDomainRequest.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.registry.v1beta1.QueryAllSecondLevelDomainRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.QueryAllSecondLevelDomainRequest")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.QueryAllSecondLevelDomainRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.QueryAllSecondLevelDomainRequest does not contain field %s", fd.FullName())) } } @@ -4366,7 +4367,7 @@ func (x *fastReflection_QueryAllSecondLevelDomainRequest) NewField(fd protorefle func (x *fastReflection_QueryAllSecondLevelDomainRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in mycel.registry.v1beta1.QueryAllSecondLevelDomainRequest", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in mycel.registry.v1.QueryAllSecondLevelDomainRequest", d.FullName())) } panic("unreachable") } @@ -4646,8 +4647,8 @@ var ( ) func init() { - file_mycel_registry_v1beta1_query_proto_init() - md_QueryAllSecondLevelDomainResponse = File_mycel_registry_v1beta1_query_proto.Messages().ByName("QueryAllSecondLevelDomainResponse") + file_mycel_registry_v1_query_proto_init() + md_QueryAllSecondLevelDomainResponse = File_mycel_registry_v1_query_proto.Messages().ByName("QueryAllSecondLevelDomainResponse") fd_QueryAllSecondLevelDomainResponse_second_level_domain = md_QueryAllSecondLevelDomainResponse.Fields().ByName("second_level_domain") fd_QueryAllSecondLevelDomainResponse_pagination = md_QueryAllSecondLevelDomainResponse.Fields().ByName("pagination") } @@ -4661,7 +4662,7 @@ func (x *QueryAllSecondLevelDomainResponse) ProtoReflect() protoreflect.Message } func (x *QueryAllSecondLevelDomainResponse) slowProtoReflect() protoreflect.Message { - mi := &file_mycel_registry_v1beta1_query_proto_msgTypes[10] + mi := &file_mycel_registry_v1_query_proto_msgTypes[10] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4744,15 +4745,15 @@ func (x *fastReflection_QueryAllSecondLevelDomainResponse) Range(f func(protoref // a repeated field is populated if it is non-empty. func (x *fastReflection_QueryAllSecondLevelDomainResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "mycel.registry.v1beta1.QueryAllSecondLevelDomainResponse.second_level_domain": + case "mycel.registry.v1.QueryAllSecondLevelDomainResponse.second_level_domain": return len(x.SecondLevelDomain) != 0 - case "mycel.registry.v1beta1.QueryAllSecondLevelDomainResponse.pagination": + case "mycel.registry.v1.QueryAllSecondLevelDomainResponse.pagination": return x.Pagination != nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.QueryAllSecondLevelDomainResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.QueryAllSecondLevelDomainResponse")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.QueryAllSecondLevelDomainResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.QueryAllSecondLevelDomainResponse does not contain field %s", fd.FullName())) } } @@ -4764,15 +4765,15 @@ func (x *fastReflection_QueryAllSecondLevelDomainResponse) Has(fd protoreflect.F // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_QueryAllSecondLevelDomainResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "mycel.registry.v1beta1.QueryAllSecondLevelDomainResponse.second_level_domain": + case "mycel.registry.v1.QueryAllSecondLevelDomainResponse.second_level_domain": x.SecondLevelDomain = nil - case "mycel.registry.v1beta1.QueryAllSecondLevelDomainResponse.pagination": + case "mycel.registry.v1.QueryAllSecondLevelDomainResponse.pagination": x.Pagination = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.QueryAllSecondLevelDomainResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.QueryAllSecondLevelDomainResponse")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.QueryAllSecondLevelDomainResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.QueryAllSecondLevelDomainResponse does not contain field %s", fd.FullName())) } } @@ -4784,20 +4785,20 @@ func (x *fastReflection_QueryAllSecondLevelDomainResponse) Clear(fd protoreflect // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_QueryAllSecondLevelDomainResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "mycel.registry.v1beta1.QueryAllSecondLevelDomainResponse.second_level_domain": + case "mycel.registry.v1.QueryAllSecondLevelDomainResponse.second_level_domain": if len(x.SecondLevelDomain) == 0 { return protoreflect.ValueOfList(&_QueryAllSecondLevelDomainResponse_1_list{}) } listValue := &_QueryAllSecondLevelDomainResponse_1_list{list: &x.SecondLevelDomain} return protoreflect.ValueOfList(listValue) - case "mycel.registry.v1beta1.QueryAllSecondLevelDomainResponse.pagination": + case "mycel.registry.v1.QueryAllSecondLevelDomainResponse.pagination": value := x.Pagination return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.QueryAllSecondLevelDomainResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.QueryAllSecondLevelDomainResponse")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.QueryAllSecondLevelDomainResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.QueryAllSecondLevelDomainResponse does not contain field %s", descriptor.FullName())) } } @@ -4813,17 +4814,17 @@ func (x *fastReflection_QueryAllSecondLevelDomainResponse) Get(descriptor protor // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_QueryAllSecondLevelDomainResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "mycel.registry.v1beta1.QueryAllSecondLevelDomainResponse.second_level_domain": + case "mycel.registry.v1.QueryAllSecondLevelDomainResponse.second_level_domain": lv := value.List() clv := lv.(*_QueryAllSecondLevelDomainResponse_1_list) x.SecondLevelDomain = *clv.list - case "mycel.registry.v1beta1.QueryAllSecondLevelDomainResponse.pagination": + case "mycel.registry.v1.QueryAllSecondLevelDomainResponse.pagination": x.Pagination = value.Message().Interface().(*v1beta1.PageResponse) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.QueryAllSecondLevelDomainResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.QueryAllSecondLevelDomainResponse")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.QueryAllSecondLevelDomainResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.QueryAllSecondLevelDomainResponse does not contain field %s", fd.FullName())) } } @@ -4839,22 +4840,22 @@ func (x *fastReflection_QueryAllSecondLevelDomainResponse) Set(fd protoreflect.F // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_QueryAllSecondLevelDomainResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "mycel.registry.v1beta1.QueryAllSecondLevelDomainResponse.second_level_domain": + case "mycel.registry.v1.QueryAllSecondLevelDomainResponse.second_level_domain": if x.SecondLevelDomain == nil { x.SecondLevelDomain = []*SecondLevelDomainResponse{} } value := &_QueryAllSecondLevelDomainResponse_1_list{list: &x.SecondLevelDomain} return protoreflect.ValueOfList(value) - case "mycel.registry.v1beta1.QueryAllSecondLevelDomainResponse.pagination": + case "mycel.registry.v1.QueryAllSecondLevelDomainResponse.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.registry.v1beta1.QueryAllSecondLevelDomainResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.QueryAllSecondLevelDomainResponse")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.QueryAllSecondLevelDomainResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.QueryAllSecondLevelDomainResponse does not contain field %s", fd.FullName())) } } @@ -4863,17 +4864,17 @@ func (x *fastReflection_QueryAllSecondLevelDomainResponse) Mutable(fd protorefle // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_QueryAllSecondLevelDomainResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "mycel.registry.v1beta1.QueryAllSecondLevelDomainResponse.second_level_domain": + case "mycel.registry.v1.QueryAllSecondLevelDomainResponse.second_level_domain": list := []*SecondLevelDomainResponse{} return protoreflect.ValueOfList(&_QueryAllSecondLevelDomainResponse_1_list{list: &list}) - case "mycel.registry.v1beta1.QueryAllSecondLevelDomainResponse.pagination": + case "mycel.registry.v1.QueryAllSecondLevelDomainResponse.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.registry.v1beta1.QueryAllSecondLevelDomainResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.QueryAllSecondLevelDomainResponse")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.QueryAllSecondLevelDomainResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.QueryAllSecondLevelDomainResponse does not contain field %s", fd.FullName())) } } @@ -4883,7 +4884,7 @@ func (x *fastReflection_QueryAllSecondLevelDomainResponse) NewField(fd protorefl func (x *fastReflection_QueryAllSecondLevelDomainResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in mycel.registry.v1beta1.QueryAllSecondLevelDomainResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in mycel.registry.v1.QueryAllSecondLevelDomainResponse", d.FullName())) } panic("unreachable") } @@ -5167,8 +5168,8 @@ var ( ) func init() { - file_mycel_registry_v1beta1_query_proto_init() - md_QueryGetDomainOwnershipRequest = File_mycel_registry_v1beta1_query_proto.Messages().ByName("QueryGetDomainOwnershipRequest") + file_mycel_registry_v1_query_proto_init() + md_QueryGetDomainOwnershipRequest = File_mycel_registry_v1_query_proto.Messages().ByName("QueryGetDomainOwnershipRequest") fd_QueryGetDomainOwnershipRequest_owner = md_QueryGetDomainOwnershipRequest.Fields().ByName("owner") } @@ -5181,7 +5182,7 @@ func (x *QueryGetDomainOwnershipRequest) ProtoReflect() protoreflect.Message { } func (x *QueryGetDomainOwnershipRequest) slowProtoReflect() protoreflect.Message { - mi := &file_mycel_registry_v1beta1_query_proto_msgTypes[11] + mi := &file_mycel_registry_v1_query_proto_msgTypes[11] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5258,13 +5259,13 @@ func (x *fastReflection_QueryGetDomainOwnershipRequest) Range(f func(protoreflec // a repeated field is populated if it is non-empty. func (x *fastReflection_QueryGetDomainOwnershipRequest) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "mycel.registry.v1beta1.QueryGetDomainOwnershipRequest.owner": + case "mycel.registry.v1.QueryGetDomainOwnershipRequest.owner": return x.Owner != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.QueryGetDomainOwnershipRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.QueryGetDomainOwnershipRequest")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.QueryGetDomainOwnershipRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.QueryGetDomainOwnershipRequest does not contain field %s", fd.FullName())) } } @@ -5276,13 +5277,13 @@ func (x *fastReflection_QueryGetDomainOwnershipRequest) Has(fd protoreflect.Fiel // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_QueryGetDomainOwnershipRequest) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "mycel.registry.v1beta1.QueryGetDomainOwnershipRequest.owner": + case "mycel.registry.v1.QueryGetDomainOwnershipRequest.owner": x.Owner = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.QueryGetDomainOwnershipRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.QueryGetDomainOwnershipRequest")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.QueryGetDomainOwnershipRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.QueryGetDomainOwnershipRequest does not contain field %s", fd.FullName())) } } @@ -5294,14 +5295,14 @@ func (x *fastReflection_QueryGetDomainOwnershipRequest) Clear(fd protoreflect.Fi // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_QueryGetDomainOwnershipRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "mycel.registry.v1beta1.QueryGetDomainOwnershipRequest.owner": + case "mycel.registry.v1.QueryGetDomainOwnershipRequest.owner": value := x.Owner return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.QueryGetDomainOwnershipRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.QueryGetDomainOwnershipRequest")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.QueryGetDomainOwnershipRequest does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.QueryGetDomainOwnershipRequest does not contain field %s", descriptor.FullName())) } } @@ -5317,13 +5318,13 @@ func (x *fastReflection_QueryGetDomainOwnershipRequest) Get(descriptor protorefl // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_QueryGetDomainOwnershipRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "mycel.registry.v1beta1.QueryGetDomainOwnershipRequest.owner": + case "mycel.registry.v1.QueryGetDomainOwnershipRequest.owner": x.Owner = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.QueryGetDomainOwnershipRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.QueryGetDomainOwnershipRequest")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.QueryGetDomainOwnershipRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.QueryGetDomainOwnershipRequest does not contain field %s", fd.FullName())) } } @@ -5339,13 +5340,13 @@ func (x *fastReflection_QueryGetDomainOwnershipRequest) Set(fd protoreflect.Fiel // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_QueryGetDomainOwnershipRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "mycel.registry.v1beta1.QueryGetDomainOwnershipRequest.owner": - panic(fmt.Errorf("field owner of message mycel.registry.v1beta1.QueryGetDomainOwnershipRequest is not mutable")) + case "mycel.registry.v1.QueryGetDomainOwnershipRequest.owner": + panic(fmt.Errorf("field owner of message mycel.registry.v1.QueryGetDomainOwnershipRequest is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.QueryGetDomainOwnershipRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.QueryGetDomainOwnershipRequest")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.QueryGetDomainOwnershipRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.QueryGetDomainOwnershipRequest does not contain field %s", fd.FullName())) } } @@ -5354,13 +5355,13 @@ func (x *fastReflection_QueryGetDomainOwnershipRequest) Mutable(fd protoreflect. // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_QueryGetDomainOwnershipRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "mycel.registry.v1beta1.QueryGetDomainOwnershipRequest.owner": + case "mycel.registry.v1.QueryGetDomainOwnershipRequest.owner": return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.QueryGetDomainOwnershipRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.QueryGetDomainOwnershipRequest")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.QueryGetDomainOwnershipRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.QueryGetDomainOwnershipRequest does not contain field %s", fd.FullName())) } } @@ -5370,7 +5371,7 @@ func (x *fastReflection_QueryGetDomainOwnershipRequest) NewField(fd protoreflect func (x *fastReflection_QueryGetDomainOwnershipRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in mycel.registry.v1beta1.QueryGetDomainOwnershipRequest", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in mycel.registry.v1.QueryGetDomainOwnershipRequest", d.FullName())) } panic("unreachable") } @@ -5587,8 +5588,8 @@ var ( ) func init() { - file_mycel_registry_v1beta1_query_proto_init() - md_QueryGetDomainOwnershipResponse = File_mycel_registry_v1beta1_query_proto.Messages().ByName("QueryGetDomainOwnershipResponse") + file_mycel_registry_v1_query_proto_init() + md_QueryGetDomainOwnershipResponse = File_mycel_registry_v1_query_proto.Messages().ByName("QueryGetDomainOwnershipResponse") fd_QueryGetDomainOwnershipResponse_domain_ownership = md_QueryGetDomainOwnershipResponse.Fields().ByName("domain_ownership") } @@ -5601,7 +5602,7 @@ func (x *QueryGetDomainOwnershipResponse) ProtoReflect() protoreflect.Message { } func (x *QueryGetDomainOwnershipResponse) slowProtoReflect() protoreflect.Message { - mi := &file_mycel_registry_v1beta1_query_proto_msgTypes[12] + mi := &file_mycel_registry_v1_query_proto_msgTypes[12] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5678,13 +5679,13 @@ func (x *fastReflection_QueryGetDomainOwnershipResponse) Range(f func(protorefle // a repeated field is populated if it is non-empty. func (x *fastReflection_QueryGetDomainOwnershipResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "mycel.registry.v1beta1.QueryGetDomainOwnershipResponse.domain_ownership": + case "mycel.registry.v1.QueryGetDomainOwnershipResponse.domain_ownership": return x.DomainOwnership != nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.QueryGetDomainOwnershipResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.QueryGetDomainOwnershipResponse")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.QueryGetDomainOwnershipResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.QueryGetDomainOwnershipResponse does not contain field %s", fd.FullName())) } } @@ -5696,13 +5697,13 @@ func (x *fastReflection_QueryGetDomainOwnershipResponse) Has(fd protoreflect.Fie // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_QueryGetDomainOwnershipResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "mycel.registry.v1beta1.QueryGetDomainOwnershipResponse.domain_ownership": + case "mycel.registry.v1.QueryGetDomainOwnershipResponse.domain_ownership": x.DomainOwnership = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.QueryGetDomainOwnershipResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.QueryGetDomainOwnershipResponse")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.QueryGetDomainOwnershipResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.QueryGetDomainOwnershipResponse does not contain field %s", fd.FullName())) } } @@ -5714,14 +5715,14 @@ func (x *fastReflection_QueryGetDomainOwnershipResponse) Clear(fd protoreflect.F // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_QueryGetDomainOwnershipResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "mycel.registry.v1beta1.QueryGetDomainOwnershipResponse.domain_ownership": + case "mycel.registry.v1.QueryGetDomainOwnershipResponse.domain_ownership": value := x.DomainOwnership return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.QueryGetDomainOwnershipResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.QueryGetDomainOwnershipResponse")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.QueryGetDomainOwnershipResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.QueryGetDomainOwnershipResponse does not contain field %s", descriptor.FullName())) } } @@ -5737,13 +5738,13 @@ func (x *fastReflection_QueryGetDomainOwnershipResponse) Get(descriptor protoref // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_QueryGetDomainOwnershipResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "mycel.registry.v1beta1.QueryGetDomainOwnershipResponse.domain_ownership": + case "mycel.registry.v1.QueryGetDomainOwnershipResponse.domain_ownership": x.DomainOwnership = value.Message().Interface().(*DomainOwnership) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.QueryGetDomainOwnershipResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.QueryGetDomainOwnershipResponse")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.QueryGetDomainOwnershipResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.QueryGetDomainOwnershipResponse does not contain field %s", fd.FullName())) } } @@ -5759,16 +5760,16 @@ func (x *fastReflection_QueryGetDomainOwnershipResponse) Set(fd protoreflect.Fie // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_QueryGetDomainOwnershipResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "mycel.registry.v1beta1.QueryGetDomainOwnershipResponse.domain_ownership": + case "mycel.registry.v1.QueryGetDomainOwnershipResponse.domain_ownership": if x.DomainOwnership == nil { x.DomainOwnership = new(DomainOwnership) } return protoreflect.ValueOfMessage(x.DomainOwnership.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.QueryGetDomainOwnershipResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.QueryGetDomainOwnershipResponse")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.QueryGetDomainOwnershipResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.QueryGetDomainOwnershipResponse does not contain field %s", fd.FullName())) } } @@ -5777,14 +5778,14 @@ func (x *fastReflection_QueryGetDomainOwnershipResponse) Mutable(fd protoreflect // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_QueryGetDomainOwnershipResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "mycel.registry.v1beta1.QueryGetDomainOwnershipResponse.domain_ownership": + case "mycel.registry.v1.QueryGetDomainOwnershipResponse.domain_ownership": m := new(DomainOwnership) return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.QueryGetDomainOwnershipResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.QueryGetDomainOwnershipResponse")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.QueryGetDomainOwnershipResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.QueryGetDomainOwnershipResponse does not contain field %s", fd.FullName())) } } @@ -5794,7 +5795,7 @@ func (x *fastReflection_QueryGetDomainOwnershipResponse) NewField(fd protoreflec func (x *fastReflection_QueryGetDomainOwnershipResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in mycel.registry.v1beta1.QueryGetDomainOwnershipResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in mycel.registry.v1.QueryGetDomainOwnershipResponse", d.FullName())) } panic("unreachable") } @@ -6022,8 +6023,8 @@ var ( ) func init() { - file_mycel_registry_v1beta1_query_proto_init() - md_QueryAllDomainOwnershipRequest = File_mycel_registry_v1beta1_query_proto.Messages().ByName("QueryAllDomainOwnershipRequest") + file_mycel_registry_v1_query_proto_init() + md_QueryAllDomainOwnershipRequest = File_mycel_registry_v1_query_proto.Messages().ByName("QueryAllDomainOwnershipRequest") fd_QueryAllDomainOwnershipRequest_pagination = md_QueryAllDomainOwnershipRequest.Fields().ByName("pagination") } @@ -6036,7 +6037,7 @@ func (x *QueryAllDomainOwnershipRequest) ProtoReflect() protoreflect.Message { } func (x *QueryAllDomainOwnershipRequest) slowProtoReflect() protoreflect.Message { - mi := &file_mycel_registry_v1beta1_query_proto_msgTypes[13] + mi := &file_mycel_registry_v1_query_proto_msgTypes[13] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -6113,13 +6114,13 @@ func (x *fastReflection_QueryAllDomainOwnershipRequest) Range(f func(protoreflec // a repeated field is populated if it is non-empty. func (x *fastReflection_QueryAllDomainOwnershipRequest) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "mycel.registry.v1beta1.QueryAllDomainOwnershipRequest.pagination": + case "mycel.registry.v1.QueryAllDomainOwnershipRequest.pagination": return x.Pagination != nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.QueryAllDomainOwnershipRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.QueryAllDomainOwnershipRequest")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.QueryAllDomainOwnershipRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.QueryAllDomainOwnershipRequest does not contain field %s", fd.FullName())) } } @@ -6131,13 +6132,13 @@ func (x *fastReflection_QueryAllDomainOwnershipRequest) Has(fd protoreflect.Fiel // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_QueryAllDomainOwnershipRequest) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "mycel.registry.v1beta1.QueryAllDomainOwnershipRequest.pagination": + case "mycel.registry.v1.QueryAllDomainOwnershipRequest.pagination": x.Pagination = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.QueryAllDomainOwnershipRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.QueryAllDomainOwnershipRequest")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.QueryAllDomainOwnershipRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.QueryAllDomainOwnershipRequest does not contain field %s", fd.FullName())) } } @@ -6149,14 +6150,14 @@ func (x *fastReflection_QueryAllDomainOwnershipRequest) Clear(fd protoreflect.Fi // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_QueryAllDomainOwnershipRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "mycel.registry.v1beta1.QueryAllDomainOwnershipRequest.pagination": + case "mycel.registry.v1.QueryAllDomainOwnershipRequest.pagination": value := x.Pagination return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.QueryAllDomainOwnershipRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.QueryAllDomainOwnershipRequest")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.QueryAllDomainOwnershipRequest does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.QueryAllDomainOwnershipRequest does not contain field %s", descriptor.FullName())) } } @@ -6172,13 +6173,13 @@ func (x *fastReflection_QueryAllDomainOwnershipRequest) Get(descriptor protorefl // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_QueryAllDomainOwnershipRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "mycel.registry.v1beta1.QueryAllDomainOwnershipRequest.pagination": + case "mycel.registry.v1.QueryAllDomainOwnershipRequest.pagination": x.Pagination = value.Message().Interface().(*v1beta1.PageRequest) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.QueryAllDomainOwnershipRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.QueryAllDomainOwnershipRequest")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.QueryAllDomainOwnershipRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.QueryAllDomainOwnershipRequest does not contain field %s", fd.FullName())) } } @@ -6194,16 +6195,16 @@ func (x *fastReflection_QueryAllDomainOwnershipRequest) Set(fd protoreflect.Fiel // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_QueryAllDomainOwnershipRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "mycel.registry.v1beta1.QueryAllDomainOwnershipRequest.pagination": + case "mycel.registry.v1.QueryAllDomainOwnershipRequest.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.registry.v1beta1.QueryAllDomainOwnershipRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.QueryAllDomainOwnershipRequest")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.QueryAllDomainOwnershipRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.QueryAllDomainOwnershipRequest does not contain field %s", fd.FullName())) } } @@ -6212,14 +6213,14 @@ func (x *fastReflection_QueryAllDomainOwnershipRequest) Mutable(fd protoreflect. // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_QueryAllDomainOwnershipRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "mycel.registry.v1beta1.QueryAllDomainOwnershipRequest.pagination": + case "mycel.registry.v1.QueryAllDomainOwnershipRequest.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.registry.v1beta1.QueryAllDomainOwnershipRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.QueryAllDomainOwnershipRequest")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.QueryAllDomainOwnershipRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.QueryAllDomainOwnershipRequest does not contain field %s", fd.FullName())) } } @@ -6229,7 +6230,7 @@ func (x *fastReflection_QueryAllDomainOwnershipRequest) NewField(fd protoreflect func (x *fastReflection_QueryAllDomainOwnershipRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in mycel.registry.v1beta1.QueryAllDomainOwnershipRequest", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in mycel.registry.v1.QueryAllDomainOwnershipRequest", d.FullName())) } panic("unreachable") } @@ -6509,8 +6510,8 @@ var ( ) func init() { - file_mycel_registry_v1beta1_query_proto_init() - md_QueryAllDomainOwnershipResponse = File_mycel_registry_v1beta1_query_proto.Messages().ByName("QueryAllDomainOwnershipResponse") + file_mycel_registry_v1_query_proto_init() + md_QueryAllDomainOwnershipResponse = File_mycel_registry_v1_query_proto.Messages().ByName("QueryAllDomainOwnershipResponse") fd_QueryAllDomainOwnershipResponse_domain_ownership = md_QueryAllDomainOwnershipResponse.Fields().ByName("domain_ownership") fd_QueryAllDomainOwnershipResponse_pagination = md_QueryAllDomainOwnershipResponse.Fields().ByName("pagination") } @@ -6524,7 +6525,7 @@ func (x *QueryAllDomainOwnershipResponse) ProtoReflect() protoreflect.Message { } func (x *QueryAllDomainOwnershipResponse) slowProtoReflect() protoreflect.Message { - mi := &file_mycel_registry_v1beta1_query_proto_msgTypes[14] + mi := &file_mycel_registry_v1_query_proto_msgTypes[14] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -6607,15 +6608,15 @@ func (x *fastReflection_QueryAllDomainOwnershipResponse) Range(f func(protorefle // a repeated field is populated if it is non-empty. func (x *fastReflection_QueryAllDomainOwnershipResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "mycel.registry.v1beta1.QueryAllDomainOwnershipResponse.domain_ownership": + case "mycel.registry.v1.QueryAllDomainOwnershipResponse.domain_ownership": return len(x.DomainOwnership) != 0 - case "mycel.registry.v1beta1.QueryAllDomainOwnershipResponse.pagination": + case "mycel.registry.v1.QueryAllDomainOwnershipResponse.pagination": return x.Pagination != nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.QueryAllDomainOwnershipResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.QueryAllDomainOwnershipResponse")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.QueryAllDomainOwnershipResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.QueryAllDomainOwnershipResponse does not contain field %s", fd.FullName())) } } @@ -6627,15 +6628,15 @@ func (x *fastReflection_QueryAllDomainOwnershipResponse) Has(fd protoreflect.Fie // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_QueryAllDomainOwnershipResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "mycel.registry.v1beta1.QueryAllDomainOwnershipResponse.domain_ownership": + case "mycel.registry.v1.QueryAllDomainOwnershipResponse.domain_ownership": x.DomainOwnership = nil - case "mycel.registry.v1beta1.QueryAllDomainOwnershipResponse.pagination": + case "mycel.registry.v1.QueryAllDomainOwnershipResponse.pagination": x.Pagination = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.QueryAllDomainOwnershipResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.QueryAllDomainOwnershipResponse")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.QueryAllDomainOwnershipResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.QueryAllDomainOwnershipResponse does not contain field %s", fd.FullName())) } } @@ -6647,20 +6648,20 @@ func (x *fastReflection_QueryAllDomainOwnershipResponse) Clear(fd protoreflect.F // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_QueryAllDomainOwnershipResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "mycel.registry.v1beta1.QueryAllDomainOwnershipResponse.domain_ownership": + case "mycel.registry.v1.QueryAllDomainOwnershipResponse.domain_ownership": if len(x.DomainOwnership) == 0 { return protoreflect.ValueOfList(&_QueryAllDomainOwnershipResponse_1_list{}) } listValue := &_QueryAllDomainOwnershipResponse_1_list{list: &x.DomainOwnership} return protoreflect.ValueOfList(listValue) - case "mycel.registry.v1beta1.QueryAllDomainOwnershipResponse.pagination": + case "mycel.registry.v1.QueryAllDomainOwnershipResponse.pagination": value := x.Pagination return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.QueryAllDomainOwnershipResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.QueryAllDomainOwnershipResponse")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.QueryAllDomainOwnershipResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.QueryAllDomainOwnershipResponse does not contain field %s", descriptor.FullName())) } } @@ -6676,17 +6677,17 @@ func (x *fastReflection_QueryAllDomainOwnershipResponse) Get(descriptor protoref // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_QueryAllDomainOwnershipResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "mycel.registry.v1beta1.QueryAllDomainOwnershipResponse.domain_ownership": + case "mycel.registry.v1.QueryAllDomainOwnershipResponse.domain_ownership": lv := value.List() clv := lv.(*_QueryAllDomainOwnershipResponse_1_list) x.DomainOwnership = *clv.list - case "mycel.registry.v1beta1.QueryAllDomainOwnershipResponse.pagination": + case "mycel.registry.v1.QueryAllDomainOwnershipResponse.pagination": x.Pagination = value.Message().Interface().(*v1beta1.PageResponse) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.QueryAllDomainOwnershipResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.QueryAllDomainOwnershipResponse")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.QueryAllDomainOwnershipResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.QueryAllDomainOwnershipResponse does not contain field %s", fd.FullName())) } } @@ -6702,22 +6703,22 @@ func (x *fastReflection_QueryAllDomainOwnershipResponse) Set(fd protoreflect.Fie // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_QueryAllDomainOwnershipResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "mycel.registry.v1beta1.QueryAllDomainOwnershipResponse.domain_ownership": + case "mycel.registry.v1.QueryAllDomainOwnershipResponse.domain_ownership": if x.DomainOwnership == nil { x.DomainOwnership = []*DomainOwnership{} } value := &_QueryAllDomainOwnershipResponse_1_list{list: &x.DomainOwnership} return protoreflect.ValueOfList(value) - case "mycel.registry.v1beta1.QueryAllDomainOwnershipResponse.pagination": + case "mycel.registry.v1.QueryAllDomainOwnershipResponse.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.registry.v1beta1.QueryAllDomainOwnershipResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.QueryAllDomainOwnershipResponse")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.QueryAllDomainOwnershipResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.QueryAllDomainOwnershipResponse does not contain field %s", fd.FullName())) } } @@ -6726,17 +6727,17 @@ func (x *fastReflection_QueryAllDomainOwnershipResponse) Mutable(fd protoreflect // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_QueryAllDomainOwnershipResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "mycel.registry.v1beta1.QueryAllDomainOwnershipResponse.domain_ownership": + case "mycel.registry.v1.QueryAllDomainOwnershipResponse.domain_ownership": list := []*DomainOwnership{} return protoreflect.ValueOfList(&_QueryAllDomainOwnershipResponse_1_list{list: &list}) - case "mycel.registry.v1beta1.QueryAllDomainOwnershipResponse.pagination": + case "mycel.registry.v1.QueryAllDomainOwnershipResponse.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.registry.v1beta1.QueryAllDomainOwnershipResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.QueryAllDomainOwnershipResponse")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.QueryAllDomainOwnershipResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.QueryAllDomainOwnershipResponse does not contain field %s", fd.FullName())) } } @@ -6746,7 +6747,7 @@ func (x *fastReflection_QueryAllDomainOwnershipResponse) NewField(fd protoreflec func (x *fastReflection_QueryAllDomainOwnershipResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in mycel.registry.v1beta1.QueryAllDomainOwnershipResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in mycel.registry.v1.QueryAllDomainOwnershipResponse", d.FullName())) } panic("unreachable") } @@ -7033,8 +7034,8 @@ var ( ) func init() { - file_mycel_registry_v1beta1_query_proto_init() - md_QueryDomainRegistrationFeeRequest = File_mycel_registry_v1beta1_query_proto.Messages().ByName("QueryDomainRegistrationFeeRequest") + file_mycel_registry_v1_query_proto_init() + md_QueryDomainRegistrationFeeRequest = File_mycel_registry_v1_query_proto.Messages().ByName("QueryDomainRegistrationFeeRequest") fd_QueryDomainRegistrationFeeRequest_name = md_QueryDomainRegistrationFeeRequest.Fields().ByName("name") fd_QueryDomainRegistrationFeeRequest_parent = md_QueryDomainRegistrationFeeRequest.Fields().ByName("parent") fd_QueryDomainRegistrationFeeRequest_registration_period_in_year = md_QueryDomainRegistrationFeeRequest.Fields().ByName("registration_period_in_year") @@ -7050,7 +7051,7 @@ func (x *QueryDomainRegistrationFeeRequest) ProtoReflect() protoreflect.Message } func (x *QueryDomainRegistrationFeeRequest) slowProtoReflect() protoreflect.Message { - mi := &file_mycel_registry_v1beta1_query_proto_msgTypes[15] + mi := &file_mycel_registry_v1_query_proto_msgTypes[15] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -7145,19 +7146,19 @@ func (x *fastReflection_QueryDomainRegistrationFeeRequest) Range(f func(protoref // a repeated field is populated if it is non-empty. func (x *fastReflection_QueryDomainRegistrationFeeRequest) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "mycel.registry.v1beta1.QueryDomainRegistrationFeeRequest.name": + case "mycel.registry.v1.QueryDomainRegistrationFeeRequest.name": return x.Name != "" - case "mycel.registry.v1beta1.QueryDomainRegistrationFeeRequest.parent": + case "mycel.registry.v1.QueryDomainRegistrationFeeRequest.parent": return x.Parent != "" - case "mycel.registry.v1beta1.QueryDomainRegistrationFeeRequest.registration_period_in_year": + case "mycel.registry.v1.QueryDomainRegistrationFeeRequest.registration_period_in_year": return x.RegistrationPeriodInYear != uint64(0) - case "mycel.registry.v1beta1.QueryDomainRegistrationFeeRequest.registerer": + case "mycel.registry.v1.QueryDomainRegistrationFeeRequest.registerer": return x.Registerer != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.QueryDomainRegistrationFeeRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.QueryDomainRegistrationFeeRequest")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.QueryDomainRegistrationFeeRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.QueryDomainRegistrationFeeRequest does not contain field %s", fd.FullName())) } } @@ -7169,19 +7170,19 @@ func (x *fastReflection_QueryDomainRegistrationFeeRequest) Has(fd protoreflect.F // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_QueryDomainRegistrationFeeRequest) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "mycel.registry.v1beta1.QueryDomainRegistrationFeeRequest.name": + case "mycel.registry.v1.QueryDomainRegistrationFeeRequest.name": x.Name = "" - case "mycel.registry.v1beta1.QueryDomainRegistrationFeeRequest.parent": + case "mycel.registry.v1.QueryDomainRegistrationFeeRequest.parent": x.Parent = "" - case "mycel.registry.v1beta1.QueryDomainRegistrationFeeRequest.registration_period_in_year": + case "mycel.registry.v1.QueryDomainRegistrationFeeRequest.registration_period_in_year": x.RegistrationPeriodInYear = uint64(0) - case "mycel.registry.v1beta1.QueryDomainRegistrationFeeRequest.registerer": + case "mycel.registry.v1.QueryDomainRegistrationFeeRequest.registerer": x.Registerer = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.QueryDomainRegistrationFeeRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.QueryDomainRegistrationFeeRequest")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.QueryDomainRegistrationFeeRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.QueryDomainRegistrationFeeRequest does not contain field %s", fd.FullName())) } } @@ -7193,23 +7194,23 @@ func (x *fastReflection_QueryDomainRegistrationFeeRequest) Clear(fd protoreflect // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_QueryDomainRegistrationFeeRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "mycel.registry.v1beta1.QueryDomainRegistrationFeeRequest.name": + case "mycel.registry.v1.QueryDomainRegistrationFeeRequest.name": value := x.Name return protoreflect.ValueOfString(value) - case "mycel.registry.v1beta1.QueryDomainRegistrationFeeRequest.parent": + case "mycel.registry.v1.QueryDomainRegistrationFeeRequest.parent": value := x.Parent return protoreflect.ValueOfString(value) - case "mycel.registry.v1beta1.QueryDomainRegistrationFeeRequest.registration_period_in_year": + case "mycel.registry.v1.QueryDomainRegistrationFeeRequest.registration_period_in_year": value := x.RegistrationPeriodInYear return protoreflect.ValueOfUint64(value) - case "mycel.registry.v1beta1.QueryDomainRegistrationFeeRequest.registerer": + case "mycel.registry.v1.QueryDomainRegistrationFeeRequest.registerer": value := x.Registerer return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.QueryDomainRegistrationFeeRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.QueryDomainRegistrationFeeRequest")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.QueryDomainRegistrationFeeRequest does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.QueryDomainRegistrationFeeRequest does not contain field %s", descriptor.FullName())) } } @@ -7225,19 +7226,19 @@ func (x *fastReflection_QueryDomainRegistrationFeeRequest) Get(descriptor protor // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_QueryDomainRegistrationFeeRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "mycel.registry.v1beta1.QueryDomainRegistrationFeeRequest.name": + case "mycel.registry.v1.QueryDomainRegistrationFeeRequest.name": x.Name = value.Interface().(string) - case "mycel.registry.v1beta1.QueryDomainRegistrationFeeRequest.parent": + case "mycel.registry.v1.QueryDomainRegistrationFeeRequest.parent": x.Parent = value.Interface().(string) - case "mycel.registry.v1beta1.QueryDomainRegistrationFeeRequest.registration_period_in_year": + case "mycel.registry.v1.QueryDomainRegistrationFeeRequest.registration_period_in_year": x.RegistrationPeriodInYear = value.Uint() - case "mycel.registry.v1beta1.QueryDomainRegistrationFeeRequest.registerer": + case "mycel.registry.v1.QueryDomainRegistrationFeeRequest.registerer": x.Registerer = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.QueryDomainRegistrationFeeRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.QueryDomainRegistrationFeeRequest")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.QueryDomainRegistrationFeeRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.QueryDomainRegistrationFeeRequest does not contain field %s", fd.FullName())) } } @@ -7253,19 +7254,19 @@ func (x *fastReflection_QueryDomainRegistrationFeeRequest) Set(fd protoreflect.F // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_QueryDomainRegistrationFeeRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "mycel.registry.v1beta1.QueryDomainRegistrationFeeRequest.name": - panic(fmt.Errorf("field name of message mycel.registry.v1beta1.QueryDomainRegistrationFeeRequest is not mutable")) - case "mycel.registry.v1beta1.QueryDomainRegistrationFeeRequest.parent": - panic(fmt.Errorf("field parent of message mycel.registry.v1beta1.QueryDomainRegistrationFeeRequest is not mutable")) - case "mycel.registry.v1beta1.QueryDomainRegistrationFeeRequest.registration_period_in_year": - panic(fmt.Errorf("field registration_period_in_year of message mycel.registry.v1beta1.QueryDomainRegistrationFeeRequest is not mutable")) - case "mycel.registry.v1beta1.QueryDomainRegistrationFeeRequest.registerer": - panic(fmt.Errorf("field registerer of message mycel.registry.v1beta1.QueryDomainRegistrationFeeRequest is not mutable")) + case "mycel.registry.v1.QueryDomainRegistrationFeeRequest.name": + panic(fmt.Errorf("field name of message mycel.registry.v1.QueryDomainRegistrationFeeRequest is not mutable")) + case "mycel.registry.v1.QueryDomainRegistrationFeeRequest.parent": + panic(fmt.Errorf("field parent of message mycel.registry.v1.QueryDomainRegistrationFeeRequest is not mutable")) + case "mycel.registry.v1.QueryDomainRegistrationFeeRequest.registration_period_in_year": + panic(fmt.Errorf("field registration_period_in_year of message mycel.registry.v1.QueryDomainRegistrationFeeRequest is not mutable")) + case "mycel.registry.v1.QueryDomainRegistrationFeeRequest.registerer": + panic(fmt.Errorf("field registerer of message mycel.registry.v1.QueryDomainRegistrationFeeRequest is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.QueryDomainRegistrationFeeRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.QueryDomainRegistrationFeeRequest")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.QueryDomainRegistrationFeeRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.QueryDomainRegistrationFeeRequest does not contain field %s", fd.FullName())) } } @@ -7274,19 +7275,19 @@ func (x *fastReflection_QueryDomainRegistrationFeeRequest) Mutable(fd protorefle // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_QueryDomainRegistrationFeeRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "mycel.registry.v1beta1.QueryDomainRegistrationFeeRequest.name": + case "mycel.registry.v1.QueryDomainRegistrationFeeRequest.name": return protoreflect.ValueOfString("") - case "mycel.registry.v1beta1.QueryDomainRegistrationFeeRequest.parent": + case "mycel.registry.v1.QueryDomainRegistrationFeeRequest.parent": return protoreflect.ValueOfString("") - case "mycel.registry.v1beta1.QueryDomainRegistrationFeeRequest.registration_period_in_year": + case "mycel.registry.v1.QueryDomainRegistrationFeeRequest.registration_period_in_year": return protoreflect.ValueOfUint64(uint64(0)) - case "mycel.registry.v1beta1.QueryDomainRegistrationFeeRequest.registerer": + case "mycel.registry.v1.QueryDomainRegistrationFeeRequest.registerer": return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.QueryDomainRegistrationFeeRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.QueryDomainRegistrationFeeRequest")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.QueryDomainRegistrationFeeRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.QueryDomainRegistrationFeeRequest does not contain field %s", fd.FullName())) } } @@ -7296,7 +7297,7 @@ func (x *fastReflection_QueryDomainRegistrationFeeRequest) NewField(fd protorefl func (x *fastReflection_QueryDomainRegistrationFeeRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in mycel.registry.v1beta1.QueryDomainRegistrationFeeRequest", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in mycel.registry.v1.QueryDomainRegistrationFeeRequest", d.FullName())) } panic("unreachable") } @@ -7681,8 +7682,8 @@ var ( ) func init() { - file_mycel_registry_v1beta1_query_proto_init() - md_QueryDomainRegistrationFeeResponse = File_mycel_registry_v1beta1_query_proto.Messages().ByName("QueryDomainRegistrationFeeResponse") + file_mycel_registry_v1_query_proto_init() + md_QueryDomainRegistrationFeeResponse = File_mycel_registry_v1_query_proto.Messages().ByName("QueryDomainRegistrationFeeResponse") fd_QueryDomainRegistrationFeeResponse_is_registrable = md_QueryDomainRegistrationFeeResponse.Fields().ByName("is_registrable") fd_QueryDomainRegistrationFeeResponse_fee = md_QueryDomainRegistrationFeeResponse.Fields().ByName("fee") fd_QueryDomainRegistrationFeeResponse_registration_period_in_year = md_QueryDomainRegistrationFeeResponse.Fields().ByName("registration_period_in_year") @@ -7699,7 +7700,7 @@ func (x *QueryDomainRegistrationFeeResponse) ProtoReflect() protoreflect.Message } func (x *QueryDomainRegistrationFeeResponse) slowProtoReflect() protoreflect.Message { - mi := &file_mycel_registry_v1beta1_query_proto_msgTypes[16] + mi := &file_mycel_registry_v1_query_proto_msgTypes[16] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -7800,21 +7801,21 @@ func (x *fastReflection_QueryDomainRegistrationFeeResponse) Range(f func(protore // a repeated field is populated if it is non-empty. func (x *fastReflection_QueryDomainRegistrationFeeResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "mycel.registry.v1beta1.QueryDomainRegistrationFeeResponse.is_registrable": + case "mycel.registry.v1.QueryDomainRegistrationFeeResponse.is_registrable": return x.IsRegistrable != false - case "mycel.registry.v1beta1.QueryDomainRegistrationFeeResponse.fee": + case "mycel.registry.v1.QueryDomainRegistrationFeeResponse.fee": return len(x.Fee) != 0 - case "mycel.registry.v1beta1.QueryDomainRegistrationFeeResponse.registration_period_in_year": + case "mycel.registry.v1.QueryDomainRegistrationFeeResponse.registration_period_in_year": return x.RegistrationPeriodInYear != uint64(0) - case "mycel.registry.v1beta1.QueryDomainRegistrationFeeResponse.max_sub_domain_registrations": + case "mycel.registry.v1.QueryDomainRegistrationFeeResponse.max_sub_domain_registrations": return x.MaxSubDomainRegistrations != uint64(0) - case "mycel.registry.v1beta1.QueryDomainRegistrationFeeResponse.error_message": + case "mycel.registry.v1.QueryDomainRegistrationFeeResponse.error_message": return x.ErrorMessage != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.QueryDomainRegistrationFeeResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.QueryDomainRegistrationFeeResponse")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.QueryDomainRegistrationFeeResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.QueryDomainRegistrationFeeResponse does not contain field %s", fd.FullName())) } } @@ -7826,21 +7827,21 @@ func (x *fastReflection_QueryDomainRegistrationFeeResponse) Has(fd protoreflect. // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_QueryDomainRegistrationFeeResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "mycel.registry.v1beta1.QueryDomainRegistrationFeeResponse.is_registrable": + case "mycel.registry.v1.QueryDomainRegistrationFeeResponse.is_registrable": x.IsRegistrable = false - case "mycel.registry.v1beta1.QueryDomainRegistrationFeeResponse.fee": + case "mycel.registry.v1.QueryDomainRegistrationFeeResponse.fee": x.Fee = nil - case "mycel.registry.v1beta1.QueryDomainRegistrationFeeResponse.registration_period_in_year": + case "mycel.registry.v1.QueryDomainRegistrationFeeResponse.registration_period_in_year": x.RegistrationPeriodInYear = uint64(0) - case "mycel.registry.v1beta1.QueryDomainRegistrationFeeResponse.max_sub_domain_registrations": + case "mycel.registry.v1.QueryDomainRegistrationFeeResponse.max_sub_domain_registrations": x.MaxSubDomainRegistrations = uint64(0) - case "mycel.registry.v1beta1.QueryDomainRegistrationFeeResponse.error_message": + case "mycel.registry.v1.QueryDomainRegistrationFeeResponse.error_message": x.ErrorMessage = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.QueryDomainRegistrationFeeResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.QueryDomainRegistrationFeeResponse")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.QueryDomainRegistrationFeeResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.QueryDomainRegistrationFeeResponse does not contain field %s", fd.FullName())) } } @@ -7852,29 +7853,29 @@ func (x *fastReflection_QueryDomainRegistrationFeeResponse) Clear(fd protoreflec // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_QueryDomainRegistrationFeeResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "mycel.registry.v1beta1.QueryDomainRegistrationFeeResponse.is_registrable": + case "mycel.registry.v1.QueryDomainRegistrationFeeResponse.is_registrable": value := x.IsRegistrable return protoreflect.ValueOfBool(value) - case "mycel.registry.v1beta1.QueryDomainRegistrationFeeResponse.fee": + case "mycel.registry.v1.QueryDomainRegistrationFeeResponse.fee": if len(x.Fee) == 0 { return protoreflect.ValueOfList(&_QueryDomainRegistrationFeeResponse_2_list{}) } listValue := &_QueryDomainRegistrationFeeResponse_2_list{list: &x.Fee} return protoreflect.ValueOfList(listValue) - case "mycel.registry.v1beta1.QueryDomainRegistrationFeeResponse.registration_period_in_year": + case "mycel.registry.v1.QueryDomainRegistrationFeeResponse.registration_period_in_year": value := x.RegistrationPeriodInYear return protoreflect.ValueOfUint64(value) - case "mycel.registry.v1beta1.QueryDomainRegistrationFeeResponse.max_sub_domain_registrations": + case "mycel.registry.v1.QueryDomainRegistrationFeeResponse.max_sub_domain_registrations": value := x.MaxSubDomainRegistrations return protoreflect.ValueOfUint64(value) - case "mycel.registry.v1beta1.QueryDomainRegistrationFeeResponse.error_message": + case "mycel.registry.v1.QueryDomainRegistrationFeeResponse.error_message": value := x.ErrorMessage return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.QueryDomainRegistrationFeeResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.QueryDomainRegistrationFeeResponse")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.QueryDomainRegistrationFeeResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.QueryDomainRegistrationFeeResponse does not contain field %s", descriptor.FullName())) } } @@ -7890,23 +7891,23 @@ func (x *fastReflection_QueryDomainRegistrationFeeResponse) Get(descriptor proto // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_QueryDomainRegistrationFeeResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "mycel.registry.v1beta1.QueryDomainRegistrationFeeResponse.is_registrable": + case "mycel.registry.v1.QueryDomainRegistrationFeeResponse.is_registrable": x.IsRegistrable = value.Bool() - case "mycel.registry.v1beta1.QueryDomainRegistrationFeeResponse.fee": + case "mycel.registry.v1.QueryDomainRegistrationFeeResponse.fee": lv := value.List() clv := lv.(*_QueryDomainRegistrationFeeResponse_2_list) x.Fee = *clv.list - case "mycel.registry.v1beta1.QueryDomainRegistrationFeeResponse.registration_period_in_year": + case "mycel.registry.v1.QueryDomainRegistrationFeeResponse.registration_period_in_year": x.RegistrationPeriodInYear = value.Uint() - case "mycel.registry.v1beta1.QueryDomainRegistrationFeeResponse.max_sub_domain_registrations": + case "mycel.registry.v1.QueryDomainRegistrationFeeResponse.max_sub_domain_registrations": x.MaxSubDomainRegistrations = value.Uint() - case "mycel.registry.v1beta1.QueryDomainRegistrationFeeResponse.error_message": + case "mycel.registry.v1.QueryDomainRegistrationFeeResponse.error_message": x.ErrorMessage = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.QueryDomainRegistrationFeeResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.QueryDomainRegistrationFeeResponse")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.QueryDomainRegistrationFeeResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.QueryDomainRegistrationFeeResponse does not contain field %s", fd.FullName())) } } @@ -7922,25 +7923,25 @@ func (x *fastReflection_QueryDomainRegistrationFeeResponse) Set(fd protoreflect. // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_QueryDomainRegistrationFeeResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "mycel.registry.v1beta1.QueryDomainRegistrationFeeResponse.fee": + case "mycel.registry.v1.QueryDomainRegistrationFeeResponse.fee": if x.Fee == nil { x.Fee = []*v1beta11.Coin{} } value := &_QueryDomainRegistrationFeeResponse_2_list{list: &x.Fee} return protoreflect.ValueOfList(value) - case "mycel.registry.v1beta1.QueryDomainRegistrationFeeResponse.is_registrable": - panic(fmt.Errorf("field is_registrable of message mycel.registry.v1beta1.QueryDomainRegistrationFeeResponse is not mutable")) - case "mycel.registry.v1beta1.QueryDomainRegistrationFeeResponse.registration_period_in_year": - panic(fmt.Errorf("field registration_period_in_year of message mycel.registry.v1beta1.QueryDomainRegistrationFeeResponse is not mutable")) - case "mycel.registry.v1beta1.QueryDomainRegistrationFeeResponse.max_sub_domain_registrations": - panic(fmt.Errorf("field max_sub_domain_registrations of message mycel.registry.v1beta1.QueryDomainRegistrationFeeResponse is not mutable")) - case "mycel.registry.v1beta1.QueryDomainRegistrationFeeResponse.error_message": - panic(fmt.Errorf("field error_message of message mycel.registry.v1beta1.QueryDomainRegistrationFeeResponse is not mutable")) + case "mycel.registry.v1.QueryDomainRegistrationFeeResponse.is_registrable": + panic(fmt.Errorf("field is_registrable of message mycel.registry.v1.QueryDomainRegistrationFeeResponse is not mutable")) + case "mycel.registry.v1.QueryDomainRegistrationFeeResponse.registration_period_in_year": + panic(fmt.Errorf("field registration_period_in_year of message mycel.registry.v1.QueryDomainRegistrationFeeResponse is not mutable")) + case "mycel.registry.v1.QueryDomainRegistrationFeeResponse.max_sub_domain_registrations": + panic(fmt.Errorf("field max_sub_domain_registrations of message mycel.registry.v1.QueryDomainRegistrationFeeResponse is not mutable")) + case "mycel.registry.v1.QueryDomainRegistrationFeeResponse.error_message": + panic(fmt.Errorf("field error_message of message mycel.registry.v1.QueryDomainRegistrationFeeResponse is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.QueryDomainRegistrationFeeResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.QueryDomainRegistrationFeeResponse")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.QueryDomainRegistrationFeeResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.QueryDomainRegistrationFeeResponse does not contain field %s", fd.FullName())) } } @@ -7949,22 +7950,22 @@ func (x *fastReflection_QueryDomainRegistrationFeeResponse) Mutable(fd protorefl // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_QueryDomainRegistrationFeeResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "mycel.registry.v1beta1.QueryDomainRegistrationFeeResponse.is_registrable": + case "mycel.registry.v1.QueryDomainRegistrationFeeResponse.is_registrable": return protoreflect.ValueOfBool(false) - case "mycel.registry.v1beta1.QueryDomainRegistrationFeeResponse.fee": + case "mycel.registry.v1.QueryDomainRegistrationFeeResponse.fee": list := []*v1beta11.Coin{} return protoreflect.ValueOfList(&_QueryDomainRegistrationFeeResponse_2_list{list: &list}) - case "mycel.registry.v1beta1.QueryDomainRegistrationFeeResponse.registration_period_in_year": + case "mycel.registry.v1.QueryDomainRegistrationFeeResponse.registration_period_in_year": return protoreflect.ValueOfUint64(uint64(0)) - case "mycel.registry.v1beta1.QueryDomainRegistrationFeeResponse.max_sub_domain_registrations": + case "mycel.registry.v1.QueryDomainRegistrationFeeResponse.max_sub_domain_registrations": return protoreflect.ValueOfUint64(uint64(0)) - case "mycel.registry.v1beta1.QueryDomainRegistrationFeeResponse.error_message": + case "mycel.registry.v1.QueryDomainRegistrationFeeResponse.error_message": return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.QueryDomainRegistrationFeeResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.QueryDomainRegistrationFeeResponse")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.QueryDomainRegistrationFeeResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.QueryDomainRegistrationFeeResponse does not contain field %s", fd.FullName())) } } @@ -7974,7 +7975,7 @@ func (x *fastReflection_QueryDomainRegistrationFeeResponse) NewField(fd protoref func (x *fastReflection_QueryDomainRegistrationFeeResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in mycel.registry.v1beta1.QueryDomainRegistrationFeeResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in mycel.registry.v1.QueryDomainRegistrationFeeResponse", d.FullName())) } panic("unreachable") } @@ -8335,8 +8336,8 @@ var ( ) func init() { - file_mycel_registry_v1beta1_query_proto_init() - md_QueryRoleRequest = File_mycel_registry_v1beta1_query_proto.Messages().ByName("QueryRoleRequest") + file_mycel_registry_v1_query_proto_init() + md_QueryRoleRequest = File_mycel_registry_v1_query_proto.Messages().ByName("QueryRoleRequest") fd_QueryRoleRequest_domain_name = md_QueryRoleRequest.Fields().ByName("domain_name") fd_QueryRoleRequest_address = md_QueryRoleRequest.Fields().ByName("address") } @@ -8350,7 +8351,7 @@ func (x *QueryRoleRequest) ProtoReflect() protoreflect.Message { } func (x *QueryRoleRequest) slowProtoReflect() protoreflect.Message { - mi := &file_mycel_registry_v1beta1_query_proto_msgTypes[17] + mi := &file_mycel_registry_v1_query_proto_msgTypes[17] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -8433,15 +8434,15 @@ func (x *fastReflection_QueryRoleRequest) Range(f func(protoreflect.FieldDescrip // a repeated field is populated if it is non-empty. func (x *fastReflection_QueryRoleRequest) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "mycel.registry.v1beta1.QueryRoleRequest.domain_name": + case "mycel.registry.v1.QueryRoleRequest.domain_name": return x.DomainName != "" - case "mycel.registry.v1beta1.QueryRoleRequest.address": + case "mycel.registry.v1.QueryRoleRequest.address": return x.Address != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.QueryRoleRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.QueryRoleRequest")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.QueryRoleRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.QueryRoleRequest does not contain field %s", fd.FullName())) } } @@ -8453,15 +8454,15 @@ func (x *fastReflection_QueryRoleRequest) Has(fd protoreflect.FieldDescriptor) b // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_QueryRoleRequest) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "mycel.registry.v1beta1.QueryRoleRequest.domain_name": + case "mycel.registry.v1.QueryRoleRequest.domain_name": x.DomainName = "" - case "mycel.registry.v1beta1.QueryRoleRequest.address": + case "mycel.registry.v1.QueryRoleRequest.address": x.Address = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.QueryRoleRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.QueryRoleRequest")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.QueryRoleRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.QueryRoleRequest does not contain field %s", fd.FullName())) } } @@ -8473,17 +8474,17 @@ func (x *fastReflection_QueryRoleRequest) Clear(fd protoreflect.FieldDescriptor) // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_QueryRoleRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "mycel.registry.v1beta1.QueryRoleRequest.domain_name": + case "mycel.registry.v1.QueryRoleRequest.domain_name": value := x.DomainName return protoreflect.ValueOfString(value) - case "mycel.registry.v1beta1.QueryRoleRequest.address": + case "mycel.registry.v1.QueryRoleRequest.address": value := x.Address return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.QueryRoleRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.QueryRoleRequest")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.QueryRoleRequest does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.QueryRoleRequest does not contain field %s", descriptor.FullName())) } } @@ -8499,15 +8500,15 @@ func (x *fastReflection_QueryRoleRequest) Get(descriptor protoreflect.FieldDescr // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_QueryRoleRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "mycel.registry.v1beta1.QueryRoleRequest.domain_name": + case "mycel.registry.v1.QueryRoleRequest.domain_name": x.DomainName = value.Interface().(string) - case "mycel.registry.v1beta1.QueryRoleRequest.address": + case "mycel.registry.v1.QueryRoleRequest.address": x.Address = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.QueryRoleRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.QueryRoleRequest")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.QueryRoleRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.QueryRoleRequest does not contain field %s", fd.FullName())) } } @@ -8523,15 +8524,15 @@ func (x *fastReflection_QueryRoleRequest) Set(fd protoreflect.FieldDescriptor, v // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_QueryRoleRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "mycel.registry.v1beta1.QueryRoleRequest.domain_name": - panic(fmt.Errorf("field domain_name of message mycel.registry.v1beta1.QueryRoleRequest is not mutable")) - case "mycel.registry.v1beta1.QueryRoleRequest.address": - panic(fmt.Errorf("field address of message mycel.registry.v1beta1.QueryRoleRequest is not mutable")) + case "mycel.registry.v1.QueryRoleRequest.domain_name": + panic(fmt.Errorf("field domain_name of message mycel.registry.v1.QueryRoleRequest is not mutable")) + case "mycel.registry.v1.QueryRoleRequest.address": + panic(fmt.Errorf("field address of message mycel.registry.v1.QueryRoleRequest is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.QueryRoleRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.QueryRoleRequest")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.QueryRoleRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.QueryRoleRequest does not contain field %s", fd.FullName())) } } @@ -8540,15 +8541,15 @@ func (x *fastReflection_QueryRoleRequest) Mutable(fd protoreflect.FieldDescripto // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_QueryRoleRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "mycel.registry.v1beta1.QueryRoleRequest.domain_name": + case "mycel.registry.v1.QueryRoleRequest.domain_name": return protoreflect.ValueOfString("") - case "mycel.registry.v1beta1.QueryRoleRequest.address": + case "mycel.registry.v1.QueryRoleRequest.address": return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.QueryRoleRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.QueryRoleRequest")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.QueryRoleRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.QueryRoleRequest does not contain field %s", fd.FullName())) } } @@ -8558,7 +8559,7 @@ func (x *fastReflection_QueryRoleRequest) NewField(fd protoreflect.FieldDescript func (x *fastReflection_QueryRoleRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in mycel.registry.v1beta1.QueryRoleRequest", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in mycel.registry.v1.QueryRoleRequest", d.FullName())) } panic("unreachable") } @@ -8818,8 +8819,8 @@ var ( ) func init() { - file_mycel_registry_v1beta1_query_proto_init() - md_QueryRoleResponse = File_mycel_registry_v1beta1_query_proto.Messages().ByName("QueryRoleResponse") + file_mycel_registry_v1_query_proto_init() + md_QueryRoleResponse = File_mycel_registry_v1_query_proto.Messages().ByName("QueryRoleResponse") fd_QueryRoleResponse_role = md_QueryRoleResponse.Fields().ByName("role") } @@ -8832,7 +8833,7 @@ func (x *QueryRoleResponse) ProtoReflect() protoreflect.Message { } func (x *QueryRoleResponse) slowProtoReflect() protoreflect.Message { - mi := &file_mycel_registry_v1beta1_query_proto_msgTypes[18] + mi := &file_mycel_registry_v1_query_proto_msgTypes[18] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -8909,13 +8910,13 @@ func (x *fastReflection_QueryRoleResponse) Range(f func(protoreflect.FieldDescri // a repeated field is populated if it is non-empty. func (x *fastReflection_QueryRoleResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "mycel.registry.v1beta1.QueryRoleResponse.role": + case "mycel.registry.v1.QueryRoleResponse.role": return x.Role != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.QueryRoleResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.QueryRoleResponse")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.QueryRoleResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.QueryRoleResponse does not contain field %s", fd.FullName())) } } @@ -8927,13 +8928,13 @@ func (x *fastReflection_QueryRoleResponse) Has(fd protoreflect.FieldDescriptor) // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_QueryRoleResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "mycel.registry.v1beta1.QueryRoleResponse.role": + case "mycel.registry.v1.QueryRoleResponse.role": x.Role = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.QueryRoleResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.QueryRoleResponse")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.QueryRoleResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.QueryRoleResponse does not contain field %s", fd.FullName())) } } @@ -8945,14 +8946,14 @@ func (x *fastReflection_QueryRoleResponse) Clear(fd protoreflect.FieldDescriptor // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_QueryRoleResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "mycel.registry.v1beta1.QueryRoleResponse.role": + case "mycel.registry.v1.QueryRoleResponse.role": value := x.Role return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.QueryRoleResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.QueryRoleResponse")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.QueryRoleResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.QueryRoleResponse does not contain field %s", descriptor.FullName())) } } @@ -8968,13 +8969,13 @@ func (x *fastReflection_QueryRoleResponse) Get(descriptor protoreflect.FieldDesc // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_QueryRoleResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "mycel.registry.v1beta1.QueryRoleResponse.role": + case "mycel.registry.v1.QueryRoleResponse.role": x.Role = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.QueryRoleResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.QueryRoleResponse")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.QueryRoleResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.QueryRoleResponse does not contain field %s", fd.FullName())) } } @@ -8990,13 +8991,13 @@ func (x *fastReflection_QueryRoleResponse) Set(fd protoreflect.FieldDescriptor, // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_QueryRoleResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "mycel.registry.v1beta1.QueryRoleResponse.role": - panic(fmt.Errorf("field role of message mycel.registry.v1beta1.QueryRoleResponse is not mutable")) + case "mycel.registry.v1.QueryRoleResponse.role": + panic(fmt.Errorf("field role of message mycel.registry.v1.QueryRoleResponse is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.QueryRoleResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.QueryRoleResponse")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.QueryRoleResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.QueryRoleResponse does not contain field %s", fd.FullName())) } } @@ -9005,13 +9006,13 @@ func (x *fastReflection_QueryRoleResponse) Mutable(fd protoreflect.FieldDescript // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_QueryRoleResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "mycel.registry.v1beta1.QueryRoleResponse.role": + case "mycel.registry.v1.QueryRoleResponse.role": return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.QueryRoleResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.QueryRoleResponse")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.QueryRoleResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.QueryRoleResponse does not contain field %s", fd.FullName())) } } @@ -9021,7 +9022,7 @@ func (x *fastReflection_QueryRoleResponse) NewField(fd protoreflect.FieldDescrip func (x *fastReflection_QueryRoleResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in mycel.registry.v1beta1.QueryRoleResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in mycel.registry.v1.QueryRoleResponse", d.FullName())) } panic("unreachable") } @@ -9232,154 +9233,4624 @@ func (x *fastReflection_QueryRoleResponse) ProtoMethods() *protoiface.Methods { } } +var ( + md_QueryWalletRecordRequest protoreflect.MessageDescriptor + fd_QueryWalletRecordRequest_domain_name protoreflect.FieldDescriptor + fd_QueryWalletRecordRequest_domain_parent protoreflect.FieldDescriptor + fd_QueryWalletRecordRequest_wallet_record_type protoreflect.FieldDescriptor +) + +func init() { + file_mycel_registry_v1_query_proto_init() + md_QueryWalletRecordRequest = File_mycel_registry_v1_query_proto.Messages().ByName("QueryWalletRecordRequest") + fd_QueryWalletRecordRequest_domain_name = md_QueryWalletRecordRequest.Fields().ByName("domain_name") + fd_QueryWalletRecordRequest_domain_parent = md_QueryWalletRecordRequest.Fields().ByName("domain_parent") + fd_QueryWalletRecordRequest_wallet_record_type = md_QueryWalletRecordRequest.Fields().ByName("wallet_record_type") +} + +var _ protoreflect.Message = (*fastReflection_QueryWalletRecordRequest)(nil) + +type fastReflection_QueryWalletRecordRequest QueryWalletRecordRequest + +func (x *QueryWalletRecordRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryWalletRecordRequest)(x) +} + +func (x *QueryWalletRecordRequest) slowProtoReflect() protoreflect.Message { + mi := &file_mycel_registry_v1_query_proto_msgTypes[19] + 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_QueryWalletRecordRequest_messageType fastReflection_QueryWalletRecordRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryWalletRecordRequest_messageType{} + +type fastReflection_QueryWalletRecordRequest_messageType struct{} + +func (x fastReflection_QueryWalletRecordRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryWalletRecordRequest)(nil) +} +func (x fastReflection_QueryWalletRecordRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryWalletRecordRequest) +} +func (x fastReflection_QueryWalletRecordRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryWalletRecordRequest +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryWalletRecordRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryWalletRecordRequest +} + +// 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_QueryWalletRecordRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryWalletRecordRequest_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryWalletRecordRequest) New() protoreflect.Message { + return new(fastReflection_QueryWalletRecordRequest) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryWalletRecordRequest) Interface() protoreflect.ProtoMessage { + return (*QueryWalletRecordRequest)(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_QueryWalletRecordRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.DomainName != "" { + value := protoreflect.ValueOfString(x.DomainName) + if !f(fd_QueryWalletRecordRequest_domain_name, value) { + return + } + } + if x.DomainParent != "" { + value := protoreflect.ValueOfString(x.DomainParent) + if !f(fd_QueryWalletRecordRequest_domain_parent, value) { + return + } + } + if x.WalletRecordType != "" { + value := protoreflect.ValueOfString(x.WalletRecordType) + if !f(fd_QueryWalletRecordRequest_wallet_record_type, 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_QueryWalletRecordRequest) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "mycel.registry.v1.QueryWalletRecordRequest.domain_name": + return x.DomainName != "" + case "mycel.registry.v1.QueryWalletRecordRequest.domain_parent": + return x.DomainParent != "" + case "mycel.registry.v1.QueryWalletRecordRequest.wallet_record_type": + return x.WalletRecordType != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.QueryWalletRecordRequest")) + } + panic(fmt.Errorf("message mycel.registry.v1.QueryWalletRecordRequest 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_QueryWalletRecordRequest) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "mycel.registry.v1.QueryWalletRecordRequest.domain_name": + x.DomainName = "" + case "mycel.registry.v1.QueryWalletRecordRequest.domain_parent": + x.DomainParent = "" + case "mycel.registry.v1.QueryWalletRecordRequest.wallet_record_type": + x.WalletRecordType = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.QueryWalletRecordRequest")) + } + panic(fmt.Errorf("message mycel.registry.v1.QueryWalletRecordRequest 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_QueryWalletRecordRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "mycel.registry.v1.QueryWalletRecordRequest.domain_name": + value := x.DomainName + return protoreflect.ValueOfString(value) + case "mycel.registry.v1.QueryWalletRecordRequest.domain_parent": + value := x.DomainParent + return protoreflect.ValueOfString(value) + case "mycel.registry.v1.QueryWalletRecordRequest.wallet_record_type": + value := x.WalletRecordType + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.QueryWalletRecordRequest")) + } + panic(fmt.Errorf("message mycel.registry.v1.QueryWalletRecordRequest 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_QueryWalletRecordRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "mycel.registry.v1.QueryWalletRecordRequest.domain_name": + x.DomainName = value.Interface().(string) + case "mycel.registry.v1.QueryWalletRecordRequest.domain_parent": + x.DomainParent = value.Interface().(string) + case "mycel.registry.v1.QueryWalletRecordRequest.wallet_record_type": + x.WalletRecordType = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.QueryWalletRecordRequest")) + } + panic(fmt.Errorf("message mycel.registry.v1.QueryWalletRecordRequest 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_QueryWalletRecordRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "mycel.registry.v1.QueryWalletRecordRequest.domain_name": + panic(fmt.Errorf("field domain_name of message mycel.registry.v1.QueryWalletRecordRequest is not mutable")) + case "mycel.registry.v1.QueryWalletRecordRequest.domain_parent": + panic(fmt.Errorf("field domain_parent of message mycel.registry.v1.QueryWalletRecordRequest is not mutable")) + case "mycel.registry.v1.QueryWalletRecordRequest.wallet_record_type": + panic(fmt.Errorf("field wallet_record_type of message mycel.registry.v1.QueryWalletRecordRequest is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.QueryWalletRecordRequest")) + } + panic(fmt.Errorf("message mycel.registry.v1.QueryWalletRecordRequest 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_QueryWalletRecordRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "mycel.registry.v1.QueryWalletRecordRequest.domain_name": + return protoreflect.ValueOfString("") + case "mycel.registry.v1.QueryWalletRecordRequest.domain_parent": + return protoreflect.ValueOfString("") + case "mycel.registry.v1.QueryWalletRecordRequest.wallet_record_type": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.QueryWalletRecordRequest")) + } + panic(fmt.Errorf("message mycel.registry.v1.QueryWalletRecordRequest 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_QueryWalletRecordRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in mycel.registry.v1.QueryWalletRecordRequest", 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_QueryWalletRecordRequest) 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_QueryWalletRecordRequest) 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_QueryWalletRecordRequest) 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_QueryWalletRecordRequest) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryWalletRecordRequest) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + l = len(x.DomainName) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.DomainParent) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.WalletRecordType) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*QueryWalletRecordRequest) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if len(x.WalletRecordType) > 0 { + i -= len(x.WalletRecordType) + copy(dAtA[i:], x.WalletRecordType) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.WalletRecordType))) + i-- + dAtA[i] = 0x1a + } + if len(x.DomainParent) > 0 { + i -= len(x.DomainParent) + copy(dAtA[i:], x.DomainParent) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.DomainParent))) + i-- + dAtA[i] = 0x12 + } + if len(x.DomainName) > 0 { + i -= len(x.DomainName) + copy(dAtA[i:], x.DomainName) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.DomainName))) + 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().(*QueryWalletRecordRequest) + 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: QueryWalletRecordRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryWalletRecordRequest: 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 DomainName", 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.DomainName = 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 DomainParent", 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.DomainParent = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field WalletRecordType", 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.WalletRecordType = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var ( + md_QueryWalletRecordResponse protoreflect.MessageDescriptor + fd_QueryWalletRecordResponse_value protoreflect.FieldDescriptor +) + +func init() { + file_mycel_registry_v1_query_proto_init() + md_QueryWalletRecordResponse = File_mycel_registry_v1_query_proto.Messages().ByName("QueryWalletRecordResponse") + fd_QueryWalletRecordResponse_value = md_QueryWalletRecordResponse.Fields().ByName("value") +} + +var _ protoreflect.Message = (*fastReflection_QueryWalletRecordResponse)(nil) + +type fastReflection_QueryWalletRecordResponse QueryWalletRecordResponse + +func (x *QueryWalletRecordResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryWalletRecordResponse)(x) +} + +func (x *QueryWalletRecordResponse) slowProtoReflect() protoreflect.Message { + mi := &file_mycel_registry_v1_query_proto_msgTypes[20] + 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_QueryWalletRecordResponse_messageType fastReflection_QueryWalletRecordResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryWalletRecordResponse_messageType{} + +type fastReflection_QueryWalletRecordResponse_messageType struct{} + +func (x fastReflection_QueryWalletRecordResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryWalletRecordResponse)(nil) +} +func (x fastReflection_QueryWalletRecordResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryWalletRecordResponse) +} +func (x fastReflection_QueryWalletRecordResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryWalletRecordResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryWalletRecordResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryWalletRecordResponse +} + +// 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_QueryWalletRecordResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryWalletRecordResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryWalletRecordResponse) New() protoreflect.Message { + return new(fastReflection_QueryWalletRecordResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryWalletRecordResponse) Interface() protoreflect.ProtoMessage { + return (*QueryWalletRecordResponse)(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_QueryWalletRecordResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Value != nil { + value := protoreflect.ValueOfMessage(x.Value.ProtoReflect()) + if !f(fd_QueryWalletRecordResponse_value, 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_QueryWalletRecordResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "mycel.registry.v1.QueryWalletRecordResponse.value": + return x.Value != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.QueryWalletRecordResponse")) + } + panic(fmt.Errorf("message mycel.registry.v1.QueryWalletRecordResponse 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_QueryWalletRecordResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "mycel.registry.v1.QueryWalletRecordResponse.value": + x.Value = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.QueryWalletRecordResponse")) + } + panic(fmt.Errorf("message mycel.registry.v1.QueryWalletRecordResponse 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_QueryWalletRecordResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "mycel.registry.v1.QueryWalletRecordResponse.value": + value := x.Value + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.QueryWalletRecordResponse")) + } + panic(fmt.Errorf("message mycel.registry.v1.QueryWalletRecordResponse 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_QueryWalletRecordResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "mycel.registry.v1.QueryWalletRecordResponse.value": + x.Value = value.Message().Interface().(*WalletRecord) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.QueryWalletRecordResponse")) + } + panic(fmt.Errorf("message mycel.registry.v1.QueryWalletRecordResponse 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_QueryWalletRecordResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "mycel.registry.v1.QueryWalletRecordResponse.value": + if x.Value == nil { + x.Value = new(WalletRecord) + } + return protoreflect.ValueOfMessage(x.Value.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.QueryWalletRecordResponse")) + } + panic(fmt.Errorf("message mycel.registry.v1.QueryWalletRecordResponse 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_QueryWalletRecordResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "mycel.registry.v1.QueryWalletRecordResponse.value": + m := new(WalletRecord) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.QueryWalletRecordResponse")) + } + panic(fmt.Errorf("message mycel.registry.v1.QueryWalletRecordResponse 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_QueryWalletRecordResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in mycel.registry.v1.QueryWalletRecordResponse", 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_QueryWalletRecordResponse) 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_QueryWalletRecordResponse) 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_QueryWalletRecordResponse) 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_QueryWalletRecordResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryWalletRecordResponse) + 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.Value != nil { + l = options.Size(x.Value) + 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().(*QueryWalletRecordResponse) + 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.Value != nil { + encoded, err := options.Marshal(x.Value) + 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().(*QueryWalletRecordResponse) + 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: QueryWalletRecordResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryWalletRecordResponse: 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 Value", 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.Value == nil { + x.Value = &WalletRecord{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Value); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var ( + md_QueryDnsRecordRequest protoreflect.MessageDescriptor + fd_QueryDnsRecordRequest_domain_name protoreflect.FieldDescriptor + fd_QueryDnsRecordRequest_domain_parent protoreflect.FieldDescriptor + fd_QueryDnsRecordRequest_dns_record_type protoreflect.FieldDescriptor +) + +func init() { + file_mycel_registry_v1_query_proto_init() + md_QueryDnsRecordRequest = File_mycel_registry_v1_query_proto.Messages().ByName("QueryDnsRecordRequest") + fd_QueryDnsRecordRequest_domain_name = md_QueryDnsRecordRequest.Fields().ByName("domain_name") + fd_QueryDnsRecordRequest_domain_parent = md_QueryDnsRecordRequest.Fields().ByName("domain_parent") + fd_QueryDnsRecordRequest_dns_record_type = md_QueryDnsRecordRequest.Fields().ByName("dns_record_type") +} + +var _ protoreflect.Message = (*fastReflection_QueryDnsRecordRequest)(nil) + +type fastReflection_QueryDnsRecordRequest QueryDnsRecordRequest + +func (x *QueryDnsRecordRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryDnsRecordRequest)(x) +} + +func (x *QueryDnsRecordRequest) slowProtoReflect() protoreflect.Message { + mi := &file_mycel_registry_v1_query_proto_msgTypes[21] + 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_QueryDnsRecordRequest_messageType fastReflection_QueryDnsRecordRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryDnsRecordRequest_messageType{} + +type fastReflection_QueryDnsRecordRequest_messageType struct{} + +func (x fastReflection_QueryDnsRecordRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryDnsRecordRequest)(nil) +} +func (x fastReflection_QueryDnsRecordRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryDnsRecordRequest) +} +func (x fastReflection_QueryDnsRecordRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryDnsRecordRequest +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryDnsRecordRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryDnsRecordRequest +} + +// 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_QueryDnsRecordRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryDnsRecordRequest_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryDnsRecordRequest) New() protoreflect.Message { + return new(fastReflection_QueryDnsRecordRequest) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryDnsRecordRequest) Interface() protoreflect.ProtoMessage { + return (*QueryDnsRecordRequest)(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_QueryDnsRecordRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.DomainName != "" { + value := protoreflect.ValueOfString(x.DomainName) + if !f(fd_QueryDnsRecordRequest_domain_name, value) { + return + } + } + if x.DomainParent != "" { + value := protoreflect.ValueOfString(x.DomainParent) + if !f(fd_QueryDnsRecordRequest_domain_parent, value) { + return + } + } + if x.DnsRecordType != "" { + value := protoreflect.ValueOfString(x.DnsRecordType) + if !f(fd_QueryDnsRecordRequest_dns_record_type, 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_QueryDnsRecordRequest) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "mycel.registry.v1.QueryDnsRecordRequest.domain_name": + return x.DomainName != "" + case "mycel.registry.v1.QueryDnsRecordRequest.domain_parent": + return x.DomainParent != "" + case "mycel.registry.v1.QueryDnsRecordRequest.dns_record_type": + return x.DnsRecordType != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.QueryDnsRecordRequest")) + } + panic(fmt.Errorf("message mycel.registry.v1.QueryDnsRecordRequest 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_QueryDnsRecordRequest) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "mycel.registry.v1.QueryDnsRecordRequest.domain_name": + x.DomainName = "" + case "mycel.registry.v1.QueryDnsRecordRequest.domain_parent": + x.DomainParent = "" + case "mycel.registry.v1.QueryDnsRecordRequest.dns_record_type": + x.DnsRecordType = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.QueryDnsRecordRequest")) + } + panic(fmt.Errorf("message mycel.registry.v1.QueryDnsRecordRequest 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_QueryDnsRecordRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "mycel.registry.v1.QueryDnsRecordRequest.domain_name": + value := x.DomainName + return protoreflect.ValueOfString(value) + case "mycel.registry.v1.QueryDnsRecordRequest.domain_parent": + value := x.DomainParent + return protoreflect.ValueOfString(value) + case "mycel.registry.v1.QueryDnsRecordRequest.dns_record_type": + value := x.DnsRecordType + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.QueryDnsRecordRequest")) + } + panic(fmt.Errorf("message mycel.registry.v1.QueryDnsRecordRequest 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_QueryDnsRecordRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "mycel.registry.v1.QueryDnsRecordRequest.domain_name": + x.DomainName = value.Interface().(string) + case "mycel.registry.v1.QueryDnsRecordRequest.domain_parent": + x.DomainParent = value.Interface().(string) + case "mycel.registry.v1.QueryDnsRecordRequest.dns_record_type": + x.DnsRecordType = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.QueryDnsRecordRequest")) + } + panic(fmt.Errorf("message mycel.registry.v1.QueryDnsRecordRequest 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_QueryDnsRecordRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "mycel.registry.v1.QueryDnsRecordRequest.domain_name": + panic(fmt.Errorf("field domain_name of message mycel.registry.v1.QueryDnsRecordRequest is not mutable")) + case "mycel.registry.v1.QueryDnsRecordRequest.domain_parent": + panic(fmt.Errorf("field domain_parent of message mycel.registry.v1.QueryDnsRecordRequest is not mutable")) + case "mycel.registry.v1.QueryDnsRecordRequest.dns_record_type": + panic(fmt.Errorf("field dns_record_type of message mycel.registry.v1.QueryDnsRecordRequest is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.QueryDnsRecordRequest")) + } + panic(fmt.Errorf("message mycel.registry.v1.QueryDnsRecordRequest 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_QueryDnsRecordRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "mycel.registry.v1.QueryDnsRecordRequest.domain_name": + return protoreflect.ValueOfString("") + case "mycel.registry.v1.QueryDnsRecordRequest.domain_parent": + return protoreflect.ValueOfString("") + case "mycel.registry.v1.QueryDnsRecordRequest.dns_record_type": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.QueryDnsRecordRequest")) + } + panic(fmt.Errorf("message mycel.registry.v1.QueryDnsRecordRequest 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_QueryDnsRecordRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in mycel.registry.v1.QueryDnsRecordRequest", 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_QueryDnsRecordRequest) 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_QueryDnsRecordRequest) 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_QueryDnsRecordRequest) 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_QueryDnsRecordRequest) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryDnsRecordRequest) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + l = len(x.DomainName) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.DomainParent) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.DnsRecordType) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*QueryDnsRecordRequest) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if len(x.DnsRecordType) > 0 { + i -= len(x.DnsRecordType) + copy(dAtA[i:], x.DnsRecordType) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.DnsRecordType))) + i-- + dAtA[i] = 0x1a + } + if len(x.DomainParent) > 0 { + i -= len(x.DomainParent) + copy(dAtA[i:], x.DomainParent) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.DomainParent))) + i-- + dAtA[i] = 0x12 + } + if len(x.DomainName) > 0 { + i -= len(x.DomainName) + copy(dAtA[i:], x.DomainName) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.DomainName))) + 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().(*QueryDnsRecordRequest) + 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: QueryDnsRecordRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryDnsRecordRequest: 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 DomainName", 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.DomainName = 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 DomainParent", 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.DomainParent = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field DnsRecordType", 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.DnsRecordType = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var ( + md_QueryDnsRecordResponse protoreflect.MessageDescriptor + fd_QueryDnsRecordResponse_value protoreflect.FieldDescriptor +) + +func init() { + file_mycel_registry_v1_query_proto_init() + md_QueryDnsRecordResponse = File_mycel_registry_v1_query_proto.Messages().ByName("QueryDnsRecordResponse") + fd_QueryDnsRecordResponse_value = md_QueryDnsRecordResponse.Fields().ByName("value") +} + +var _ protoreflect.Message = (*fastReflection_QueryDnsRecordResponse)(nil) + +type fastReflection_QueryDnsRecordResponse QueryDnsRecordResponse + +func (x *QueryDnsRecordResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryDnsRecordResponse)(x) +} + +func (x *QueryDnsRecordResponse) slowProtoReflect() protoreflect.Message { + mi := &file_mycel_registry_v1_query_proto_msgTypes[22] + 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_QueryDnsRecordResponse_messageType fastReflection_QueryDnsRecordResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryDnsRecordResponse_messageType{} + +type fastReflection_QueryDnsRecordResponse_messageType struct{} + +func (x fastReflection_QueryDnsRecordResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryDnsRecordResponse)(nil) +} +func (x fastReflection_QueryDnsRecordResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryDnsRecordResponse) +} +func (x fastReflection_QueryDnsRecordResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryDnsRecordResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryDnsRecordResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryDnsRecordResponse +} + +// 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_QueryDnsRecordResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryDnsRecordResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryDnsRecordResponse) New() protoreflect.Message { + return new(fastReflection_QueryDnsRecordResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryDnsRecordResponse) Interface() protoreflect.ProtoMessage { + return (*QueryDnsRecordResponse)(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_QueryDnsRecordResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Value != nil { + value := protoreflect.ValueOfMessage(x.Value.ProtoReflect()) + if !f(fd_QueryDnsRecordResponse_value, 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_QueryDnsRecordResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "mycel.registry.v1.QueryDnsRecordResponse.value": + return x.Value != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.QueryDnsRecordResponse")) + } + panic(fmt.Errorf("message mycel.registry.v1.QueryDnsRecordResponse 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_QueryDnsRecordResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "mycel.registry.v1.QueryDnsRecordResponse.value": + x.Value = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.QueryDnsRecordResponse")) + } + panic(fmt.Errorf("message mycel.registry.v1.QueryDnsRecordResponse 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_QueryDnsRecordResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "mycel.registry.v1.QueryDnsRecordResponse.value": + value := x.Value + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.QueryDnsRecordResponse")) + } + panic(fmt.Errorf("message mycel.registry.v1.QueryDnsRecordResponse 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_QueryDnsRecordResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "mycel.registry.v1.QueryDnsRecordResponse.value": + x.Value = value.Message().Interface().(*DnsRecord) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.QueryDnsRecordResponse")) + } + panic(fmt.Errorf("message mycel.registry.v1.QueryDnsRecordResponse 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_QueryDnsRecordResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "mycel.registry.v1.QueryDnsRecordResponse.value": + if x.Value == nil { + x.Value = new(DnsRecord) + } + return protoreflect.ValueOfMessage(x.Value.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.QueryDnsRecordResponse")) + } + panic(fmt.Errorf("message mycel.registry.v1.QueryDnsRecordResponse 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_QueryDnsRecordResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "mycel.registry.v1.QueryDnsRecordResponse.value": + m := new(DnsRecord) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.QueryDnsRecordResponse")) + } + panic(fmt.Errorf("message mycel.registry.v1.QueryDnsRecordResponse 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_QueryDnsRecordResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in mycel.registry.v1.QueryDnsRecordResponse", 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_QueryDnsRecordResponse) 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_QueryDnsRecordResponse) 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_QueryDnsRecordResponse) 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_QueryDnsRecordResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryDnsRecordResponse) + 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.Value != nil { + l = options.Size(x.Value) + 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().(*QueryDnsRecordResponse) + 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.Value != nil { + encoded, err := options.Marshal(x.Value) + 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().(*QueryDnsRecordResponse) + 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: QueryDnsRecordResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryDnsRecordResponse: 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 Value", 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.Value == nil { + x.Value = &DnsRecord{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Value); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var ( + md_QueryAllRecordsRequest protoreflect.MessageDescriptor + fd_QueryAllRecordsRequest_domain_name protoreflect.FieldDescriptor + fd_QueryAllRecordsRequest_domain_parent protoreflect.FieldDescriptor +) + +func init() { + file_mycel_registry_v1_query_proto_init() + md_QueryAllRecordsRequest = File_mycel_registry_v1_query_proto.Messages().ByName("QueryAllRecordsRequest") + fd_QueryAllRecordsRequest_domain_name = md_QueryAllRecordsRequest.Fields().ByName("domain_name") + fd_QueryAllRecordsRequest_domain_parent = md_QueryAllRecordsRequest.Fields().ByName("domain_parent") +} + +var _ protoreflect.Message = (*fastReflection_QueryAllRecordsRequest)(nil) + +type fastReflection_QueryAllRecordsRequest QueryAllRecordsRequest + +func (x *QueryAllRecordsRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryAllRecordsRequest)(x) +} + +func (x *QueryAllRecordsRequest) slowProtoReflect() protoreflect.Message { + mi := &file_mycel_registry_v1_query_proto_msgTypes[23] + 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_QueryAllRecordsRequest_messageType fastReflection_QueryAllRecordsRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryAllRecordsRequest_messageType{} + +type fastReflection_QueryAllRecordsRequest_messageType struct{} + +func (x fastReflection_QueryAllRecordsRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryAllRecordsRequest)(nil) +} +func (x fastReflection_QueryAllRecordsRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryAllRecordsRequest) +} +func (x fastReflection_QueryAllRecordsRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryAllRecordsRequest +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryAllRecordsRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryAllRecordsRequest +} + +// 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_QueryAllRecordsRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryAllRecordsRequest_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryAllRecordsRequest) New() protoreflect.Message { + return new(fastReflection_QueryAllRecordsRequest) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryAllRecordsRequest) Interface() protoreflect.ProtoMessage { + return (*QueryAllRecordsRequest)(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_QueryAllRecordsRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.DomainName != "" { + value := protoreflect.ValueOfString(x.DomainName) + if !f(fd_QueryAllRecordsRequest_domain_name, value) { + return + } + } + if x.DomainParent != "" { + value := protoreflect.ValueOfString(x.DomainParent) + if !f(fd_QueryAllRecordsRequest_domain_parent, 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_QueryAllRecordsRequest) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "mycel.registry.v1.QueryAllRecordsRequest.domain_name": + return x.DomainName != "" + case "mycel.registry.v1.QueryAllRecordsRequest.domain_parent": + return x.DomainParent != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.QueryAllRecordsRequest")) + } + panic(fmt.Errorf("message mycel.registry.v1.QueryAllRecordsRequest 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_QueryAllRecordsRequest) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "mycel.registry.v1.QueryAllRecordsRequest.domain_name": + x.DomainName = "" + case "mycel.registry.v1.QueryAllRecordsRequest.domain_parent": + x.DomainParent = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.QueryAllRecordsRequest")) + } + panic(fmt.Errorf("message mycel.registry.v1.QueryAllRecordsRequest 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_QueryAllRecordsRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "mycel.registry.v1.QueryAllRecordsRequest.domain_name": + value := x.DomainName + return protoreflect.ValueOfString(value) + case "mycel.registry.v1.QueryAllRecordsRequest.domain_parent": + value := x.DomainParent + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.QueryAllRecordsRequest")) + } + panic(fmt.Errorf("message mycel.registry.v1.QueryAllRecordsRequest 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_QueryAllRecordsRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "mycel.registry.v1.QueryAllRecordsRequest.domain_name": + x.DomainName = value.Interface().(string) + case "mycel.registry.v1.QueryAllRecordsRequest.domain_parent": + x.DomainParent = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.QueryAllRecordsRequest")) + } + panic(fmt.Errorf("message mycel.registry.v1.QueryAllRecordsRequest 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_QueryAllRecordsRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "mycel.registry.v1.QueryAllRecordsRequest.domain_name": + panic(fmt.Errorf("field domain_name of message mycel.registry.v1.QueryAllRecordsRequest is not mutable")) + case "mycel.registry.v1.QueryAllRecordsRequest.domain_parent": + panic(fmt.Errorf("field domain_parent of message mycel.registry.v1.QueryAllRecordsRequest is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.QueryAllRecordsRequest")) + } + panic(fmt.Errorf("message mycel.registry.v1.QueryAllRecordsRequest 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_QueryAllRecordsRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "mycel.registry.v1.QueryAllRecordsRequest.domain_name": + return protoreflect.ValueOfString("") + case "mycel.registry.v1.QueryAllRecordsRequest.domain_parent": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.QueryAllRecordsRequest")) + } + panic(fmt.Errorf("message mycel.registry.v1.QueryAllRecordsRequest 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_QueryAllRecordsRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in mycel.registry.v1.QueryAllRecordsRequest", 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_QueryAllRecordsRequest) 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_QueryAllRecordsRequest) 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_QueryAllRecordsRequest) 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_QueryAllRecordsRequest) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryAllRecordsRequest) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + l = len(x.DomainName) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.DomainParent) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*QueryAllRecordsRequest) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if len(x.DomainParent) > 0 { + i -= len(x.DomainParent) + copy(dAtA[i:], x.DomainParent) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.DomainParent))) + i-- + dAtA[i] = 0x12 + } + if len(x.DomainName) > 0 { + i -= len(x.DomainName) + copy(dAtA[i:], x.DomainName) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.DomainName))) + 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().(*QueryAllRecordsRequest) + 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: QueryAllRecordsRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryAllRecordsRequest: 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 DomainName", 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.DomainName = 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 DomainParent", 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.DomainParent = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var _ protoreflect.Map = (*_QueryAllRecordsResponse_1_map)(nil) + +type _QueryAllRecordsResponse_1_map struct { + m *map[string]*Record +} + +func (x *_QueryAllRecordsResponse_1_map) Len() int { + if x.m == nil { + return 0 + } + return len(*x.m) +} + +func (x *_QueryAllRecordsResponse_1_map) Range(f func(protoreflect.MapKey, protoreflect.Value) bool) { + if x.m == nil { + return + } + for k, v := range *x.m { + mapKey := (protoreflect.MapKey)(protoreflect.ValueOfString(k)) + mapValue := protoreflect.ValueOfMessage(v.ProtoReflect()) + if !f(mapKey, mapValue) { + break + } + } +} + +func (x *_QueryAllRecordsResponse_1_map) Has(key protoreflect.MapKey) bool { + if x.m == nil { + return false + } + keyUnwrapped := key.String() + concreteValue := keyUnwrapped + _, ok := (*x.m)[concreteValue] + return ok +} + +func (x *_QueryAllRecordsResponse_1_map) Clear(key protoreflect.MapKey) { + if x.m == nil { + return + } + keyUnwrapped := key.String() + concreteKey := keyUnwrapped + delete(*x.m, concreteKey) +} + +func (x *_QueryAllRecordsResponse_1_map) Get(key protoreflect.MapKey) protoreflect.Value { + if x.m == nil { + return protoreflect.Value{} + } + keyUnwrapped := key.String() + concreteKey := keyUnwrapped + v, ok := (*x.m)[concreteKey] + if !ok { + return protoreflect.Value{} + } + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_QueryAllRecordsResponse_1_map) Set(key protoreflect.MapKey, value protoreflect.Value) { + if !key.IsValid() || !value.IsValid() { + panic("invalid key or value provided") + } + keyUnwrapped := key.String() + concreteKey := keyUnwrapped + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*Record) + (*x.m)[concreteKey] = concreteValue +} + +func (x *_QueryAllRecordsResponse_1_map) Mutable(key protoreflect.MapKey) protoreflect.Value { + keyUnwrapped := key.String() + concreteKey := keyUnwrapped + v, ok := (*x.m)[concreteKey] + if ok { + return protoreflect.ValueOfMessage(v.ProtoReflect()) + } + newValue := new(Record) + (*x.m)[concreteKey] = newValue + return protoreflect.ValueOfMessage(newValue.ProtoReflect()) +} + +func (x *_QueryAllRecordsResponse_1_map) NewValue() protoreflect.Value { + v := new(Record) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_QueryAllRecordsResponse_1_map) IsValid() bool { + return x.m != nil +} + +var ( + md_QueryAllRecordsResponse protoreflect.MessageDescriptor + fd_QueryAllRecordsResponse_values protoreflect.FieldDescriptor +) + +func init() { + file_mycel_registry_v1_query_proto_init() + md_QueryAllRecordsResponse = File_mycel_registry_v1_query_proto.Messages().ByName("QueryAllRecordsResponse") + fd_QueryAllRecordsResponse_values = md_QueryAllRecordsResponse.Fields().ByName("values") +} + +var _ protoreflect.Message = (*fastReflection_QueryAllRecordsResponse)(nil) + +type fastReflection_QueryAllRecordsResponse QueryAllRecordsResponse + +func (x *QueryAllRecordsResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryAllRecordsResponse)(x) +} + +func (x *QueryAllRecordsResponse) slowProtoReflect() protoreflect.Message { + mi := &file_mycel_registry_v1_query_proto_msgTypes[24] + 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_QueryAllRecordsResponse_messageType fastReflection_QueryAllRecordsResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryAllRecordsResponse_messageType{} + +type fastReflection_QueryAllRecordsResponse_messageType struct{} + +func (x fastReflection_QueryAllRecordsResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryAllRecordsResponse)(nil) +} +func (x fastReflection_QueryAllRecordsResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryAllRecordsResponse) +} +func (x fastReflection_QueryAllRecordsResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryAllRecordsResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryAllRecordsResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryAllRecordsResponse +} + +// 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_QueryAllRecordsResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryAllRecordsResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryAllRecordsResponse) New() protoreflect.Message { + return new(fastReflection_QueryAllRecordsResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryAllRecordsResponse) Interface() protoreflect.ProtoMessage { + return (*QueryAllRecordsResponse)(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_QueryAllRecordsResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if len(x.Values) != 0 { + value := protoreflect.ValueOfMap(&_QueryAllRecordsResponse_1_map{m: &x.Values}) + if !f(fd_QueryAllRecordsResponse_values, 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_QueryAllRecordsResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "mycel.registry.v1.QueryAllRecordsResponse.values": + return len(x.Values) != 0 + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.QueryAllRecordsResponse")) + } + panic(fmt.Errorf("message mycel.registry.v1.QueryAllRecordsResponse 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_QueryAllRecordsResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "mycel.registry.v1.QueryAllRecordsResponse.values": + x.Values = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.QueryAllRecordsResponse")) + } + panic(fmt.Errorf("message mycel.registry.v1.QueryAllRecordsResponse 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_QueryAllRecordsResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "mycel.registry.v1.QueryAllRecordsResponse.values": + if len(x.Values) == 0 { + return protoreflect.ValueOfMap(&_QueryAllRecordsResponse_1_map{}) + } + mapValue := &_QueryAllRecordsResponse_1_map{m: &x.Values} + return protoreflect.ValueOfMap(mapValue) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.QueryAllRecordsResponse")) + } + panic(fmt.Errorf("message mycel.registry.v1.QueryAllRecordsResponse 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_QueryAllRecordsResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "mycel.registry.v1.QueryAllRecordsResponse.values": + mv := value.Map() + cmv := mv.(*_QueryAllRecordsResponse_1_map) + x.Values = *cmv.m + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.QueryAllRecordsResponse")) + } + panic(fmt.Errorf("message mycel.registry.v1.QueryAllRecordsResponse 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_QueryAllRecordsResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "mycel.registry.v1.QueryAllRecordsResponse.values": + if x.Values == nil { + x.Values = make(map[string]*Record) + } + value := &_QueryAllRecordsResponse_1_map{m: &x.Values} + return protoreflect.ValueOfMap(value) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.QueryAllRecordsResponse")) + } + panic(fmt.Errorf("message mycel.registry.v1.QueryAllRecordsResponse 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_QueryAllRecordsResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "mycel.registry.v1.QueryAllRecordsResponse.values": + m := make(map[string]*Record) + return protoreflect.ValueOfMap(&_QueryAllRecordsResponse_1_map{m: &m}) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.QueryAllRecordsResponse")) + } + panic(fmt.Errorf("message mycel.registry.v1.QueryAllRecordsResponse 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_QueryAllRecordsResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in mycel.registry.v1.QueryAllRecordsResponse", 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_QueryAllRecordsResponse) 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_QueryAllRecordsResponse) 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_QueryAllRecordsResponse) 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_QueryAllRecordsResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryAllRecordsResponse) + 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.Values) > 0 { + SiZeMaP := func(k string, v *Record) { + l := 0 + if v != nil { + l = options.Size(v) + } + l += 1 + runtime.Sov(uint64(l)) + mapEntrySize := 1 + len(k) + runtime.Sov(uint64(len(k))) + l + n += mapEntrySize + 1 + runtime.Sov(uint64(mapEntrySize)) + } + if options.Deterministic { + sortme := make([]string, 0, len(x.Values)) + for k := range x.Values { + sortme = append(sortme, k) + } + sort.Strings(sortme) + for _, k := range sortme { + v := x.Values[k] + SiZeMaP(k, v) + } + } else { + for k, v := range x.Values { + SiZeMaP(k, v) + } + } + } + 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().(*QueryAllRecordsResponse) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if len(x.Values) > 0 { + MaRsHaLmAp := func(k string, v *Record) (protoiface.MarshalOutput, error) { + baseI := i + encoded, err := options.Marshal(v) + 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 + i -= len(k) + copy(dAtA[i:], k) + i = runtime.EncodeVarint(dAtA, i, uint64(len(k))) + i-- + dAtA[i] = 0xa + i = runtime.EncodeVarint(dAtA, i, uint64(baseI-i)) + i-- + dAtA[i] = 0xa + return protoiface.MarshalOutput{}, nil + } + if options.Deterministic { + keysForValues := make([]string, 0, len(x.Values)) + for k := range x.Values { + keysForValues = append(keysForValues, string(k)) + } + sort.Slice(keysForValues, func(i, j int) bool { + return keysForValues[i] < keysForValues[j] + }) + for iNdEx := len(keysForValues) - 1; iNdEx >= 0; iNdEx-- { + v := x.Values[string(keysForValues[iNdEx])] + out, err := MaRsHaLmAp(keysForValues[iNdEx], v) + if err != nil { + return out, err + } + } + } else { + for k := range x.Values { + v := x.Values[k] + out, err := MaRsHaLmAp(k, v) + if err != nil { + return out, err + } + } + } + } + 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().(*QueryAllRecordsResponse) + 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: QueryAllRecordsResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryAllRecordsResponse: 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 Values", 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.Values == nil { + x.Values = make(map[string]*Record) + } + var mapkey string + var mapvalue *Record + for iNdEx < postIndex { + entryPreIndex := 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) + if fieldNum == 1 { + var stringLenmapkey 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++ + stringLenmapkey |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLenmapkey := int(stringLenmapkey) + if intStringLenmapkey < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postStringIndexmapkey > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) + iNdEx = postStringIndexmapkey + } else if fieldNum == 2 { + var mapmsglen 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++ + mapmsglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if mapmsglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postmsgIndex := iNdEx + mapmsglen + if postmsgIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postmsgIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + mapvalue = &Record{} + if err := options.Unmarshal(dAtA[iNdEx:postmsgIndex], mapvalue); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postmsgIndex + } else { + iNdEx = entryPreIndex + 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) > postIndex { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + x.Values[mapkey] = mapvalue + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var ( + md_QueryTextRecordRequest protoreflect.MessageDescriptor + fd_QueryTextRecordRequest_domain_name protoreflect.FieldDescriptor + fd_QueryTextRecordRequest_domain_parent protoreflect.FieldDescriptor + fd_QueryTextRecordRequest_key protoreflect.FieldDescriptor +) + +func init() { + file_mycel_registry_v1_query_proto_init() + md_QueryTextRecordRequest = File_mycel_registry_v1_query_proto.Messages().ByName("QueryTextRecordRequest") + fd_QueryTextRecordRequest_domain_name = md_QueryTextRecordRequest.Fields().ByName("domain_name") + fd_QueryTextRecordRequest_domain_parent = md_QueryTextRecordRequest.Fields().ByName("domain_parent") + fd_QueryTextRecordRequest_key = md_QueryTextRecordRequest.Fields().ByName("key") +} + +var _ protoreflect.Message = (*fastReflection_QueryTextRecordRequest)(nil) + +type fastReflection_QueryTextRecordRequest QueryTextRecordRequest + +func (x *QueryTextRecordRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryTextRecordRequest)(x) +} + +func (x *QueryTextRecordRequest) slowProtoReflect() protoreflect.Message { + mi := &file_mycel_registry_v1_query_proto_msgTypes[25] + 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_QueryTextRecordRequest_messageType fastReflection_QueryTextRecordRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryTextRecordRequest_messageType{} + +type fastReflection_QueryTextRecordRequest_messageType struct{} + +func (x fastReflection_QueryTextRecordRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryTextRecordRequest)(nil) +} +func (x fastReflection_QueryTextRecordRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryTextRecordRequest) +} +func (x fastReflection_QueryTextRecordRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryTextRecordRequest +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryTextRecordRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryTextRecordRequest +} + +// 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_QueryTextRecordRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryTextRecordRequest_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryTextRecordRequest) New() protoreflect.Message { + return new(fastReflection_QueryTextRecordRequest) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryTextRecordRequest) Interface() protoreflect.ProtoMessage { + return (*QueryTextRecordRequest)(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_QueryTextRecordRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.DomainName != "" { + value := protoreflect.ValueOfString(x.DomainName) + if !f(fd_QueryTextRecordRequest_domain_name, value) { + return + } + } + if x.DomainParent != "" { + value := protoreflect.ValueOfString(x.DomainParent) + if !f(fd_QueryTextRecordRequest_domain_parent, value) { + return + } + } + if x.Key != "" { + value := protoreflect.ValueOfString(x.Key) + if !f(fd_QueryTextRecordRequest_key, 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_QueryTextRecordRequest) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "mycel.registry.v1.QueryTextRecordRequest.domain_name": + return x.DomainName != "" + case "mycel.registry.v1.QueryTextRecordRequest.domain_parent": + return x.DomainParent != "" + case "mycel.registry.v1.QueryTextRecordRequest.key": + return x.Key != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.QueryTextRecordRequest")) + } + panic(fmt.Errorf("message mycel.registry.v1.QueryTextRecordRequest 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_QueryTextRecordRequest) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "mycel.registry.v1.QueryTextRecordRequest.domain_name": + x.DomainName = "" + case "mycel.registry.v1.QueryTextRecordRequest.domain_parent": + x.DomainParent = "" + case "mycel.registry.v1.QueryTextRecordRequest.key": + x.Key = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.QueryTextRecordRequest")) + } + panic(fmt.Errorf("message mycel.registry.v1.QueryTextRecordRequest 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_QueryTextRecordRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "mycel.registry.v1.QueryTextRecordRequest.domain_name": + value := x.DomainName + return protoreflect.ValueOfString(value) + case "mycel.registry.v1.QueryTextRecordRequest.domain_parent": + value := x.DomainParent + return protoreflect.ValueOfString(value) + case "mycel.registry.v1.QueryTextRecordRequest.key": + value := x.Key + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.QueryTextRecordRequest")) + } + panic(fmt.Errorf("message mycel.registry.v1.QueryTextRecordRequest 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_QueryTextRecordRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "mycel.registry.v1.QueryTextRecordRequest.domain_name": + x.DomainName = value.Interface().(string) + case "mycel.registry.v1.QueryTextRecordRequest.domain_parent": + x.DomainParent = value.Interface().(string) + case "mycel.registry.v1.QueryTextRecordRequest.key": + x.Key = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.QueryTextRecordRequest")) + } + panic(fmt.Errorf("message mycel.registry.v1.QueryTextRecordRequest 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_QueryTextRecordRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "mycel.registry.v1.QueryTextRecordRequest.domain_name": + panic(fmt.Errorf("field domain_name of message mycel.registry.v1.QueryTextRecordRequest is not mutable")) + case "mycel.registry.v1.QueryTextRecordRequest.domain_parent": + panic(fmt.Errorf("field domain_parent of message mycel.registry.v1.QueryTextRecordRequest is not mutable")) + case "mycel.registry.v1.QueryTextRecordRequest.key": + panic(fmt.Errorf("field key of message mycel.registry.v1.QueryTextRecordRequest is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.QueryTextRecordRequest")) + } + panic(fmt.Errorf("message mycel.registry.v1.QueryTextRecordRequest 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_QueryTextRecordRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "mycel.registry.v1.QueryTextRecordRequest.domain_name": + return protoreflect.ValueOfString("") + case "mycel.registry.v1.QueryTextRecordRequest.domain_parent": + return protoreflect.ValueOfString("") + case "mycel.registry.v1.QueryTextRecordRequest.key": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.QueryTextRecordRequest")) + } + panic(fmt.Errorf("message mycel.registry.v1.QueryTextRecordRequest 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_QueryTextRecordRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in mycel.registry.v1.QueryTextRecordRequest", 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_QueryTextRecordRequest) 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_QueryTextRecordRequest) 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_QueryTextRecordRequest) 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_QueryTextRecordRequest) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryTextRecordRequest) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + l = len(x.DomainName) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.DomainParent) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.Key) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*QueryTextRecordRequest) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if len(x.Key) > 0 { + i -= len(x.Key) + copy(dAtA[i:], x.Key) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Key))) + i-- + dAtA[i] = 0x1a + } + if len(x.DomainParent) > 0 { + i -= len(x.DomainParent) + copy(dAtA[i:], x.DomainParent) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.DomainParent))) + i-- + dAtA[i] = 0x12 + } + if len(x.DomainName) > 0 { + i -= len(x.DomainName) + copy(dAtA[i:], x.DomainName) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.DomainName))) + 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().(*QueryTextRecordRequest) + 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: QueryTextRecordRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryTextRecordRequest: 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 DomainName", 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.DomainName = 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 DomainParent", 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.DomainParent = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Key", 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.Key = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var ( + md_QueryTextRecordResponse protoreflect.MessageDescriptor + fd_QueryTextRecordResponse_value protoreflect.FieldDescriptor +) + +func init() { + file_mycel_registry_v1_query_proto_init() + md_QueryTextRecordResponse = File_mycel_registry_v1_query_proto.Messages().ByName("QueryTextRecordResponse") + fd_QueryTextRecordResponse_value = md_QueryTextRecordResponse.Fields().ByName("value") +} + +var _ protoreflect.Message = (*fastReflection_QueryTextRecordResponse)(nil) + +type fastReflection_QueryTextRecordResponse QueryTextRecordResponse + +func (x *QueryTextRecordResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryTextRecordResponse)(x) +} + +func (x *QueryTextRecordResponse) slowProtoReflect() protoreflect.Message { + mi := &file_mycel_registry_v1_query_proto_msgTypes[26] + 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_QueryTextRecordResponse_messageType fastReflection_QueryTextRecordResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryTextRecordResponse_messageType{} + +type fastReflection_QueryTextRecordResponse_messageType struct{} + +func (x fastReflection_QueryTextRecordResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryTextRecordResponse)(nil) +} +func (x fastReflection_QueryTextRecordResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryTextRecordResponse) +} +func (x fastReflection_QueryTextRecordResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryTextRecordResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryTextRecordResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryTextRecordResponse +} + +// 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_QueryTextRecordResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryTextRecordResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryTextRecordResponse) New() protoreflect.Message { + return new(fastReflection_QueryTextRecordResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryTextRecordResponse) Interface() protoreflect.ProtoMessage { + return (*QueryTextRecordResponse)(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_QueryTextRecordResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Value != nil { + value := protoreflect.ValueOfMessage(x.Value.ProtoReflect()) + if !f(fd_QueryTextRecordResponse_value, 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_QueryTextRecordResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "mycel.registry.v1.QueryTextRecordResponse.value": + return x.Value != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.QueryTextRecordResponse")) + } + panic(fmt.Errorf("message mycel.registry.v1.QueryTextRecordResponse 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_QueryTextRecordResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "mycel.registry.v1.QueryTextRecordResponse.value": + x.Value = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.QueryTextRecordResponse")) + } + panic(fmt.Errorf("message mycel.registry.v1.QueryTextRecordResponse 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_QueryTextRecordResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "mycel.registry.v1.QueryTextRecordResponse.value": + value := x.Value + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.QueryTextRecordResponse")) + } + panic(fmt.Errorf("message mycel.registry.v1.QueryTextRecordResponse 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_QueryTextRecordResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "mycel.registry.v1.QueryTextRecordResponse.value": + x.Value = value.Message().Interface().(*TextRecord) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.QueryTextRecordResponse")) + } + panic(fmt.Errorf("message mycel.registry.v1.QueryTextRecordResponse 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_QueryTextRecordResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "mycel.registry.v1.QueryTextRecordResponse.value": + if x.Value == nil { + x.Value = new(TextRecord) + } + return protoreflect.ValueOfMessage(x.Value.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.QueryTextRecordResponse")) + } + panic(fmt.Errorf("message mycel.registry.v1.QueryTextRecordResponse 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_QueryTextRecordResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "mycel.registry.v1.QueryTextRecordResponse.value": + m := new(TextRecord) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.QueryTextRecordResponse")) + } + panic(fmt.Errorf("message mycel.registry.v1.QueryTextRecordResponse 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_QueryTextRecordResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in mycel.registry.v1.QueryTextRecordResponse", 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_QueryTextRecordResponse) 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_QueryTextRecordResponse) 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_QueryTextRecordResponse) 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_QueryTextRecordResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryTextRecordResponse) + 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.Value != nil { + l = options.Size(x.Value) + 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().(*QueryTextRecordResponse) + 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.Value != nil { + encoded, err := options.Marshal(x.Value) + 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().(*QueryTextRecordResponse) + 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: QueryTextRecordResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryTextRecordResponse: 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 Value", 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.Value == nil { + x.Value = &TextRecord{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Value); 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/registry/v1beta1/query.proto +// source: mycel/registry/v1/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_registry_v1_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_registry_v1_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_registry_v1_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 (*QueryParamsResponse) ProtoMessage() {} + +// Deprecated: Use QueryParamsResponse.ProtoReflect.Descriptor instead. +func (*QueryParamsResponse) Descriptor() ([]byte, []int) { + return file_mycel_registry_v1_query_proto_rawDescGZIP(), []int{1} +} + +func (x *QueryParamsResponse) GetParams() *Params { + if x != nil { + return x.Params + } + return nil +} + +type QueryGetTopLevelDomainRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` +} + +func (x *QueryGetTopLevelDomainRequest) Reset() { + *x = QueryGetTopLevelDomainRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_mycel_registry_v1_query_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryGetTopLevelDomainRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryGetTopLevelDomainRequest) ProtoMessage() {} + +// Deprecated: Use QueryGetTopLevelDomainRequest.ProtoReflect.Descriptor instead. +func (*QueryGetTopLevelDomainRequest) Descriptor() ([]byte, []int) { + return file_mycel_registry_v1_query_proto_rawDescGZIP(), []int{2} +} + +func (x *QueryGetTopLevelDomainRequest) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +type QueryGetTopLevelDomainResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + TopLevelDomain *TopLevelDomain `protobuf:"bytes,1,opt,name=top_level_domain,json=topLevelDomain,proto3" json:"top_level_domain,omitempty"` +} + +func (x *QueryGetTopLevelDomainResponse) Reset() { + *x = QueryGetTopLevelDomainResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_mycel_registry_v1_query_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryGetTopLevelDomainResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryGetTopLevelDomainResponse) ProtoMessage() {} + +// Deprecated: Use QueryGetTopLevelDomainResponse.ProtoReflect.Descriptor instead. +func (*QueryGetTopLevelDomainResponse) Descriptor() ([]byte, []int) { + return file_mycel_registry_v1_query_proto_rawDescGZIP(), []int{3} +} + +func (x *QueryGetTopLevelDomainResponse) GetTopLevelDomain() *TopLevelDomain { + if x != nil { + return x.TopLevelDomain + } + return nil +} + +type QueryAllTopLevelDomainRequest 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 *QueryAllTopLevelDomainRequest) Reset() { + *x = QueryAllTopLevelDomainRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_mycel_registry_v1_query_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryAllTopLevelDomainRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} -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 (*QueryAllTopLevelDomainRequest) ProtoMessage() {} -// QueryParamsRequest is request type for the Query/Params RPC method. -type QueryParamsRequest struct { +// Deprecated: Use QueryAllTopLevelDomainRequest.ProtoReflect.Descriptor instead. +func (*QueryAllTopLevelDomainRequest) Descriptor() ([]byte, []int) { + return file_mycel_registry_v1_query_proto_rawDescGZIP(), []int{4} +} + +func (x *QueryAllTopLevelDomainRequest) GetPagination() *v1beta1.PageRequest { + if x != nil { + return x.Pagination + } + return nil +} + +type QueryAllTopLevelDomainResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + + TopLevelDomain []*TopLevelDomain `protobuf:"bytes,1,rep,name=top_level_domain,json=topLevelDomain,proto3" json:"top_level_domain,omitempty"` + Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` } -func (x *QueryParamsRequest) Reset() { - *x = QueryParamsRequest{} +func (x *QueryAllTopLevelDomainResponse) Reset() { + *x = QueryAllTopLevelDomainResponse{} if protoimpl.UnsafeEnabled { - mi := &file_mycel_registry_v1beta1_query_proto_msgTypes[0] + mi := &file_mycel_registry_v1_query_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *QueryParamsRequest) String() string { +func (x *QueryAllTopLevelDomainResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*QueryParamsRequest) ProtoMessage() {} +func (*QueryAllTopLevelDomainResponse) ProtoMessage() {} -// Deprecated: Use QueryParamsRequest.ProtoReflect.Descriptor instead. -func (*QueryParamsRequest) Descriptor() ([]byte, []int) { - return file_mycel_registry_v1beta1_query_proto_rawDescGZIP(), []int{0} +// Deprecated: Use QueryAllTopLevelDomainResponse.ProtoReflect.Descriptor instead. +func (*QueryAllTopLevelDomainResponse) Descriptor() ([]byte, []int) { + return file_mycel_registry_v1_query_proto_rawDescGZIP(), []int{5} } -// QueryParamsResponse is response type for the Query/Params RPC method. -type QueryParamsResponse struct { +func (x *QueryAllTopLevelDomainResponse) GetTopLevelDomain() []*TopLevelDomain { + if x != nil { + return x.TopLevelDomain + } + return nil +} + +func (x *QueryAllTopLevelDomainResponse) GetPagination() *v1beta1.PageResponse { + if x != nil { + return x.Pagination + } + return nil +} + +type QueryGetSecondLevelDomainRequest 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"` + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Parent string `protobuf:"bytes,2,opt,name=parent,proto3" json:"parent,omitempty"` } -func (x *QueryParamsResponse) Reset() { - *x = QueryParamsResponse{} +func (x *QueryGetSecondLevelDomainRequest) Reset() { + *x = QueryGetSecondLevelDomainRequest{} if protoimpl.UnsafeEnabled { - mi := &file_mycel_registry_v1beta1_query_proto_msgTypes[1] + mi := &file_mycel_registry_v1_query_proto_msgTypes[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *QueryParamsResponse) String() string { +func (x *QueryGetSecondLevelDomainRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*QueryParamsResponse) ProtoMessage() {} +func (*QueryGetSecondLevelDomainRequest) ProtoMessage() {} -// Deprecated: Use QueryParamsResponse.ProtoReflect.Descriptor instead. -func (*QueryParamsResponse) Descriptor() ([]byte, []int) { - return file_mycel_registry_v1beta1_query_proto_rawDescGZIP(), []int{1} +// Deprecated: Use QueryGetSecondLevelDomainRequest.ProtoReflect.Descriptor instead. +func (*QueryGetSecondLevelDomainRequest) Descriptor() ([]byte, []int) { + return file_mycel_registry_v1_query_proto_rawDescGZIP(), []int{6} } -func (x *QueryParamsResponse) GetParams() *Params { +func (x *QueryGetSecondLevelDomainRequest) GetName() string { if x != nil { - return x.Params + return x.Name } - return nil + return "" } -type QueryGetTopLevelDomainRequest struct { +func (x *QueryGetSecondLevelDomainRequest) GetParent() string { + if x != nil { + return x.Parent + } + return "" +} + +type SecondLevelDomainResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Parent string `protobuf:"bytes,2,opt,name=parent,proto3" json:"parent,omitempty"` + ExpirationDate *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=expiration_date,json=expirationDate,proto3" json:"expiration_date,omitempty"` } -func (x *QueryGetTopLevelDomainRequest) Reset() { - *x = QueryGetTopLevelDomainRequest{} +func (x *SecondLevelDomainResponse) Reset() { + *x = SecondLevelDomainResponse{} if protoimpl.UnsafeEnabled { - mi := &file_mycel_registry_v1beta1_query_proto_msgTypes[2] + mi := &file_mycel_registry_v1_query_proto_msgTypes[7] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *QueryGetTopLevelDomainRequest) String() string { +func (x *SecondLevelDomainResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*QueryGetTopLevelDomainRequest) ProtoMessage() {} +func (*SecondLevelDomainResponse) ProtoMessage() {} -// Deprecated: Use QueryGetTopLevelDomainRequest.ProtoReflect.Descriptor instead. -func (*QueryGetTopLevelDomainRequest) Descriptor() ([]byte, []int) { - return file_mycel_registry_v1beta1_query_proto_rawDescGZIP(), []int{2} +// Deprecated: Use SecondLevelDomainResponse.ProtoReflect.Descriptor instead. +func (*SecondLevelDomainResponse) Descriptor() ([]byte, []int) { + return file_mycel_registry_v1_query_proto_rawDescGZIP(), []int{7} } -func (x *QueryGetTopLevelDomainRequest) GetName() string { +func (x *SecondLevelDomainResponse) GetName() string { if x != nil { return x.Name } return "" } -type QueryGetTopLevelDomainResponse struct { +func (x *SecondLevelDomainResponse) GetParent() string { + if x != nil { + return x.Parent + } + return "" +} + +func (x *SecondLevelDomainResponse) GetExpirationDate() *timestamppb.Timestamp { + if x != nil { + return x.ExpirationDate + } + return nil +} + +type QueryGetSecondLevelDomainResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + SecondLevelDomain *SecondLevelDomainResponse `protobuf:"bytes,1,opt,name=second_level_domain,json=secondLevelDomain,proto3" json:"second_level_domain,omitempty"` +} + +func (x *QueryGetSecondLevelDomainResponse) Reset() { + *x = QueryGetSecondLevelDomainResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_mycel_registry_v1_query_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryGetSecondLevelDomainResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryGetSecondLevelDomainResponse) ProtoMessage() {} + +// Deprecated: Use QueryGetSecondLevelDomainResponse.ProtoReflect.Descriptor instead. +func (*QueryGetSecondLevelDomainResponse) Descriptor() ([]byte, []int) { + return file_mycel_registry_v1_query_proto_rawDescGZIP(), []int{8} +} + +func (x *QueryGetSecondLevelDomainResponse) GetSecondLevelDomain() *SecondLevelDomainResponse { + if x != nil { + return x.SecondLevelDomain + } + return nil +} + +type QueryAllSecondLevelDomainRequest 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 *QueryAllSecondLevelDomainRequest) Reset() { + *x = QueryAllSecondLevelDomainRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_mycel_registry_v1_query_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryAllSecondLevelDomainRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryAllSecondLevelDomainRequest) ProtoMessage() {} + +// Deprecated: Use QueryAllSecondLevelDomainRequest.ProtoReflect.Descriptor instead. +func (*QueryAllSecondLevelDomainRequest) Descriptor() ([]byte, []int) { + return file_mycel_registry_v1_query_proto_rawDescGZIP(), []int{9} +} + +func (x *QueryAllSecondLevelDomainRequest) GetPagination() *v1beta1.PageRequest { + if x != nil { + return x.Pagination + } + return nil +} + +type QueryAllSecondLevelDomainResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + SecondLevelDomain []*SecondLevelDomainResponse `protobuf:"bytes,1,rep,name=second_level_domain,json=secondLevelDomain,proto3" json:"second_level_domain,omitempty"` + Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (x *QueryAllSecondLevelDomainResponse) Reset() { + *x = QueryAllSecondLevelDomainResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_mycel_registry_v1_query_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryAllSecondLevelDomainResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryAllSecondLevelDomainResponse) ProtoMessage() {} + +// Deprecated: Use QueryAllSecondLevelDomainResponse.ProtoReflect.Descriptor instead. +func (*QueryAllSecondLevelDomainResponse) Descriptor() ([]byte, []int) { + return file_mycel_registry_v1_query_proto_rawDescGZIP(), []int{10} +} + +func (x *QueryAllSecondLevelDomainResponse) GetSecondLevelDomain() []*SecondLevelDomainResponse { + if x != nil { + return x.SecondLevelDomain + } + return nil +} + +func (x *QueryAllSecondLevelDomainResponse) GetPagination() *v1beta1.PageResponse { + if x != nil { + return x.Pagination + } + return nil +} + +type QueryGetDomainOwnershipRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"` +} + +func (x *QueryGetDomainOwnershipRequest) Reset() { + *x = QueryGetDomainOwnershipRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_mycel_registry_v1_query_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryGetDomainOwnershipRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryGetDomainOwnershipRequest) ProtoMessage() {} + +// Deprecated: Use QueryGetDomainOwnershipRequest.ProtoReflect.Descriptor instead. +func (*QueryGetDomainOwnershipRequest) Descriptor() ([]byte, []int) { + return file_mycel_registry_v1_query_proto_rawDescGZIP(), []int{11} +} + +func (x *QueryGetDomainOwnershipRequest) GetOwner() string { + if x != nil { + return x.Owner + } + return "" +} + +type QueryGetDomainOwnershipResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - TopLevelDomain *TopLevelDomain `protobuf:"bytes,1,opt,name=top_level_domain,json=topLevelDomain,proto3" json:"top_level_domain,omitempty"` + DomainOwnership *DomainOwnership `protobuf:"bytes,1,opt,name=domain_ownership,json=domainOwnership,proto3" json:"domain_ownership,omitempty"` } -func (x *QueryGetTopLevelDomainResponse) Reset() { - *x = QueryGetTopLevelDomainResponse{} +func (x *QueryGetDomainOwnershipResponse) Reset() { + *x = QueryGetDomainOwnershipResponse{} if protoimpl.UnsafeEnabled { - mi := &file_mycel_registry_v1beta1_query_proto_msgTypes[3] + mi := &file_mycel_registry_v1_query_proto_msgTypes[12] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *QueryGetTopLevelDomainResponse) String() string { +func (x *QueryGetDomainOwnershipResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*QueryGetTopLevelDomainResponse) ProtoMessage() {} +func (*QueryGetDomainOwnershipResponse) ProtoMessage() {} -// Deprecated: Use QueryGetTopLevelDomainResponse.ProtoReflect.Descriptor instead. -func (*QueryGetTopLevelDomainResponse) Descriptor() ([]byte, []int) { - return file_mycel_registry_v1beta1_query_proto_rawDescGZIP(), []int{3} +// Deprecated: Use QueryGetDomainOwnershipResponse.ProtoReflect.Descriptor instead. +func (*QueryGetDomainOwnershipResponse) Descriptor() ([]byte, []int) { + return file_mycel_registry_v1_query_proto_rawDescGZIP(), []int{12} } -func (x *QueryGetTopLevelDomainResponse) GetTopLevelDomain() *TopLevelDomain { +func (x *QueryGetDomainOwnershipResponse) GetDomainOwnership() *DomainOwnership { if x != nil { - return x.TopLevelDomain + return x.DomainOwnership } return nil } -type QueryAllTopLevelDomainRequest struct { +type QueryAllDomainOwnershipRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -9387,717 +13858,698 @@ type QueryAllTopLevelDomainRequest struct { Pagination *v1beta1.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` } -func (x *QueryAllTopLevelDomainRequest) Reset() { - *x = QueryAllTopLevelDomainRequest{} +func (x *QueryAllDomainOwnershipRequest) Reset() { + *x = QueryAllDomainOwnershipRequest{} if protoimpl.UnsafeEnabled { - mi := &file_mycel_registry_v1beta1_query_proto_msgTypes[4] + mi := &file_mycel_registry_v1_query_proto_msgTypes[13] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *QueryAllTopLevelDomainRequest) String() string { +func (x *QueryAllDomainOwnershipRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*QueryAllTopLevelDomainRequest) ProtoMessage() {} +func (*QueryAllDomainOwnershipRequest) ProtoMessage() {} -// Deprecated: Use QueryAllTopLevelDomainRequest.ProtoReflect.Descriptor instead. -func (*QueryAllTopLevelDomainRequest) Descriptor() ([]byte, []int) { - return file_mycel_registry_v1beta1_query_proto_rawDescGZIP(), []int{4} +// Deprecated: Use QueryAllDomainOwnershipRequest.ProtoReflect.Descriptor instead. +func (*QueryAllDomainOwnershipRequest) Descriptor() ([]byte, []int) { + return file_mycel_registry_v1_query_proto_rawDescGZIP(), []int{13} } -func (x *QueryAllTopLevelDomainRequest) GetPagination() *v1beta1.PageRequest { +func (x *QueryAllDomainOwnershipRequest) GetPagination() *v1beta1.PageRequest { if x != nil { return x.Pagination } return nil } -type QueryAllTopLevelDomainResponse struct { +type QueryAllDomainOwnershipResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - TopLevelDomain []*TopLevelDomain `protobuf:"bytes,1,rep,name=top_level_domain,json=topLevelDomain,proto3" json:"top_level_domain,omitempty"` - Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` + DomainOwnership []*DomainOwnership `protobuf:"bytes,1,rep,name=domain_ownership,json=domainOwnership,proto3" json:"domain_ownership,omitempty"` + Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` } -func (x *QueryAllTopLevelDomainResponse) Reset() { - *x = QueryAllTopLevelDomainResponse{} +func (x *QueryAllDomainOwnershipResponse) Reset() { + *x = QueryAllDomainOwnershipResponse{} if protoimpl.UnsafeEnabled { - mi := &file_mycel_registry_v1beta1_query_proto_msgTypes[5] + mi := &file_mycel_registry_v1_query_proto_msgTypes[14] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *QueryAllTopLevelDomainResponse) String() string { +func (x *QueryAllDomainOwnershipResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*QueryAllTopLevelDomainResponse) ProtoMessage() {} +func (*QueryAllDomainOwnershipResponse) ProtoMessage() {} -// Deprecated: Use QueryAllTopLevelDomainResponse.ProtoReflect.Descriptor instead. -func (*QueryAllTopLevelDomainResponse) Descriptor() ([]byte, []int) { - return file_mycel_registry_v1beta1_query_proto_rawDescGZIP(), []int{5} +// Deprecated: Use QueryAllDomainOwnershipResponse.ProtoReflect.Descriptor instead. +func (*QueryAllDomainOwnershipResponse) Descriptor() ([]byte, []int) { + return file_mycel_registry_v1_query_proto_rawDescGZIP(), []int{14} } -func (x *QueryAllTopLevelDomainResponse) GetTopLevelDomain() []*TopLevelDomain { +func (x *QueryAllDomainOwnershipResponse) GetDomainOwnership() []*DomainOwnership { if x != nil { - return x.TopLevelDomain + return x.DomainOwnership } return nil } -func (x *QueryAllTopLevelDomainResponse) GetPagination() *v1beta1.PageResponse { +func (x *QueryAllDomainOwnershipResponse) GetPagination() *v1beta1.PageResponse { if x != nil { return x.Pagination } return nil } -type QueryGetSecondLevelDomainRequest struct { +type QueryDomainRegistrationFeeRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Parent string `protobuf:"bytes,2,opt,name=parent,proto3" json:"parent,omitempty"` + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Parent string `protobuf:"bytes,2,opt,name=parent,proto3" json:"parent,omitempty"` + RegistrationPeriodInYear uint64 `protobuf:"varint,3,opt,name=registration_period_in_year,json=registrationPeriodInYear,proto3" json:"registration_period_in_year,omitempty"` + Registerer string `protobuf:"bytes,4,opt,name=registerer,proto3" json:"registerer,omitempty"` } -func (x *QueryGetSecondLevelDomainRequest) Reset() { - *x = QueryGetSecondLevelDomainRequest{} +func (x *QueryDomainRegistrationFeeRequest) Reset() { + *x = QueryDomainRegistrationFeeRequest{} if protoimpl.UnsafeEnabled { - mi := &file_mycel_registry_v1beta1_query_proto_msgTypes[6] + mi := &file_mycel_registry_v1_query_proto_msgTypes[15] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *QueryGetSecondLevelDomainRequest) String() string { +func (x *QueryDomainRegistrationFeeRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*QueryGetSecondLevelDomainRequest) ProtoMessage() {} +func (*QueryDomainRegistrationFeeRequest) ProtoMessage() {} -// Deprecated: Use QueryGetSecondLevelDomainRequest.ProtoReflect.Descriptor instead. -func (*QueryGetSecondLevelDomainRequest) Descriptor() ([]byte, []int) { - return file_mycel_registry_v1beta1_query_proto_rawDescGZIP(), []int{6} +// Deprecated: Use QueryDomainRegistrationFeeRequest.ProtoReflect.Descriptor instead. +func (*QueryDomainRegistrationFeeRequest) Descriptor() ([]byte, []int) { + return file_mycel_registry_v1_query_proto_rawDescGZIP(), []int{15} } -func (x *QueryGetSecondLevelDomainRequest) GetName() string { +func (x *QueryDomainRegistrationFeeRequest) GetName() string { if x != nil { return x.Name } return "" } -func (x *QueryGetSecondLevelDomainRequest) GetParent() string { +func (x *QueryDomainRegistrationFeeRequest) GetParent() string { if x != nil { return x.Parent } return "" } -type SecondLevelDomainResponse struct { +func (x *QueryDomainRegistrationFeeRequest) GetRegistrationPeriodInYear() uint64 { + if x != nil { + return x.RegistrationPeriodInYear + } + return 0 +} + +func (x *QueryDomainRegistrationFeeRequest) GetRegisterer() string { + if x != nil { + return x.Registerer + } + return "" +} + +type QueryDomainRegistrationFeeResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Parent string `protobuf:"bytes,2,opt,name=parent,proto3" json:"parent,omitempty"` - ExpirationDate *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=expiration_date,json=expirationDate,proto3" json:"expiration_date,omitempty"` + IsRegistrable bool `protobuf:"varint,1,opt,name=is_registrable,json=isRegistrable,proto3" json:"is_registrable,omitempty"` + Fee []*v1beta11.Coin `protobuf:"bytes,2,rep,name=fee,proto3" json:"fee,omitempty"` + RegistrationPeriodInYear uint64 `protobuf:"varint,3,opt,name=registration_period_in_year,json=registrationPeriodInYear,proto3" json:"registration_period_in_year,omitempty"` + MaxSubDomainRegistrations uint64 `protobuf:"varint,4,opt,name=max_sub_domain_registrations,json=maxSubDomainRegistrations,proto3" json:"max_sub_domain_registrations,omitempty"` + ErrorMessage string `protobuf:"bytes,5,opt,name=error_message,json=errorMessage,proto3" json:"error_message,omitempty"` } -func (x *SecondLevelDomainResponse) Reset() { - *x = SecondLevelDomainResponse{} +func (x *QueryDomainRegistrationFeeResponse) Reset() { + *x = QueryDomainRegistrationFeeResponse{} if protoimpl.UnsafeEnabled { - mi := &file_mycel_registry_v1beta1_query_proto_msgTypes[7] + mi := &file_mycel_registry_v1_query_proto_msgTypes[16] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *SecondLevelDomainResponse) String() string { +func (x *QueryDomainRegistrationFeeResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*SecondLevelDomainResponse) ProtoMessage() {} +func (*QueryDomainRegistrationFeeResponse) ProtoMessage() {} -// Deprecated: Use SecondLevelDomainResponse.ProtoReflect.Descriptor instead. -func (*SecondLevelDomainResponse) Descriptor() ([]byte, []int) { - return file_mycel_registry_v1beta1_query_proto_rawDescGZIP(), []int{7} +// Deprecated: Use QueryDomainRegistrationFeeResponse.ProtoReflect.Descriptor instead. +func (*QueryDomainRegistrationFeeResponse) Descriptor() ([]byte, []int) { + return file_mycel_registry_v1_query_proto_rawDescGZIP(), []int{16} } -func (x *SecondLevelDomainResponse) GetName() string { +func (x *QueryDomainRegistrationFeeResponse) GetIsRegistrable() bool { if x != nil { - return x.Name + return x.IsRegistrable } - return "" + return false } -func (x *SecondLevelDomainResponse) GetParent() string { +func (x *QueryDomainRegistrationFeeResponse) GetFee() []*v1beta11.Coin { if x != nil { - return x.Parent + return x.Fee } - return "" + return nil } -func (x *SecondLevelDomainResponse) GetExpirationDate() *timestamppb.Timestamp { +func (x *QueryDomainRegistrationFeeResponse) GetRegistrationPeriodInYear() uint64 { if x != nil { - return x.ExpirationDate + return x.RegistrationPeriodInYear } - return nil + return 0 } -type QueryGetSecondLevelDomainResponse struct { +func (x *QueryDomainRegistrationFeeResponse) GetMaxSubDomainRegistrations() uint64 { + if x != nil { + return x.MaxSubDomainRegistrations + } + return 0 +} + +func (x *QueryDomainRegistrationFeeResponse) GetErrorMessage() string { + if x != nil { + return x.ErrorMessage + } + return "" +} + +type QueryRoleRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - SecondLevelDomain *SecondLevelDomainResponse `protobuf:"bytes,1,opt,name=second_level_domain,json=secondLevelDomain,proto3" json:"second_level_domain,omitempty"` + DomainName string `protobuf:"bytes,1,opt,name=domain_name,json=domainName,proto3" json:"domain_name,omitempty"` + Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` } -func (x *QueryGetSecondLevelDomainResponse) Reset() { - *x = QueryGetSecondLevelDomainResponse{} +func (x *QueryRoleRequest) Reset() { + *x = QueryRoleRequest{} if protoimpl.UnsafeEnabled { - mi := &file_mycel_registry_v1beta1_query_proto_msgTypes[8] + mi := &file_mycel_registry_v1_query_proto_msgTypes[17] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *QueryGetSecondLevelDomainResponse) String() string { +func (x *QueryRoleRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*QueryGetSecondLevelDomainResponse) ProtoMessage() {} +func (*QueryRoleRequest) ProtoMessage() {} -// Deprecated: Use QueryGetSecondLevelDomainResponse.ProtoReflect.Descriptor instead. -func (*QueryGetSecondLevelDomainResponse) Descriptor() ([]byte, []int) { - return file_mycel_registry_v1beta1_query_proto_rawDescGZIP(), []int{8} +// Deprecated: Use QueryRoleRequest.ProtoReflect.Descriptor instead. +func (*QueryRoleRequest) Descriptor() ([]byte, []int) { + return file_mycel_registry_v1_query_proto_rawDescGZIP(), []int{17} } -func (x *QueryGetSecondLevelDomainResponse) GetSecondLevelDomain() *SecondLevelDomainResponse { +func (x *QueryRoleRequest) GetDomainName() string { if x != nil { - return x.SecondLevelDomain + return x.DomainName } - return nil + return "" } -type QueryAllSecondLevelDomainRequest struct { +func (x *QueryRoleRequest) GetAddress() string { + if x != nil { + return x.Address + } + return "" +} + +type QueryRoleResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Pagination *v1beta1.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` + Role string `protobuf:"bytes,1,opt,name=role,proto3" json:"role,omitempty"` } -func (x *QueryAllSecondLevelDomainRequest) Reset() { - *x = QueryAllSecondLevelDomainRequest{} +func (x *QueryRoleResponse) Reset() { + *x = QueryRoleResponse{} if protoimpl.UnsafeEnabled { - mi := &file_mycel_registry_v1beta1_query_proto_msgTypes[9] + mi := &file_mycel_registry_v1_query_proto_msgTypes[18] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *QueryAllSecondLevelDomainRequest) String() string { +func (x *QueryRoleResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*QueryAllSecondLevelDomainRequest) ProtoMessage() {} +func (*QueryRoleResponse) ProtoMessage() {} -// Deprecated: Use QueryAllSecondLevelDomainRequest.ProtoReflect.Descriptor instead. -func (*QueryAllSecondLevelDomainRequest) Descriptor() ([]byte, []int) { - return file_mycel_registry_v1beta1_query_proto_rawDescGZIP(), []int{9} +// Deprecated: Use QueryRoleResponse.ProtoReflect.Descriptor instead. +func (*QueryRoleResponse) Descriptor() ([]byte, []int) { + return file_mycel_registry_v1_query_proto_rawDescGZIP(), []int{18} } -func (x *QueryAllSecondLevelDomainRequest) GetPagination() *v1beta1.PageRequest { +func (x *QueryRoleResponse) GetRole() string { if x != nil { - return x.Pagination + return x.Role } - return nil + return "" } -type QueryAllSecondLevelDomainResponse struct { +type QueryWalletRecordRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - SecondLevelDomain []*SecondLevelDomainResponse `protobuf:"bytes,1,rep,name=second_level_domain,json=secondLevelDomain,proto3" json:"second_level_domain,omitempty"` - Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` + DomainName string `protobuf:"bytes,1,opt,name=domain_name,json=domainName,proto3" json:"domain_name,omitempty"` + DomainParent string `protobuf:"bytes,2,opt,name=domain_parent,json=domainParent,proto3" json:"domain_parent,omitempty"` + WalletRecordType string `protobuf:"bytes,3,opt,name=wallet_record_type,json=walletRecordType,proto3" json:"wallet_record_type,omitempty"` } -func (x *QueryAllSecondLevelDomainResponse) Reset() { - *x = QueryAllSecondLevelDomainResponse{} +func (x *QueryWalletRecordRequest) Reset() { + *x = QueryWalletRecordRequest{} if protoimpl.UnsafeEnabled { - mi := &file_mycel_registry_v1beta1_query_proto_msgTypes[10] + mi := &file_mycel_registry_v1_query_proto_msgTypes[19] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *QueryAllSecondLevelDomainResponse) String() string { +func (x *QueryWalletRecordRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*QueryAllSecondLevelDomainResponse) ProtoMessage() {} +func (*QueryWalletRecordRequest) ProtoMessage() {} -// Deprecated: Use QueryAllSecondLevelDomainResponse.ProtoReflect.Descriptor instead. -func (*QueryAllSecondLevelDomainResponse) Descriptor() ([]byte, []int) { - return file_mycel_registry_v1beta1_query_proto_rawDescGZIP(), []int{10} +// Deprecated: Use QueryWalletRecordRequest.ProtoReflect.Descriptor instead. +func (*QueryWalletRecordRequest) Descriptor() ([]byte, []int) { + return file_mycel_registry_v1_query_proto_rawDescGZIP(), []int{19} } -func (x *QueryAllSecondLevelDomainResponse) GetSecondLevelDomain() []*SecondLevelDomainResponse { +func (x *QueryWalletRecordRequest) GetDomainName() string { if x != nil { - return x.SecondLevelDomain + return x.DomainName } - return nil + return "" } -func (x *QueryAllSecondLevelDomainResponse) GetPagination() *v1beta1.PageResponse { +func (x *QueryWalletRecordRequest) GetDomainParent() string { if x != nil { - return x.Pagination - } - return nil -} - -type QueryGetDomainOwnershipRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"` -} - -func (x *QueryGetDomainOwnershipRequest) Reset() { - *x = QueryGetDomainOwnershipRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_mycel_registry_v1beta1_query_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + return x.DomainParent } + return "" } -func (x *QueryGetDomainOwnershipRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QueryGetDomainOwnershipRequest) ProtoMessage() {} - -// Deprecated: Use QueryGetDomainOwnershipRequest.ProtoReflect.Descriptor instead. -func (*QueryGetDomainOwnershipRequest) Descriptor() ([]byte, []int) { - return file_mycel_registry_v1beta1_query_proto_rawDescGZIP(), []int{11} -} - -func (x *QueryGetDomainOwnershipRequest) GetOwner() string { +func (x *QueryWalletRecordRequest) GetWalletRecordType() string { if x != nil { - return x.Owner + return x.WalletRecordType } return "" } -type QueryGetDomainOwnershipResponse struct { +type QueryWalletRecordResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - DomainOwnership *DomainOwnership `protobuf:"bytes,1,opt,name=domain_ownership,json=domainOwnership,proto3" json:"domain_ownership,omitempty"` + Value *WalletRecord `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` } - -func (x *QueryGetDomainOwnershipResponse) Reset() { - *x = QueryGetDomainOwnershipResponse{} + +func (x *QueryWalletRecordResponse) Reset() { + *x = QueryWalletRecordResponse{} if protoimpl.UnsafeEnabled { - mi := &file_mycel_registry_v1beta1_query_proto_msgTypes[12] + mi := &file_mycel_registry_v1_query_proto_msgTypes[20] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *QueryGetDomainOwnershipResponse) String() string { +func (x *QueryWalletRecordResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*QueryGetDomainOwnershipResponse) ProtoMessage() {} +func (*QueryWalletRecordResponse) ProtoMessage() {} -// Deprecated: Use QueryGetDomainOwnershipResponse.ProtoReflect.Descriptor instead. -func (*QueryGetDomainOwnershipResponse) Descriptor() ([]byte, []int) { - return file_mycel_registry_v1beta1_query_proto_rawDescGZIP(), []int{12} +// Deprecated: Use QueryWalletRecordResponse.ProtoReflect.Descriptor instead. +func (*QueryWalletRecordResponse) Descriptor() ([]byte, []int) { + return file_mycel_registry_v1_query_proto_rawDescGZIP(), []int{20} } -func (x *QueryGetDomainOwnershipResponse) GetDomainOwnership() *DomainOwnership { +func (x *QueryWalletRecordResponse) GetValue() *WalletRecord { if x != nil { - return x.DomainOwnership + return x.Value } return nil } -type QueryAllDomainOwnershipRequest struct { +type QueryDnsRecordRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Pagination *v1beta1.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` + DomainName string `protobuf:"bytes,1,opt,name=domain_name,json=domainName,proto3" json:"domain_name,omitempty"` + DomainParent string `protobuf:"bytes,2,opt,name=domain_parent,json=domainParent,proto3" json:"domain_parent,omitempty"` + DnsRecordType string `protobuf:"bytes,3,opt,name=dns_record_type,json=dnsRecordType,proto3" json:"dns_record_type,omitempty"` } -func (x *QueryAllDomainOwnershipRequest) Reset() { - *x = QueryAllDomainOwnershipRequest{} +func (x *QueryDnsRecordRequest) Reset() { + *x = QueryDnsRecordRequest{} if protoimpl.UnsafeEnabled { - mi := &file_mycel_registry_v1beta1_query_proto_msgTypes[13] + mi := &file_mycel_registry_v1_query_proto_msgTypes[21] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *QueryAllDomainOwnershipRequest) String() string { +func (x *QueryDnsRecordRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*QueryAllDomainOwnershipRequest) ProtoMessage() {} +func (*QueryDnsRecordRequest) ProtoMessage() {} -// Deprecated: Use QueryAllDomainOwnershipRequest.ProtoReflect.Descriptor instead. -func (*QueryAllDomainOwnershipRequest) Descriptor() ([]byte, []int) { - return file_mycel_registry_v1beta1_query_proto_rawDescGZIP(), []int{13} +// Deprecated: Use QueryDnsRecordRequest.ProtoReflect.Descriptor instead. +func (*QueryDnsRecordRequest) Descriptor() ([]byte, []int) { + return file_mycel_registry_v1_query_proto_rawDescGZIP(), []int{21} } -func (x *QueryAllDomainOwnershipRequest) GetPagination() *v1beta1.PageRequest { +func (x *QueryDnsRecordRequest) GetDomainName() string { if x != nil { - return x.Pagination + return x.DomainName } - return nil + return "" } -type QueryAllDomainOwnershipResponse struct { +func (x *QueryDnsRecordRequest) GetDomainParent() string { + if x != nil { + return x.DomainParent + } + return "" +} + +func (x *QueryDnsRecordRequest) GetDnsRecordType() string { + if x != nil { + return x.DnsRecordType + } + return "" +} + +type QueryDnsRecordResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - DomainOwnership []*DomainOwnership `protobuf:"bytes,1,rep,name=domain_ownership,json=domainOwnership,proto3" json:"domain_ownership,omitempty"` - Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` + Value *DnsRecord `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` } -func (x *QueryAllDomainOwnershipResponse) Reset() { - *x = QueryAllDomainOwnershipResponse{} +func (x *QueryDnsRecordResponse) Reset() { + *x = QueryDnsRecordResponse{} if protoimpl.UnsafeEnabled { - mi := &file_mycel_registry_v1beta1_query_proto_msgTypes[14] + mi := &file_mycel_registry_v1_query_proto_msgTypes[22] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *QueryAllDomainOwnershipResponse) String() string { +func (x *QueryDnsRecordResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*QueryAllDomainOwnershipResponse) ProtoMessage() {} - -// Deprecated: Use QueryAllDomainOwnershipResponse.ProtoReflect.Descriptor instead. -func (*QueryAllDomainOwnershipResponse) Descriptor() ([]byte, []int) { - return file_mycel_registry_v1beta1_query_proto_rawDescGZIP(), []int{14} -} +func (*QueryDnsRecordResponse) ProtoMessage() {} -func (x *QueryAllDomainOwnershipResponse) GetDomainOwnership() []*DomainOwnership { - if x != nil { - return x.DomainOwnership - } - return nil +// Deprecated: Use QueryDnsRecordResponse.ProtoReflect.Descriptor instead. +func (*QueryDnsRecordResponse) Descriptor() ([]byte, []int) { + return file_mycel_registry_v1_query_proto_rawDescGZIP(), []int{22} } -func (x *QueryAllDomainOwnershipResponse) GetPagination() *v1beta1.PageResponse { +func (x *QueryDnsRecordResponse) GetValue() *DnsRecord { if x != nil { - return x.Pagination + return x.Value } return nil } -type QueryDomainRegistrationFeeRequest struct { +type QueryAllRecordsRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Parent string `protobuf:"bytes,2,opt,name=parent,proto3" json:"parent,omitempty"` - RegistrationPeriodInYear uint64 `protobuf:"varint,3,opt,name=registration_period_in_year,json=registrationPeriodInYear,proto3" json:"registration_period_in_year,omitempty"` - Registerer string `protobuf:"bytes,4,opt,name=registerer,proto3" json:"registerer,omitempty"` + DomainName string `protobuf:"bytes,1,opt,name=domain_name,json=domainName,proto3" json:"domain_name,omitempty"` + DomainParent string `protobuf:"bytes,2,opt,name=domain_parent,json=domainParent,proto3" json:"domain_parent,omitempty"` } -func (x *QueryDomainRegistrationFeeRequest) Reset() { - *x = QueryDomainRegistrationFeeRequest{} +func (x *QueryAllRecordsRequest) Reset() { + *x = QueryAllRecordsRequest{} if protoimpl.UnsafeEnabled { - mi := &file_mycel_registry_v1beta1_query_proto_msgTypes[15] + mi := &file_mycel_registry_v1_query_proto_msgTypes[23] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *QueryDomainRegistrationFeeRequest) String() string { +func (x *QueryAllRecordsRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*QueryDomainRegistrationFeeRequest) ProtoMessage() {} - -// Deprecated: Use QueryDomainRegistrationFeeRequest.ProtoReflect.Descriptor instead. -func (*QueryDomainRegistrationFeeRequest) Descriptor() ([]byte, []int) { - return file_mycel_registry_v1beta1_query_proto_rawDescGZIP(), []int{15} -} +func (*QueryAllRecordsRequest) ProtoMessage() {} -func (x *QueryDomainRegistrationFeeRequest) GetName() string { - if x != nil { - return x.Name - } - return "" +// Deprecated: Use QueryAllRecordsRequest.ProtoReflect.Descriptor instead. +func (*QueryAllRecordsRequest) Descriptor() ([]byte, []int) { + return file_mycel_registry_v1_query_proto_rawDescGZIP(), []int{23} } -func (x *QueryDomainRegistrationFeeRequest) GetParent() string { +func (x *QueryAllRecordsRequest) GetDomainName() string { if x != nil { - return x.Parent + return x.DomainName } return "" } -func (x *QueryDomainRegistrationFeeRequest) GetRegistrationPeriodInYear() uint64 { - if x != nil { - return x.RegistrationPeriodInYear - } - return 0 -} - -func (x *QueryDomainRegistrationFeeRequest) GetRegisterer() string { +func (x *QueryAllRecordsRequest) GetDomainParent() string { if x != nil { - return x.Registerer + return x.DomainParent } return "" } -type QueryDomainRegistrationFeeResponse struct { +type QueryAllRecordsResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - IsRegistrable bool `protobuf:"varint,1,opt,name=is_registrable,json=isRegistrable,proto3" json:"is_registrable,omitempty"` - Fee []*v1beta11.Coin `protobuf:"bytes,2,rep,name=fee,proto3" json:"fee,omitempty"` - RegistrationPeriodInYear uint64 `protobuf:"varint,3,opt,name=registration_period_in_year,json=registrationPeriodInYear,proto3" json:"registration_period_in_year,omitempty"` - MaxSubDomainRegistrations uint64 `protobuf:"varint,4,opt,name=max_sub_domain_registrations,json=maxSubDomainRegistrations,proto3" json:"max_sub_domain_registrations,omitempty"` - ErrorMessage string `protobuf:"bytes,5,opt,name=error_message,json=errorMessage,proto3" json:"error_message,omitempty"` + Values map[string]*Record `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` } -func (x *QueryDomainRegistrationFeeResponse) Reset() { - *x = QueryDomainRegistrationFeeResponse{} +func (x *QueryAllRecordsResponse) Reset() { + *x = QueryAllRecordsResponse{} if protoimpl.UnsafeEnabled { - mi := &file_mycel_registry_v1beta1_query_proto_msgTypes[16] + mi := &file_mycel_registry_v1_query_proto_msgTypes[24] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *QueryDomainRegistrationFeeResponse) String() string { +func (x *QueryAllRecordsResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*QueryDomainRegistrationFeeResponse) ProtoMessage() {} - -// Deprecated: Use QueryDomainRegistrationFeeResponse.ProtoReflect.Descriptor instead. -func (*QueryDomainRegistrationFeeResponse) Descriptor() ([]byte, []int) { - return file_mycel_registry_v1beta1_query_proto_rawDescGZIP(), []int{16} -} +func (*QueryAllRecordsResponse) ProtoMessage() {} -func (x *QueryDomainRegistrationFeeResponse) GetIsRegistrable() bool { - if x != nil { - return x.IsRegistrable - } - return false +// Deprecated: Use QueryAllRecordsResponse.ProtoReflect.Descriptor instead. +func (*QueryAllRecordsResponse) Descriptor() ([]byte, []int) { + return file_mycel_registry_v1_query_proto_rawDescGZIP(), []int{24} } -func (x *QueryDomainRegistrationFeeResponse) GetFee() []*v1beta11.Coin { +func (x *QueryAllRecordsResponse) GetValues() map[string]*Record { if x != nil { - return x.Fee + return x.Values } return nil } -func (x *QueryDomainRegistrationFeeResponse) GetRegistrationPeriodInYear() uint64 { - if x != nil { - return x.RegistrationPeriodInYear - } - return 0 -} - -func (x *QueryDomainRegistrationFeeResponse) GetMaxSubDomainRegistrations() uint64 { - if x != nil { - return x.MaxSubDomainRegistrations - } - return 0 -} - -func (x *QueryDomainRegistrationFeeResponse) GetErrorMessage() string { - if x != nil { - return x.ErrorMessage - } - return "" -} - -type QueryRoleRequest struct { +type QueryTextRecordRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - DomainName string `protobuf:"bytes,1,opt,name=domain_name,json=domainName,proto3" json:"domain_name,omitempty"` - Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` + DomainName string `protobuf:"bytes,1,opt,name=domain_name,json=domainName,proto3" json:"domain_name,omitempty"` + DomainParent string `protobuf:"bytes,2,opt,name=domain_parent,json=domainParent,proto3" json:"domain_parent,omitempty"` + Key string `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty"` } -func (x *QueryRoleRequest) Reset() { - *x = QueryRoleRequest{} +func (x *QueryTextRecordRequest) Reset() { + *x = QueryTextRecordRequest{} if protoimpl.UnsafeEnabled { - mi := &file_mycel_registry_v1beta1_query_proto_msgTypes[17] + mi := &file_mycel_registry_v1_query_proto_msgTypes[25] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *QueryRoleRequest) String() string { +func (x *QueryTextRecordRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*QueryRoleRequest) ProtoMessage() {} +func (*QueryTextRecordRequest) ProtoMessage() {} -// Deprecated: Use QueryRoleRequest.ProtoReflect.Descriptor instead. -func (*QueryRoleRequest) Descriptor() ([]byte, []int) { - return file_mycel_registry_v1beta1_query_proto_rawDescGZIP(), []int{17} +// Deprecated: Use QueryTextRecordRequest.ProtoReflect.Descriptor instead. +func (*QueryTextRecordRequest) Descriptor() ([]byte, []int) { + return file_mycel_registry_v1_query_proto_rawDescGZIP(), []int{25} } -func (x *QueryRoleRequest) GetDomainName() string { +func (x *QueryTextRecordRequest) GetDomainName() string { if x != nil { return x.DomainName } return "" } -func (x *QueryRoleRequest) GetAddress() string { +func (x *QueryTextRecordRequest) GetDomainParent() string { if x != nil { - return x.Address + return x.DomainParent } return "" } -type QueryRoleResponse struct { +func (x *QueryTextRecordRequest) GetKey() string { + if x != nil { + return x.Key + } + return "" +} + +type QueryTextRecordResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Role string `protobuf:"bytes,1,opt,name=role,proto3" json:"role,omitempty"` + Value *TextRecord `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` } -func (x *QueryRoleResponse) Reset() { - *x = QueryRoleResponse{} +func (x *QueryTextRecordResponse) Reset() { + *x = QueryTextRecordResponse{} if protoimpl.UnsafeEnabled { - mi := &file_mycel_registry_v1beta1_query_proto_msgTypes[18] + mi := &file_mycel_registry_v1_query_proto_msgTypes[26] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *QueryRoleResponse) String() string { +func (x *QueryTextRecordResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*QueryRoleResponse) ProtoMessage() {} +func (*QueryTextRecordResponse) ProtoMessage() {} -// Deprecated: Use QueryRoleResponse.ProtoReflect.Descriptor instead. -func (*QueryRoleResponse) Descriptor() ([]byte, []int) { - return file_mycel_registry_v1beta1_query_proto_rawDescGZIP(), []int{18} +// Deprecated: Use QueryTextRecordResponse.ProtoReflect.Descriptor instead. +func (*QueryTextRecordResponse) Descriptor() ([]byte, []int) { + return file_mycel_registry_v1_query_proto_rawDescGZIP(), []int{26} } -func (x *QueryRoleResponse) GetRole() string { +func (x *QueryTextRecordResponse) GetValue() *TextRecord { if x != nil { - return x.Role + return x.Value } - return "" + return nil } -var File_mycel_registry_v1beta1_query_proto protoreflect.FileDescriptor - -var file_mycel_registry_v1beta1_query_proto_rawDesc = []byte{ - 0x0a, 0x22, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, - 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x16, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x72, 0x65, 0x67, 0x69, - 0x73, 0x74, 0x72, 0x79, 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, 0x1e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, - 0x2f, 0x62, 0x61, 0x73, 0x65, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x63, 0x6f, - 0x69, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 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, 0x1f, 0x67, 0x6f, - 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, - 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2d, 0x6d, +var File_mycel_registry_v1_query_proto protoreflect.FileDescriptor + +var file_mycel_registry_v1_query_proto_rawDesc = []byte{ + 0x0a, 0x1d, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, + 0x2f, 0x76, 0x31, 0x2f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, + 0x11, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, + 0x76, 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, 0x1e, + 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x62, 0x61, 0x73, 0x65, 0x2f, 0x76, 0x31, 0x62, 0x65, + 0x74, 0x61, 0x31, 0x2f, 0x63, 0x6f, 0x69, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 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, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x1a, 0x28, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, + 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x2f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x5f, 0x6f, 0x77, + 0x6e, 0x65, 0x72, 0x73, 0x68, 0x69, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, - 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x5f, 0x6f, 0x77, 0x6e, - 0x65, 0x72, 0x73, 0x68, 0x69, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x23, 0x6d, 0x79, - 0x63, 0x65, 0x6c, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x62, - 0x65, 0x74, 0x61, 0x31, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x1a, 0x2d, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, - 0x79, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x74, 0x6f, 0x70, 0x5f, 0x6c, 0x65, - 0x76, 0x65, 0x6c, 0x5f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 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, 0x53, 0x0a, 0x13, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, - 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3c, 0x0a, - 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, - 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 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, 0x33, 0x0a, 0x1d, 0x51, - 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x54, 0x6f, 0x70, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x44, - 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, - 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, - 0x22, 0x78, 0x0a, 0x1e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x54, 0x6f, 0x70, 0x4c, - 0x65, 0x76, 0x65, 0x6c, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x56, 0x0a, 0x10, 0x74, 0x6f, 0x70, 0x5f, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x5f, - 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x6d, - 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, - 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x54, 0x6f, 0x70, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x44, 0x6f, - 0x6d, 0x61, 0x69, 0x6e, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0e, 0x74, 0x6f, 0x70, 0x4c, - 0x65, 0x76, 0x65, 0x6c, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x22, 0x67, 0x0a, 0x1d, 0x51, 0x75, - 0x65, 0x72, 0x79, 0x41, 0x6c, 0x6c, 0x54, 0x6f, 0x70, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x44, 0x6f, - 0x6d, 0x61, 0x69, 0x6e, 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, 0xc1, 0x01, 0x0a, 0x1e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x6c, 0x6c, - 0x54, 0x6f, 0x70, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x56, 0x0a, 0x10, 0x74, 0x6f, 0x70, 0x5f, 0x6c, 0x65, - 0x76, 0x65, 0x6c, 0x5f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x26, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, - 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x54, 0x6f, 0x70, 0x4c, 0x65, 0x76, - 0x65, 0x6c, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0e, - 0x74, 0x6f, 0x70, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 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, 0x22, 0x4e, 0x0a, 0x20, 0x51, 0x75, 0x65, 0x72, 0x79, - 0x47, 0x65, 0x74, 0x53, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x44, 0x6f, + 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x28, 0x6d, + 0x79, 0x63, 0x65, 0x6c, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, + 0x2f, 0x74, 0x6f, 0x70, 0x5f, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x5f, 0x64, 0x6f, 0x6d, 0x61, 0x69, + 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2b, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2f, 0x72, + 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x65, 0x63, 0x6f, 0x6e, + 0x64, 0x5f, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x5f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 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, 0x4e, 0x0a, 0x13, 0x51, 0x75, + 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x37, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x19, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, + 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x42, 0x04, 0xc8, 0xde, + 0x1f, 0x00, 0x52, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x22, 0x33, 0x0a, 0x1d, 0x51, 0x75, + 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x54, 0x6f, 0x70, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, - 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, - 0x16, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x22, 0x96, 0x01, 0x0a, 0x19, 0x53, 0x65, 0x63, 0x6f, - 0x6e, 0x64, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x61, 0x72, - 0x65, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, - 0x74, 0x12, 0x4d, 0x0a, 0x0f, 0x65, 0x78, 0x70, 0x69, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, - 0x64, 0x61, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, - 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x08, 0xc8, 0xde, 0x1f, 0x00, 0x90, 0xdf, 0x1f, 0x01, - 0x52, 0x0e, 0x65, 0x78, 0x70, 0x69, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x61, 0x74, 0x65, - 0x22, 0x8c, 0x01, 0x0a, 0x21, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x53, 0x65, 0x63, - 0x6f, 0x6e, 0x64, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x67, 0x0a, 0x13, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, - 0x5f, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x5f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x31, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x72, 0x65, 0x67, 0x69, - 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x65, 0x63, + 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, + 0x73, 0x0a, 0x1e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x54, 0x6f, 0x70, 0x4c, 0x65, + 0x76, 0x65, 0x6c, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x51, 0x0a, 0x10, 0x74, 0x6f, 0x70, 0x5f, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x5f, 0x64, + 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x6d, 0x79, + 0x63, 0x65, 0x6c, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, + 0x54, 0x6f, 0x70, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x42, 0x04, + 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0e, 0x74, 0x6f, 0x70, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x44, 0x6f, + 0x6d, 0x61, 0x69, 0x6e, 0x22, 0x67, 0x0a, 0x1d, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x6c, 0x6c, + 0x54, 0x6f, 0x70, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 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, 0xbc, 0x01, + 0x0a, 0x1e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x6c, 0x6c, 0x54, 0x6f, 0x70, 0x4c, 0x65, 0x76, + 0x65, 0x6c, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x51, 0x0a, 0x10, 0x74, 0x6f, 0x70, 0x5f, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x5f, 0x64, 0x6f, + 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x6d, 0x79, 0x63, + 0x65, 0x6c, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x54, + 0x6f, 0x70, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x42, 0x04, 0xc8, + 0xde, 0x1f, 0x00, 0x52, 0x0e, 0x74, 0x6f, 0x70, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x44, 0x6f, 0x6d, + 0x61, 0x69, 0x6e, 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, 0x22, 0x4e, 0x0a, 0x20, + 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x53, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x4c, 0x65, + 0x76, 0x65, 0x6c, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, + 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x22, 0x96, 0x01, 0x0a, + 0x19, 0x53, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x44, 0x6f, 0x6d, 0x61, + 0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, + 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x16, + 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, + 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x4d, 0x0a, 0x0f, 0x65, 0x78, 0x70, 0x69, 0x72, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x64, 0x61, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, + 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x08, 0xc8, 0xde, 0x1f, + 0x00, 0x90, 0xdf, 0x1f, 0x01, 0x52, 0x0e, 0x65, 0x78, 0x70, 0x69, 0x72, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x44, 0x61, 0x74, 0x65, 0x22, 0x87, 0x01, 0x0a, 0x21, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, + 0x65, 0x74, 0x53, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x44, 0x6f, 0x6d, + 0x61, 0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x62, 0x0a, 0x13, 0x73, + 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x5f, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x5f, 0x64, 0x6f, 0x6d, 0x61, + 0x69, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, + 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x11, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x22, @@ -10107,309 +14559,424 @@ var file_mycel_registry_v1beta1_query_proto_rawDesc = []byte{ 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, 0xd5, 0x01, 0x0a, 0x21, + 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xd0, 0x01, 0x0a, 0x21, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x6c, 0x6c, 0x53, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x67, 0x0a, 0x13, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x5f, 0x6c, 0x65, 0x76, 0x65, - 0x6c, 0x5f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x31, + 0x65, 0x12, 0x62, 0x0a, 0x13, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x5f, 0x6c, 0x65, 0x76, 0x65, + 0x6c, 0x5f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, - 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x4c, 0x65, - 0x76, 0x65, 0x6c, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x11, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x4c, - 0x65, 0x76, 0x65, 0x6c, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 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, 0x22, 0x36, 0x0a, 0x1e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x44, - 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x73, 0x68, 0x69, 0x70, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x22, 0x7b, 0x0a, 0x1f, 0x51, - 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x4f, 0x77, 0x6e, - 0x65, 0x72, 0x73, 0x68, 0x69, 0x70, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x58, - 0x0a, 0x10, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x5f, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x73, 0x68, - 0x69, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, - 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, - 0x31, 0x2e, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x73, 0x68, 0x69, - 0x70, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x4f, - 0x77, 0x6e, 0x65, 0x72, 0x73, 0x68, 0x69, 0x70, 0x22, 0x68, 0x0a, 0x1e, 0x51, 0x75, 0x65, 0x72, - 0x79, 0x41, 0x6c, 0x6c, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x73, - 0x68, 0x69, 0x70, 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, 0xc4, 0x01, 0x0a, 0x1f, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x6c, 0x6c, 0x44, - 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x73, 0x68, 0x69, 0x70, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x58, 0x0a, 0x10, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, - 0x5f, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x73, 0x68, 0x69, 0x70, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x27, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, - 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, - 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x73, 0x68, 0x69, 0x70, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, - 0x0f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x73, 0x68, 0x69, 0x70, - 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, + 0x76, 0x31, 0x2e, 0x53, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x44, 0x6f, + 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x04, 0xc8, 0xde, + 0x1f, 0x00, 0x52, 0x11, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x44, + 0x6f, 0x6d, 0x61, 0x69, 0x6e, 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, 0x22, 0x36, + 0x0a, 0x1e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, + 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x73, 0x68, 0x69, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x12, 0x14, 0x0a, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x22, 0x76, 0x0a, 0x1f, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, + 0x65, 0x74, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x73, 0x68, 0x69, + 0x70, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x53, 0x0a, 0x10, 0x64, 0x6f, 0x6d, + 0x61, 0x69, 0x6e, 0x5f, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x73, 0x68, 0x69, 0x70, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x72, 0x65, 0x67, 0x69, + 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x4f, 0x77, + 0x6e, 0x65, 0x72, 0x73, 0x68, 0x69, 0x70, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0f, 0x64, + 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x73, 0x68, 0x69, 0x70, 0x22, 0x68, + 0x0a, 0x1e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x6c, 0x6c, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, + 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x73, 0x68, 0x69, 0x70, 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, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x0a, 0x70, - 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xae, 0x01, 0x0a, 0x21, 0x51, 0x75, - 0x65, 0x72, 0x79, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x65, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, - 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, - 0x61, 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x3d, 0x0a, 0x1b, 0x72, - 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x70, 0x65, 0x72, 0x69, - 0x6f, 0x64, 0x5f, 0x69, 0x6e, 0x5f, 0x79, 0x65, 0x61, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, - 0x52, 0x18, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x65, - 0x72, 0x69, 0x6f, 0x64, 0x49, 0x6e, 0x59, 0x65, 0x61, 0x72, 0x12, 0x1e, 0x0a, 0x0a, 0x72, 0x65, - 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, - 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x65, 0x72, 0x22, 0xcf, 0x02, 0x0a, 0x22, 0x51, + 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, 0xbf, 0x01, 0x0a, 0x1f, 0x51, 0x75, 0x65, + 0x72, 0x79, 0x41, 0x6c, 0x6c, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x4f, 0x77, 0x6e, 0x65, 0x72, + 0x73, 0x68, 0x69, 0x70, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x53, 0x0a, 0x10, + 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x5f, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x73, 0x68, 0x69, 0x70, + 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x72, + 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x6f, 0x6d, 0x61, 0x69, + 0x6e, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x73, 0x68, 0x69, 0x70, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, + 0x52, 0x0f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x73, 0x68, 0x69, + 0x70, 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, 0x22, 0xae, 0x01, 0x0a, 0x21, 0x51, 0x75, 0x65, 0x72, 0x79, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, - 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x65, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x25, 0x0a, 0x0e, 0x69, 0x73, 0x5f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, - 0x62, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, 0x69, 0x73, 0x52, 0x65, 0x67, - 0x69, 0x73, 0x74, 0x72, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x5d, 0x0a, 0x03, 0x66, 0x65, 0x65, 0x18, - 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, - 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x6f, 0x69, 0x6e, - 0x42, 0x30, 0xc8, 0xde, 0x1f, 0x00, 0xaa, 0xdf, 0x1f, 0x28, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, - 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x63, 0x6f, 0x73, 0x6d, - 0x6f, 0x73, 0x2d, 0x73, 0x64, 0x6b, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x43, 0x6f, 0x69, - 0x6e, 0x73, 0x52, 0x03, 0x66, 0x65, 0x65, 0x12, 0x3d, 0x0a, 0x1b, 0x72, 0x65, 0x67, 0x69, 0x73, - 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x70, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x5f, 0x69, - 0x6e, 0x5f, 0x79, 0x65, 0x61, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x18, 0x72, 0x65, - 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x65, 0x72, 0x69, 0x6f, 0x64, - 0x49, 0x6e, 0x59, 0x65, 0x61, 0x72, 0x12, 0x3f, 0x0a, 0x1c, 0x6d, 0x61, 0x78, 0x5f, 0x73, 0x75, - 0x62, 0x5f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x5f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x19, 0x6d, 0x61, - 0x78, 0x53, 0x75, 0x62, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, - 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x23, 0x0a, 0x0d, 0x65, 0x72, 0x72, 0x6f, 0x72, - 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, - 0x65, 0x72, 0x72, 0x6f, 0x72, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0x4d, 0x0a, 0x10, - 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x6f, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x12, 0x1f, 0x0a, 0x0b, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x4e, 0x61, 0x6d, - 0x65, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0x27, 0x0a, 0x11, 0x51, - 0x75, 0x65, 0x72, 0x79, 0x52, 0x6f, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x12, 0x0a, 0x04, 0x72, 0x6f, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, - 0x72, 0x6f, 0x6c, 0x65, 0x32, 0xe2, 0x0d, 0x0a, 0x05, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x89, - 0x01, 0x0a, 0x06, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x2a, 0x2e, 0x6d, 0x79, 0x63, 0x65, - 0x6c, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 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, 0x2b, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x72, 0x65, - 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 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, 0x26, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x20, 0x12, 0x1e, 0x2f, 0x6d, 0x79, 0x63, - 0x65, 0x6c, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x62, 0x65, - 0x74, 0x61, 0x31, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0xc5, 0x01, 0x0a, 0x0e, 0x54, - 0x6f, 0x70, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x35, 0x2e, + 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x65, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, + 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x3d, 0x0a, 0x1b, + 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x70, 0x65, 0x72, + 0x69, 0x6f, 0x64, 0x5f, 0x69, 0x6e, 0x5f, 0x79, 0x65, 0x61, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x04, 0x52, 0x18, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, + 0x65, 0x72, 0x69, 0x6f, 0x64, 0x49, 0x6e, 0x59, 0x65, 0x61, 0x72, 0x12, 0x1e, 0x0a, 0x0a, 0x72, + 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x0a, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x65, 0x72, 0x22, 0xcf, 0x02, 0x0a, 0x22, + 0x51, 0x75, 0x65, 0x72, 0x79, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x67, 0x69, 0x73, + 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x65, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x25, 0x0a, 0x0e, 0x69, 0x73, 0x5f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, + 0x61, 0x62, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, 0x69, 0x73, 0x52, 0x65, + 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x5d, 0x0a, 0x03, 0x66, 0x65, 0x65, + 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, + 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x6f, 0x69, + 0x6e, 0x42, 0x30, 0xc8, 0xde, 0x1f, 0x00, 0xaa, 0xdf, 0x1f, 0x28, 0x67, 0x69, 0x74, 0x68, 0x75, + 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x63, 0x6f, 0x73, + 0x6d, 0x6f, 0x73, 0x2d, 0x73, 0x64, 0x6b, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x43, 0x6f, + 0x69, 0x6e, 0x73, 0x52, 0x03, 0x66, 0x65, 0x65, 0x12, 0x3d, 0x0a, 0x1b, 0x72, 0x65, 0x67, 0x69, + 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x70, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x5f, + 0x69, 0x6e, 0x5f, 0x79, 0x65, 0x61, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x18, 0x72, + 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x65, 0x72, 0x69, 0x6f, + 0x64, 0x49, 0x6e, 0x59, 0x65, 0x61, 0x72, 0x12, 0x3f, 0x0a, 0x1c, 0x6d, 0x61, 0x78, 0x5f, 0x73, + 0x75, 0x62, 0x5f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x5f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, + 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x19, 0x6d, + 0x61, 0x78, 0x53, 0x75, 0x62, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x67, 0x69, 0x73, + 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x23, 0x0a, 0x0d, 0x65, 0x72, 0x72, 0x6f, + 0x72, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x0c, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0x4d, 0x0a, + 0x10, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x6f, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x5f, 0x6e, 0x61, 0x6d, 0x65, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x4e, 0x61, + 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0x27, 0x0a, 0x11, + 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x6f, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x12, 0x0a, 0x04, 0x72, 0x6f, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x04, 0x72, 0x6f, 0x6c, 0x65, 0x22, 0x8e, 0x01, 0x0a, 0x18, 0x51, 0x75, 0x65, 0x72, 0x79, 0x57, + 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x5f, 0x6e, 0x61, 0x6d, + 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x4e, + 0x61, 0x6d, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x5f, 0x70, 0x61, + 0x72, 0x65, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x64, 0x6f, 0x6d, 0x61, + 0x69, 0x6e, 0x50, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x2c, 0x0a, 0x12, 0x77, 0x61, 0x6c, 0x6c, + 0x65, 0x74, 0x5f, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x77, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x52, 0x65, 0x63, 0x6f, + 0x72, 0x64, 0x54, 0x79, 0x70, 0x65, 0x22, 0x52, 0x0a, 0x19, 0x51, 0x75, 0x65, 0x72, 0x79, 0x57, + 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x35, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, + 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x52, 0x65, 0x63, + 0x6f, 0x72, 0x64, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x85, 0x01, 0x0a, 0x15, 0x51, + 0x75, 0x65, 0x72, 0x79, 0x44, 0x6e, 0x73, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x5f, 0x6e, + 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x64, 0x6f, 0x6d, 0x61, 0x69, + 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x5f, + 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x64, 0x6f, + 0x6d, 0x61, 0x69, 0x6e, 0x50, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x26, 0x0a, 0x0f, 0x64, 0x6e, + 0x73, 0x5f, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x0d, 0x64, 0x6e, 0x73, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x54, 0x79, + 0x70, 0x65, 0x22, 0x4c, 0x0a, 0x16, 0x51, 0x75, 0x65, 0x72, 0x79, 0x44, 0x6e, 0x73, 0x52, 0x65, + 0x63, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x32, 0x0a, 0x05, + 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x6d, 0x79, + 0x63, 0x65, 0x6c, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, + 0x44, 0x6e, 0x73, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, + 0x22, 0x5e, 0x0a, 0x16, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x6c, 0x6c, 0x52, 0x65, 0x63, 0x6f, + 0x72, 0x64, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x64, 0x6f, + 0x6d, 0x61, 0x69, 0x6e, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x0a, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x64, + 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x5f, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x0c, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x50, 0x61, 0x72, 0x65, 0x6e, 0x74, + 0x22, 0xbf, 0x01, 0x0a, 0x17, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x6c, 0x6c, 0x52, 0x65, 0x63, + 0x6f, 0x72, 0x64, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4e, 0x0a, 0x06, + 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x36, 0x2e, 0x6d, + 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, + 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x6c, 0x6c, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x45, + 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x1a, 0x54, 0x0a, 0x0b, + 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, + 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x2f, 0x0a, + 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x6d, + 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, + 0x2e, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, + 0x38, 0x01, 0x22, 0x70, 0x0a, 0x16, 0x51, 0x75, 0x65, 0x72, 0x79, 0x54, 0x65, 0x78, 0x74, 0x52, + 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1f, 0x0a, 0x0b, + 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x0a, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x23, 0x0a, + 0x0d, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x5f, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x50, 0x61, 0x72, 0x65, + 0x6e, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x03, 0x6b, 0x65, 0x79, 0x22, 0x4e, 0x0a, 0x17, 0x51, 0x75, 0x65, 0x72, 0x79, 0x54, 0x65, 0x78, + 0x74, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x33, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, + 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, + 0x76, 0x31, 0x2e, 0x54, 0x65, 0x78, 0x74, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x05, 0x76, + 0x61, 0x6c, 0x75, 0x65, 0x32, 0xed, 0x11, 0x0a, 0x05, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x7a, + 0x0a, 0x06, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x25, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, + 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, + 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x26, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, + 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x21, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1b, 0x12, + 0x19, 0x2f, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, + 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0xa9, 0x01, 0x0a, 0x0e, 0x54, + 0x6f, 0x70, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x30, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x54, - 0x6f, 0x70, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x36, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x72, 0x65, 0x67, - 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x51, 0x75, - 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x54, 0x6f, 0x70, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x44, 0x6f, - 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x44, 0x82, 0xd3, - 0xe4, 0x93, 0x02, 0x3e, 0x12, 0x3c, 0x2f, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2d, 0x64, 0x6f, 0x6d, - 0x61, 0x69, 0x6e, 0x2f, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, - 0x72, 0x79, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x74, 0x6f, 0x70, 0x5f, 0x6c, - 0x65, 0x76, 0x65, 0x6c, 0x5f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, - 0x65, 0x7d, 0x12, 0xc1, 0x01, 0x0a, 0x11, 0x54, 0x6f, 0x70, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x44, - 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x41, 0x6c, 0x6c, 0x12, 0x35, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, - 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, - 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x6c, 0x6c, 0x54, 0x6f, 0x70, 0x4c, 0x65, 0x76, + 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x54, 0x6f, 0x70, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x36, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, - 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x6c, - 0x6c, 0x54, 0x6f, 0x70, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x3d, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x37, 0x12, - 0x35, 0x2f, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2d, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x2f, 0x6d, - 0x79, 0x63, 0x65, 0x6c, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, - 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x74, 0x6f, 0x70, 0x5f, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x5f, - 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0xcd, 0x01, 0x0a, 0x11, 0x53, 0x65, 0x63, 0x6f, 0x6e, - 0x64, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x38, 0x2e, 0x6d, + 0x31, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, + 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x54, 0x6f, 0x70, 0x4c, + 0x65, 0x76, 0x65, 0x6c, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0x32, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2c, 0x12, 0x2a, 0x2f, 0x6d, 0x79, 0x63, + 0x65, 0x6c, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x2f, 0x74, + 0x6f, 0x70, 0x5f, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x5f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x2f, + 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x7d, 0x12, 0xa5, 0x01, 0x0a, 0x11, 0x54, 0x6f, 0x70, 0x4c, 0x65, + 0x76, 0x65, 0x6c, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x41, 0x6c, 0x6c, 0x12, 0x30, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, - 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x53, 0x65, - 0x63, 0x6f, 0x6e, 0x64, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x39, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x72, - 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, - 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x53, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x4c, 0x65, + 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x6c, 0x6c, 0x54, 0x6f, 0x70, 0x4c, 0x65, 0x76, 0x65, + 0x6c, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x31, + 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, + 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x6c, 0x6c, 0x54, 0x6f, 0x70, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x22, 0x43, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3d, 0x12, 0x3b, 0x2f, 0x6d, 0x79, 0x63, 0x65, - 0x6c, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, - 0x61, 0x31, 0x2f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x5f, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x5f, - 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x7d, 0x2f, 0x7b, 0x70, - 0x61, 0x72, 0x65, 0x6e, 0x74, 0x7d, 0x12, 0xc0, 0x01, 0x0a, 0x14, 0x53, 0x65, 0x63, 0x6f, 0x6e, - 0x64, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x41, 0x6c, 0x6c, 0x12, - 0x38, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, - 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x6c, - 0x6c, 0x53, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x44, 0x6f, 0x6d, 0x61, - 0x69, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x39, 0x2e, 0x6d, 0x79, 0x63, 0x65, - 0x6c, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, - 0x61, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x6c, 0x6c, 0x53, 0x65, 0x63, 0x6f, 0x6e, - 0x64, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x33, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2d, 0x12, 0x2b, 0x2f, 0x6d, - 0x79, 0x63, 0x65, 0x6c, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, - 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x5f, 0x6c, 0x65, 0x76, - 0x65, 0x6c, 0x5f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0xc9, 0x01, 0x0a, 0x0f, 0x44, 0x6f, - 0x6d, 0x61, 0x69, 0x6e, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x73, 0x68, 0x69, 0x70, 0x12, 0x36, 0x2e, + 0x65, 0x22, 0x2b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x25, 0x12, 0x23, 0x2f, 0x6d, 0x79, 0x63, 0x65, + 0x6c, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x2f, 0x74, 0x6f, + 0x70, 0x5f, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x5f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0xbe, + 0x01, 0x0a, 0x11, 0x53, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x44, 0x6f, + 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x33, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x72, 0x65, 0x67, + 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, + 0x74, 0x53, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x44, 0x6f, 0x6d, 0x61, + 0x69, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x34, 0x2e, 0x6d, 0x79, 0x63, 0x65, + 0x6c, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, + 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x53, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x4c, 0x65, 0x76, 0x65, + 0x6c, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, + 0x3e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x38, 0x12, 0x36, 0x2f, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2f, + 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x65, 0x63, 0x6f, + 0x6e, 0x64, 0x5f, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x5f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x2f, + 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x7d, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x7d, 0x12, + 0xb1, 0x01, 0x0a, 0x14, 0x53, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x44, + 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x41, 0x6c, 0x6c, 0x12, 0x33, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, + 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, + 0x72, 0x79, 0x41, 0x6c, 0x6c, 0x53, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x4c, 0x65, 0x76, 0x65, 0x6c, + 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x34, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x44, - 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x73, 0x68, 0x69, 0x70, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x37, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x72, 0x65, - 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x51, + 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x6c, 0x6c, 0x53, 0x65, 0x63, 0x6f, 0x6e, 0x64, + 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x22, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x28, 0x12, 0x26, 0x2f, 0x6d, 0x79, + 0x63, 0x65, 0x6c, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x2f, + 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x5f, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x5f, 0x64, 0x6f, 0x6d, + 0x61, 0x69, 0x6e, 0x12, 0xad, 0x01, 0x0a, 0x0f, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x4f, 0x77, + 0x6e, 0x65, 0x72, 0x73, 0x68, 0x69, 0x70, 0x12, 0x31, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, + 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, + 0x79, 0x47, 0x65, 0x74, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x73, + 0x68, 0x69, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x32, 0x2e, 0x6d, 0x79, 0x63, + 0x65, 0x6c, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x4f, 0x77, 0x6e, - 0x65, 0x72, 0x73, 0x68, 0x69, 0x70, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x45, - 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3f, 0x12, 0x3d, 0x2f, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2d, 0x64, - 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x2f, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2f, 0x72, 0x65, 0x67, 0x69, - 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x64, 0x6f, 0x6d, - 0x61, 0x69, 0x6e, 0x5f, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x73, 0x68, 0x69, 0x70, 0x2f, 0x7b, 0x6f, - 0x77, 0x6e, 0x65, 0x72, 0x7d, 0x12, 0xc4, 0x01, 0x0a, 0x12, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, - 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x73, 0x68, 0x69, 0x70, 0x41, 0x6c, 0x6c, 0x12, 0x36, 0x2e, 0x6d, + 0x65, 0x72, 0x73, 0x68, 0x69, 0x70, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x33, + 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2d, 0x12, 0x2b, 0x2f, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2f, 0x72, + 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x2f, 0x64, 0x6f, 0x6d, 0x61, 0x69, + 0x6e, 0x5f, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x73, 0x68, 0x69, 0x70, 0x2f, 0x7b, 0x6f, 0x77, 0x6e, + 0x65, 0x72, 0x7d, 0x12, 0xa8, 0x01, 0x0a, 0x12, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x4f, 0x77, + 0x6e, 0x65, 0x72, 0x73, 0x68, 0x69, 0x70, 0x41, 0x6c, 0x6c, 0x12, 0x31, 0x2e, 0x6d, 0x79, 0x63, + 0x65, 0x6c, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x51, + 0x75, 0x65, 0x72, 0x79, 0x41, 0x6c, 0x6c, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x4f, 0x77, 0x6e, + 0x65, 0x72, 0x73, 0x68, 0x69, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x32, 0x2e, + 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, + 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x6c, 0x6c, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, + 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x73, 0x68, 0x69, 0x70, 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, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x2f, 0x64, 0x6f, + 0x6d, 0x61, 0x69, 0x6e, 0x5f, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x73, 0x68, 0x69, 0x70, 0x12, 0xd5, + 0x01, 0x0a, 0x15, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x65, 0x65, 0x12, 0x34, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, + 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, + 0x72, 0x79, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x65, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x35, + 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, + 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x65, + 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x65, 0x65, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x4f, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x49, 0x12, 0x47, 0x2f, + 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, + 0x31, 0x2f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x5f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x66, 0x65, 0x65, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x7d, + 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x7d, 0x2f, 0x7b, 0x72, 0x65, 0x67, 0x69, 0x73, + 0x74, 0x65, 0x72, 0x65, 0x72, 0x7d, 0x12, 0x8a, 0x01, 0x0a, 0x04, 0x52, 0x6f, 0x6c, 0x65, 0x12, + 0x23, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, + 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x6f, 0x6c, 0x65, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x72, 0x65, 0x67, + 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x6f, + 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x37, 0x82, 0xd3, 0xe4, 0x93, + 0x02, 0x31, 0x12, 0x2f, 0x2f, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, + 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x6f, 0x6c, 0x65, 0x2f, 0x7b, 0x64, 0x6f, 0x6d, + 0x61, 0x69, 0x6e, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x7d, 0x2f, 0x7b, 0x61, 0x64, 0x64, 0x72, 0x65, + 0x73, 0x73, 0x7d, 0x12, 0xc6, 0x01, 0x0a, 0x0c, 0x57, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x52, 0x65, + 0x63, 0x6f, 0x72, 0x64, 0x12, 0x2b, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x72, 0x65, 0x67, + 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x57, 0x61, + 0x6c, 0x6c, 0x65, 0x74, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x2c, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, + 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x57, 0x61, 0x6c, 0x6c, 0x65, + 0x74, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, + 0x5b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x55, 0x12, 0x53, 0x2f, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2f, + 0x72, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x2f, 0x76, 0x31, 0x2f, 0x77, 0x61, 0x6c, 0x6c, + 0x65, 0x74, 0x5f, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x2f, 0x7b, 0x64, 0x6f, 0x6d, 0x61, 0x69, + 0x6e, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x7d, 0x2f, 0x7b, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x5f, + 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x7d, 0x2f, 0x7b, 0x77, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x5f, + 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x7d, 0x12, 0xb7, 0x01, 0x0a, + 0x09, 0x44, 0x6e, 0x73, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x12, 0x28, 0x2e, 0x6d, 0x79, 0x63, + 0x65, 0x6c, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x51, + 0x75, 0x65, 0x72, 0x79, 0x44, 0x6e, 0x73, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x72, 0x65, 0x67, + 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x44, 0x6e, + 0x73, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, + 0x55, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x4f, 0x12, 0x4d, 0x2f, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2f, + 0x72, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x2f, 0x76, 0x31, 0x2f, 0x64, 0x6e, 0x73, 0x5f, + 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x2f, 0x7b, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x5f, 0x6e, + 0x61, 0x6d, 0x65, 0x7d, 0x2f, 0x7b, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x5f, 0x70, 0x61, 0x72, + 0x65, 0x6e, 0x74, 0x7d, 0x2f, 0x7b, 0x64, 0x6e, 0x73, 0x5f, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, + 0x5f, 0x74, 0x79, 0x70, 0x65, 0x7d, 0x12, 0xa9, 0x01, 0x0a, 0x0a, 0x41, 0x6c, 0x6c, 0x52, 0x65, + 0x63, 0x6f, 0x72, 0x64, 0x73, 0x12, 0x29, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x72, 0x65, + 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, + 0x6c, 0x6c, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x2a, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, + 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x6c, 0x6c, 0x52, 0x65, 0x63, + 0x6f, 0x72, 0x64, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x44, 0x82, 0xd3, + 0xe4, 0x93, 0x02, 0x3e, 0x12, 0x3c, 0x2f, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2f, 0x72, 0x65, 0x73, + 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x6c, 0x6c, 0x5f, 0x72, 0x65, 0x63, + 0x6f, 0x72, 0x64, 0x73, 0x2f, 0x7b, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x5f, 0x6e, 0x61, 0x6d, + 0x65, 0x7d, 0x2f, 0x7b, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x5f, 0x70, 0x61, 0x72, 0x65, 0x6e, + 0x74, 0x7d, 0x12, 0xaf, 0x01, 0x0a, 0x0a, 0x54, 0x65, 0x78, 0x74, 0x52, 0x65, 0x63, 0x6f, 0x72, + 0x64, 0x12, 0x29, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, + 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x54, 0x65, 0x78, 0x74, 0x52, + 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, - 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x6c, 0x6c, 0x44, 0x6f, - 0x6d, 0x61, 0x69, 0x6e, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x73, 0x68, 0x69, 0x70, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x37, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x72, 0x65, 0x67, - 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x51, 0x75, - 0x65, 0x72, 0x79, 0x41, 0x6c, 0x6c, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x4f, 0x77, 0x6e, 0x65, - 0x72, 0x73, 0x68, 0x69, 0x70, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x3d, 0x82, - 0xd3, 0xe4, 0x93, 0x02, 0x37, 0x12, 0x35, 0x2f, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2d, 0x64, 0x6f, - 0x6d, 0x61, 0x69, 0x6e, 0x2f, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, - 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x64, 0x6f, 0x6d, 0x61, - 0x69, 0x6e, 0x5f, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x73, 0x68, 0x69, 0x70, 0x12, 0xf1, 0x01, 0x0a, - 0x15, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x46, 0x65, 0x65, 0x12, 0x39, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x72, - 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, - 0x51, 0x75, 0x65, 0x72, 0x79, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x67, 0x69, 0x73, - 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x65, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x3a, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, - 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, - 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x46, 0x65, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x61, 0x82, - 0xd3, 0xe4, 0x93, 0x02, 0x5b, 0x12, 0x59, 0x2f, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2d, 0x64, 0x6f, - 0x6d, 0x61, 0x69, 0x6e, 0x2f, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, - 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x64, 0x6f, 0x6d, 0x61, - 0x69, 0x6e, 0x5f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, - 0x66, 0x65, 0x65, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x7d, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, - 0x6e, 0x74, 0x7d, 0x2f, 0x7b, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x65, 0x72, 0x7d, - 0x12, 0xa6, 0x01, 0x0a, 0x04, 0x52, 0x6f, 0x6c, 0x65, 0x12, 0x28, 0x2e, 0x6d, 0x79, 0x63, 0x65, - 0x6c, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, - 0x61, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x6f, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x72, 0x65, 0x67, 0x69, - 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x51, 0x75, 0x65, - 0x72, 0x79, 0x52, 0x6f, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x49, - 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x43, 0x12, 0x41, 0x2f, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2d, 0x64, - 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x2f, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2f, 0x72, 0x65, 0x67, 0x69, - 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x72, 0x6f, 0x6c, - 0x65, 0x2f, 0x7b, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x7d, 0x2f, - 0x7b, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x7d, 0x42, 0xd2, 0x01, 0x0a, 0x1a, 0x63, 0x6f, - 0x6d, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, - 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x42, 0x0a, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, - 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2e, 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, - 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0xa2, 0x02, 0x03, 0x4d, 0x52, 0x58, 0xaa, 0x02, 0x16, 0x4d, - 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x56, 0x31, - 0x62, 0x65, 0x74, 0x61, 0x31, 0xca, 0x02, 0x16, 0x4d, 0x79, 0x63, 0x65, 0x6c, 0x5c, 0x52, 0x65, - 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xe2, 0x02, - 0x22, 0x4d, 0x79, 0x63, 0x65, 0x6c, 0x5c, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x5c, - 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, - 0x61, 0x74, 0x61, 0xea, 0x02, 0x18, 0x4d, 0x79, 0x63, 0x65, 0x6c, 0x3a, 0x3a, 0x52, 0x65, 0x67, - 0x69, 0x73, 0x74, 0x72, 0x79, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x62, 0x06, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x54, 0x65, 0x78, 0x74, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x4a, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x44, + 0x12, 0x42, 0x2f, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, + 0x72, 0x2f, 0x76, 0x31, 0x2f, 0x74, 0x65, 0x78, 0x74, 0x5f, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, + 0x2f, 0x7b, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x7d, 0x2f, 0x7b, + 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x5f, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x7d, 0x2f, 0x7b, + 0x6b, 0x65, 0x79, 0x7d, 0x42, 0xb8, 0x01, 0x0a, 0x15, 0x63, 0x6f, 0x6d, 0x2e, 0x6d, 0x79, 0x63, + 0x65, 0x6c, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x42, 0x0a, + 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2d, 0x63, 0x6f, + 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x6d, + 0x79, 0x63, 0x65, 0x6c, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, + 0x3b, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x4d, 0x52, + 0x58, 0xaa, 0x02, 0x11, 0x4d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, + 0x72, 0x79, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x11, 0x4d, 0x79, 0x63, 0x65, 0x6c, 0x5c, 0x52, 0x65, + 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x1d, 0x4d, 0x79, 0x63, 0x65, + 0x6c, 0x5c, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, + 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x13, 0x4d, 0x79, 0x63, 0x65, + 0x6c, 0x3a, 0x3a, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x3a, 0x3a, 0x56, 0x31, 0x62, + 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( - file_mycel_registry_v1beta1_query_proto_rawDescOnce sync.Once - file_mycel_registry_v1beta1_query_proto_rawDescData = file_mycel_registry_v1beta1_query_proto_rawDesc + file_mycel_registry_v1_query_proto_rawDescOnce sync.Once + file_mycel_registry_v1_query_proto_rawDescData = file_mycel_registry_v1_query_proto_rawDesc ) -func file_mycel_registry_v1beta1_query_proto_rawDescGZIP() []byte { - file_mycel_registry_v1beta1_query_proto_rawDescOnce.Do(func() { - file_mycel_registry_v1beta1_query_proto_rawDescData = protoimpl.X.CompressGZIP(file_mycel_registry_v1beta1_query_proto_rawDescData) +func file_mycel_registry_v1_query_proto_rawDescGZIP() []byte { + file_mycel_registry_v1_query_proto_rawDescOnce.Do(func() { + file_mycel_registry_v1_query_proto_rawDescData = protoimpl.X.CompressGZIP(file_mycel_registry_v1_query_proto_rawDescData) }) - return file_mycel_registry_v1beta1_query_proto_rawDescData -} - -var file_mycel_registry_v1beta1_query_proto_msgTypes = make([]protoimpl.MessageInfo, 19) -var file_mycel_registry_v1beta1_query_proto_goTypes = []interface{}{ - (*QueryParamsRequest)(nil), // 0: mycel.registry.v1beta1.QueryParamsRequest - (*QueryParamsResponse)(nil), // 1: mycel.registry.v1beta1.QueryParamsResponse - (*QueryGetTopLevelDomainRequest)(nil), // 2: mycel.registry.v1beta1.QueryGetTopLevelDomainRequest - (*QueryGetTopLevelDomainResponse)(nil), // 3: mycel.registry.v1beta1.QueryGetTopLevelDomainResponse - (*QueryAllTopLevelDomainRequest)(nil), // 4: mycel.registry.v1beta1.QueryAllTopLevelDomainRequest - (*QueryAllTopLevelDomainResponse)(nil), // 5: mycel.registry.v1beta1.QueryAllTopLevelDomainResponse - (*QueryGetSecondLevelDomainRequest)(nil), // 6: mycel.registry.v1beta1.QueryGetSecondLevelDomainRequest - (*SecondLevelDomainResponse)(nil), // 7: mycel.registry.v1beta1.SecondLevelDomainResponse - (*QueryGetSecondLevelDomainResponse)(nil), // 8: mycel.registry.v1beta1.QueryGetSecondLevelDomainResponse - (*QueryAllSecondLevelDomainRequest)(nil), // 9: mycel.registry.v1beta1.QueryAllSecondLevelDomainRequest - (*QueryAllSecondLevelDomainResponse)(nil), // 10: mycel.registry.v1beta1.QueryAllSecondLevelDomainResponse - (*QueryGetDomainOwnershipRequest)(nil), // 11: mycel.registry.v1beta1.QueryGetDomainOwnershipRequest - (*QueryGetDomainOwnershipResponse)(nil), // 12: mycel.registry.v1beta1.QueryGetDomainOwnershipResponse - (*QueryAllDomainOwnershipRequest)(nil), // 13: mycel.registry.v1beta1.QueryAllDomainOwnershipRequest - (*QueryAllDomainOwnershipResponse)(nil), // 14: mycel.registry.v1beta1.QueryAllDomainOwnershipResponse - (*QueryDomainRegistrationFeeRequest)(nil), // 15: mycel.registry.v1beta1.QueryDomainRegistrationFeeRequest - (*QueryDomainRegistrationFeeResponse)(nil), // 16: mycel.registry.v1beta1.QueryDomainRegistrationFeeResponse - (*QueryRoleRequest)(nil), // 17: mycel.registry.v1beta1.QueryRoleRequest - (*QueryRoleResponse)(nil), // 18: mycel.registry.v1beta1.QueryRoleResponse - (*Params)(nil), // 19: mycel.registry.v1beta1.Params - (*TopLevelDomain)(nil), // 20: mycel.registry.v1beta1.TopLevelDomain - (*v1beta1.PageRequest)(nil), // 21: cosmos.base.query.v1beta1.PageRequest - (*v1beta1.PageResponse)(nil), // 22: cosmos.base.query.v1beta1.PageResponse - (*timestamppb.Timestamp)(nil), // 23: google.protobuf.Timestamp - (*DomainOwnership)(nil), // 24: mycel.registry.v1beta1.DomainOwnership - (*v1beta11.Coin)(nil), // 25: cosmos.base.v1beta1.Coin -} -var file_mycel_registry_v1beta1_query_proto_depIdxs = []int32{ - 19, // 0: mycel.registry.v1beta1.QueryParamsResponse.params:type_name -> mycel.registry.v1beta1.Params - 20, // 1: mycel.registry.v1beta1.QueryGetTopLevelDomainResponse.top_level_domain:type_name -> mycel.registry.v1beta1.TopLevelDomain - 21, // 2: mycel.registry.v1beta1.QueryAllTopLevelDomainRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest - 20, // 3: mycel.registry.v1beta1.QueryAllTopLevelDomainResponse.top_level_domain:type_name -> mycel.registry.v1beta1.TopLevelDomain - 22, // 4: mycel.registry.v1beta1.QueryAllTopLevelDomainResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse - 23, // 5: mycel.registry.v1beta1.SecondLevelDomainResponse.expiration_date:type_name -> google.protobuf.Timestamp - 7, // 6: mycel.registry.v1beta1.QueryGetSecondLevelDomainResponse.second_level_domain:type_name -> mycel.registry.v1beta1.SecondLevelDomainResponse - 21, // 7: mycel.registry.v1beta1.QueryAllSecondLevelDomainRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest - 7, // 8: mycel.registry.v1beta1.QueryAllSecondLevelDomainResponse.second_level_domain:type_name -> mycel.registry.v1beta1.SecondLevelDomainResponse - 22, // 9: mycel.registry.v1beta1.QueryAllSecondLevelDomainResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse - 24, // 10: mycel.registry.v1beta1.QueryGetDomainOwnershipResponse.domain_ownership:type_name -> mycel.registry.v1beta1.DomainOwnership - 21, // 11: mycel.registry.v1beta1.QueryAllDomainOwnershipRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest - 24, // 12: mycel.registry.v1beta1.QueryAllDomainOwnershipResponse.domain_ownership:type_name -> mycel.registry.v1beta1.DomainOwnership - 22, // 13: mycel.registry.v1beta1.QueryAllDomainOwnershipResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse - 25, // 14: mycel.registry.v1beta1.QueryDomainRegistrationFeeResponse.fee:type_name -> cosmos.base.v1beta1.Coin - 0, // 15: mycel.registry.v1beta1.Query.Params:input_type -> mycel.registry.v1beta1.QueryParamsRequest - 2, // 16: mycel.registry.v1beta1.Query.TopLevelDomain:input_type -> mycel.registry.v1beta1.QueryGetTopLevelDomainRequest - 4, // 17: mycel.registry.v1beta1.Query.TopLevelDomainAll:input_type -> mycel.registry.v1beta1.QueryAllTopLevelDomainRequest - 6, // 18: mycel.registry.v1beta1.Query.SecondLevelDomain:input_type -> mycel.registry.v1beta1.QueryGetSecondLevelDomainRequest - 9, // 19: mycel.registry.v1beta1.Query.SecondLevelDomainAll:input_type -> mycel.registry.v1beta1.QueryAllSecondLevelDomainRequest - 11, // 20: mycel.registry.v1beta1.Query.DomainOwnership:input_type -> mycel.registry.v1beta1.QueryGetDomainOwnershipRequest - 13, // 21: mycel.registry.v1beta1.Query.DomainOwnershipAll:input_type -> mycel.registry.v1beta1.QueryAllDomainOwnershipRequest - 15, // 22: mycel.registry.v1beta1.Query.DomainRegistrationFee:input_type -> mycel.registry.v1beta1.QueryDomainRegistrationFeeRequest - 17, // 23: mycel.registry.v1beta1.Query.Role:input_type -> mycel.registry.v1beta1.QueryRoleRequest - 1, // 24: mycel.registry.v1beta1.Query.Params:output_type -> mycel.registry.v1beta1.QueryParamsResponse - 3, // 25: mycel.registry.v1beta1.Query.TopLevelDomain:output_type -> mycel.registry.v1beta1.QueryGetTopLevelDomainResponse - 5, // 26: mycel.registry.v1beta1.Query.TopLevelDomainAll:output_type -> mycel.registry.v1beta1.QueryAllTopLevelDomainResponse - 8, // 27: mycel.registry.v1beta1.Query.SecondLevelDomain:output_type -> mycel.registry.v1beta1.QueryGetSecondLevelDomainResponse - 10, // 28: mycel.registry.v1beta1.Query.SecondLevelDomainAll:output_type -> mycel.registry.v1beta1.QueryAllSecondLevelDomainResponse - 12, // 29: mycel.registry.v1beta1.Query.DomainOwnership:output_type -> mycel.registry.v1beta1.QueryGetDomainOwnershipResponse - 14, // 30: mycel.registry.v1beta1.Query.DomainOwnershipAll:output_type -> mycel.registry.v1beta1.QueryAllDomainOwnershipResponse - 16, // 31: mycel.registry.v1beta1.Query.DomainRegistrationFee:output_type -> mycel.registry.v1beta1.QueryDomainRegistrationFeeResponse - 18, // 32: mycel.registry.v1beta1.Query.Role:output_type -> mycel.registry.v1beta1.QueryRoleResponse - 24, // [24:33] is the sub-list for method output_type - 15, // [15:24] is the sub-list for method input_type - 15, // [15:15] is the sub-list for extension type_name - 15, // [15:15] is the sub-list for extension extendee - 0, // [0:15] is the sub-list for field type_name -} - -func init() { file_mycel_registry_v1beta1_query_proto_init() } -func file_mycel_registry_v1beta1_query_proto_init() { - if File_mycel_registry_v1beta1_query_proto != nil { + return file_mycel_registry_v1_query_proto_rawDescData +} + +var file_mycel_registry_v1_query_proto_msgTypes = make([]protoimpl.MessageInfo, 28) +var file_mycel_registry_v1_query_proto_goTypes = []interface{}{ + (*QueryParamsRequest)(nil), // 0: mycel.registry.v1.QueryParamsRequest + (*QueryParamsResponse)(nil), // 1: mycel.registry.v1.QueryParamsResponse + (*QueryGetTopLevelDomainRequest)(nil), // 2: mycel.registry.v1.QueryGetTopLevelDomainRequest + (*QueryGetTopLevelDomainResponse)(nil), // 3: mycel.registry.v1.QueryGetTopLevelDomainResponse + (*QueryAllTopLevelDomainRequest)(nil), // 4: mycel.registry.v1.QueryAllTopLevelDomainRequest + (*QueryAllTopLevelDomainResponse)(nil), // 5: mycel.registry.v1.QueryAllTopLevelDomainResponse + (*QueryGetSecondLevelDomainRequest)(nil), // 6: mycel.registry.v1.QueryGetSecondLevelDomainRequest + (*SecondLevelDomainResponse)(nil), // 7: mycel.registry.v1.SecondLevelDomainResponse + (*QueryGetSecondLevelDomainResponse)(nil), // 8: mycel.registry.v1.QueryGetSecondLevelDomainResponse + (*QueryAllSecondLevelDomainRequest)(nil), // 9: mycel.registry.v1.QueryAllSecondLevelDomainRequest + (*QueryAllSecondLevelDomainResponse)(nil), // 10: mycel.registry.v1.QueryAllSecondLevelDomainResponse + (*QueryGetDomainOwnershipRequest)(nil), // 11: mycel.registry.v1.QueryGetDomainOwnershipRequest + (*QueryGetDomainOwnershipResponse)(nil), // 12: mycel.registry.v1.QueryGetDomainOwnershipResponse + (*QueryAllDomainOwnershipRequest)(nil), // 13: mycel.registry.v1.QueryAllDomainOwnershipRequest + (*QueryAllDomainOwnershipResponse)(nil), // 14: mycel.registry.v1.QueryAllDomainOwnershipResponse + (*QueryDomainRegistrationFeeRequest)(nil), // 15: mycel.registry.v1.QueryDomainRegistrationFeeRequest + (*QueryDomainRegistrationFeeResponse)(nil), // 16: mycel.registry.v1.QueryDomainRegistrationFeeResponse + (*QueryRoleRequest)(nil), // 17: mycel.registry.v1.QueryRoleRequest + (*QueryRoleResponse)(nil), // 18: mycel.registry.v1.QueryRoleResponse + (*QueryWalletRecordRequest)(nil), // 19: mycel.registry.v1.QueryWalletRecordRequest + (*QueryWalletRecordResponse)(nil), // 20: mycel.registry.v1.QueryWalletRecordResponse + (*QueryDnsRecordRequest)(nil), // 21: mycel.registry.v1.QueryDnsRecordRequest + (*QueryDnsRecordResponse)(nil), // 22: mycel.registry.v1.QueryDnsRecordResponse + (*QueryAllRecordsRequest)(nil), // 23: mycel.registry.v1.QueryAllRecordsRequest + (*QueryAllRecordsResponse)(nil), // 24: mycel.registry.v1.QueryAllRecordsResponse + (*QueryTextRecordRequest)(nil), // 25: mycel.registry.v1.QueryTextRecordRequest + (*QueryTextRecordResponse)(nil), // 26: mycel.registry.v1.QueryTextRecordResponse + nil, // 27: mycel.registry.v1.QueryAllRecordsResponse.ValuesEntry + (*Params)(nil), // 28: mycel.registry.v1.Params + (*TopLevelDomain)(nil), // 29: mycel.registry.v1.TopLevelDomain + (*v1beta1.PageRequest)(nil), // 30: cosmos.base.query.v1beta1.PageRequest + (*v1beta1.PageResponse)(nil), // 31: cosmos.base.query.v1beta1.PageResponse + (*timestamppb.Timestamp)(nil), // 32: google.protobuf.Timestamp + (*DomainOwnership)(nil), // 33: mycel.registry.v1.DomainOwnership + (*v1beta11.Coin)(nil), // 34: cosmos.base.v1beta1.Coin + (*WalletRecord)(nil), // 35: mycel.registry.v1.WalletRecord + (*DnsRecord)(nil), // 36: mycel.registry.v1.DnsRecord + (*TextRecord)(nil), // 37: mycel.registry.v1.TextRecord + (*Record)(nil), // 38: mycel.registry.v1.Record +} +var file_mycel_registry_v1_query_proto_depIdxs = []int32{ + 28, // 0: mycel.registry.v1.QueryParamsResponse.params:type_name -> mycel.registry.v1.Params + 29, // 1: mycel.registry.v1.QueryGetTopLevelDomainResponse.top_level_domain:type_name -> mycel.registry.v1.TopLevelDomain + 30, // 2: mycel.registry.v1.QueryAllTopLevelDomainRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest + 29, // 3: mycel.registry.v1.QueryAllTopLevelDomainResponse.top_level_domain:type_name -> mycel.registry.v1.TopLevelDomain + 31, // 4: mycel.registry.v1.QueryAllTopLevelDomainResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse + 32, // 5: mycel.registry.v1.SecondLevelDomainResponse.expiration_date:type_name -> google.protobuf.Timestamp + 7, // 6: mycel.registry.v1.QueryGetSecondLevelDomainResponse.second_level_domain:type_name -> mycel.registry.v1.SecondLevelDomainResponse + 30, // 7: mycel.registry.v1.QueryAllSecondLevelDomainRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest + 7, // 8: mycel.registry.v1.QueryAllSecondLevelDomainResponse.second_level_domain:type_name -> mycel.registry.v1.SecondLevelDomainResponse + 31, // 9: mycel.registry.v1.QueryAllSecondLevelDomainResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse + 33, // 10: mycel.registry.v1.QueryGetDomainOwnershipResponse.domain_ownership:type_name -> mycel.registry.v1.DomainOwnership + 30, // 11: mycel.registry.v1.QueryAllDomainOwnershipRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest + 33, // 12: mycel.registry.v1.QueryAllDomainOwnershipResponse.domain_ownership:type_name -> mycel.registry.v1.DomainOwnership + 31, // 13: mycel.registry.v1.QueryAllDomainOwnershipResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse + 34, // 14: mycel.registry.v1.QueryDomainRegistrationFeeResponse.fee:type_name -> cosmos.base.v1beta1.Coin + 35, // 15: mycel.registry.v1.QueryWalletRecordResponse.value:type_name -> mycel.registry.v1.WalletRecord + 36, // 16: mycel.registry.v1.QueryDnsRecordResponse.value:type_name -> mycel.registry.v1.DnsRecord + 27, // 17: mycel.registry.v1.QueryAllRecordsResponse.values:type_name -> mycel.registry.v1.QueryAllRecordsResponse.ValuesEntry + 37, // 18: mycel.registry.v1.QueryTextRecordResponse.value:type_name -> mycel.registry.v1.TextRecord + 38, // 19: mycel.registry.v1.QueryAllRecordsResponse.ValuesEntry.value:type_name -> mycel.registry.v1.Record + 0, // 20: mycel.registry.v1.Query.Params:input_type -> mycel.registry.v1.QueryParamsRequest + 2, // 21: mycel.registry.v1.Query.TopLevelDomain:input_type -> mycel.registry.v1.QueryGetTopLevelDomainRequest + 4, // 22: mycel.registry.v1.Query.TopLevelDomainAll:input_type -> mycel.registry.v1.QueryAllTopLevelDomainRequest + 6, // 23: mycel.registry.v1.Query.SecondLevelDomain:input_type -> mycel.registry.v1.QueryGetSecondLevelDomainRequest + 9, // 24: mycel.registry.v1.Query.SecondLevelDomainAll:input_type -> mycel.registry.v1.QueryAllSecondLevelDomainRequest + 11, // 25: mycel.registry.v1.Query.DomainOwnership:input_type -> mycel.registry.v1.QueryGetDomainOwnershipRequest + 13, // 26: mycel.registry.v1.Query.DomainOwnershipAll:input_type -> mycel.registry.v1.QueryAllDomainOwnershipRequest + 15, // 27: mycel.registry.v1.Query.DomainRegistrationFee:input_type -> mycel.registry.v1.QueryDomainRegistrationFeeRequest + 17, // 28: mycel.registry.v1.Query.Role:input_type -> mycel.registry.v1.QueryRoleRequest + 19, // 29: mycel.registry.v1.Query.WalletRecord:input_type -> mycel.registry.v1.QueryWalletRecordRequest + 21, // 30: mycel.registry.v1.Query.DnsRecord:input_type -> mycel.registry.v1.QueryDnsRecordRequest + 23, // 31: mycel.registry.v1.Query.AllRecords:input_type -> mycel.registry.v1.QueryAllRecordsRequest + 25, // 32: mycel.registry.v1.Query.TextRecord:input_type -> mycel.registry.v1.QueryTextRecordRequest + 1, // 33: mycel.registry.v1.Query.Params:output_type -> mycel.registry.v1.QueryParamsResponse + 3, // 34: mycel.registry.v1.Query.TopLevelDomain:output_type -> mycel.registry.v1.QueryGetTopLevelDomainResponse + 5, // 35: mycel.registry.v1.Query.TopLevelDomainAll:output_type -> mycel.registry.v1.QueryAllTopLevelDomainResponse + 8, // 36: mycel.registry.v1.Query.SecondLevelDomain:output_type -> mycel.registry.v1.QueryGetSecondLevelDomainResponse + 10, // 37: mycel.registry.v1.Query.SecondLevelDomainAll:output_type -> mycel.registry.v1.QueryAllSecondLevelDomainResponse + 12, // 38: mycel.registry.v1.Query.DomainOwnership:output_type -> mycel.registry.v1.QueryGetDomainOwnershipResponse + 14, // 39: mycel.registry.v1.Query.DomainOwnershipAll:output_type -> mycel.registry.v1.QueryAllDomainOwnershipResponse + 16, // 40: mycel.registry.v1.Query.DomainRegistrationFee:output_type -> mycel.registry.v1.QueryDomainRegistrationFeeResponse + 18, // 41: mycel.registry.v1.Query.Role:output_type -> mycel.registry.v1.QueryRoleResponse + 20, // 42: mycel.registry.v1.Query.WalletRecord:output_type -> mycel.registry.v1.QueryWalletRecordResponse + 22, // 43: mycel.registry.v1.Query.DnsRecord:output_type -> mycel.registry.v1.QueryDnsRecordResponse + 24, // 44: mycel.registry.v1.Query.AllRecords:output_type -> mycel.registry.v1.QueryAllRecordsResponse + 26, // 45: mycel.registry.v1.Query.TextRecord:output_type -> mycel.registry.v1.QueryTextRecordResponse + 33, // [33:46] is the sub-list for method output_type + 20, // [20:33] is the sub-list for method input_type + 20, // [20:20] is the sub-list for extension type_name + 20, // [20:20] is the sub-list for extension extendee + 0, // [0:20] is the sub-list for field type_name +} + +func init() { file_mycel_registry_v1_query_proto_init() } +func file_mycel_registry_v1_query_proto_init() { + if File_mycel_registry_v1_query_proto != nil { return } - file_mycel_registry_v1beta1_domain_ownership_proto_init() - file_mycel_registry_v1beta1_params_proto_init() - file_mycel_registry_v1beta1_top_level_domain_proto_init() + file_mycel_registry_v1_domain_ownership_proto_init() + file_mycel_registry_v1_params_proto_init() + file_mycel_registry_v1_top_level_domain_proto_init() + file_mycel_registry_v1_second_level_domain_proto_init() if !protoimpl.UnsafeEnabled { - file_mycel_registry_v1beta1_query_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_mycel_registry_v1_query_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*QueryParamsRequest); i { case 0: return &v.state @@ -10421,7 +14988,7 @@ func file_mycel_registry_v1beta1_query_proto_init() { return nil } } - file_mycel_registry_v1beta1_query_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_mycel_registry_v1_query_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*QueryParamsResponse); i { case 0: return &v.state @@ -10433,7 +15000,7 @@ func file_mycel_registry_v1beta1_query_proto_init() { return nil } } - file_mycel_registry_v1beta1_query_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + file_mycel_registry_v1_query_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*QueryGetTopLevelDomainRequest); i { case 0: return &v.state @@ -10445,7 +15012,7 @@ func file_mycel_registry_v1beta1_query_proto_init() { return nil } } - file_mycel_registry_v1beta1_query_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + file_mycel_registry_v1_query_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*QueryGetTopLevelDomainResponse); i { case 0: return &v.state @@ -10457,7 +15024,7 @@ func file_mycel_registry_v1beta1_query_proto_init() { return nil } } - file_mycel_registry_v1beta1_query_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + file_mycel_registry_v1_query_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*QueryAllTopLevelDomainRequest); i { case 0: return &v.state @@ -10469,7 +15036,7 @@ func file_mycel_registry_v1beta1_query_proto_init() { return nil } } - file_mycel_registry_v1beta1_query_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + file_mycel_registry_v1_query_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*QueryAllTopLevelDomainResponse); i { case 0: return &v.state @@ -10481,7 +15048,7 @@ func file_mycel_registry_v1beta1_query_proto_init() { return nil } } - file_mycel_registry_v1beta1_query_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + file_mycel_registry_v1_query_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*QueryGetSecondLevelDomainRequest); i { case 0: return &v.state @@ -10493,7 +15060,7 @@ func file_mycel_registry_v1beta1_query_proto_init() { return nil } } - file_mycel_registry_v1beta1_query_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + file_mycel_registry_v1_query_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*SecondLevelDomainResponse); i { case 0: return &v.state @@ -10505,7 +15072,7 @@ func file_mycel_registry_v1beta1_query_proto_init() { return nil } } - file_mycel_registry_v1beta1_query_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + file_mycel_registry_v1_query_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*QueryGetSecondLevelDomainResponse); i { case 0: return &v.state @@ -10517,7 +15084,7 @@ func file_mycel_registry_v1beta1_query_proto_init() { return nil } } - file_mycel_registry_v1beta1_query_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + file_mycel_registry_v1_query_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*QueryAllSecondLevelDomainRequest); i { case 0: return &v.state @@ -10529,7 +15096,7 @@ func file_mycel_registry_v1beta1_query_proto_init() { return nil } } - file_mycel_registry_v1beta1_query_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + file_mycel_registry_v1_query_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*QueryAllSecondLevelDomainResponse); i { case 0: return &v.state @@ -10541,7 +15108,7 @@ func file_mycel_registry_v1beta1_query_proto_init() { return nil } } - file_mycel_registry_v1beta1_query_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + file_mycel_registry_v1_query_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*QueryGetDomainOwnershipRequest); i { case 0: return &v.state @@ -10553,7 +15120,7 @@ func file_mycel_registry_v1beta1_query_proto_init() { return nil } } - file_mycel_registry_v1beta1_query_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + file_mycel_registry_v1_query_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*QueryGetDomainOwnershipResponse); i { case 0: return &v.state @@ -10565,7 +15132,7 @@ func file_mycel_registry_v1beta1_query_proto_init() { return nil } } - file_mycel_registry_v1beta1_query_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + file_mycel_registry_v1_query_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*QueryAllDomainOwnershipRequest); i { case 0: return &v.state @@ -10577,7 +15144,7 @@ func file_mycel_registry_v1beta1_query_proto_init() { return nil } } - file_mycel_registry_v1beta1_query_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + file_mycel_registry_v1_query_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*QueryAllDomainOwnershipResponse); i { case 0: return &v.state @@ -10589,7 +15156,7 @@ func file_mycel_registry_v1beta1_query_proto_init() { return nil } } - file_mycel_registry_v1beta1_query_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { + file_mycel_registry_v1_query_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*QueryDomainRegistrationFeeRequest); i { case 0: return &v.state @@ -10601,7 +15168,7 @@ func file_mycel_registry_v1beta1_query_proto_init() { return nil } } - file_mycel_registry_v1beta1_query_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { + file_mycel_registry_v1_query_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*QueryDomainRegistrationFeeResponse); i { case 0: return &v.state @@ -10613,7 +15180,7 @@ func file_mycel_registry_v1beta1_query_proto_init() { return nil } } - file_mycel_registry_v1beta1_query_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { + file_mycel_registry_v1_query_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*QueryRoleRequest); i { case 0: return &v.state @@ -10625,7 +15192,7 @@ func file_mycel_registry_v1beta1_query_proto_init() { return nil } } - file_mycel_registry_v1beta1_query_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { + file_mycel_registry_v1_query_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*QueryRoleResponse); i { case 0: return &v.state @@ -10637,23 +15204,119 @@ func file_mycel_registry_v1beta1_query_proto_init() { return nil } } + file_mycel_registry_v1_query_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryWalletRecordRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_mycel_registry_v1_query_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryWalletRecordResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_mycel_registry_v1_query_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryDnsRecordRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_mycel_registry_v1_query_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryDnsRecordResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_mycel_registry_v1_query_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryAllRecordsRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_mycel_registry_v1_query_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryAllRecordsResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_mycel_registry_v1_query_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryTextRecordRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_mycel_registry_v1_query_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryTextRecordResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_mycel_registry_v1beta1_query_proto_rawDesc, + RawDescriptor: file_mycel_registry_v1_query_proto_rawDesc, NumEnums: 0, - NumMessages: 19, + NumMessages: 28, NumExtensions: 0, NumServices: 1, }, - GoTypes: file_mycel_registry_v1beta1_query_proto_goTypes, - DependencyIndexes: file_mycel_registry_v1beta1_query_proto_depIdxs, - MessageInfos: file_mycel_registry_v1beta1_query_proto_msgTypes, + GoTypes: file_mycel_registry_v1_query_proto_goTypes, + DependencyIndexes: file_mycel_registry_v1_query_proto_depIdxs, + MessageInfos: file_mycel_registry_v1_query_proto_msgTypes, }.Build() - File_mycel_registry_v1beta1_query_proto = out.File - file_mycel_registry_v1beta1_query_proto_rawDesc = nil - file_mycel_registry_v1beta1_query_proto_goTypes = nil - file_mycel_registry_v1beta1_query_proto_depIdxs = nil + File_mycel_registry_v1_query_proto = out.File + file_mycel_registry_v1_query_proto_rawDesc = nil + file_mycel_registry_v1_query_proto_goTypes = nil + file_mycel_registry_v1_query_proto_depIdxs = nil } diff --git a/api/mycel/registry/v1beta1/query_grpc.pb.go b/api/mycel/registry/v1/query_grpc.pb.go similarity index 64% rename from api/mycel/registry/v1beta1/query_grpc.pb.go rename to api/mycel/registry/v1/query_grpc.pb.go index 403bce33..33195004 100644 --- a/api/mycel/registry/v1beta1/query_grpc.pb.go +++ b/api/mycel/registry/v1/query_grpc.pb.go @@ -1,6 +1,10 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. +// versions: +// - protoc-gen-go-grpc v1.3.0 +// - protoc (unknown) +// source: mycel/registry/v1/query.proto -package types +package registryv1 import ( context "context" @@ -14,6 +18,22 @@ import ( // Requires gRPC-Go v1.32.0 or later. const _ = grpc.SupportPackageIsVersion7 +const ( + Query_Params_FullMethodName = "/mycel.registry.v1.Query/Params" + Query_TopLevelDomain_FullMethodName = "/mycel.registry.v1.Query/TopLevelDomain" + Query_TopLevelDomainAll_FullMethodName = "/mycel.registry.v1.Query/TopLevelDomainAll" + Query_SecondLevelDomain_FullMethodName = "/mycel.registry.v1.Query/SecondLevelDomain" + Query_SecondLevelDomainAll_FullMethodName = "/mycel.registry.v1.Query/SecondLevelDomainAll" + Query_DomainOwnership_FullMethodName = "/mycel.registry.v1.Query/DomainOwnership" + Query_DomainOwnershipAll_FullMethodName = "/mycel.registry.v1.Query/DomainOwnershipAll" + Query_DomainRegistrationFee_FullMethodName = "/mycel.registry.v1.Query/DomainRegistrationFee" + Query_Role_FullMethodName = "/mycel.registry.v1.Query/Role" + Query_WalletRecord_FullMethodName = "/mycel.registry.v1.Query/WalletRecord" + Query_DnsRecord_FullMethodName = "/mycel.registry.v1.Query/DnsRecord" + Query_AllRecords_FullMethodName = "/mycel.registry.v1.Query/AllRecords" + Query_TextRecord_FullMethodName = "/mycel.registry.v1.Query/TextRecord" +) + // 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. @@ -33,6 +53,14 @@ type QueryClient interface { DomainRegistrationFee(ctx context.Context, in *QueryDomainRegistrationFeeRequest, opts ...grpc.CallOption) (*QueryDomainRegistrationFeeResponse, error) // Queries a list of Role items. Role(ctx context.Context, in *QueryRoleRequest, opts ...grpc.CallOption) (*QueryRoleResponse, error) + // Queries a list of QueryWalletRecord items. + WalletRecord(ctx context.Context, in *QueryWalletRecordRequest, opts ...grpc.CallOption) (*QueryWalletRecordResponse, error) + // Queries a list of DnsRecord items. + DnsRecord(ctx context.Context, in *QueryDnsRecordRequest, opts ...grpc.CallOption) (*QueryDnsRecordResponse, error) + // Queries a list of AllRecord items. + AllRecords(ctx context.Context, in *QueryAllRecordsRequest, opts ...grpc.CallOption) (*QueryAllRecordsResponse, error) + // Queries a list of TextRecord items. + TextRecord(ctx context.Context, in *QueryTextRecordRequest, opts ...grpc.CallOption) (*QueryTextRecordResponse, error) } type queryClient struct { @@ -45,7 +73,7 @@ func NewQueryClient(cc grpc.ClientConnInterface) QueryClient { func (c *queryClient) Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) { out := new(QueryParamsResponse) - err := c.cc.Invoke(ctx, "/mycel.registry.v1beta1.Query/Params", in, out, opts...) + err := c.cc.Invoke(ctx, Query_Params_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -54,7 +82,7 @@ func (c *queryClient) Params(ctx context.Context, in *QueryParamsRequest, opts . func (c *queryClient) TopLevelDomain(ctx context.Context, in *QueryGetTopLevelDomainRequest, opts ...grpc.CallOption) (*QueryGetTopLevelDomainResponse, error) { out := new(QueryGetTopLevelDomainResponse) - err := c.cc.Invoke(ctx, "/mycel.registry.v1beta1.Query/TopLevelDomain", in, out, opts...) + err := c.cc.Invoke(ctx, Query_TopLevelDomain_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -63,7 +91,7 @@ func (c *queryClient) TopLevelDomain(ctx context.Context, in *QueryGetTopLevelDo func (c *queryClient) TopLevelDomainAll(ctx context.Context, in *QueryAllTopLevelDomainRequest, opts ...grpc.CallOption) (*QueryAllTopLevelDomainResponse, error) { out := new(QueryAllTopLevelDomainResponse) - err := c.cc.Invoke(ctx, "/mycel.registry.v1beta1.Query/TopLevelDomainAll", in, out, opts...) + err := c.cc.Invoke(ctx, Query_TopLevelDomainAll_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -72,7 +100,7 @@ func (c *queryClient) TopLevelDomainAll(ctx context.Context, in *QueryAllTopLeve func (c *queryClient) SecondLevelDomain(ctx context.Context, in *QueryGetSecondLevelDomainRequest, opts ...grpc.CallOption) (*QueryGetSecondLevelDomainResponse, error) { out := new(QueryGetSecondLevelDomainResponse) - err := c.cc.Invoke(ctx, "/mycel.registry.v1beta1.Query/SecondLevelDomain", in, out, opts...) + err := c.cc.Invoke(ctx, Query_SecondLevelDomain_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -81,7 +109,7 @@ func (c *queryClient) SecondLevelDomain(ctx context.Context, in *QueryGetSecondL func (c *queryClient) SecondLevelDomainAll(ctx context.Context, in *QueryAllSecondLevelDomainRequest, opts ...grpc.CallOption) (*QueryAllSecondLevelDomainResponse, error) { out := new(QueryAllSecondLevelDomainResponse) - err := c.cc.Invoke(ctx, "/mycel.registry.v1beta1.Query/SecondLevelDomainAll", in, out, opts...) + err := c.cc.Invoke(ctx, Query_SecondLevelDomainAll_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -90,7 +118,7 @@ func (c *queryClient) SecondLevelDomainAll(ctx context.Context, in *QueryAllSeco func (c *queryClient) DomainOwnership(ctx context.Context, in *QueryGetDomainOwnershipRequest, opts ...grpc.CallOption) (*QueryGetDomainOwnershipResponse, error) { out := new(QueryGetDomainOwnershipResponse) - err := c.cc.Invoke(ctx, "/mycel.registry.v1beta1.Query/DomainOwnership", in, out, opts...) + err := c.cc.Invoke(ctx, Query_DomainOwnership_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -99,7 +127,7 @@ func (c *queryClient) DomainOwnership(ctx context.Context, in *QueryGetDomainOwn func (c *queryClient) DomainOwnershipAll(ctx context.Context, in *QueryAllDomainOwnershipRequest, opts ...grpc.CallOption) (*QueryAllDomainOwnershipResponse, error) { out := new(QueryAllDomainOwnershipResponse) - err := c.cc.Invoke(ctx, "/mycel.registry.v1beta1.Query/DomainOwnershipAll", in, out, opts...) + err := c.cc.Invoke(ctx, Query_DomainOwnershipAll_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -108,7 +136,7 @@ func (c *queryClient) DomainOwnershipAll(ctx context.Context, in *QueryAllDomain func (c *queryClient) DomainRegistrationFee(ctx context.Context, in *QueryDomainRegistrationFeeRequest, opts ...grpc.CallOption) (*QueryDomainRegistrationFeeResponse, error) { out := new(QueryDomainRegistrationFeeResponse) - err := c.cc.Invoke(ctx, "/mycel.registry.v1beta1.Query/DomainRegistrationFee", in, out, opts...) + err := c.cc.Invoke(ctx, Query_DomainRegistrationFee_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -117,7 +145,43 @@ func (c *queryClient) DomainRegistrationFee(ctx context.Context, in *QueryDomain func (c *queryClient) Role(ctx context.Context, in *QueryRoleRequest, opts ...grpc.CallOption) (*QueryRoleResponse, error) { out := new(QueryRoleResponse) - err := c.cc.Invoke(ctx, "/mycel.registry.v1beta1.Query/Role", in, out, opts...) + err := c.cc.Invoke(ctx, Query_Role_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) WalletRecord(ctx context.Context, in *QueryWalletRecordRequest, opts ...grpc.CallOption) (*QueryWalletRecordResponse, error) { + out := new(QueryWalletRecordResponse) + err := c.cc.Invoke(ctx, Query_WalletRecord_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) DnsRecord(ctx context.Context, in *QueryDnsRecordRequest, opts ...grpc.CallOption) (*QueryDnsRecordResponse, error) { + out := new(QueryDnsRecordResponse) + err := c.cc.Invoke(ctx, Query_DnsRecord_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) AllRecords(ctx context.Context, in *QueryAllRecordsRequest, opts ...grpc.CallOption) (*QueryAllRecordsResponse, error) { + out := new(QueryAllRecordsResponse) + err := c.cc.Invoke(ctx, Query_AllRecords_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) TextRecord(ctx context.Context, in *QueryTextRecordRequest, opts ...grpc.CallOption) (*QueryTextRecordResponse, error) { + out := new(QueryTextRecordResponse) + err := c.cc.Invoke(ctx, Query_TextRecord_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -143,6 +207,14 @@ type QueryServer interface { DomainRegistrationFee(context.Context, *QueryDomainRegistrationFeeRequest) (*QueryDomainRegistrationFeeResponse, error) // Queries a list of Role items. Role(context.Context, *QueryRoleRequest) (*QueryRoleResponse, error) + // Queries a list of QueryWalletRecord items. + WalletRecord(context.Context, *QueryWalletRecordRequest) (*QueryWalletRecordResponse, error) + // Queries a list of DnsRecord items. + DnsRecord(context.Context, *QueryDnsRecordRequest) (*QueryDnsRecordResponse, error) + // Queries a list of AllRecord items. + AllRecords(context.Context, *QueryAllRecordsRequest) (*QueryAllRecordsResponse, error) + // Queries a list of TextRecord items. + TextRecord(context.Context, *QueryTextRecordRequest) (*QueryTextRecordResponse, error) mustEmbedUnimplementedQueryServer() } @@ -177,6 +249,18 @@ func (UnimplementedQueryServer) DomainRegistrationFee(context.Context, *QueryDom func (UnimplementedQueryServer) Role(context.Context, *QueryRoleRequest) (*QueryRoleResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method Role not implemented") } +func (UnimplementedQueryServer) WalletRecord(context.Context, *QueryWalletRecordRequest) (*QueryWalletRecordResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method WalletRecord not implemented") +} +func (UnimplementedQueryServer) DnsRecord(context.Context, *QueryDnsRecordRequest) (*QueryDnsRecordResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method DnsRecord not implemented") +} +func (UnimplementedQueryServer) AllRecords(context.Context, *QueryAllRecordsRequest) (*QueryAllRecordsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method AllRecords not implemented") +} +func (UnimplementedQueryServer) TextRecord(context.Context, *QueryTextRecordRequest) (*QueryTextRecordResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method TextRecord not implemented") +} func (UnimplementedQueryServer) mustEmbedUnimplementedQueryServer() {} // UnsafeQueryServer may be embedded to opt out of forward compatibility for this service. @@ -200,7 +284,7 @@ func _Query_Params_Handler(srv interface{}, ctx context.Context, dec func(interf } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mycel.registry.v1beta1.Query/Params", + FullMethod: Query_Params_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).Params(ctx, req.(*QueryParamsRequest)) @@ -218,7 +302,7 @@ func _Query_TopLevelDomain_Handler(srv interface{}, ctx context.Context, dec fun } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mycel.registry.v1beta1.Query/TopLevelDomain", + FullMethod: Query_TopLevelDomain_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).TopLevelDomain(ctx, req.(*QueryGetTopLevelDomainRequest)) @@ -236,7 +320,7 @@ func _Query_TopLevelDomainAll_Handler(srv interface{}, ctx context.Context, dec } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mycel.registry.v1beta1.Query/TopLevelDomainAll", + FullMethod: Query_TopLevelDomainAll_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).TopLevelDomainAll(ctx, req.(*QueryAllTopLevelDomainRequest)) @@ -254,7 +338,7 @@ func _Query_SecondLevelDomain_Handler(srv interface{}, ctx context.Context, dec } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mycel.registry.v1beta1.Query/SecondLevelDomain", + FullMethod: Query_SecondLevelDomain_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).SecondLevelDomain(ctx, req.(*QueryGetSecondLevelDomainRequest)) @@ -272,7 +356,7 @@ func _Query_SecondLevelDomainAll_Handler(srv interface{}, ctx context.Context, d } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mycel.registry.v1beta1.Query/SecondLevelDomainAll", + FullMethod: Query_SecondLevelDomainAll_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).SecondLevelDomainAll(ctx, req.(*QueryAllSecondLevelDomainRequest)) @@ -290,7 +374,7 @@ func _Query_DomainOwnership_Handler(srv interface{}, ctx context.Context, dec fu } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mycel.registry.v1beta1.Query/DomainOwnership", + FullMethod: Query_DomainOwnership_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).DomainOwnership(ctx, req.(*QueryGetDomainOwnershipRequest)) @@ -308,7 +392,7 @@ func _Query_DomainOwnershipAll_Handler(srv interface{}, ctx context.Context, dec } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mycel.registry.v1beta1.Query/DomainOwnershipAll", + FullMethod: Query_DomainOwnershipAll_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).DomainOwnershipAll(ctx, req.(*QueryAllDomainOwnershipRequest)) @@ -326,7 +410,7 @@ func _Query_DomainRegistrationFee_Handler(srv interface{}, ctx context.Context, } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mycel.registry.v1beta1.Query/DomainRegistrationFee", + FullMethod: Query_DomainRegistrationFee_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).DomainRegistrationFee(ctx, req.(*QueryDomainRegistrationFeeRequest)) @@ -344,7 +428,7 @@ func _Query_Role_Handler(srv interface{}, ctx context.Context, dec func(interfac } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mycel.registry.v1beta1.Query/Role", + FullMethod: Query_Role_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).Role(ctx, req.(*QueryRoleRequest)) @@ -352,11 +436,83 @@ func _Query_Role_Handler(srv interface{}, ctx context.Context, dec func(interfac return interceptor(ctx, in, info, handler) } +func _Query_WalletRecord_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryWalletRecordRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).WalletRecord(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Query_WalletRecord_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).WalletRecord(ctx, req.(*QueryWalletRecordRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_DnsRecord_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryDnsRecordRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).DnsRecord(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Query_DnsRecord_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).DnsRecord(ctx, req.(*QueryDnsRecordRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_AllRecords_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryAllRecordsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).AllRecords(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Query_AllRecords_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).AllRecords(ctx, req.(*QueryAllRecordsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_TextRecord_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryTextRecordRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).TextRecord(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Query_TextRecord_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).TextRecord(ctx, req.(*QueryTextRecordRequest)) + } + return interceptor(ctx, in, info, handler) +} + // Query_ServiceDesc is the grpc.ServiceDesc for Query service. // It's only intended for direct use with grpc.RegisterService, // and not to be introspected or modified (even as a copy) var Query_ServiceDesc = grpc.ServiceDesc{ - ServiceName: "mycel.registry.v1beta1.Query", + ServiceName: "mycel.registry.v1.Query", HandlerType: (*QueryServer)(nil), Methods: []grpc.MethodDesc{ { @@ -395,7 +551,23 @@ var Query_ServiceDesc = grpc.ServiceDesc{ MethodName: "Role", Handler: _Query_Role_Handler, }, + { + MethodName: "WalletRecord", + Handler: _Query_WalletRecord_Handler, + }, + { + MethodName: "DnsRecord", + Handler: _Query_DnsRecord_Handler, + }, + { + MethodName: "AllRecords", + Handler: _Query_AllRecords_Handler, + }, + { + MethodName: "TextRecord", + Handler: _Query_TextRecord_Handler, + }, }, Streams: []grpc.StreamDesc{}, - Metadata: "mycel/registry/v1beta1/query.proto", + Metadata: "mycel/registry/v1/query.proto", } diff --git a/api/mycel/registry/v1beta1/second_level_domain.pulsar.go b/api/mycel/registry/v1/second_level_domain.pulsar.go similarity index 81% rename from api/mycel/registry/v1beta1/second_level_domain.pulsar.go rename to api/mycel/registry/v1/second_level_domain.pulsar.go index 42aa7ab7..219ae18c 100644 --- a/api/mycel/registry/v1beta1/second_level_domain.pulsar.go +++ b/api/mycel/registry/v1/second_level_domain.pulsar.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-go-pulsar. DO NOT EDIT. -package types +package registryv1 import ( fmt "fmt" @@ -21,8 +21,8 @@ var ( ) func init() { - file_mycel_registry_v1beta1_second_level_domain_proto_init() - md_DnsRecord = File_mycel_registry_v1beta1_second_level_domain_proto.Messages().ByName("DnsRecord") + file_mycel_registry_v1_second_level_domain_proto_init() + md_DnsRecord = File_mycel_registry_v1_second_level_domain_proto.Messages().ByName("DnsRecord") fd_DnsRecord_dns_record_type = md_DnsRecord.Fields().ByName("dns_record_type") fd_DnsRecord_value = md_DnsRecord.Fields().ByName("value") } @@ -36,7 +36,7 @@ func (x *DnsRecord) ProtoReflect() protoreflect.Message { } func (x *DnsRecord) slowProtoReflect() protoreflect.Message { - mi := &file_mycel_registry_v1beta1_second_level_domain_proto_msgTypes[0] + mi := &file_mycel_registry_v1_second_level_domain_proto_msgTypes[0] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -119,15 +119,15 @@ func (x *fastReflection_DnsRecord) Range(f func(protoreflect.FieldDescriptor, pr // a repeated field is populated if it is non-empty. func (x *fastReflection_DnsRecord) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "mycel.registry.v1beta1.DnsRecord.dns_record_type": + case "mycel.registry.v1.DnsRecord.dns_record_type": return x.DnsRecordType != 0 - case "mycel.registry.v1beta1.DnsRecord.value": + case "mycel.registry.v1.DnsRecord.value": return x.Value != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.DnsRecord")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.DnsRecord")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.DnsRecord does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.DnsRecord does not contain field %s", fd.FullName())) } } @@ -139,15 +139,15 @@ func (x *fastReflection_DnsRecord) Has(fd protoreflect.FieldDescriptor) bool { // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_DnsRecord) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "mycel.registry.v1beta1.DnsRecord.dns_record_type": + case "mycel.registry.v1.DnsRecord.dns_record_type": x.DnsRecordType = 0 - case "mycel.registry.v1beta1.DnsRecord.value": + case "mycel.registry.v1.DnsRecord.value": x.Value = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.DnsRecord")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.DnsRecord")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.DnsRecord does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.DnsRecord does not contain field %s", fd.FullName())) } } @@ -159,17 +159,17 @@ func (x *fastReflection_DnsRecord) Clear(fd protoreflect.FieldDescriptor) { // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_DnsRecord) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "mycel.registry.v1beta1.DnsRecord.dns_record_type": + case "mycel.registry.v1.DnsRecord.dns_record_type": value := x.DnsRecordType return protoreflect.ValueOfEnum((protoreflect.EnumNumber)(value)) - case "mycel.registry.v1beta1.DnsRecord.value": + case "mycel.registry.v1.DnsRecord.value": value := x.Value return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.DnsRecord")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.DnsRecord")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.DnsRecord does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.DnsRecord does not contain field %s", descriptor.FullName())) } } @@ -185,15 +185,15 @@ func (x *fastReflection_DnsRecord) Get(descriptor protoreflect.FieldDescriptor) // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_DnsRecord) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "mycel.registry.v1beta1.DnsRecord.dns_record_type": + case "mycel.registry.v1.DnsRecord.dns_record_type": x.DnsRecordType = (DnsRecordType)(value.Enum()) - case "mycel.registry.v1beta1.DnsRecord.value": + case "mycel.registry.v1.DnsRecord.value": x.Value = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.DnsRecord")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.DnsRecord")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.DnsRecord does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.DnsRecord does not contain field %s", fd.FullName())) } } @@ -209,15 +209,15 @@ func (x *fastReflection_DnsRecord) Set(fd protoreflect.FieldDescriptor, value pr // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_DnsRecord) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "mycel.registry.v1beta1.DnsRecord.dns_record_type": - panic(fmt.Errorf("field dns_record_type of message mycel.registry.v1beta1.DnsRecord is not mutable")) - case "mycel.registry.v1beta1.DnsRecord.value": - panic(fmt.Errorf("field value of message mycel.registry.v1beta1.DnsRecord is not mutable")) + case "mycel.registry.v1.DnsRecord.dns_record_type": + panic(fmt.Errorf("field dns_record_type of message mycel.registry.v1.DnsRecord is not mutable")) + case "mycel.registry.v1.DnsRecord.value": + panic(fmt.Errorf("field value of message mycel.registry.v1.DnsRecord is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.DnsRecord")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.DnsRecord")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.DnsRecord does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.DnsRecord does not contain field %s", fd.FullName())) } } @@ -226,15 +226,15 @@ func (x *fastReflection_DnsRecord) Mutable(fd protoreflect.FieldDescriptor) prot // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_DnsRecord) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "mycel.registry.v1beta1.DnsRecord.dns_record_type": + case "mycel.registry.v1.DnsRecord.dns_record_type": return protoreflect.ValueOfEnum(0) - case "mycel.registry.v1beta1.DnsRecord.value": + case "mycel.registry.v1.DnsRecord.value": return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.DnsRecord")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.DnsRecord")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.DnsRecord does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.DnsRecord does not contain field %s", fd.FullName())) } } @@ -244,7 +244,7 @@ func (x *fastReflection_DnsRecord) NewField(fd protoreflect.FieldDescriptor) pro func (x *fastReflection_DnsRecord) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in mycel.registry.v1beta1.DnsRecord", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in mycel.registry.v1.DnsRecord", d.FullName())) } panic("unreachable") } @@ -489,8 +489,8 @@ var ( ) func init() { - file_mycel_registry_v1beta1_second_level_domain_proto_init() - md_WalletRecord = File_mycel_registry_v1beta1_second_level_domain_proto.Messages().ByName("WalletRecord") + file_mycel_registry_v1_second_level_domain_proto_init() + md_WalletRecord = File_mycel_registry_v1_second_level_domain_proto.Messages().ByName("WalletRecord") fd_WalletRecord_wallet_record_type = md_WalletRecord.Fields().ByName("wallet_record_type") fd_WalletRecord_value = md_WalletRecord.Fields().ByName("value") } @@ -504,7 +504,7 @@ func (x *WalletRecord) ProtoReflect() protoreflect.Message { } func (x *WalletRecord) slowProtoReflect() protoreflect.Message { - mi := &file_mycel_registry_v1beta1_second_level_domain_proto_msgTypes[1] + mi := &file_mycel_registry_v1_second_level_domain_proto_msgTypes[1] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -587,15 +587,15 @@ func (x *fastReflection_WalletRecord) Range(f func(protoreflect.FieldDescriptor, // a repeated field is populated if it is non-empty. func (x *fastReflection_WalletRecord) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "mycel.registry.v1beta1.WalletRecord.wallet_record_type": + case "mycel.registry.v1.WalletRecord.wallet_record_type": return x.WalletRecordType != 0 - case "mycel.registry.v1beta1.WalletRecord.value": + case "mycel.registry.v1.WalletRecord.value": return x.Value != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.WalletRecord")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.WalletRecord")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.WalletRecord does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.WalletRecord does not contain field %s", fd.FullName())) } } @@ -607,15 +607,15 @@ func (x *fastReflection_WalletRecord) Has(fd protoreflect.FieldDescriptor) bool // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_WalletRecord) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "mycel.registry.v1beta1.WalletRecord.wallet_record_type": + case "mycel.registry.v1.WalletRecord.wallet_record_type": x.WalletRecordType = 0 - case "mycel.registry.v1beta1.WalletRecord.value": + case "mycel.registry.v1.WalletRecord.value": x.Value = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.WalletRecord")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.WalletRecord")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.WalletRecord does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.WalletRecord does not contain field %s", fd.FullName())) } } @@ -627,17 +627,17 @@ func (x *fastReflection_WalletRecord) Clear(fd protoreflect.FieldDescriptor) { // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_WalletRecord) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "mycel.registry.v1beta1.WalletRecord.wallet_record_type": + case "mycel.registry.v1.WalletRecord.wallet_record_type": value := x.WalletRecordType return protoreflect.ValueOfEnum((protoreflect.EnumNumber)(value)) - case "mycel.registry.v1beta1.WalletRecord.value": + case "mycel.registry.v1.WalletRecord.value": value := x.Value return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.WalletRecord")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.WalletRecord")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.WalletRecord does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.WalletRecord does not contain field %s", descriptor.FullName())) } } @@ -653,15 +653,15 @@ func (x *fastReflection_WalletRecord) Get(descriptor protoreflect.FieldDescripto // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_WalletRecord) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "mycel.registry.v1beta1.WalletRecord.wallet_record_type": + case "mycel.registry.v1.WalletRecord.wallet_record_type": x.WalletRecordType = (NetworkName)(value.Enum()) - case "mycel.registry.v1beta1.WalletRecord.value": + case "mycel.registry.v1.WalletRecord.value": x.Value = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.WalletRecord")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.WalletRecord")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.WalletRecord does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.WalletRecord does not contain field %s", fd.FullName())) } } @@ -677,15 +677,15 @@ func (x *fastReflection_WalletRecord) Set(fd protoreflect.FieldDescriptor, value // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_WalletRecord) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "mycel.registry.v1beta1.WalletRecord.wallet_record_type": - panic(fmt.Errorf("field wallet_record_type of message mycel.registry.v1beta1.WalletRecord is not mutable")) - case "mycel.registry.v1beta1.WalletRecord.value": - panic(fmt.Errorf("field value of message mycel.registry.v1beta1.WalletRecord is not mutable")) + case "mycel.registry.v1.WalletRecord.wallet_record_type": + panic(fmt.Errorf("field wallet_record_type of message mycel.registry.v1.WalletRecord is not mutable")) + case "mycel.registry.v1.WalletRecord.value": + panic(fmt.Errorf("field value of message mycel.registry.v1.WalletRecord is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.WalletRecord")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.WalletRecord")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.WalletRecord does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.WalletRecord does not contain field %s", fd.FullName())) } } @@ -694,15 +694,15 @@ func (x *fastReflection_WalletRecord) Mutable(fd protoreflect.FieldDescriptor) p // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_WalletRecord) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "mycel.registry.v1beta1.WalletRecord.wallet_record_type": + case "mycel.registry.v1.WalletRecord.wallet_record_type": return protoreflect.ValueOfEnum(0) - case "mycel.registry.v1beta1.WalletRecord.value": + case "mycel.registry.v1.WalletRecord.value": return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.WalletRecord")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.WalletRecord")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.WalletRecord does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.WalletRecord does not contain field %s", fd.FullName())) } } @@ -712,7 +712,7 @@ func (x *fastReflection_WalletRecord) NewField(fd protoreflect.FieldDescriptor) func (x *fastReflection_WalletRecord) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in mycel.registry.v1beta1.WalletRecord", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in mycel.registry.v1.WalletRecord", d.FullName())) } panic("unreachable") } @@ -957,8 +957,8 @@ var ( ) func init() { - file_mycel_registry_v1beta1_second_level_domain_proto_init() - md_TextRecord = File_mycel_registry_v1beta1_second_level_domain_proto.Messages().ByName("TextRecord") + file_mycel_registry_v1_second_level_domain_proto_init() + md_TextRecord = File_mycel_registry_v1_second_level_domain_proto.Messages().ByName("TextRecord") fd_TextRecord_key = md_TextRecord.Fields().ByName("key") fd_TextRecord_value = md_TextRecord.Fields().ByName("value") } @@ -972,7 +972,7 @@ func (x *TextRecord) ProtoReflect() protoreflect.Message { } func (x *TextRecord) slowProtoReflect() protoreflect.Message { - mi := &file_mycel_registry_v1beta1_second_level_domain_proto_msgTypes[2] + mi := &file_mycel_registry_v1_second_level_domain_proto_msgTypes[2] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1055,15 +1055,15 @@ func (x *fastReflection_TextRecord) Range(f func(protoreflect.FieldDescriptor, p // a repeated field is populated if it is non-empty. func (x *fastReflection_TextRecord) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "mycel.registry.v1beta1.TextRecord.key": + case "mycel.registry.v1.TextRecord.key": return x.Key != "" - case "mycel.registry.v1beta1.TextRecord.value": + case "mycel.registry.v1.TextRecord.value": return x.Value != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.TextRecord")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.TextRecord")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.TextRecord does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.TextRecord does not contain field %s", fd.FullName())) } } @@ -1075,15 +1075,15 @@ func (x *fastReflection_TextRecord) Has(fd protoreflect.FieldDescriptor) bool { // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_TextRecord) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "mycel.registry.v1beta1.TextRecord.key": + case "mycel.registry.v1.TextRecord.key": x.Key = "" - case "mycel.registry.v1beta1.TextRecord.value": + case "mycel.registry.v1.TextRecord.value": x.Value = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.TextRecord")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.TextRecord")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.TextRecord does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.TextRecord does not contain field %s", fd.FullName())) } } @@ -1095,17 +1095,17 @@ func (x *fastReflection_TextRecord) Clear(fd protoreflect.FieldDescriptor) { // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_TextRecord) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "mycel.registry.v1beta1.TextRecord.key": + case "mycel.registry.v1.TextRecord.key": value := x.Key return protoreflect.ValueOfString(value) - case "mycel.registry.v1beta1.TextRecord.value": + case "mycel.registry.v1.TextRecord.value": value := x.Value return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.TextRecord")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.TextRecord")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.TextRecord does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.TextRecord does not contain field %s", descriptor.FullName())) } } @@ -1121,15 +1121,15 @@ func (x *fastReflection_TextRecord) Get(descriptor protoreflect.FieldDescriptor) // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_TextRecord) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "mycel.registry.v1beta1.TextRecord.key": + case "mycel.registry.v1.TextRecord.key": x.Key = value.Interface().(string) - case "mycel.registry.v1beta1.TextRecord.value": + case "mycel.registry.v1.TextRecord.value": x.Value = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.TextRecord")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.TextRecord")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.TextRecord does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.TextRecord does not contain field %s", fd.FullName())) } } @@ -1145,15 +1145,15 @@ func (x *fastReflection_TextRecord) Set(fd protoreflect.FieldDescriptor, value p // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_TextRecord) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "mycel.registry.v1beta1.TextRecord.key": - panic(fmt.Errorf("field key of message mycel.registry.v1beta1.TextRecord is not mutable")) - case "mycel.registry.v1beta1.TextRecord.value": - panic(fmt.Errorf("field value of message mycel.registry.v1beta1.TextRecord is not mutable")) + case "mycel.registry.v1.TextRecord.key": + panic(fmt.Errorf("field key of message mycel.registry.v1.TextRecord is not mutable")) + case "mycel.registry.v1.TextRecord.value": + panic(fmt.Errorf("field value of message mycel.registry.v1.TextRecord is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.TextRecord")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.TextRecord")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.TextRecord does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.TextRecord does not contain field %s", fd.FullName())) } } @@ -1162,15 +1162,15 @@ func (x *fastReflection_TextRecord) Mutable(fd protoreflect.FieldDescriptor) pro // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_TextRecord) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "mycel.registry.v1beta1.TextRecord.key": + case "mycel.registry.v1.TextRecord.key": return protoreflect.ValueOfString("") - case "mycel.registry.v1beta1.TextRecord.value": + case "mycel.registry.v1.TextRecord.value": return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.TextRecord")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.TextRecord")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.TextRecord does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.TextRecord does not contain field %s", fd.FullName())) } } @@ -1180,7 +1180,7 @@ func (x *fastReflection_TextRecord) NewField(fd protoreflect.FieldDescriptor) pr func (x *fastReflection_TextRecord) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in mycel.registry.v1beta1.TextRecord", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in mycel.registry.v1.TextRecord", d.FullName())) } panic("unreachable") } @@ -1442,8 +1442,8 @@ var ( ) func init() { - file_mycel_registry_v1beta1_second_level_domain_proto_init() - md_Record = File_mycel_registry_v1beta1_second_level_domain_proto.Messages().ByName("Record") + file_mycel_registry_v1_second_level_domain_proto_init() + md_Record = File_mycel_registry_v1_second_level_domain_proto.Messages().ByName("Record") fd_Record_dns_record = md_Record.Fields().ByName("dns_record") fd_Record_wallet_record = md_Record.Fields().ByName("wallet_record") fd_Record_text_record = md_Record.Fields().ByName("text_record") @@ -1458,7 +1458,7 @@ func (x *Record) ProtoReflect() protoreflect.Message { } func (x *Record) slowProtoReflect() protoreflect.Message { - mi := &file_mycel_registry_v1beta1_second_level_domain_proto_msgTypes[3] + mi := &file_mycel_registry_v1_second_level_domain_proto_msgTypes[3] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1551,7 +1551,7 @@ func (x *fastReflection_Record) Range(f func(protoreflect.FieldDescriptor, proto // a repeated field is populated if it is non-empty. func (x *fastReflection_Record) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "mycel.registry.v1beta1.Record.dns_record": + case "mycel.registry.v1.Record.dns_record": if x.Record == nil { return false } else if _, ok := x.Record.(*Record_DnsRecord); ok { @@ -1559,7 +1559,7 @@ func (x *fastReflection_Record) Has(fd protoreflect.FieldDescriptor) bool { } else { return false } - case "mycel.registry.v1beta1.Record.wallet_record": + case "mycel.registry.v1.Record.wallet_record": if x.Record == nil { return false } else if _, ok := x.Record.(*Record_WalletRecord); ok { @@ -1567,7 +1567,7 @@ func (x *fastReflection_Record) Has(fd protoreflect.FieldDescriptor) bool { } else { return false } - case "mycel.registry.v1beta1.Record.text_record": + case "mycel.registry.v1.Record.text_record": if x.Record == nil { return false } else if _, ok := x.Record.(*Record_TextRecord); ok { @@ -1577,9 +1577,9 @@ func (x *fastReflection_Record) Has(fd protoreflect.FieldDescriptor) bool { } default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.Record")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.Record")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.Record does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.Record does not contain field %s", fd.FullName())) } } @@ -1591,17 +1591,17 @@ func (x *fastReflection_Record) Has(fd protoreflect.FieldDescriptor) bool { // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_Record) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "mycel.registry.v1beta1.Record.dns_record": + case "mycel.registry.v1.Record.dns_record": x.Record = nil - case "mycel.registry.v1beta1.Record.wallet_record": + case "mycel.registry.v1.Record.wallet_record": x.Record = nil - case "mycel.registry.v1beta1.Record.text_record": + case "mycel.registry.v1.Record.text_record": x.Record = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.Record")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.Record")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.Record does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.Record does not contain field %s", fd.FullName())) } } @@ -1613,7 +1613,7 @@ func (x *fastReflection_Record) Clear(fd protoreflect.FieldDescriptor) { // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_Record) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "mycel.registry.v1beta1.Record.dns_record": + case "mycel.registry.v1.Record.dns_record": if x.Record == nil { return protoreflect.ValueOfMessage((*DnsRecord)(nil).ProtoReflect()) } else if v, ok := x.Record.(*Record_DnsRecord); ok { @@ -1621,7 +1621,7 @@ func (x *fastReflection_Record) Get(descriptor protoreflect.FieldDescriptor) pro } else { return protoreflect.ValueOfMessage((*DnsRecord)(nil).ProtoReflect()) } - case "mycel.registry.v1beta1.Record.wallet_record": + case "mycel.registry.v1.Record.wallet_record": if x.Record == nil { return protoreflect.ValueOfMessage((*WalletRecord)(nil).ProtoReflect()) } else if v, ok := x.Record.(*Record_WalletRecord); ok { @@ -1629,7 +1629,7 @@ func (x *fastReflection_Record) Get(descriptor protoreflect.FieldDescriptor) pro } else { return protoreflect.ValueOfMessage((*WalletRecord)(nil).ProtoReflect()) } - case "mycel.registry.v1beta1.Record.text_record": + case "mycel.registry.v1.Record.text_record": if x.Record == nil { return protoreflect.ValueOfMessage((*TextRecord)(nil).ProtoReflect()) } else if v, ok := x.Record.(*Record_TextRecord); ok { @@ -1639,9 +1639,9 @@ func (x *fastReflection_Record) Get(descriptor protoreflect.FieldDescriptor) pro } default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.Record")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.Record")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.Record does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.Record does not contain field %s", descriptor.FullName())) } } @@ -1657,20 +1657,20 @@ func (x *fastReflection_Record) Get(descriptor protoreflect.FieldDescriptor) pro // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_Record) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "mycel.registry.v1beta1.Record.dns_record": + case "mycel.registry.v1.Record.dns_record": cv := value.Message().Interface().(*DnsRecord) x.Record = &Record_DnsRecord{DnsRecord: cv} - case "mycel.registry.v1beta1.Record.wallet_record": + case "mycel.registry.v1.Record.wallet_record": cv := value.Message().Interface().(*WalletRecord) x.Record = &Record_WalletRecord{WalletRecord: cv} - case "mycel.registry.v1beta1.Record.text_record": + case "mycel.registry.v1.Record.text_record": cv := value.Message().Interface().(*TextRecord) x.Record = &Record_TextRecord{TextRecord: cv} default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.Record")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.Record")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.Record does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.Record does not contain field %s", fd.FullName())) } } @@ -1686,7 +1686,7 @@ func (x *fastReflection_Record) Set(fd protoreflect.FieldDescriptor, value proto // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_Record) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "mycel.registry.v1beta1.Record.dns_record": + case "mycel.registry.v1.Record.dns_record": if x.Record == nil { value := &DnsRecord{} oneofValue := &Record_DnsRecord{DnsRecord: value} @@ -1702,7 +1702,7 @@ func (x *fastReflection_Record) Mutable(fd protoreflect.FieldDescriptor) protore x.Record = oneofValue return protoreflect.ValueOfMessage(value.ProtoReflect()) } - case "mycel.registry.v1beta1.Record.wallet_record": + case "mycel.registry.v1.Record.wallet_record": if x.Record == nil { value := &WalletRecord{} oneofValue := &Record_WalletRecord{WalletRecord: value} @@ -1718,7 +1718,7 @@ func (x *fastReflection_Record) Mutable(fd protoreflect.FieldDescriptor) protore x.Record = oneofValue return protoreflect.ValueOfMessage(value.ProtoReflect()) } - case "mycel.registry.v1beta1.Record.text_record": + case "mycel.registry.v1.Record.text_record": if x.Record == nil { value := &TextRecord{} oneofValue := &Record_TextRecord{TextRecord: value} @@ -1736,9 +1736,9 @@ func (x *fastReflection_Record) Mutable(fd protoreflect.FieldDescriptor) protore } default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.Record")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.Record")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.Record does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.Record does not contain field %s", fd.FullName())) } } @@ -1747,20 +1747,20 @@ func (x *fastReflection_Record) Mutable(fd protoreflect.FieldDescriptor) protore // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_Record) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "mycel.registry.v1beta1.Record.dns_record": + case "mycel.registry.v1.Record.dns_record": value := &DnsRecord{} return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "mycel.registry.v1beta1.Record.wallet_record": + case "mycel.registry.v1.Record.wallet_record": value := &WalletRecord{} return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "mycel.registry.v1beta1.Record.text_record": + case "mycel.registry.v1.Record.text_record": value := &TextRecord{} return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.Record")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.Record")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.Record does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.Record does not contain field %s", fd.FullName())) } } @@ -1769,7 +1769,7 @@ func (x *fastReflection_Record) NewField(fd protoreflect.FieldDescriptor) protor // It panics if the oneof descriptor does not belong to this message. func (x *fastReflection_Record) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { - case "mycel.registry.v1beta1.Record.record": + case "mycel.registry.v1.Record.record": if x.Record == nil { return nil } @@ -1782,7 +1782,7 @@ func (x *fastReflection_Record) WhichOneof(d protoreflect.OneofDescriptor) proto return x.Descriptor().Fields().ByName("text_record") } default: - panic(fmt.Errorf("%s is not a oneof field in mycel.registry.v1beta1.Record", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in mycel.registry.v1.Record", d.FullName())) } panic("unreachable") } @@ -2229,8 +2229,8 @@ var ( ) func init() { - file_mycel_registry_v1beta1_second_level_domain_proto_init() - md_SecondLevelDomain = File_mycel_registry_v1beta1_second_level_domain_proto.Messages().ByName("SecondLevelDomain") + file_mycel_registry_v1_second_level_domain_proto_init() + md_SecondLevelDomain = File_mycel_registry_v1_second_level_domain_proto.Messages().ByName("SecondLevelDomain") fd_SecondLevelDomain_name = md_SecondLevelDomain.Fields().ByName("name") fd_SecondLevelDomain_parent = md_SecondLevelDomain.Fields().ByName("parent") fd_SecondLevelDomain_owner = md_SecondLevelDomain.Fields().ByName("owner") @@ -2248,7 +2248,7 @@ func (x *SecondLevelDomain) ProtoReflect() protoreflect.Message { } func (x *SecondLevelDomain) slowProtoReflect() protoreflect.Message { - mi := &file_mycel_registry_v1beta1_second_level_domain_proto_msgTypes[4] + mi := &file_mycel_registry_v1_second_level_domain_proto_msgTypes[4] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2355,23 +2355,23 @@ func (x *fastReflection_SecondLevelDomain) Range(f func(protoreflect.FieldDescri // a repeated field is populated if it is non-empty. func (x *fastReflection_SecondLevelDomain) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "mycel.registry.v1beta1.SecondLevelDomain.name": + case "mycel.registry.v1.SecondLevelDomain.name": return x.Name != "" - case "mycel.registry.v1beta1.SecondLevelDomain.parent": + case "mycel.registry.v1.SecondLevelDomain.parent": return x.Parent != "" - case "mycel.registry.v1beta1.SecondLevelDomain.owner": + case "mycel.registry.v1.SecondLevelDomain.owner": return x.Owner != "" - case "mycel.registry.v1beta1.SecondLevelDomain.expiration_date": + case "mycel.registry.v1.SecondLevelDomain.expiration_date": return x.ExpirationDate != nil - case "mycel.registry.v1beta1.SecondLevelDomain.records": + case "mycel.registry.v1.SecondLevelDomain.records": return len(x.Records) != 0 - case "mycel.registry.v1beta1.SecondLevelDomain.access_control": + case "mycel.registry.v1.SecondLevelDomain.access_control": return len(x.AccessControl) != 0 default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.SecondLevelDomain")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.SecondLevelDomain")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.SecondLevelDomain does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.SecondLevelDomain does not contain field %s", fd.FullName())) } } @@ -2383,23 +2383,23 @@ func (x *fastReflection_SecondLevelDomain) Has(fd protoreflect.FieldDescriptor) // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_SecondLevelDomain) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "mycel.registry.v1beta1.SecondLevelDomain.name": + case "mycel.registry.v1.SecondLevelDomain.name": x.Name = "" - case "mycel.registry.v1beta1.SecondLevelDomain.parent": + case "mycel.registry.v1.SecondLevelDomain.parent": x.Parent = "" - case "mycel.registry.v1beta1.SecondLevelDomain.owner": + case "mycel.registry.v1.SecondLevelDomain.owner": x.Owner = "" - case "mycel.registry.v1beta1.SecondLevelDomain.expiration_date": + case "mycel.registry.v1.SecondLevelDomain.expiration_date": x.ExpirationDate = nil - case "mycel.registry.v1beta1.SecondLevelDomain.records": + case "mycel.registry.v1.SecondLevelDomain.records": x.Records = nil - case "mycel.registry.v1beta1.SecondLevelDomain.access_control": + case "mycel.registry.v1.SecondLevelDomain.access_control": x.AccessControl = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.SecondLevelDomain")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.SecondLevelDomain")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.SecondLevelDomain does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.SecondLevelDomain does not contain field %s", fd.FullName())) } } @@ -2411,25 +2411,25 @@ func (x *fastReflection_SecondLevelDomain) Clear(fd protoreflect.FieldDescriptor // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_SecondLevelDomain) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "mycel.registry.v1beta1.SecondLevelDomain.name": + case "mycel.registry.v1.SecondLevelDomain.name": value := x.Name return protoreflect.ValueOfString(value) - case "mycel.registry.v1beta1.SecondLevelDomain.parent": + case "mycel.registry.v1.SecondLevelDomain.parent": value := x.Parent return protoreflect.ValueOfString(value) - case "mycel.registry.v1beta1.SecondLevelDomain.owner": + case "mycel.registry.v1.SecondLevelDomain.owner": value := x.Owner return protoreflect.ValueOfString(value) - case "mycel.registry.v1beta1.SecondLevelDomain.expiration_date": + case "mycel.registry.v1.SecondLevelDomain.expiration_date": value := x.ExpirationDate return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "mycel.registry.v1beta1.SecondLevelDomain.records": + case "mycel.registry.v1.SecondLevelDomain.records": if len(x.Records) == 0 { return protoreflect.ValueOfList(&_SecondLevelDomain_5_list{}) } listValue := &_SecondLevelDomain_5_list{list: &x.Records} return protoreflect.ValueOfList(listValue) - case "mycel.registry.v1beta1.SecondLevelDomain.access_control": + case "mycel.registry.v1.SecondLevelDomain.access_control": if len(x.AccessControl) == 0 { return protoreflect.ValueOfList(&_SecondLevelDomain_6_list{}) } @@ -2437,9 +2437,9 @@ func (x *fastReflection_SecondLevelDomain) Get(descriptor protoreflect.FieldDesc return protoreflect.ValueOfList(listValue) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.SecondLevelDomain")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.SecondLevelDomain")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.SecondLevelDomain does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.SecondLevelDomain does not contain field %s", descriptor.FullName())) } } @@ -2455,27 +2455,27 @@ func (x *fastReflection_SecondLevelDomain) Get(descriptor protoreflect.FieldDesc // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_SecondLevelDomain) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "mycel.registry.v1beta1.SecondLevelDomain.name": + case "mycel.registry.v1.SecondLevelDomain.name": x.Name = value.Interface().(string) - case "mycel.registry.v1beta1.SecondLevelDomain.parent": + case "mycel.registry.v1.SecondLevelDomain.parent": x.Parent = value.Interface().(string) - case "mycel.registry.v1beta1.SecondLevelDomain.owner": + case "mycel.registry.v1.SecondLevelDomain.owner": x.Owner = value.Interface().(string) - case "mycel.registry.v1beta1.SecondLevelDomain.expiration_date": + case "mycel.registry.v1.SecondLevelDomain.expiration_date": x.ExpirationDate = value.Message().Interface().(*timestamppb.Timestamp) - case "mycel.registry.v1beta1.SecondLevelDomain.records": + case "mycel.registry.v1.SecondLevelDomain.records": lv := value.List() clv := lv.(*_SecondLevelDomain_5_list) x.Records = *clv.list - case "mycel.registry.v1beta1.SecondLevelDomain.access_control": + case "mycel.registry.v1.SecondLevelDomain.access_control": lv := value.List() clv := lv.(*_SecondLevelDomain_6_list) x.AccessControl = *clv.list default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.SecondLevelDomain")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.SecondLevelDomain")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.SecondLevelDomain does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.SecondLevelDomain does not contain field %s", fd.FullName())) } } @@ -2491,34 +2491,34 @@ func (x *fastReflection_SecondLevelDomain) Set(fd protoreflect.FieldDescriptor, // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_SecondLevelDomain) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "mycel.registry.v1beta1.SecondLevelDomain.expiration_date": + case "mycel.registry.v1.SecondLevelDomain.expiration_date": if x.ExpirationDate == nil { x.ExpirationDate = new(timestamppb.Timestamp) } return protoreflect.ValueOfMessage(x.ExpirationDate.ProtoReflect()) - case "mycel.registry.v1beta1.SecondLevelDomain.records": + case "mycel.registry.v1.SecondLevelDomain.records": if x.Records == nil { x.Records = []*Record{} } value := &_SecondLevelDomain_5_list{list: &x.Records} return protoreflect.ValueOfList(value) - case "mycel.registry.v1beta1.SecondLevelDomain.access_control": + case "mycel.registry.v1.SecondLevelDomain.access_control": if x.AccessControl == nil { x.AccessControl = []*AccessControl{} } value := &_SecondLevelDomain_6_list{list: &x.AccessControl} return protoreflect.ValueOfList(value) - case "mycel.registry.v1beta1.SecondLevelDomain.name": - panic(fmt.Errorf("field name of message mycel.registry.v1beta1.SecondLevelDomain is not mutable")) - case "mycel.registry.v1beta1.SecondLevelDomain.parent": - panic(fmt.Errorf("field parent of message mycel.registry.v1beta1.SecondLevelDomain is not mutable")) - case "mycel.registry.v1beta1.SecondLevelDomain.owner": - panic(fmt.Errorf("field owner of message mycel.registry.v1beta1.SecondLevelDomain is not mutable")) + case "mycel.registry.v1.SecondLevelDomain.name": + panic(fmt.Errorf("field name of message mycel.registry.v1.SecondLevelDomain is not mutable")) + case "mycel.registry.v1.SecondLevelDomain.parent": + panic(fmt.Errorf("field parent of message mycel.registry.v1.SecondLevelDomain is not mutable")) + case "mycel.registry.v1.SecondLevelDomain.owner": + panic(fmt.Errorf("field owner of message mycel.registry.v1.SecondLevelDomain is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.SecondLevelDomain")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.SecondLevelDomain")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.SecondLevelDomain does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.SecondLevelDomain does not contain field %s", fd.FullName())) } } @@ -2527,26 +2527,26 @@ func (x *fastReflection_SecondLevelDomain) Mutable(fd protoreflect.FieldDescript // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_SecondLevelDomain) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "mycel.registry.v1beta1.SecondLevelDomain.name": + case "mycel.registry.v1.SecondLevelDomain.name": return protoreflect.ValueOfString("") - case "mycel.registry.v1beta1.SecondLevelDomain.parent": + case "mycel.registry.v1.SecondLevelDomain.parent": return protoreflect.ValueOfString("") - case "mycel.registry.v1beta1.SecondLevelDomain.owner": + case "mycel.registry.v1.SecondLevelDomain.owner": return protoreflect.ValueOfString("") - case "mycel.registry.v1beta1.SecondLevelDomain.expiration_date": + case "mycel.registry.v1.SecondLevelDomain.expiration_date": m := new(timestamppb.Timestamp) return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "mycel.registry.v1beta1.SecondLevelDomain.records": + case "mycel.registry.v1.SecondLevelDomain.records": list := []*Record{} return protoreflect.ValueOfList(&_SecondLevelDomain_5_list{list: &list}) - case "mycel.registry.v1beta1.SecondLevelDomain.access_control": + case "mycel.registry.v1.SecondLevelDomain.access_control": list := []*AccessControl{} return protoreflect.ValueOfList(&_SecondLevelDomain_6_list{list: &list}) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.SecondLevelDomain")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.SecondLevelDomain")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.SecondLevelDomain does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.SecondLevelDomain does not contain field %s", fd.FullName())) } } @@ -2556,7 +2556,7 @@ func (x *fastReflection_SecondLevelDomain) NewField(fd protoreflect.FieldDescrip func (x *fastReflection_SecondLevelDomain) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in mycel.registry.v1beta1.SecondLevelDomain", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in mycel.registry.v1.SecondLevelDomain", d.FullName())) } panic("unreachable") } @@ -3023,7 +3023,7 @@ func (x *fastReflection_SecondLevelDomain) ProtoMethods() *protoiface.Methods { // versions: // protoc-gen-go v1.27.0 // protoc (unknown) -// source: mycel/registry/v1beta1/second_level_domain.proto +// source: mycel/registry/v1/second_level_domain.proto const ( // Verify that this generated code is sufficiently up-to-date. @@ -3037,14 +3037,14 @@ type DnsRecord struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - DnsRecordType DnsRecordType `protobuf:"varint,1,opt,name=dns_record_type,json=dnsRecordType,proto3,enum=mycel.registry.v1beta1.DnsRecordType" json:"dns_record_type,omitempty"` + DnsRecordType DnsRecordType `protobuf:"varint,1,opt,name=dns_record_type,json=dnsRecordType,proto3,enum=mycel.registry.v1.DnsRecordType" json:"dns_record_type,omitempty"` Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` } func (x *DnsRecord) Reset() { *x = DnsRecord{} if protoimpl.UnsafeEnabled { - mi := &file_mycel_registry_v1beta1_second_level_domain_proto_msgTypes[0] + mi := &file_mycel_registry_v1_second_level_domain_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3058,7 +3058,7 @@ func (*DnsRecord) ProtoMessage() {} // Deprecated: Use DnsRecord.ProtoReflect.Descriptor instead. func (*DnsRecord) Descriptor() ([]byte, []int) { - return file_mycel_registry_v1beta1_second_level_domain_proto_rawDescGZIP(), []int{0} + return file_mycel_registry_v1_second_level_domain_proto_rawDescGZIP(), []int{0} } func (x *DnsRecord) GetDnsRecordType() DnsRecordType { @@ -3080,14 +3080,14 @@ type WalletRecord struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - WalletRecordType NetworkName `protobuf:"varint,1,opt,name=wallet_record_type,json=walletRecordType,proto3,enum=mycel.registry.v1beta1.NetworkName" json:"wallet_record_type,omitempty"` + WalletRecordType NetworkName `protobuf:"varint,1,opt,name=wallet_record_type,json=walletRecordType,proto3,enum=mycel.registry.v1.NetworkName" json:"wallet_record_type,omitempty"` Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` } func (x *WalletRecord) Reset() { *x = WalletRecord{} if protoimpl.UnsafeEnabled { - mi := &file_mycel_registry_v1beta1_second_level_domain_proto_msgTypes[1] + mi := &file_mycel_registry_v1_second_level_domain_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3101,7 +3101,7 @@ func (*WalletRecord) ProtoMessage() {} // Deprecated: Use WalletRecord.ProtoReflect.Descriptor instead. func (*WalletRecord) Descriptor() ([]byte, []int) { - return file_mycel_registry_v1beta1_second_level_domain_proto_rawDescGZIP(), []int{1} + return file_mycel_registry_v1_second_level_domain_proto_rawDescGZIP(), []int{1} } func (x *WalletRecord) GetWalletRecordType() NetworkName { @@ -3130,7 +3130,7 @@ type TextRecord struct { func (x *TextRecord) Reset() { *x = TextRecord{} if protoimpl.UnsafeEnabled { - mi := &file_mycel_registry_v1beta1_second_level_domain_proto_msgTypes[2] + mi := &file_mycel_registry_v1_second_level_domain_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3144,7 +3144,7 @@ func (*TextRecord) ProtoMessage() {} // Deprecated: Use TextRecord.ProtoReflect.Descriptor instead. func (*TextRecord) Descriptor() ([]byte, []int) { - return file_mycel_registry_v1beta1_second_level_domain_proto_rawDescGZIP(), []int{2} + return file_mycel_registry_v1_second_level_domain_proto_rawDescGZIP(), []int{2} } func (x *TextRecord) GetKey() string { @@ -3177,7 +3177,7 @@ type Record struct { func (x *Record) Reset() { *x = Record{} if protoimpl.UnsafeEnabled { - mi := &file_mycel_registry_v1beta1_second_level_domain_proto_msgTypes[3] + mi := &file_mycel_registry_v1_second_level_domain_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3191,7 +3191,7 @@ func (*Record) ProtoMessage() {} // Deprecated: Use Record.ProtoReflect.Descriptor instead. func (*Record) Descriptor() ([]byte, []int) { - return file_mycel_registry_v1beta1_second_level_domain_proto_rawDescGZIP(), []int{3} + return file_mycel_registry_v1_second_level_domain_proto_rawDescGZIP(), []int{3} } func (x *Record) GetRecord() isRecord_Record { @@ -3260,7 +3260,7 @@ type SecondLevelDomain struct { func (x *SecondLevelDomain) Reset() { *x = SecondLevelDomain{} if protoimpl.UnsafeEnabled { - mi := &file_mycel_registry_v1beta1_second_level_domain_proto_msgTypes[4] + mi := &file_mycel_registry_v1_second_level_domain_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3274,7 +3274,7 @@ func (*SecondLevelDomain) ProtoMessage() {} // Deprecated: Use SecondLevelDomain.ProtoReflect.Descriptor instead. func (*SecondLevelDomain) Descriptor() ([]byte, []int) { - return file_mycel_registry_v1beta1_second_level_domain_proto_rawDescGZIP(), []int{4} + return file_mycel_registry_v1_second_level_domain_proto_rawDescGZIP(), []int{4} } func (x *SecondLevelDomain) GetName() string { @@ -3319,127 +3319,122 @@ func (x *SecondLevelDomain) GetAccessControl() []*AccessControl { return nil } -var File_mycel_registry_v1beta1_second_level_domain_proto protoreflect.FileDescriptor - -var file_mycel_registry_v1beta1_second_level_domain_proto_rawDesc = []byte{ - 0x0a, 0x30, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, - 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x5f, - 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x5f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x12, 0x16, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, - 0x72, 0x79, 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, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, - 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x1a, 0x27, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, - 0x79, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x64, 0x6e, 0x73, 0x5f, 0x72, 0x65, - 0x63, 0x6f, 0x72, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x29, 0x6d, 0x79, 0x63, 0x65, - 0x6c, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, - 0x61, 0x31, 0x2f, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2b, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2f, 0x72, 0x65, 0x67, - 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x61, 0x63, - 0x63, 0x65, 0x73, 0x73, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x22, 0x70, 0x0a, 0x09, 0x44, 0x6e, 0x73, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x12, - 0x4d, 0x0a, 0x0f, 0x64, 0x6e, 0x73, 0x5f, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x5f, 0x74, 0x79, - 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x25, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, - 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, - 0x31, 0x2e, 0x44, 0x6e, 0x73, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x54, 0x79, 0x70, 0x65, 0x52, - 0x0d, 0x64, 0x6e, 0x73, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x54, 0x79, 0x70, 0x65, 0x12, 0x14, - 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, - 0x61, 0x6c, 0x75, 0x65, 0x22, 0x77, 0x0a, 0x0c, 0x57, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x52, 0x65, - 0x63, 0x6f, 0x72, 0x64, 0x12, 0x51, 0x0a, 0x12, 0x77, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x5f, 0x72, - 0x65, 0x63, 0x6f, 0x72, 0x64, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, - 0x32, 0x23, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, - 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, - 0x6b, 0x4e, 0x61, 0x6d, 0x65, 0x52, 0x10, 0x77, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x52, 0x65, 0x63, - 0x6f, 0x72, 0x64, 0x54, 0x79, 0x70, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x34, 0x0a, - 0x0a, 0x54, 0x65, 0x78, 0x74, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x6b, - 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, - 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, - 0x6c, 0x75, 0x65, 0x22, 0xea, 0x01, 0x0a, 0x06, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x12, 0x42, - 0x0a, 0x0a, 0x64, 0x6e, 0x73, 0x5f, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, - 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x44, 0x6e, 0x73, 0x52, - 0x65, 0x63, 0x6f, 0x72, 0x64, 0x48, 0x00, 0x52, 0x09, 0x64, 0x6e, 0x73, 0x52, 0x65, 0x63, 0x6f, - 0x72, 0x64, 0x12, 0x4b, 0x0a, 0x0d, 0x77, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x5f, 0x72, 0x65, 0x63, - 0x6f, 0x72, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x6d, 0x79, 0x63, 0x65, - 0x6c, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, - 0x61, 0x31, 0x2e, 0x57, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x48, - 0x00, 0x52, 0x0c, 0x77, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x12, - 0x45, 0x0a, 0x0b, 0x74, 0x65, 0x78, 0x74, 0x5f, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x72, 0x65, 0x67, - 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x54, 0x65, - 0x78, 0x74, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x48, 0x00, 0x52, 0x0a, 0x74, 0x65, 0x78, 0x74, - 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x42, 0x08, 0x0a, 0x06, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, - 0x22, 0xac, 0x02, 0x0a, 0x11, 0x53, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x4c, 0x65, 0x76, 0x65, 0x6c, - 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x61, - 0x72, 0x65, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, - 0x6e, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x12, 0x4d, 0x0a, 0x0f, 0x65, 0x78, 0x70, 0x69, - 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x64, 0x61, 0x74, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x08, 0xc8, - 0xde, 0x1f, 0x00, 0x90, 0xdf, 0x1f, 0x01, 0x52, 0x0e, 0x65, 0x78, 0x70, 0x69, 0x72, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x44, 0x61, 0x74, 0x65, 0x12, 0x38, 0x0a, 0x07, 0x72, 0x65, 0x63, 0x6f, 0x72, - 0x64, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, - 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, - 0x31, 0x2e, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x07, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, - 0x73, 0x12, 0x4c, 0x0a, 0x0e, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x63, 0x6f, 0x6e, 0x74, - 0x72, 0x6f, 0x6c, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x6d, 0x79, 0x63, 0x65, - 0x6c, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, - 0x61, 0x31, 0x2e, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, - 0x52, 0x0d, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x42, - 0xde, 0x01, 0x0a, 0x1a, 0x63, 0x6f, 0x6d, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x72, 0x65, - 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x42, 0x16, - 0x53, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x44, 0x6f, 0x6d, 0x61, 0x69, - 0x6e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2e, 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, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0xa2, 0x02, 0x03, 0x4d, 0x52, 0x58, 0xaa, 0x02, - 0x16, 0x4d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, - 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xca, 0x02, 0x16, 0x4d, 0x79, 0x63, 0x65, 0x6c, 0x5c, - 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, - 0xe2, 0x02, 0x22, 0x4d, 0x79, 0x63, 0x65, 0x6c, 0x5c, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, - 0x79, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, - 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x18, 0x4d, 0x79, 0x63, 0x65, 0x6c, 0x3a, 0x3a, 0x52, - 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, - 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +var File_mycel_registry_v1_second_level_domain_proto protoreflect.FileDescriptor + +var file_mycel_registry_v1_second_level_domain_proto_rawDesc = []byte{ + 0x0a, 0x2b, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, + 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x5f, 0x6c, 0x65, 0x76, 0x65, 0x6c, + 0x5f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x11, 0x6d, + 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, + 0x1a, 0x14, 0x67, 0x6f, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, + 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x22, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2f, 0x72, + 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x2f, 0x64, 0x6e, 0x73, 0x5f, 0x72, + 0x65, 0x63, 0x6f, 0x72, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x24, 0x6d, 0x79, 0x63, + 0x65, 0x6c, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x2f, 0x6e, + 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x1a, 0x26, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, + 0x79, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x63, 0x6f, 0x6e, 0x74, + 0x72, 0x6f, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x6b, 0x0a, 0x09, 0x44, 0x6e, 0x73, + 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x12, 0x48, 0x0a, 0x0f, 0x64, 0x6e, 0x73, 0x5f, 0x72, 0x65, + 0x63, 0x6f, 0x72, 0x64, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, + 0x20, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, + 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x6e, 0x73, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x54, 0x79, 0x70, + 0x65, 0x52, 0x0d, 0x64, 0x6e, 0x73, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x54, 0x79, 0x70, 0x65, + 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x72, 0x0a, 0x0c, 0x57, 0x61, 0x6c, 0x6c, 0x65, 0x74, + 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x12, 0x4c, 0x0a, 0x12, 0x77, 0x61, 0x6c, 0x6c, 0x65, 0x74, + 0x5f, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0e, 0x32, 0x1e, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, + 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x4e, 0x61, + 0x6d, 0x65, 0x52, 0x10, 0x77, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, + 0x54, 0x79, 0x70, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x34, 0x0a, 0x0a, 0x54, 0x65, + 0x78, 0x74, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, + 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, + 0x22, 0xdb, 0x01, 0x0a, 0x06, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x12, 0x3d, 0x0a, 0x0a, 0x64, + 0x6e, 0x73, 0x5f, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x1c, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, + 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x6e, 0x73, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x48, 0x00, 0x52, + 0x09, 0x64, 0x6e, 0x73, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x12, 0x46, 0x0a, 0x0d, 0x77, 0x61, + 0x6c, 0x6c, 0x65, 0x74, 0x5f, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x1f, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, + 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x52, 0x65, 0x63, 0x6f, + 0x72, 0x64, 0x48, 0x00, 0x52, 0x0c, 0x77, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x52, 0x65, 0x63, 0x6f, + 0x72, 0x64, 0x12, 0x40, 0x0a, 0x0b, 0x74, 0x65, 0x78, 0x74, 0x5f, 0x72, 0x65, 0x63, 0x6f, 0x72, + 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, + 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x65, 0x78, 0x74, + 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x48, 0x00, 0x52, 0x0a, 0x74, 0x65, 0x78, 0x74, 0x52, 0x65, + 0x63, 0x6f, 0x72, 0x64, 0x42, 0x08, 0x0a, 0x06, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x22, 0xa2, + 0x02, 0x0a, 0x11, 0x53, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x44, 0x6f, + 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, + 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, + 0x12, 0x14, 0x0a, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x12, 0x4d, 0x0a, 0x0f, 0x65, 0x78, 0x70, 0x69, 0x72, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x64, 0x61, 0x74, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, + 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x08, 0xc8, 0xde, 0x1f, + 0x00, 0x90, 0xdf, 0x1f, 0x01, 0x52, 0x0e, 0x65, 0x78, 0x70, 0x69, 0x72, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x44, 0x61, 0x74, 0x65, 0x12, 0x33, 0x0a, 0x07, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, + 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x72, + 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x63, 0x6f, 0x72, + 0x64, 0x52, 0x07, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x12, 0x47, 0x0a, 0x0e, 0x61, 0x63, + 0x63, 0x65, 0x73, 0x73, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x18, 0x06, 0x20, 0x03, + 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, + 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x43, 0x6f, 0x6e, + 0x74, 0x72, 0x6f, 0x6c, 0x52, 0x0d, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x43, 0x6f, 0x6e, 0x74, + 0x72, 0x6f, 0x6c, 0x42, 0xc4, 0x01, 0x0a, 0x15, 0x63, 0x6f, 0x6d, 0x2e, 0x6d, 0x79, 0x63, 0x65, + 0x6c, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x42, 0x16, 0x53, + 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, + 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2d, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, + 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2f, + 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x3b, 0x72, 0x65, 0x67, 0x69, + 0x73, 0x74, 0x72, 0x79, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x4d, 0x52, 0x58, 0xaa, 0x02, 0x11, 0x4d, + 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x56, 0x31, + 0xca, 0x02, 0x11, 0x4d, 0x79, 0x63, 0x65, 0x6c, 0x5c, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, + 0x79, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x1d, 0x4d, 0x79, 0x63, 0x65, 0x6c, 0x5c, 0x52, 0x65, 0x67, + 0x69, 0x73, 0x74, 0x72, 0x79, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, + 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x13, 0x4d, 0x79, 0x63, 0x65, 0x6c, 0x3a, 0x3a, 0x52, 0x65, + 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x33, } var ( - file_mycel_registry_v1beta1_second_level_domain_proto_rawDescOnce sync.Once - file_mycel_registry_v1beta1_second_level_domain_proto_rawDescData = file_mycel_registry_v1beta1_second_level_domain_proto_rawDesc + file_mycel_registry_v1_second_level_domain_proto_rawDescOnce sync.Once + file_mycel_registry_v1_second_level_domain_proto_rawDescData = file_mycel_registry_v1_second_level_domain_proto_rawDesc ) -func file_mycel_registry_v1beta1_second_level_domain_proto_rawDescGZIP() []byte { - file_mycel_registry_v1beta1_second_level_domain_proto_rawDescOnce.Do(func() { - file_mycel_registry_v1beta1_second_level_domain_proto_rawDescData = protoimpl.X.CompressGZIP(file_mycel_registry_v1beta1_second_level_domain_proto_rawDescData) +func file_mycel_registry_v1_second_level_domain_proto_rawDescGZIP() []byte { + file_mycel_registry_v1_second_level_domain_proto_rawDescOnce.Do(func() { + file_mycel_registry_v1_second_level_domain_proto_rawDescData = protoimpl.X.CompressGZIP(file_mycel_registry_v1_second_level_domain_proto_rawDescData) }) - return file_mycel_registry_v1beta1_second_level_domain_proto_rawDescData -} - -var file_mycel_registry_v1beta1_second_level_domain_proto_msgTypes = make([]protoimpl.MessageInfo, 5) -var file_mycel_registry_v1beta1_second_level_domain_proto_goTypes = []interface{}{ - (*DnsRecord)(nil), // 0: mycel.registry.v1beta1.DnsRecord - (*WalletRecord)(nil), // 1: mycel.registry.v1beta1.WalletRecord - (*TextRecord)(nil), // 2: mycel.registry.v1beta1.TextRecord - (*Record)(nil), // 3: mycel.registry.v1beta1.Record - (*SecondLevelDomain)(nil), // 4: mycel.registry.v1beta1.SecondLevelDomain - (DnsRecordType)(0), // 5: mycel.registry.v1beta1.DnsRecordType - (NetworkName)(0), // 6: mycel.registry.v1beta1.NetworkName + return file_mycel_registry_v1_second_level_domain_proto_rawDescData +} + +var file_mycel_registry_v1_second_level_domain_proto_msgTypes = make([]protoimpl.MessageInfo, 5) +var file_mycel_registry_v1_second_level_domain_proto_goTypes = []interface{}{ + (*DnsRecord)(nil), // 0: mycel.registry.v1.DnsRecord + (*WalletRecord)(nil), // 1: mycel.registry.v1.WalletRecord + (*TextRecord)(nil), // 2: mycel.registry.v1.TextRecord + (*Record)(nil), // 3: mycel.registry.v1.Record + (*SecondLevelDomain)(nil), // 4: mycel.registry.v1.SecondLevelDomain + (DnsRecordType)(0), // 5: mycel.registry.v1.DnsRecordType + (NetworkName)(0), // 6: mycel.registry.v1.NetworkName (*timestamppb.Timestamp)(nil), // 7: google.protobuf.Timestamp - (*AccessControl)(nil), // 8: mycel.registry.v1beta1.AccessControl -} -var file_mycel_registry_v1beta1_second_level_domain_proto_depIdxs = []int32{ - 5, // 0: mycel.registry.v1beta1.DnsRecord.dns_record_type:type_name -> mycel.registry.v1beta1.DnsRecordType - 6, // 1: mycel.registry.v1beta1.WalletRecord.wallet_record_type:type_name -> mycel.registry.v1beta1.NetworkName - 0, // 2: mycel.registry.v1beta1.Record.dns_record:type_name -> mycel.registry.v1beta1.DnsRecord - 1, // 3: mycel.registry.v1beta1.Record.wallet_record:type_name -> mycel.registry.v1beta1.WalletRecord - 2, // 4: mycel.registry.v1beta1.Record.text_record:type_name -> mycel.registry.v1beta1.TextRecord - 7, // 5: mycel.registry.v1beta1.SecondLevelDomain.expiration_date:type_name -> google.protobuf.Timestamp - 3, // 6: mycel.registry.v1beta1.SecondLevelDomain.records:type_name -> mycel.registry.v1beta1.Record - 8, // 7: mycel.registry.v1beta1.SecondLevelDomain.access_control:type_name -> mycel.registry.v1beta1.AccessControl + (*AccessControl)(nil), // 8: mycel.registry.v1.AccessControl +} +var file_mycel_registry_v1_second_level_domain_proto_depIdxs = []int32{ + 5, // 0: mycel.registry.v1.DnsRecord.dns_record_type:type_name -> mycel.registry.v1.DnsRecordType + 6, // 1: mycel.registry.v1.WalletRecord.wallet_record_type:type_name -> mycel.registry.v1.NetworkName + 0, // 2: mycel.registry.v1.Record.dns_record:type_name -> mycel.registry.v1.DnsRecord + 1, // 3: mycel.registry.v1.Record.wallet_record:type_name -> mycel.registry.v1.WalletRecord + 2, // 4: mycel.registry.v1.Record.text_record:type_name -> mycel.registry.v1.TextRecord + 7, // 5: mycel.registry.v1.SecondLevelDomain.expiration_date:type_name -> google.protobuf.Timestamp + 3, // 6: mycel.registry.v1.SecondLevelDomain.records:type_name -> mycel.registry.v1.Record + 8, // 7: mycel.registry.v1.SecondLevelDomain.access_control:type_name -> mycel.registry.v1.AccessControl 8, // [8:8] is the sub-list for method output_type 8, // [8:8] is the sub-list for method input_type 8, // [8:8] is the sub-list for extension type_name @@ -3447,16 +3442,16 @@ var file_mycel_registry_v1beta1_second_level_domain_proto_depIdxs = []int32{ 0, // [0:8] is the sub-list for field type_name } -func init() { file_mycel_registry_v1beta1_second_level_domain_proto_init() } -func file_mycel_registry_v1beta1_second_level_domain_proto_init() { - if File_mycel_registry_v1beta1_second_level_domain_proto != nil { +func init() { file_mycel_registry_v1_second_level_domain_proto_init() } +func file_mycel_registry_v1_second_level_domain_proto_init() { + if File_mycel_registry_v1_second_level_domain_proto != nil { return } - file_mycel_registry_v1beta1_dns_record_proto_init() - file_mycel_registry_v1beta1_network_name_proto_init() - file_mycel_registry_v1beta1_access_control_proto_init() + file_mycel_registry_v1_dns_record_proto_init() + file_mycel_registry_v1_network_name_proto_init() + file_mycel_registry_v1_access_control_proto_init() if !protoimpl.UnsafeEnabled { - file_mycel_registry_v1beta1_second_level_domain_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_mycel_registry_v1_second_level_domain_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*DnsRecord); i { case 0: return &v.state @@ -3468,7 +3463,7 @@ func file_mycel_registry_v1beta1_second_level_domain_proto_init() { return nil } } - file_mycel_registry_v1beta1_second_level_domain_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_mycel_registry_v1_second_level_domain_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*WalletRecord); i { case 0: return &v.state @@ -3480,7 +3475,7 @@ func file_mycel_registry_v1beta1_second_level_domain_proto_init() { return nil } } - file_mycel_registry_v1beta1_second_level_domain_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + file_mycel_registry_v1_second_level_domain_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*TextRecord); i { case 0: return &v.state @@ -3492,7 +3487,7 @@ func file_mycel_registry_v1beta1_second_level_domain_proto_init() { return nil } } - file_mycel_registry_v1beta1_second_level_domain_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + file_mycel_registry_v1_second_level_domain_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Record); i { case 0: return &v.state @@ -3504,7 +3499,7 @@ func file_mycel_registry_v1beta1_second_level_domain_proto_init() { return nil } } - file_mycel_registry_v1beta1_second_level_domain_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + file_mycel_registry_v1_second_level_domain_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*SecondLevelDomain); i { case 0: return &v.state @@ -3517,7 +3512,7 @@ func file_mycel_registry_v1beta1_second_level_domain_proto_init() { } } } - file_mycel_registry_v1beta1_second_level_domain_proto_msgTypes[3].OneofWrappers = []interface{}{ + file_mycel_registry_v1_second_level_domain_proto_msgTypes[3].OneofWrappers = []interface{}{ (*Record_DnsRecord)(nil), (*Record_WalletRecord)(nil), (*Record_TextRecord)(nil), @@ -3526,18 +3521,18 @@ func file_mycel_registry_v1beta1_second_level_domain_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_mycel_registry_v1beta1_second_level_domain_proto_rawDesc, + RawDescriptor: file_mycel_registry_v1_second_level_domain_proto_rawDesc, NumEnums: 0, NumMessages: 5, NumExtensions: 0, NumServices: 0, }, - GoTypes: file_mycel_registry_v1beta1_second_level_domain_proto_goTypes, - DependencyIndexes: file_mycel_registry_v1beta1_second_level_domain_proto_depIdxs, - MessageInfos: file_mycel_registry_v1beta1_second_level_domain_proto_msgTypes, + GoTypes: file_mycel_registry_v1_second_level_domain_proto_goTypes, + DependencyIndexes: file_mycel_registry_v1_second_level_domain_proto_depIdxs, + MessageInfos: file_mycel_registry_v1_second_level_domain_proto_msgTypes, }.Build() - File_mycel_registry_v1beta1_second_level_domain_proto = out.File - file_mycel_registry_v1beta1_second_level_domain_proto_rawDesc = nil - file_mycel_registry_v1beta1_second_level_domain_proto_goTypes = nil - file_mycel_registry_v1beta1_second_level_domain_proto_depIdxs = nil + File_mycel_registry_v1_second_level_domain_proto = out.File + file_mycel_registry_v1_second_level_domain_proto_rawDesc = nil + file_mycel_registry_v1_second_level_domain_proto_goTypes = nil + file_mycel_registry_v1_second_level_domain_proto_depIdxs = nil } diff --git a/api/mycel/registry/v1beta1/subdomain_config.pulsar.go b/api/mycel/registry/v1/subdomain_config.pulsar.go similarity index 79% rename from api/mycel/registry/v1beta1/subdomain_config.pulsar.go rename to api/mycel/registry/v1/subdomain_config.pulsar.go index 068476ca..9a354f2f 100644 --- a/api/mycel/registry/v1beta1/subdomain_config.pulsar.go +++ b/api/mycel/registry/v1/subdomain_config.pulsar.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-go-pulsar. DO NOT EDIT. -package types +package registryv1 import ( v1beta1 "cosmossdk.io/api/cosmos/base/v1beta1" @@ -123,8 +123,8 @@ var ( ) func init() { - file_mycel_registry_v1beta1_subdomain_config_proto_init() - md_SubdomainRegistrationFees = File_mycel_registry_v1beta1_subdomain_config_proto.Messages().ByName("SubdomainRegistrationFees") + file_mycel_registry_v1_subdomain_config_proto_init() + md_SubdomainRegistrationFees = File_mycel_registry_v1_subdomain_config_proto.Messages().ByName("SubdomainRegistrationFees") fd_SubdomainRegistrationFees_fee_by_length = md_SubdomainRegistrationFees.Fields().ByName("fee_by_length") fd_SubdomainRegistrationFees_fee_by_name = md_SubdomainRegistrationFees.Fields().ByName("fee_by_name") fd_SubdomainRegistrationFees_default_fee = md_SubdomainRegistrationFees.Fields().ByName("default_fee") @@ -139,7 +139,7 @@ func (x *SubdomainRegistrationFees) ProtoReflect() protoreflect.Message { } func (x *SubdomainRegistrationFees) slowProtoReflect() protoreflect.Message { - mi := &file_mycel_registry_v1beta1_subdomain_config_proto_msgTypes[0] + mi := &file_mycel_registry_v1_subdomain_config_proto_msgTypes[0] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -228,17 +228,17 @@ func (x *fastReflection_SubdomainRegistrationFees) Range(f func(protoreflect.Fie // a repeated field is populated if it is non-empty. func (x *fastReflection_SubdomainRegistrationFees) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "mycel.registry.v1beta1.SubdomainRegistrationFees.fee_by_length": + case "mycel.registry.v1.SubdomainRegistrationFees.fee_by_length": return len(x.FeeByLength) != 0 - case "mycel.registry.v1beta1.SubdomainRegistrationFees.fee_by_name": + case "mycel.registry.v1.SubdomainRegistrationFees.fee_by_name": return len(x.FeeByName) != 0 - case "mycel.registry.v1beta1.SubdomainRegistrationFees.default_fee": + case "mycel.registry.v1.SubdomainRegistrationFees.default_fee": return x.DefaultFee != nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.SubdomainRegistrationFees")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.SubdomainRegistrationFees")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.SubdomainRegistrationFees does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.SubdomainRegistrationFees does not contain field %s", fd.FullName())) } } @@ -250,17 +250,17 @@ func (x *fastReflection_SubdomainRegistrationFees) Has(fd protoreflect.FieldDesc // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_SubdomainRegistrationFees) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "mycel.registry.v1beta1.SubdomainRegistrationFees.fee_by_length": + case "mycel.registry.v1.SubdomainRegistrationFees.fee_by_length": x.FeeByLength = nil - case "mycel.registry.v1beta1.SubdomainRegistrationFees.fee_by_name": + case "mycel.registry.v1.SubdomainRegistrationFees.fee_by_name": x.FeeByName = nil - case "mycel.registry.v1beta1.SubdomainRegistrationFees.default_fee": + case "mycel.registry.v1.SubdomainRegistrationFees.default_fee": x.DefaultFee = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.SubdomainRegistrationFees")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.SubdomainRegistrationFees")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.SubdomainRegistrationFees does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.SubdomainRegistrationFees does not contain field %s", fd.FullName())) } } @@ -272,26 +272,26 @@ func (x *fastReflection_SubdomainRegistrationFees) Clear(fd protoreflect.FieldDe // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_SubdomainRegistrationFees) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "mycel.registry.v1beta1.SubdomainRegistrationFees.fee_by_length": + case "mycel.registry.v1.SubdomainRegistrationFees.fee_by_length": if len(x.FeeByLength) == 0 { return protoreflect.ValueOfList(&_SubdomainRegistrationFees_1_list{}) } listValue := &_SubdomainRegistrationFees_1_list{list: &x.FeeByLength} return protoreflect.ValueOfList(listValue) - case "mycel.registry.v1beta1.SubdomainRegistrationFees.fee_by_name": + case "mycel.registry.v1.SubdomainRegistrationFees.fee_by_name": if len(x.FeeByName) == 0 { return protoreflect.ValueOfList(&_SubdomainRegistrationFees_2_list{}) } listValue := &_SubdomainRegistrationFees_2_list{list: &x.FeeByName} return protoreflect.ValueOfList(listValue) - case "mycel.registry.v1beta1.SubdomainRegistrationFees.default_fee": + case "mycel.registry.v1.SubdomainRegistrationFees.default_fee": value := x.DefaultFee return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.SubdomainRegistrationFees")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.SubdomainRegistrationFees")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.SubdomainRegistrationFees does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.SubdomainRegistrationFees does not contain field %s", descriptor.FullName())) } } @@ -307,21 +307,21 @@ func (x *fastReflection_SubdomainRegistrationFees) Get(descriptor protoreflect.F // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_SubdomainRegistrationFees) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "mycel.registry.v1beta1.SubdomainRegistrationFees.fee_by_length": + case "mycel.registry.v1.SubdomainRegistrationFees.fee_by_length": lv := value.List() clv := lv.(*_SubdomainRegistrationFees_1_list) x.FeeByLength = *clv.list - case "mycel.registry.v1beta1.SubdomainRegistrationFees.fee_by_name": + case "mycel.registry.v1.SubdomainRegistrationFees.fee_by_name": lv := value.List() clv := lv.(*_SubdomainRegistrationFees_2_list) x.FeeByName = *clv.list - case "mycel.registry.v1beta1.SubdomainRegistrationFees.default_fee": + case "mycel.registry.v1.SubdomainRegistrationFees.default_fee": x.DefaultFee = value.Message().Interface().(*v1beta1.Coin) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.SubdomainRegistrationFees")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.SubdomainRegistrationFees")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.SubdomainRegistrationFees does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.SubdomainRegistrationFees does not contain field %s", fd.FullName())) } } @@ -337,28 +337,28 @@ func (x *fastReflection_SubdomainRegistrationFees) Set(fd protoreflect.FieldDesc // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_SubdomainRegistrationFees) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "mycel.registry.v1beta1.SubdomainRegistrationFees.fee_by_length": + case "mycel.registry.v1.SubdomainRegistrationFees.fee_by_length": if x.FeeByLength == nil { x.FeeByLength = []*FeeByLength{} } value := &_SubdomainRegistrationFees_1_list{list: &x.FeeByLength} return protoreflect.ValueOfList(value) - case "mycel.registry.v1beta1.SubdomainRegistrationFees.fee_by_name": + case "mycel.registry.v1.SubdomainRegistrationFees.fee_by_name": if x.FeeByName == nil { x.FeeByName = []*FeeByName{} } value := &_SubdomainRegistrationFees_2_list{list: &x.FeeByName} return protoreflect.ValueOfList(value) - case "mycel.registry.v1beta1.SubdomainRegistrationFees.default_fee": + case "mycel.registry.v1.SubdomainRegistrationFees.default_fee": if x.DefaultFee == nil { x.DefaultFee = new(v1beta1.Coin) } return protoreflect.ValueOfMessage(x.DefaultFee.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.SubdomainRegistrationFees")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.SubdomainRegistrationFees")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.SubdomainRegistrationFees does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.SubdomainRegistrationFees does not contain field %s", fd.FullName())) } } @@ -367,20 +367,20 @@ func (x *fastReflection_SubdomainRegistrationFees) Mutable(fd protoreflect.Field // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_SubdomainRegistrationFees) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "mycel.registry.v1beta1.SubdomainRegistrationFees.fee_by_length": + case "mycel.registry.v1.SubdomainRegistrationFees.fee_by_length": list := []*FeeByLength{} return protoreflect.ValueOfList(&_SubdomainRegistrationFees_1_list{list: &list}) - case "mycel.registry.v1beta1.SubdomainRegistrationFees.fee_by_name": + case "mycel.registry.v1.SubdomainRegistrationFees.fee_by_name": list := []*FeeByName{} return protoreflect.ValueOfList(&_SubdomainRegistrationFees_2_list{list: &list}) - case "mycel.registry.v1beta1.SubdomainRegistrationFees.default_fee": + case "mycel.registry.v1.SubdomainRegistrationFees.default_fee": m := new(v1beta1.Coin) return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.SubdomainRegistrationFees")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.SubdomainRegistrationFees")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.SubdomainRegistrationFees does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.SubdomainRegistrationFees does not contain field %s", fd.FullName())) } } @@ -390,7 +390,7 @@ func (x *fastReflection_SubdomainRegistrationFees) NewField(fd protoreflect.Fiel func (x *fastReflection_SubdomainRegistrationFees) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in mycel.registry.v1beta1.SubdomainRegistrationFees", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in mycel.registry.v1.SubdomainRegistrationFees", d.FullName())) } panic("unreachable") } @@ -732,8 +732,8 @@ var ( ) func init() { - file_mycel_registry_v1beta1_subdomain_config_proto_init() - md_FeeByLength = File_mycel_registry_v1beta1_subdomain_config_proto.Messages().ByName("FeeByLength") + file_mycel_registry_v1_subdomain_config_proto_init() + md_FeeByLength = File_mycel_registry_v1_subdomain_config_proto.Messages().ByName("FeeByLength") fd_FeeByLength_length = md_FeeByLength.Fields().ByName("length") fd_FeeByLength_is_registrable = md_FeeByLength.Fields().ByName("is_registrable") fd_FeeByLength_fee = md_FeeByLength.Fields().ByName("fee") @@ -748,7 +748,7 @@ func (x *FeeByLength) ProtoReflect() protoreflect.Message { } func (x *FeeByLength) slowProtoReflect() protoreflect.Message { - mi := &file_mycel_registry_v1beta1_subdomain_config_proto_msgTypes[1] + mi := &file_mycel_registry_v1_subdomain_config_proto_msgTypes[1] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -837,17 +837,17 @@ func (x *fastReflection_FeeByLength) Range(f func(protoreflect.FieldDescriptor, // a repeated field is populated if it is non-empty. func (x *fastReflection_FeeByLength) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "mycel.registry.v1beta1.FeeByLength.length": + case "mycel.registry.v1.FeeByLength.length": return x.Length != uint32(0) - case "mycel.registry.v1beta1.FeeByLength.is_registrable": + case "mycel.registry.v1.FeeByLength.is_registrable": return x.IsRegistrable != false - case "mycel.registry.v1beta1.FeeByLength.fee": + case "mycel.registry.v1.FeeByLength.fee": return x.Fee != nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.FeeByLength")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.FeeByLength")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.FeeByLength does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.FeeByLength does not contain field %s", fd.FullName())) } } @@ -859,17 +859,17 @@ func (x *fastReflection_FeeByLength) Has(fd protoreflect.FieldDescriptor) bool { // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_FeeByLength) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "mycel.registry.v1beta1.FeeByLength.length": + case "mycel.registry.v1.FeeByLength.length": x.Length = uint32(0) - case "mycel.registry.v1beta1.FeeByLength.is_registrable": + case "mycel.registry.v1.FeeByLength.is_registrable": x.IsRegistrable = false - case "mycel.registry.v1beta1.FeeByLength.fee": + case "mycel.registry.v1.FeeByLength.fee": x.Fee = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.FeeByLength")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.FeeByLength")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.FeeByLength does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.FeeByLength does not contain field %s", fd.FullName())) } } @@ -881,20 +881,20 @@ func (x *fastReflection_FeeByLength) Clear(fd protoreflect.FieldDescriptor) { // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_FeeByLength) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "mycel.registry.v1beta1.FeeByLength.length": + case "mycel.registry.v1.FeeByLength.length": value := x.Length return protoreflect.ValueOfUint32(value) - case "mycel.registry.v1beta1.FeeByLength.is_registrable": + case "mycel.registry.v1.FeeByLength.is_registrable": value := x.IsRegistrable return protoreflect.ValueOfBool(value) - case "mycel.registry.v1beta1.FeeByLength.fee": + case "mycel.registry.v1.FeeByLength.fee": value := x.Fee return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.FeeByLength")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.FeeByLength")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.FeeByLength does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.FeeByLength does not contain field %s", descriptor.FullName())) } } @@ -910,17 +910,17 @@ func (x *fastReflection_FeeByLength) Get(descriptor protoreflect.FieldDescriptor // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_FeeByLength) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "mycel.registry.v1beta1.FeeByLength.length": + case "mycel.registry.v1.FeeByLength.length": x.Length = uint32(value.Uint()) - case "mycel.registry.v1beta1.FeeByLength.is_registrable": + case "mycel.registry.v1.FeeByLength.is_registrable": x.IsRegistrable = value.Bool() - case "mycel.registry.v1beta1.FeeByLength.fee": + case "mycel.registry.v1.FeeByLength.fee": x.Fee = value.Message().Interface().(*v1beta1.Coin) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.FeeByLength")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.FeeByLength")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.FeeByLength does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.FeeByLength does not contain field %s", fd.FullName())) } } @@ -936,20 +936,20 @@ func (x *fastReflection_FeeByLength) Set(fd protoreflect.FieldDescriptor, value // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_FeeByLength) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "mycel.registry.v1beta1.FeeByLength.fee": + case "mycel.registry.v1.FeeByLength.fee": if x.Fee == nil { x.Fee = new(v1beta1.Coin) } return protoreflect.ValueOfMessage(x.Fee.ProtoReflect()) - case "mycel.registry.v1beta1.FeeByLength.length": - panic(fmt.Errorf("field length of message mycel.registry.v1beta1.FeeByLength is not mutable")) - case "mycel.registry.v1beta1.FeeByLength.is_registrable": - panic(fmt.Errorf("field is_registrable of message mycel.registry.v1beta1.FeeByLength is not mutable")) + case "mycel.registry.v1.FeeByLength.length": + panic(fmt.Errorf("field length of message mycel.registry.v1.FeeByLength is not mutable")) + case "mycel.registry.v1.FeeByLength.is_registrable": + panic(fmt.Errorf("field is_registrable of message mycel.registry.v1.FeeByLength is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.FeeByLength")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.FeeByLength")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.FeeByLength does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.FeeByLength does not contain field %s", fd.FullName())) } } @@ -958,18 +958,18 @@ func (x *fastReflection_FeeByLength) Mutable(fd protoreflect.FieldDescriptor) pr // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_FeeByLength) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "mycel.registry.v1beta1.FeeByLength.length": + case "mycel.registry.v1.FeeByLength.length": return protoreflect.ValueOfUint32(uint32(0)) - case "mycel.registry.v1beta1.FeeByLength.is_registrable": + case "mycel.registry.v1.FeeByLength.is_registrable": return protoreflect.ValueOfBool(false) - case "mycel.registry.v1beta1.FeeByLength.fee": + case "mycel.registry.v1.FeeByLength.fee": m := new(v1beta1.Coin) return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.FeeByLength")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.FeeByLength")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.FeeByLength does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.FeeByLength does not contain field %s", fd.FullName())) } } @@ -979,7 +979,7 @@ func (x *fastReflection_FeeByLength) NewField(fd protoreflect.FieldDescriptor) p func (x *fastReflection_FeeByLength) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in mycel.registry.v1beta1.FeeByLength", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in mycel.registry.v1.FeeByLength", d.FullName())) } panic("unreachable") } @@ -1269,8 +1269,8 @@ var ( ) func init() { - file_mycel_registry_v1beta1_subdomain_config_proto_init() - md_FeeByName = File_mycel_registry_v1beta1_subdomain_config_proto.Messages().ByName("FeeByName") + file_mycel_registry_v1_subdomain_config_proto_init() + md_FeeByName = File_mycel_registry_v1_subdomain_config_proto.Messages().ByName("FeeByName") fd_FeeByName_name = md_FeeByName.Fields().ByName("name") fd_FeeByName_is_registrable = md_FeeByName.Fields().ByName("is_registrable") fd_FeeByName_fee = md_FeeByName.Fields().ByName("fee") @@ -1285,7 +1285,7 @@ func (x *FeeByName) ProtoReflect() protoreflect.Message { } func (x *FeeByName) slowProtoReflect() protoreflect.Message { - mi := &file_mycel_registry_v1beta1_subdomain_config_proto_msgTypes[2] + mi := &file_mycel_registry_v1_subdomain_config_proto_msgTypes[2] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1374,17 +1374,17 @@ func (x *fastReflection_FeeByName) Range(f func(protoreflect.FieldDescriptor, pr // a repeated field is populated if it is non-empty. func (x *fastReflection_FeeByName) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "mycel.registry.v1beta1.FeeByName.name": + case "mycel.registry.v1.FeeByName.name": return x.Name != "" - case "mycel.registry.v1beta1.FeeByName.is_registrable": + case "mycel.registry.v1.FeeByName.is_registrable": return x.IsRegistrable != false - case "mycel.registry.v1beta1.FeeByName.fee": + case "mycel.registry.v1.FeeByName.fee": return x.Fee != nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.FeeByName")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.FeeByName")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.FeeByName does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.FeeByName does not contain field %s", fd.FullName())) } } @@ -1396,17 +1396,17 @@ func (x *fastReflection_FeeByName) Has(fd protoreflect.FieldDescriptor) bool { // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_FeeByName) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "mycel.registry.v1beta1.FeeByName.name": + case "mycel.registry.v1.FeeByName.name": x.Name = "" - case "mycel.registry.v1beta1.FeeByName.is_registrable": + case "mycel.registry.v1.FeeByName.is_registrable": x.IsRegistrable = false - case "mycel.registry.v1beta1.FeeByName.fee": + case "mycel.registry.v1.FeeByName.fee": x.Fee = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.FeeByName")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.FeeByName")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.FeeByName does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.FeeByName does not contain field %s", fd.FullName())) } } @@ -1418,20 +1418,20 @@ func (x *fastReflection_FeeByName) Clear(fd protoreflect.FieldDescriptor) { // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_FeeByName) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "mycel.registry.v1beta1.FeeByName.name": + case "mycel.registry.v1.FeeByName.name": value := x.Name return protoreflect.ValueOfString(value) - case "mycel.registry.v1beta1.FeeByName.is_registrable": + case "mycel.registry.v1.FeeByName.is_registrable": value := x.IsRegistrable return protoreflect.ValueOfBool(value) - case "mycel.registry.v1beta1.FeeByName.fee": + case "mycel.registry.v1.FeeByName.fee": value := x.Fee return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.FeeByName")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.FeeByName")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.FeeByName does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.FeeByName does not contain field %s", descriptor.FullName())) } } @@ -1447,17 +1447,17 @@ func (x *fastReflection_FeeByName) Get(descriptor protoreflect.FieldDescriptor) // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_FeeByName) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "mycel.registry.v1beta1.FeeByName.name": + case "mycel.registry.v1.FeeByName.name": x.Name = value.Interface().(string) - case "mycel.registry.v1beta1.FeeByName.is_registrable": + case "mycel.registry.v1.FeeByName.is_registrable": x.IsRegistrable = value.Bool() - case "mycel.registry.v1beta1.FeeByName.fee": + case "mycel.registry.v1.FeeByName.fee": x.Fee = value.Message().Interface().(*v1beta1.Coin) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.FeeByName")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.FeeByName")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.FeeByName does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.FeeByName does not contain field %s", fd.FullName())) } } @@ -1473,20 +1473,20 @@ func (x *fastReflection_FeeByName) Set(fd protoreflect.FieldDescriptor, value pr // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_FeeByName) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "mycel.registry.v1beta1.FeeByName.fee": + case "mycel.registry.v1.FeeByName.fee": if x.Fee == nil { x.Fee = new(v1beta1.Coin) } return protoreflect.ValueOfMessage(x.Fee.ProtoReflect()) - case "mycel.registry.v1beta1.FeeByName.name": - panic(fmt.Errorf("field name of message mycel.registry.v1beta1.FeeByName is not mutable")) - case "mycel.registry.v1beta1.FeeByName.is_registrable": - panic(fmt.Errorf("field is_registrable of message mycel.registry.v1beta1.FeeByName is not mutable")) + case "mycel.registry.v1.FeeByName.name": + panic(fmt.Errorf("field name of message mycel.registry.v1.FeeByName is not mutable")) + case "mycel.registry.v1.FeeByName.is_registrable": + panic(fmt.Errorf("field is_registrable of message mycel.registry.v1.FeeByName is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.FeeByName")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.FeeByName")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.FeeByName does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.FeeByName does not contain field %s", fd.FullName())) } } @@ -1495,18 +1495,18 @@ func (x *fastReflection_FeeByName) Mutable(fd protoreflect.FieldDescriptor) prot // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_FeeByName) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "mycel.registry.v1beta1.FeeByName.name": + case "mycel.registry.v1.FeeByName.name": return protoreflect.ValueOfString("") - case "mycel.registry.v1beta1.FeeByName.is_registrable": + case "mycel.registry.v1.FeeByName.is_registrable": return protoreflect.ValueOfBool(false) - case "mycel.registry.v1beta1.FeeByName.fee": + case "mycel.registry.v1.FeeByName.fee": m := new(v1beta1.Coin) return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.FeeByName")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.FeeByName")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.FeeByName does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.FeeByName does not contain field %s", fd.FullName())) } } @@ -1516,7 +1516,7 @@ func (x *fastReflection_FeeByName) NewField(fd protoreflect.FieldDescriptor) pro func (x *fastReflection_FeeByName) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in mycel.registry.v1beta1.FeeByName", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in mycel.registry.v1.FeeByName", d.FullName())) } panic("unreachable") } @@ -1825,8 +1825,8 @@ var ( ) func init() { - file_mycel_registry_v1beta1_subdomain_config_proto_init() - md_SubdomainConfig = File_mycel_registry_v1beta1_subdomain_config_proto.Messages().ByName("SubdomainConfig") + file_mycel_registry_v1_subdomain_config_proto_init() + md_SubdomainConfig = File_mycel_registry_v1_subdomain_config_proto.Messages().ByName("SubdomainConfig") fd_SubdomainConfig_max_subdomain_registrations = md_SubdomainConfig.Fields().ByName("max_subdomain_registrations") fd_SubdomainConfig_subdomain_registration_fees = md_SubdomainConfig.Fields().ByName("subdomain_registration_fees") fd_SubdomainConfig_is_registrable = md_SubdomainConfig.Fields().ByName("is_registrable") @@ -1844,7 +1844,7 @@ func (x *SubdomainConfig) ProtoReflect() protoreflect.Message { } func (x *SubdomainConfig) slowProtoReflect() protoreflect.Message { - mi := &file_mycel_registry_v1beta1_subdomain_config_proto_msgTypes[3] + mi := &file_mycel_registry_v1_subdomain_config_proto_msgTypes[3] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1951,23 +1951,23 @@ func (x *fastReflection_SubdomainConfig) Range(f func(protoreflect.FieldDescript // a repeated field is populated if it is non-empty. func (x *fastReflection_SubdomainConfig) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "mycel.registry.v1beta1.SubdomainConfig.max_subdomain_registrations": + case "mycel.registry.v1.SubdomainConfig.max_subdomain_registrations": return x.MaxSubdomainRegistrations != uint64(0) - case "mycel.registry.v1beta1.SubdomainConfig.subdomain_registration_fees": + case "mycel.registry.v1.SubdomainConfig.subdomain_registration_fees": return x.SubdomainRegistrationFees != nil - case "mycel.registry.v1beta1.SubdomainConfig.is_registrable": + case "mycel.registry.v1.SubdomainConfig.is_registrable": return x.IsRegistrable != false - case "mycel.registry.v1beta1.SubdomainConfig.registrable_role": + case "mycel.registry.v1.SubdomainConfig.registrable_role": return x.RegistrableRole != 0 - case "mycel.registry.v1beta1.SubdomainConfig.custom_expiration_date": + case "mycel.registry.v1.SubdomainConfig.custom_expiration_date": return x.CustomExpirationDate != false - case "mycel.registry.v1beta1.SubdomainConfig.registration_policy": + case "mycel.registry.v1.SubdomainConfig.registration_policy": return x.RegistrationPolicy != 0 default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.SubdomainConfig")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.SubdomainConfig")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.SubdomainConfig does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.SubdomainConfig does not contain field %s", fd.FullName())) } } @@ -1979,23 +1979,23 @@ func (x *fastReflection_SubdomainConfig) Has(fd protoreflect.FieldDescriptor) bo // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_SubdomainConfig) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "mycel.registry.v1beta1.SubdomainConfig.max_subdomain_registrations": + case "mycel.registry.v1.SubdomainConfig.max_subdomain_registrations": x.MaxSubdomainRegistrations = uint64(0) - case "mycel.registry.v1beta1.SubdomainConfig.subdomain_registration_fees": + case "mycel.registry.v1.SubdomainConfig.subdomain_registration_fees": x.SubdomainRegistrationFees = nil - case "mycel.registry.v1beta1.SubdomainConfig.is_registrable": + case "mycel.registry.v1.SubdomainConfig.is_registrable": x.IsRegistrable = false - case "mycel.registry.v1beta1.SubdomainConfig.registrable_role": + case "mycel.registry.v1.SubdomainConfig.registrable_role": x.RegistrableRole = 0 - case "mycel.registry.v1beta1.SubdomainConfig.custom_expiration_date": + case "mycel.registry.v1.SubdomainConfig.custom_expiration_date": x.CustomExpirationDate = false - case "mycel.registry.v1beta1.SubdomainConfig.registration_policy": + case "mycel.registry.v1.SubdomainConfig.registration_policy": x.RegistrationPolicy = 0 default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.SubdomainConfig")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.SubdomainConfig")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.SubdomainConfig does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.SubdomainConfig does not contain field %s", fd.FullName())) } } @@ -2007,29 +2007,29 @@ func (x *fastReflection_SubdomainConfig) Clear(fd protoreflect.FieldDescriptor) // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_SubdomainConfig) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "mycel.registry.v1beta1.SubdomainConfig.max_subdomain_registrations": + case "mycel.registry.v1.SubdomainConfig.max_subdomain_registrations": value := x.MaxSubdomainRegistrations return protoreflect.ValueOfUint64(value) - case "mycel.registry.v1beta1.SubdomainConfig.subdomain_registration_fees": + case "mycel.registry.v1.SubdomainConfig.subdomain_registration_fees": value := x.SubdomainRegistrationFees return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "mycel.registry.v1beta1.SubdomainConfig.is_registrable": + case "mycel.registry.v1.SubdomainConfig.is_registrable": value := x.IsRegistrable return protoreflect.ValueOfBool(value) - case "mycel.registry.v1beta1.SubdomainConfig.registrable_role": + case "mycel.registry.v1.SubdomainConfig.registrable_role": value := x.RegistrableRole return protoreflect.ValueOfEnum((protoreflect.EnumNumber)(value)) - case "mycel.registry.v1beta1.SubdomainConfig.custom_expiration_date": + case "mycel.registry.v1.SubdomainConfig.custom_expiration_date": value := x.CustomExpirationDate return protoreflect.ValueOfBool(value) - case "mycel.registry.v1beta1.SubdomainConfig.registration_policy": + case "mycel.registry.v1.SubdomainConfig.registration_policy": value := x.RegistrationPolicy return protoreflect.ValueOfEnum((protoreflect.EnumNumber)(value)) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.SubdomainConfig")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.SubdomainConfig")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.SubdomainConfig does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.SubdomainConfig does not contain field %s", descriptor.FullName())) } } @@ -2045,23 +2045,23 @@ func (x *fastReflection_SubdomainConfig) Get(descriptor protoreflect.FieldDescri // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_SubdomainConfig) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "mycel.registry.v1beta1.SubdomainConfig.max_subdomain_registrations": + case "mycel.registry.v1.SubdomainConfig.max_subdomain_registrations": x.MaxSubdomainRegistrations = value.Uint() - case "mycel.registry.v1beta1.SubdomainConfig.subdomain_registration_fees": + case "mycel.registry.v1.SubdomainConfig.subdomain_registration_fees": x.SubdomainRegistrationFees = value.Message().Interface().(*SubdomainRegistrationFees) - case "mycel.registry.v1beta1.SubdomainConfig.is_registrable": + case "mycel.registry.v1.SubdomainConfig.is_registrable": x.IsRegistrable = value.Bool() - case "mycel.registry.v1beta1.SubdomainConfig.registrable_role": + case "mycel.registry.v1.SubdomainConfig.registrable_role": x.RegistrableRole = (DomainRole)(value.Enum()) - case "mycel.registry.v1beta1.SubdomainConfig.custom_expiration_date": + case "mycel.registry.v1.SubdomainConfig.custom_expiration_date": x.CustomExpirationDate = value.Bool() - case "mycel.registry.v1beta1.SubdomainConfig.registration_policy": + case "mycel.registry.v1.SubdomainConfig.registration_policy": x.RegistrationPolicy = (RegistrationPolicyType)(value.Enum()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.SubdomainConfig")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.SubdomainConfig")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.SubdomainConfig does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.SubdomainConfig does not contain field %s", fd.FullName())) } } @@ -2077,26 +2077,26 @@ func (x *fastReflection_SubdomainConfig) Set(fd protoreflect.FieldDescriptor, va // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_SubdomainConfig) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "mycel.registry.v1beta1.SubdomainConfig.subdomain_registration_fees": + case "mycel.registry.v1.SubdomainConfig.subdomain_registration_fees": if x.SubdomainRegistrationFees == nil { x.SubdomainRegistrationFees = new(SubdomainRegistrationFees) } return protoreflect.ValueOfMessage(x.SubdomainRegistrationFees.ProtoReflect()) - case "mycel.registry.v1beta1.SubdomainConfig.max_subdomain_registrations": - panic(fmt.Errorf("field max_subdomain_registrations of message mycel.registry.v1beta1.SubdomainConfig is not mutable")) - case "mycel.registry.v1beta1.SubdomainConfig.is_registrable": - panic(fmt.Errorf("field is_registrable of message mycel.registry.v1beta1.SubdomainConfig is not mutable")) - case "mycel.registry.v1beta1.SubdomainConfig.registrable_role": - panic(fmt.Errorf("field registrable_role of message mycel.registry.v1beta1.SubdomainConfig is not mutable")) - case "mycel.registry.v1beta1.SubdomainConfig.custom_expiration_date": - panic(fmt.Errorf("field custom_expiration_date of message mycel.registry.v1beta1.SubdomainConfig is not mutable")) - case "mycel.registry.v1beta1.SubdomainConfig.registration_policy": - panic(fmt.Errorf("field registration_policy of message mycel.registry.v1beta1.SubdomainConfig is not mutable")) + case "mycel.registry.v1.SubdomainConfig.max_subdomain_registrations": + panic(fmt.Errorf("field max_subdomain_registrations of message mycel.registry.v1.SubdomainConfig is not mutable")) + case "mycel.registry.v1.SubdomainConfig.is_registrable": + panic(fmt.Errorf("field is_registrable of message mycel.registry.v1.SubdomainConfig is not mutable")) + case "mycel.registry.v1.SubdomainConfig.registrable_role": + panic(fmt.Errorf("field registrable_role of message mycel.registry.v1.SubdomainConfig is not mutable")) + case "mycel.registry.v1.SubdomainConfig.custom_expiration_date": + panic(fmt.Errorf("field custom_expiration_date of message mycel.registry.v1.SubdomainConfig is not mutable")) + case "mycel.registry.v1.SubdomainConfig.registration_policy": + panic(fmt.Errorf("field registration_policy of message mycel.registry.v1.SubdomainConfig is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.SubdomainConfig")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.SubdomainConfig")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.SubdomainConfig does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.SubdomainConfig does not contain field %s", fd.FullName())) } } @@ -2105,24 +2105,24 @@ func (x *fastReflection_SubdomainConfig) Mutable(fd protoreflect.FieldDescriptor // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_SubdomainConfig) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "mycel.registry.v1beta1.SubdomainConfig.max_subdomain_registrations": + case "mycel.registry.v1.SubdomainConfig.max_subdomain_registrations": return protoreflect.ValueOfUint64(uint64(0)) - case "mycel.registry.v1beta1.SubdomainConfig.subdomain_registration_fees": + case "mycel.registry.v1.SubdomainConfig.subdomain_registration_fees": m := new(SubdomainRegistrationFees) return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "mycel.registry.v1beta1.SubdomainConfig.is_registrable": + case "mycel.registry.v1.SubdomainConfig.is_registrable": return protoreflect.ValueOfBool(false) - case "mycel.registry.v1beta1.SubdomainConfig.registrable_role": + case "mycel.registry.v1.SubdomainConfig.registrable_role": return protoreflect.ValueOfEnum(0) - case "mycel.registry.v1beta1.SubdomainConfig.custom_expiration_date": + case "mycel.registry.v1.SubdomainConfig.custom_expiration_date": return protoreflect.ValueOfBool(false) - case "mycel.registry.v1beta1.SubdomainConfig.registration_policy": + case "mycel.registry.v1.SubdomainConfig.registration_policy": return protoreflect.ValueOfEnum(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.SubdomainConfig")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.SubdomainConfig")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.SubdomainConfig does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.SubdomainConfig does not contain field %s", fd.FullName())) } } @@ -2132,7 +2132,7 @@ func (x *fastReflection_SubdomainConfig) NewField(fd protoreflect.FieldDescripto func (x *fastReflection_SubdomainConfig) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in mycel.registry.v1beta1.SubdomainConfig", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in mycel.registry.v1.SubdomainConfig", d.FullName())) } panic("unreachable") } @@ -2505,7 +2505,7 @@ func (x *fastReflection_SubdomainConfig) ProtoMethods() *protoiface.Methods { // versions: // protoc-gen-go v1.27.0 // protoc (unknown) -// source: mycel/registry/v1beta1/subdomain_config.proto +// source: mycel/registry/v1/subdomain_config.proto const ( // Verify that this generated code is sufficiently up-to-date. @@ -2544,11 +2544,11 @@ func (x RegistrationPolicyType) String() string { } func (RegistrationPolicyType) Descriptor() protoreflect.EnumDescriptor { - return file_mycel_registry_v1beta1_subdomain_config_proto_enumTypes[0].Descriptor() + return file_mycel_registry_v1_subdomain_config_proto_enumTypes[0].Descriptor() } func (RegistrationPolicyType) Type() protoreflect.EnumType { - return &file_mycel_registry_v1beta1_subdomain_config_proto_enumTypes[0] + return &file_mycel_registry_v1_subdomain_config_proto_enumTypes[0] } func (x RegistrationPolicyType) Number() protoreflect.EnumNumber { @@ -2557,7 +2557,7 @@ func (x RegistrationPolicyType) Number() protoreflect.EnumNumber { // Deprecated: Use RegistrationPolicyType.Descriptor instead. func (RegistrationPolicyType) EnumDescriptor() ([]byte, []int) { - return file_mycel_registry_v1beta1_subdomain_config_proto_rawDescGZIP(), []int{0} + return file_mycel_registry_v1_subdomain_config_proto_rawDescGZIP(), []int{0} } type SubdomainRegistrationFees struct { @@ -2573,7 +2573,7 @@ type SubdomainRegistrationFees struct { func (x *SubdomainRegistrationFees) Reset() { *x = SubdomainRegistrationFees{} if protoimpl.UnsafeEnabled { - mi := &file_mycel_registry_v1beta1_subdomain_config_proto_msgTypes[0] + mi := &file_mycel_registry_v1_subdomain_config_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2587,7 +2587,7 @@ func (*SubdomainRegistrationFees) ProtoMessage() {} // Deprecated: Use SubdomainRegistrationFees.ProtoReflect.Descriptor instead. func (*SubdomainRegistrationFees) Descriptor() ([]byte, []int) { - return file_mycel_registry_v1beta1_subdomain_config_proto_rawDescGZIP(), []int{0} + return file_mycel_registry_v1_subdomain_config_proto_rawDescGZIP(), []int{0} } func (x *SubdomainRegistrationFees) GetFeeByLength() []*FeeByLength { @@ -2624,7 +2624,7 @@ type FeeByLength struct { func (x *FeeByLength) Reset() { *x = FeeByLength{} if protoimpl.UnsafeEnabled { - mi := &file_mycel_registry_v1beta1_subdomain_config_proto_msgTypes[1] + mi := &file_mycel_registry_v1_subdomain_config_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2638,7 +2638,7 @@ func (*FeeByLength) ProtoMessage() {} // Deprecated: Use FeeByLength.ProtoReflect.Descriptor instead. func (*FeeByLength) Descriptor() ([]byte, []int) { - return file_mycel_registry_v1beta1_subdomain_config_proto_rawDescGZIP(), []int{1} + return file_mycel_registry_v1_subdomain_config_proto_rawDescGZIP(), []int{1} } func (x *FeeByLength) GetLength() uint32 { @@ -2675,7 +2675,7 @@ type FeeByName struct { func (x *FeeByName) Reset() { *x = FeeByName{} if protoimpl.UnsafeEnabled { - mi := &file_mycel_registry_v1beta1_subdomain_config_proto_msgTypes[2] + mi := &file_mycel_registry_v1_subdomain_config_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2689,7 +2689,7 @@ func (*FeeByName) ProtoMessage() {} // Deprecated: Use FeeByName.ProtoReflect.Descriptor instead. func (*FeeByName) Descriptor() ([]byte, []int) { - return file_mycel_registry_v1beta1_subdomain_config_proto_rawDescGZIP(), []int{2} + return file_mycel_registry_v1_subdomain_config_proto_rawDescGZIP(), []int{2} } func (x *FeeByName) GetName() string { @@ -2721,15 +2721,15 @@ type SubdomainConfig struct { MaxSubdomainRegistrations uint64 `protobuf:"varint,1,opt,name=max_subdomain_registrations,json=maxSubdomainRegistrations,proto3" json:"max_subdomain_registrations,omitempty"` SubdomainRegistrationFees *SubdomainRegistrationFees `protobuf:"bytes,2,opt,name=subdomain_registration_fees,json=subdomainRegistrationFees,proto3" json:"subdomain_registration_fees,omitempty"` IsRegistrable bool `protobuf:"varint,3,opt,name=is_registrable,json=isRegistrable,proto3" json:"is_registrable,omitempty"` - RegistrableRole DomainRole `protobuf:"varint,4,opt,name=registrable_role,json=registrableRole,proto3,enum=mycel.registry.v1beta1.DomainRole" json:"registrable_role,omitempty"` + RegistrableRole DomainRole `protobuf:"varint,4,opt,name=registrable_role,json=registrableRole,proto3,enum=mycel.registry.v1.DomainRole" json:"registrable_role,omitempty"` CustomExpirationDate bool `protobuf:"varint,5,opt,name=custom_expiration_date,json=customExpirationDate,proto3" json:"custom_expiration_date,omitempty"` - RegistrationPolicy RegistrationPolicyType `protobuf:"varint,6,opt,name=registration_policy,json=registrationPolicy,proto3,enum=mycel.registry.v1beta1.RegistrationPolicyType" json:"registration_policy,omitempty"` + RegistrationPolicy RegistrationPolicyType `protobuf:"varint,6,opt,name=registration_policy,json=registrationPolicy,proto3,enum=mycel.registry.v1.RegistrationPolicyType" json:"registration_policy,omitempty"` } func (x *SubdomainConfig) Reset() { *x = SubdomainConfig{} if protoimpl.UnsafeEnabled { - mi := &file_mycel_registry_v1beta1_subdomain_config_proto_msgTypes[3] + mi := &file_mycel_registry_v1_subdomain_config_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2743,7 +2743,7 @@ func (*SubdomainConfig) ProtoMessage() {} // Deprecated: Use SubdomainConfig.ProtoReflect.Descriptor instead. func (*SubdomainConfig) Descriptor() ([]byte, []int) { - return file_mycel_registry_v1beta1_subdomain_config_proto_rawDescGZIP(), []int{3} + return file_mycel_registry_v1_subdomain_config_proto_rawDescGZIP(), []int{3} } func (x *SubdomainConfig) GetMaxSubdomainRegistrations() uint64 { @@ -2788,129 +2788,125 @@ func (x *SubdomainConfig) GetRegistrationPolicy() RegistrationPolicyType { return RegistrationPolicyType_PRIVATE } -var File_mycel_registry_v1beta1_subdomain_config_proto protoreflect.FileDescriptor - -var file_mycel_registry_v1beta1_subdomain_config_proto_rawDesc = []byte{ - 0x0a, 0x2d, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, - 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x73, 0x75, 0x62, 0x64, 0x6f, 0x6d, 0x61, - 0x69, 0x6e, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, - 0x16, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, - 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x1a, 0x1e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, - 0x62, 0x61, 0x73, 0x65, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x63, 0x6f, 0x69, - 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2b, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2f, 0x72, - 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, - 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xe3, 0x01, 0x0a, 0x19, 0x53, 0x75, 0x62, 0x64, 0x6f, 0x6d, 0x61, - 0x69, 0x6e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x65, - 0x65, 0x73, 0x12, 0x47, 0x0a, 0x0d, 0x66, 0x65, 0x65, 0x5f, 0x62, 0x79, 0x5f, 0x6c, 0x65, 0x6e, - 0x67, 0x74, 0x68, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x6d, 0x79, 0x63, 0x65, - 0x6c, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, - 0x61, 0x31, 0x2e, 0x46, 0x65, 0x65, 0x42, 0x79, 0x4c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x52, 0x0b, - 0x66, 0x65, 0x65, 0x42, 0x79, 0x4c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x12, 0x41, 0x0a, 0x0b, 0x66, - 0x65, 0x65, 0x5f, 0x62, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x21, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, - 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x46, 0x65, 0x65, 0x42, 0x79, 0x4e, - 0x61, 0x6d, 0x65, 0x52, 0x09, 0x66, 0x65, 0x65, 0x42, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x3a, - 0x0a, 0x0b, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x66, 0x65, 0x65, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, - 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x6f, 0x69, 0x6e, 0x52, 0x0a, - 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x46, 0x65, 0x65, 0x22, 0x79, 0x0a, 0x0b, 0x46, 0x65, - 0x65, 0x42, 0x79, 0x4c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x12, 0x16, 0x0a, 0x06, 0x6c, 0x65, 0x6e, - 0x67, 0x74, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x06, 0x6c, 0x65, 0x6e, 0x67, 0x74, - 0x68, 0x12, 0x25, 0x0a, 0x0e, 0x69, 0x73, 0x5f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, - 0x62, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, 0x69, 0x73, 0x52, 0x65, 0x67, - 0x69, 0x73, 0x74, 0x72, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x2b, 0x0a, 0x03, 0x66, 0x65, 0x65, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, - 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x6f, 0x69, 0x6e, - 0x52, 0x03, 0x66, 0x65, 0x65, 0x22, 0x73, 0x0a, 0x09, 0x46, 0x65, 0x65, 0x42, 0x79, 0x4e, 0x61, - 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x25, 0x0a, 0x0e, 0x69, 0x73, 0x5f, 0x72, 0x65, 0x67, - 0x69, 0x73, 0x74, 0x72, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, - 0x69, 0x73, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x2b, 0x0a, - 0x03, 0x66, 0x65, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x6f, 0x73, +var File_mycel_registry_v1_subdomain_config_proto protoreflect.FileDescriptor + +var file_mycel_registry_v1_subdomain_config_proto_rawDesc = []byte{ + 0x0a, 0x28, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, + 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x75, 0x62, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x5f, 0x63, 0x6f, + 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x11, 0x6d, 0x79, 0x63, 0x65, + 0x6c, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x1a, 0x1e, 0x63, + 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x62, 0x61, 0x73, 0x65, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, + 0x61, 0x31, 0x2f, 0x63, 0x6f, 0x69, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x26, 0x6d, + 0x79, 0x63, 0x65, 0x6c, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, + 0x2f, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xd9, 0x01, 0x0a, 0x19, 0x53, 0x75, 0x62, 0x64, 0x6f, 0x6d, + 0x61, 0x69, 0x6e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x46, + 0x65, 0x65, 0x73, 0x12, 0x42, 0x0a, 0x0d, 0x66, 0x65, 0x65, 0x5f, 0x62, 0x79, 0x5f, 0x6c, 0x65, + 0x6e, 0x67, 0x74, 0x68, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x6d, 0x79, 0x63, + 0x65, 0x6c, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x46, + 0x65, 0x65, 0x42, 0x79, 0x4c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x52, 0x0b, 0x66, 0x65, 0x65, 0x42, + 0x79, 0x4c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x12, 0x3c, 0x0a, 0x0b, 0x66, 0x65, 0x65, 0x5f, 0x62, + 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x6d, + 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, + 0x2e, 0x46, 0x65, 0x65, 0x42, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x52, 0x09, 0x66, 0x65, 0x65, 0x42, + 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x3a, 0x0a, 0x0b, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, + 0x5f, 0x66, 0x65, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, - 0x2e, 0x43, 0x6f, 0x69, 0x6e, 0x52, 0x03, 0x66, 0x65, 0x65, 0x22, 0xd1, 0x03, 0x0a, 0x0f, 0x53, - 0x75, 0x62, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x3e, - 0x0a, 0x1b, 0x6d, 0x61, 0x78, 0x5f, 0x73, 0x75, 0x62, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x5f, - 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x04, 0x52, 0x19, 0x6d, 0x61, 0x78, 0x53, 0x75, 0x62, 0x64, 0x6f, 0x6d, 0x61, 0x69, - 0x6e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x71, - 0x0a, 0x1b, 0x73, 0x75, 0x62, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x5f, 0x72, 0x65, 0x67, 0x69, - 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x66, 0x65, 0x65, 0x73, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x31, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x72, 0x65, 0x67, 0x69, - 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x75, 0x62, - 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x46, 0x65, 0x65, 0x73, 0x52, 0x19, 0x73, 0x75, 0x62, 0x64, 0x6f, 0x6d, 0x61, 0x69, - 0x6e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x65, 0x65, - 0x73, 0x12, 0x25, 0x0a, 0x0e, 0x69, 0x73, 0x5f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, - 0x62, 0x6c, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, 0x69, 0x73, 0x52, 0x65, 0x67, - 0x69, 0x73, 0x74, 0x72, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x4d, 0x0a, 0x10, 0x72, 0x65, 0x67, 0x69, - 0x73, 0x74, 0x72, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x72, 0x6f, 0x6c, 0x65, 0x18, 0x04, 0x20, 0x01, - 0x28, 0x0e, 0x32, 0x22, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, - 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x44, 0x6f, 0x6d, 0x61, - 0x69, 0x6e, 0x52, 0x6f, 0x6c, 0x65, 0x52, 0x0f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, - 0x62, 0x6c, 0x65, 0x52, 0x6f, 0x6c, 0x65, 0x12, 0x34, 0x0a, 0x16, 0x63, 0x75, 0x73, 0x74, 0x6f, - 0x6d, 0x5f, 0x65, 0x78, 0x70, 0x69, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x64, 0x61, 0x74, - 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x14, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x45, - 0x78, 0x70, 0x69, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x61, 0x74, 0x65, 0x12, 0x5f, 0x0a, - 0x13, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x70, 0x6f, - 0x6c, 0x69, 0x63, 0x79, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2e, 0x2e, 0x6d, 0x79, 0x63, - 0x65, 0x6c, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, - 0x74, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x54, 0x79, 0x70, 0x65, 0x52, 0x12, 0x72, 0x65, 0x67, 0x69, - 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2a, 0x31, - 0x0a, 0x16, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x6f, - 0x6c, 0x69, 0x63, 0x79, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0b, 0x0a, 0x07, 0x50, 0x52, 0x49, 0x56, - 0x41, 0x54, 0x45, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x50, 0x55, 0x42, 0x4c, 0x49, 0x43, 0x10, - 0x01, 0x42, 0xdc, 0x01, 0x0a, 0x1a, 0x63, 0x6f, 0x6d, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, - 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, - 0x42, 0x14, 0x53, 0x75, 0x62, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, - 0x67, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2e, 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, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0xa2, 0x02, 0x03, 0x4d, 0x52, 0x58, 0xaa, 0x02, - 0x16, 0x4d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, - 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xca, 0x02, 0x16, 0x4d, 0x79, 0x63, 0x65, 0x6c, 0x5c, - 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, - 0xe2, 0x02, 0x22, 0x4d, 0x79, 0x63, 0x65, 0x6c, 0x5c, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, - 0x79, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, - 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x18, 0x4d, 0x79, 0x63, 0x65, 0x6c, 0x3a, 0x3a, 0x52, - 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, - 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x2e, 0x43, 0x6f, 0x69, 0x6e, 0x52, 0x0a, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x46, 0x65, + 0x65, 0x22, 0x79, 0x0a, 0x0b, 0x46, 0x65, 0x65, 0x42, 0x79, 0x4c, 0x65, 0x6e, 0x67, 0x74, 0x68, + 0x12, 0x16, 0x0a, 0x06, 0x6c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, + 0x52, 0x06, 0x6c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x12, 0x25, 0x0a, 0x0e, 0x69, 0x73, 0x5f, 0x72, + 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, + 0x52, 0x0d, 0x69, 0x73, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x62, 0x6c, 0x65, 0x12, + 0x2b, 0x0a, 0x03, 0x66, 0x65, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, + 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, + 0x61, 0x31, 0x2e, 0x43, 0x6f, 0x69, 0x6e, 0x52, 0x03, 0x66, 0x65, 0x65, 0x22, 0x73, 0x0a, 0x09, + 0x46, 0x65, 0x65, 0x42, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, + 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x25, 0x0a, + 0x0e, 0x69, 0x73, 0x5f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x62, 0x6c, 0x65, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, 0x69, 0x73, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, + 0x61, 0x62, 0x6c, 0x65, 0x12, 0x2b, 0x0a, 0x03, 0x66, 0x65, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, + 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x6f, 0x69, 0x6e, 0x52, 0x03, 0x66, 0x65, + 0x65, 0x22, 0xc2, 0x03, 0x0a, 0x0f, 0x53, 0x75, 0x62, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x43, + 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x3e, 0x0a, 0x1b, 0x6d, 0x61, 0x78, 0x5f, 0x73, 0x75, 0x62, + 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x5f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x19, 0x6d, 0x61, 0x78, 0x53, + 0x75, 0x62, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x6c, 0x0a, 0x1b, 0x73, 0x75, 0x62, 0x64, 0x6f, 0x6d, 0x61, + 0x69, 0x6e, 0x5f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, + 0x66, 0x65, 0x65, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x6d, 0x79, 0x63, + 0x65, 0x6c, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x53, + 0x75, 0x62, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x65, 0x65, 0x73, 0x52, 0x19, 0x73, 0x75, 0x62, 0x64, 0x6f, 0x6d, + 0x61, 0x69, 0x6e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x46, + 0x65, 0x65, 0x73, 0x12, 0x25, 0x0a, 0x0e, 0x69, 0x73, 0x5f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, + 0x72, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, 0x69, 0x73, 0x52, + 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x48, 0x0a, 0x10, 0x72, 0x65, + 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x72, 0x6f, 0x6c, 0x65, 0x18, 0x04, + 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1d, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x72, 0x65, 0x67, + 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, + 0x6f, 0x6c, 0x65, 0x52, 0x0f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x62, 0x6c, 0x65, + 0x52, 0x6f, 0x6c, 0x65, 0x12, 0x34, 0x0a, 0x16, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x5f, 0x65, + 0x78, 0x70, 0x69, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x64, 0x61, 0x74, 0x65, 0x18, 0x05, + 0x20, 0x01, 0x28, 0x08, 0x52, 0x14, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x45, 0x78, 0x70, 0x69, + 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x61, 0x74, 0x65, 0x12, 0x5a, 0x0a, 0x13, 0x72, 0x65, + 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, + 0x79, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x29, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, + 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x67, 0x69, + 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x54, 0x79, + 0x70, 0x65, 0x52, 0x12, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2a, 0x31, 0x0a, 0x16, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, + 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x54, 0x79, 0x70, 0x65, + 0x12, 0x0b, 0x0a, 0x07, 0x50, 0x52, 0x49, 0x56, 0x41, 0x54, 0x45, 0x10, 0x00, 0x12, 0x0a, 0x0a, + 0x06, 0x50, 0x55, 0x42, 0x4c, 0x49, 0x43, 0x10, 0x01, 0x42, 0xc2, 0x01, 0x0a, 0x15, 0x63, 0x6f, + 0x6d, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, + 0x2e, 0x76, 0x31, 0x42, 0x14, 0x53, 0x75, 0x62, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x43, 0x6f, + 0x6e, 0x66, 0x69, 0x67, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2d, 0x63, 0x6f, 0x73, + 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x6d, 0x79, + 0x63, 0x65, 0x6c, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x3b, + 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x4d, 0x52, 0x58, + 0xaa, 0x02, 0x11, 0x4d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, + 0x79, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x11, 0x4d, 0x79, 0x63, 0x65, 0x6c, 0x5c, 0x52, 0x65, 0x67, + 0x69, 0x73, 0x74, 0x72, 0x79, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x1d, 0x4d, 0x79, 0x63, 0x65, 0x6c, + 0x5c, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, + 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x13, 0x4d, 0x79, 0x63, 0x65, 0x6c, + 0x3a, 0x3a, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( - file_mycel_registry_v1beta1_subdomain_config_proto_rawDescOnce sync.Once - file_mycel_registry_v1beta1_subdomain_config_proto_rawDescData = file_mycel_registry_v1beta1_subdomain_config_proto_rawDesc + file_mycel_registry_v1_subdomain_config_proto_rawDescOnce sync.Once + file_mycel_registry_v1_subdomain_config_proto_rawDescData = file_mycel_registry_v1_subdomain_config_proto_rawDesc ) -func file_mycel_registry_v1beta1_subdomain_config_proto_rawDescGZIP() []byte { - file_mycel_registry_v1beta1_subdomain_config_proto_rawDescOnce.Do(func() { - file_mycel_registry_v1beta1_subdomain_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_mycel_registry_v1beta1_subdomain_config_proto_rawDescData) +func file_mycel_registry_v1_subdomain_config_proto_rawDescGZIP() []byte { + file_mycel_registry_v1_subdomain_config_proto_rawDescOnce.Do(func() { + file_mycel_registry_v1_subdomain_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_mycel_registry_v1_subdomain_config_proto_rawDescData) }) - return file_mycel_registry_v1beta1_subdomain_config_proto_rawDescData + return file_mycel_registry_v1_subdomain_config_proto_rawDescData } -var file_mycel_registry_v1beta1_subdomain_config_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_mycel_registry_v1beta1_subdomain_config_proto_msgTypes = make([]protoimpl.MessageInfo, 4) -var file_mycel_registry_v1beta1_subdomain_config_proto_goTypes = []interface{}{ - (RegistrationPolicyType)(0), // 0: mycel.registry.v1beta1.RegistrationPolicyType - (*SubdomainRegistrationFees)(nil), // 1: mycel.registry.v1beta1.SubdomainRegistrationFees - (*FeeByLength)(nil), // 2: mycel.registry.v1beta1.FeeByLength - (*FeeByName)(nil), // 3: mycel.registry.v1beta1.FeeByName - (*SubdomainConfig)(nil), // 4: mycel.registry.v1beta1.SubdomainConfig +var file_mycel_registry_v1_subdomain_config_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_mycel_registry_v1_subdomain_config_proto_msgTypes = make([]protoimpl.MessageInfo, 4) +var file_mycel_registry_v1_subdomain_config_proto_goTypes = []interface{}{ + (RegistrationPolicyType)(0), // 0: mycel.registry.v1.RegistrationPolicyType + (*SubdomainRegistrationFees)(nil), // 1: mycel.registry.v1.SubdomainRegistrationFees + (*FeeByLength)(nil), // 2: mycel.registry.v1.FeeByLength + (*FeeByName)(nil), // 3: mycel.registry.v1.FeeByName + (*SubdomainConfig)(nil), // 4: mycel.registry.v1.SubdomainConfig (*v1beta1.Coin)(nil), // 5: cosmos.base.v1beta1.Coin - (DomainRole)(0), // 6: mycel.registry.v1beta1.DomainRole -} -var file_mycel_registry_v1beta1_subdomain_config_proto_depIdxs = []int32{ - 2, // 0: mycel.registry.v1beta1.SubdomainRegistrationFees.fee_by_length:type_name -> mycel.registry.v1beta1.FeeByLength - 3, // 1: mycel.registry.v1beta1.SubdomainRegistrationFees.fee_by_name:type_name -> mycel.registry.v1beta1.FeeByName - 5, // 2: mycel.registry.v1beta1.SubdomainRegistrationFees.default_fee:type_name -> cosmos.base.v1beta1.Coin - 5, // 3: mycel.registry.v1beta1.FeeByLength.fee:type_name -> cosmos.base.v1beta1.Coin - 5, // 4: mycel.registry.v1beta1.FeeByName.fee:type_name -> cosmos.base.v1beta1.Coin - 1, // 5: mycel.registry.v1beta1.SubdomainConfig.subdomain_registration_fees:type_name -> mycel.registry.v1beta1.SubdomainRegistrationFees - 6, // 6: mycel.registry.v1beta1.SubdomainConfig.registrable_role:type_name -> mycel.registry.v1beta1.DomainRole - 0, // 7: mycel.registry.v1beta1.SubdomainConfig.registration_policy:type_name -> mycel.registry.v1beta1.RegistrationPolicyType + (DomainRole)(0), // 6: mycel.registry.v1.DomainRole +} +var file_mycel_registry_v1_subdomain_config_proto_depIdxs = []int32{ + 2, // 0: mycel.registry.v1.SubdomainRegistrationFees.fee_by_length:type_name -> mycel.registry.v1.FeeByLength + 3, // 1: mycel.registry.v1.SubdomainRegistrationFees.fee_by_name:type_name -> mycel.registry.v1.FeeByName + 5, // 2: mycel.registry.v1.SubdomainRegistrationFees.default_fee:type_name -> cosmos.base.v1beta1.Coin + 5, // 3: mycel.registry.v1.FeeByLength.fee:type_name -> cosmos.base.v1beta1.Coin + 5, // 4: mycel.registry.v1.FeeByName.fee:type_name -> cosmos.base.v1beta1.Coin + 1, // 5: mycel.registry.v1.SubdomainConfig.subdomain_registration_fees:type_name -> mycel.registry.v1.SubdomainRegistrationFees + 6, // 6: mycel.registry.v1.SubdomainConfig.registrable_role:type_name -> mycel.registry.v1.DomainRole + 0, // 7: mycel.registry.v1.SubdomainConfig.registration_policy:type_name -> mycel.registry.v1.RegistrationPolicyType 8, // [8:8] is the sub-list for method output_type 8, // [8:8] is the sub-list for method input_type 8, // [8:8] is the sub-list for extension type_name @@ -2918,14 +2914,14 @@ var file_mycel_registry_v1beta1_subdomain_config_proto_depIdxs = []int32{ 0, // [0:8] is the sub-list for field type_name } -func init() { file_mycel_registry_v1beta1_subdomain_config_proto_init() } -func file_mycel_registry_v1beta1_subdomain_config_proto_init() { - if File_mycel_registry_v1beta1_subdomain_config_proto != nil { +func init() { file_mycel_registry_v1_subdomain_config_proto_init() } +func file_mycel_registry_v1_subdomain_config_proto_init() { + if File_mycel_registry_v1_subdomain_config_proto != nil { return } - file_mycel_registry_v1beta1_access_control_proto_init() + file_mycel_registry_v1_access_control_proto_init() if !protoimpl.UnsafeEnabled { - file_mycel_registry_v1beta1_subdomain_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_mycel_registry_v1_subdomain_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*SubdomainRegistrationFees); i { case 0: return &v.state @@ -2937,7 +2933,7 @@ func file_mycel_registry_v1beta1_subdomain_config_proto_init() { return nil } } - file_mycel_registry_v1beta1_subdomain_config_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_mycel_registry_v1_subdomain_config_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*FeeByLength); i { case 0: return &v.state @@ -2949,7 +2945,7 @@ func file_mycel_registry_v1beta1_subdomain_config_proto_init() { return nil } } - file_mycel_registry_v1beta1_subdomain_config_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + file_mycel_registry_v1_subdomain_config_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*FeeByName); i { case 0: return &v.state @@ -2961,7 +2957,7 @@ func file_mycel_registry_v1beta1_subdomain_config_proto_init() { return nil } } - file_mycel_registry_v1beta1_subdomain_config_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + file_mycel_registry_v1_subdomain_config_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*SubdomainConfig); i { case 0: return &v.state @@ -2978,19 +2974,19 @@ func file_mycel_registry_v1beta1_subdomain_config_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_mycel_registry_v1beta1_subdomain_config_proto_rawDesc, + RawDescriptor: file_mycel_registry_v1_subdomain_config_proto_rawDesc, NumEnums: 1, NumMessages: 4, NumExtensions: 0, NumServices: 0, }, - GoTypes: file_mycel_registry_v1beta1_subdomain_config_proto_goTypes, - DependencyIndexes: file_mycel_registry_v1beta1_subdomain_config_proto_depIdxs, - EnumInfos: file_mycel_registry_v1beta1_subdomain_config_proto_enumTypes, - MessageInfos: file_mycel_registry_v1beta1_subdomain_config_proto_msgTypes, + GoTypes: file_mycel_registry_v1_subdomain_config_proto_goTypes, + DependencyIndexes: file_mycel_registry_v1_subdomain_config_proto_depIdxs, + EnumInfos: file_mycel_registry_v1_subdomain_config_proto_enumTypes, + MessageInfos: file_mycel_registry_v1_subdomain_config_proto_msgTypes, }.Build() - File_mycel_registry_v1beta1_subdomain_config_proto = out.File - file_mycel_registry_v1beta1_subdomain_config_proto_rawDesc = nil - file_mycel_registry_v1beta1_subdomain_config_proto_goTypes = nil - file_mycel_registry_v1beta1_subdomain_config_proto_depIdxs = nil + File_mycel_registry_v1_subdomain_config_proto = out.File + file_mycel_registry_v1_subdomain_config_proto_rawDesc = nil + file_mycel_registry_v1_subdomain_config_proto_goTypes = nil + file_mycel_registry_v1_subdomain_config_proto_depIdxs = nil } diff --git a/api/mycel/registry/v1beta1/top_level_domain.pulsar.go b/api/mycel/registry/v1/top_level_domain.pulsar.go similarity index 77% rename from api/mycel/registry/v1beta1/top_level_domain.pulsar.go rename to api/mycel/registry/v1/top_level_domain.pulsar.go index f29d6c41..d5bb2811 100644 --- a/api/mycel/registry/v1beta1/top_level_domain.pulsar.go +++ b/api/mycel/registry/v1/top_level_domain.pulsar.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-go-pulsar. DO NOT EDIT. -package types +package registryv1 import ( v1beta1 "cosmossdk.io/api/cosmos/base/v1beta1" @@ -128,8 +128,8 @@ var ( ) func init() { - file_mycel_registry_v1beta1_top_level_domain_proto_init() - md_TopLevelDomain = File_mycel_registry_v1beta1_top_level_domain_proto.Messages().ByName("TopLevelDomain") + file_mycel_registry_v1_top_level_domain_proto_init() + md_TopLevelDomain = File_mycel_registry_v1_top_level_domain_proto.Messages().ByName("TopLevelDomain") fd_TopLevelDomain_name = md_TopLevelDomain.Fields().ByName("name") fd_TopLevelDomain_expiration_date = md_TopLevelDomain.Fields().ByName("expiration_date") fd_TopLevelDomain_subdomain_config = md_TopLevelDomain.Fields().ByName("subdomain_config") @@ -147,7 +147,7 @@ func (x *TopLevelDomain) ProtoReflect() protoreflect.Message { } func (x *TopLevelDomain) slowProtoReflect() protoreflect.Message { - mi := &file_mycel_registry_v1beta1_top_level_domain_proto_msgTypes[0] + mi := &file_mycel_registry_v1_top_level_domain_proto_msgTypes[0] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -254,23 +254,23 @@ func (x *fastReflection_TopLevelDomain) Range(f func(protoreflect.FieldDescripto // a repeated field is populated if it is non-empty. func (x *fastReflection_TopLevelDomain) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "mycel.registry.v1beta1.TopLevelDomain.name": + case "mycel.registry.v1.TopLevelDomain.name": return x.Name != "" - case "mycel.registry.v1beta1.TopLevelDomain.expiration_date": + case "mycel.registry.v1.TopLevelDomain.expiration_date": return x.ExpirationDate != nil - case "mycel.registry.v1beta1.TopLevelDomain.subdomain_config": + case "mycel.registry.v1.TopLevelDomain.subdomain_config": return x.SubdomainConfig != nil - case "mycel.registry.v1beta1.TopLevelDomain.subdomain_count": + case "mycel.registry.v1.TopLevelDomain.subdomain_count": return x.SubdomainCount != uint64(0) - case "mycel.registry.v1beta1.TopLevelDomain.access_control": + case "mycel.registry.v1.TopLevelDomain.access_control": return len(x.AccessControl) != 0 - case "mycel.registry.v1beta1.TopLevelDomain.total_withdrawal_amount": + case "mycel.registry.v1.TopLevelDomain.total_withdrawal_amount": return len(x.TotalWithdrawalAmount) != 0 default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.TopLevelDomain")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.TopLevelDomain")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.TopLevelDomain does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.TopLevelDomain does not contain field %s", fd.FullName())) } } @@ -282,23 +282,23 @@ func (x *fastReflection_TopLevelDomain) Has(fd protoreflect.FieldDescriptor) boo // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_TopLevelDomain) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "mycel.registry.v1beta1.TopLevelDomain.name": + case "mycel.registry.v1.TopLevelDomain.name": x.Name = "" - case "mycel.registry.v1beta1.TopLevelDomain.expiration_date": + case "mycel.registry.v1.TopLevelDomain.expiration_date": x.ExpirationDate = nil - case "mycel.registry.v1beta1.TopLevelDomain.subdomain_config": + case "mycel.registry.v1.TopLevelDomain.subdomain_config": x.SubdomainConfig = nil - case "mycel.registry.v1beta1.TopLevelDomain.subdomain_count": + case "mycel.registry.v1.TopLevelDomain.subdomain_count": x.SubdomainCount = uint64(0) - case "mycel.registry.v1beta1.TopLevelDomain.access_control": + case "mycel.registry.v1.TopLevelDomain.access_control": x.AccessControl = nil - case "mycel.registry.v1beta1.TopLevelDomain.total_withdrawal_amount": + case "mycel.registry.v1.TopLevelDomain.total_withdrawal_amount": x.TotalWithdrawalAmount = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.TopLevelDomain")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.TopLevelDomain")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.TopLevelDomain does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.TopLevelDomain does not contain field %s", fd.FullName())) } } @@ -310,25 +310,25 @@ func (x *fastReflection_TopLevelDomain) Clear(fd protoreflect.FieldDescriptor) { // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_TopLevelDomain) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "mycel.registry.v1beta1.TopLevelDomain.name": + case "mycel.registry.v1.TopLevelDomain.name": value := x.Name return protoreflect.ValueOfString(value) - case "mycel.registry.v1beta1.TopLevelDomain.expiration_date": + case "mycel.registry.v1.TopLevelDomain.expiration_date": value := x.ExpirationDate return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "mycel.registry.v1beta1.TopLevelDomain.subdomain_config": + case "mycel.registry.v1.TopLevelDomain.subdomain_config": value := x.SubdomainConfig return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "mycel.registry.v1beta1.TopLevelDomain.subdomain_count": + case "mycel.registry.v1.TopLevelDomain.subdomain_count": value := x.SubdomainCount return protoreflect.ValueOfUint64(value) - case "mycel.registry.v1beta1.TopLevelDomain.access_control": + case "mycel.registry.v1.TopLevelDomain.access_control": if len(x.AccessControl) == 0 { return protoreflect.ValueOfList(&_TopLevelDomain_5_list{}) } listValue := &_TopLevelDomain_5_list{list: &x.AccessControl} return protoreflect.ValueOfList(listValue) - case "mycel.registry.v1beta1.TopLevelDomain.total_withdrawal_amount": + case "mycel.registry.v1.TopLevelDomain.total_withdrawal_amount": if len(x.TotalWithdrawalAmount) == 0 { return protoreflect.ValueOfList(&_TopLevelDomain_6_list{}) } @@ -336,9 +336,9 @@ func (x *fastReflection_TopLevelDomain) Get(descriptor protoreflect.FieldDescrip return protoreflect.ValueOfList(listValue) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.TopLevelDomain")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.TopLevelDomain")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.TopLevelDomain does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.TopLevelDomain does not contain field %s", descriptor.FullName())) } } @@ -354,27 +354,27 @@ func (x *fastReflection_TopLevelDomain) Get(descriptor protoreflect.FieldDescrip // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_TopLevelDomain) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "mycel.registry.v1beta1.TopLevelDomain.name": + case "mycel.registry.v1.TopLevelDomain.name": x.Name = value.Interface().(string) - case "mycel.registry.v1beta1.TopLevelDomain.expiration_date": + case "mycel.registry.v1.TopLevelDomain.expiration_date": x.ExpirationDate = value.Message().Interface().(*timestamppb.Timestamp) - case "mycel.registry.v1beta1.TopLevelDomain.subdomain_config": + case "mycel.registry.v1.TopLevelDomain.subdomain_config": x.SubdomainConfig = value.Message().Interface().(*SubdomainConfig) - case "mycel.registry.v1beta1.TopLevelDomain.subdomain_count": + case "mycel.registry.v1.TopLevelDomain.subdomain_count": x.SubdomainCount = value.Uint() - case "mycel.registry.v1beta1.TopLevelDomain.access_control": + case "mycel.registry.v1.TopLevelDomain.access_control": lv := value.List() clv := lv.(*_TopLevelDomain_5_list) x.AccessControl = *clv.list - case "mycel.registry.v1beta1.TopLevelDomain.total_withdrawal_amount": + case "mycel.registry.v1.TopLevelDomain.total_withdrawal_amount": lv := value.List() clv := lv.(*_TopLevelDomain_6_list) x.TotalWithdrawalAmount = *clv.list default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.TopLevelDomain")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.TopLevelDomain")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.TopLevelDomain does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.TopLevelDomain does not contain field %s", fd.FullName())) } } @@ -390,37 +390,37 @@ func (x *fastReflection_TopLevelDomain) Set(fd protoreflect.FieldDescriptor, val // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_TopLevelDomain) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "mycel.registry.v1beta1.TopLevelDomain.expiration_date": + case "mycel.registry.v1.TopLevelDomain.expiration_date": if x.ExpirationDate == nil { x.ExpirationDate = new(timestamppb.Timestamp) } return protoreflect.ValueOfMessage(x.ExpirationDate.ProtoReflect()) - case "mycel.registry.v1beta1.TopLevelDomain.subdomain_config": + case "mycel.registry.v1.TopLevelDomain.subdomain_config": if x.SubdomainConfig == nil { x.SubdomainConfig = new(SubdomainConfig) } return protoreflect.ValueOfMessage(x.SubdomainConfig.ProtoReflect()) - case "mycel.registry.v1beta1.TopLevelDomain.access_control": + case "mycel.registry.v1.TopLevelDomain.access_control": if x.AccessControl == nil { x.AccessControl = []*AccessControl{} } value := &_TopLevelDomain_5_list{list: &x.AccessControl} return protoreflect.ValueOfList(value) - case "mycel.registry.v1beta1.TopLevelDomain.total_withdrawal_amount": + case "mycel.registry.v1.TopLevelDomain.total_withdrawal_amount": if x.TotalWithdrawalAmount == nil { x.TotalWithdrawalAmount = []*v1beta1.Coin{} } value := &_TopLevelDomain_6_list{list: &x.TotalWithdrawalAmount} return protoreflect.ValueOfList(value) - case "mycel.registry.v1beta1.TopLevelDomain.name": - panic(fmt.Errorf("field name of message mycel.registry.v1beta1.TopLevelDomain is not mutable")) - case "mycel.registry.v1beta1.TopLevelDomain.subdomain_count": - panic(fmt.Errorf("field subdomain_count of message mycel.registry.v1beta1.TopLevelDomain is not mutable")) + case "mycel.registry.v1.TopLevelDomain.name": + panic(fmt.Errorf("field name of message mycel.registry.v1.TopLevelDomain is not mutable")) + case "mycel.registry.v1.TopLevelDomain.subdomain_count": + panic(fmt.Errorf("field subdomain_count of message mycel.registry.v1.TopLevelDomain is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.TopLevelDomain")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.TopLevelDomain")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.TopLevelDomain does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.TopLevelDomain does not contain field %s", fd.FullName())) } } @@ -429,27 +429,27 @@ func (x *fastReflection_TopLevelDomain) Mutable(fd protoreflect.FieldDescriptor) // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_TopLevelDomain) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "mycel.registry.v1beta1.TopLevelDomain.name": + case "mycel.registry.v1.TopLevelDomain.name": return protoreflect.ValueOfString("") - case "mycel.registry.v1beta1.TopLevelDomain.expiration_date": + case "mycel.registry.v1.TopLevelDomain.expiration_date": m := new(timestamppb.Timestamp) return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "mycel.registry.v1beta1.TopLevelDomain.subdomain_config": + case "mycel.registry.v1.TopLevelDomain.subdomain_config": m := new(SubdomainConfig) return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "mycel.registry.v1beta1.TopLevelDomain.subdomain_count": + case "mycel.registry.v1.TopLevelDomain.subdomain_count": return protoreflect.ValueOfUint64(uint64(0)) - case "mycel.registry.v1beta1.TopLevelDomain.access_control": + case "mycel.registry.v1.TopLevelDomain.access_control": list := []*AccessControl{} return protoreflect.ValueOfList(&_TopLevelDomain_5_list{list: &list}) - case "mycel.registry.v1beta1.TopLevelDomain.total_withdrawal_amount": + case "mycel.registry.v1.TopLevelDomain.total_withdrawal_amount": list := []*v1beta1.Coin{} return protoreflect.ValueOfList(&_TopLevelDomain_6_list{list: &list}) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.TopLevelDomain")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.TopLevelDomain")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.TopLevelDomain does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.TopLevelDomain does not contain field %s", fd.FullName())) } } @@ -459,7 +459,7 @@ func (x *fastReflection_TopLevelDomain) NewField(fd protoreflect.FieldDescriptor func (x *fastReflection_TopLevelDomain) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in mycel.registry.v1beta1.TopLevelDomain", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in mycel.registry.v1.TopLevelDomain", d.FullName())) } panic("unreachable") } @@ -977,8 +977,8 @@ var ( ) func init() { - file_mycel_registry_v1beta1_top_level_domain_proto_init() - md_TopLevelDomainFee = File_mycel_registry_v1beta1_top_level_domain_proto.Messages().ByName("TopLevelDomainFee") + file_mycel_registry_v1_top_level_domain_proto_init() + md_TopLevelDomainFee = File_mycel_registry_v1_top_level_domain_proto.Messages().ByName("TopLevelDomainFee") fd_TopLevelDomainFee_total_fee = md_TopLevelDomainFee.Fields().ByName("total_fee") fd_TopLevelDomainFee_burn_weight = md_TopLevelDomainFee.Fields().ByName("burn_weight") fd_TopLevelDomainFee_fee_to_burn = md_TopLevelDomainFee.Fields().ByName("fee_to_burn") @@ -994,7 +994,7 @@ func (x *TopLevelDomainFee) ProtoReflect() protoreflect.Message { } func (x *TopLevelDomainFee) slowProtoReflect() protoreflect.Message { - mi := &file_mycel_registry_v1beta1_top_level_domain_proto_msgTypes[1] + mi := &file_mycel_registry_v1_top_level_domain_proto_msgTypes[1] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1089,19 +1089,19 @@ func (x *fastReflection_TopLevelDomainFee) Range(f func(protoreflect.FieldDescri // a repeated field is populated if it is non-empty. func (x *fastReflection_TopLevelDomainFee) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "mycel.registry.v1beta1.TopLevelDomainFee.total_fee": + case "mycel.registry.v1.TopLevelDomainFee.total_fee": return len(x.TotalFee) != 0 - case "mycel.registry.v1beta1.TopLevelDomainFee.burn_weight": + case "mycel.registry.v1.TopLevelDomainFee.burn_weight": return x.BurnWeight != "" - case "mycel.registry.v1beta1.TopLevelDomainFee.fee_to_burn": + case "mycel.registry.v1.TopLevelDomainFee.fee_to_burn": return x.FeeToBurn != nil - case "mycel.registry.v1beta1.TopLevelDomainFee.fee_to_treasury": + case "mycel.registry.v1.TopLevelDomainFee.fee_to_treasury": return x.FeeToTreasury != nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.TopLevelDomainFee")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.TopLevelDomainFee")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.TopLevelDomainFee does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.TopLevelDomainFee does not contain field %s", fd.FullName())) } } @@ -1113,19 +1113,19 @@ func (x *fastReflection_TopLevelDomainFee) Has(fd protoreflect.FieldDescriptor) // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_TopLevelDomainFee) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "mycel.registry.v1beta1.TopLevelDomainFee.total_fee": + case "mycel.registry.v1.TopLevelDomainFee.total_fee": x.TotalFee = nil - case "mycel.registry.v1beta1.TopLevelDomainFee.burn_weight": + case "mycel.registry.v1.TopLevelDomainFee.burn_weight": x.BurnWeight = "" - case "mycel.registry.v1beta1.TopLevelDomainFee.fee_to_burn": + case "mycel.registry.v1.TopLevelDomainFee.fee_to_burn": x.FeeToBurn = nil - case "mycel.registry.v1beta1.TopLevelDomainFee.fee_to_treasury": + case "mycel.registry.v1.TopLevelDomainFee.fee_to_treasury": x.FeeToTreasury = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.TopLevelDomainFee")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.TopLevelDomainFee")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.TopLevelDomainFee does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.TopLevelDomainFee does not contain field %s", fd.FullName())) } } @@ -1137,26 +1137,26 @@ func (x *fastReflection_TopLevelDomainFee) Clear(fd protoreflect.FieldDescriptor // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_TopLevelDomainFee) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "mycel.registry.v1beta1.TopLevelDomainFee.total_fee": + case "mycel.registry.v1.TopLevelDomainFee.total_fee": if len(x.TotalFee) == 0 { return protoreflect.ValueOfList(&_TopLevelDomainFee_1_list{}) } listValue := &_TopLevelDomainFee_1_list{list: &x.TotalFee} return protoreflect.ValueOfList(listValue) - case "mycel.registry.v1beta1.TopLevelDomainFee.burn_weight": + case "mycel.registry.v1.TopLevelDomainFee.burn_weight": value := x.BurnWeight return protoreflect.ValueOfString(value) - case "mycel.registry.v1beta1.TopLevelDomainFee.fee_to_burn": + case "mycel.registry.v1.TopLevelDomainFee.fee_to_burn": value := x.FeeToBurn return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "mycel.registry.v1beta1.TopLevelDomainFee.fee_to_treasury": + case "mycel.registry.v1.TopLevelDomainFee.fee_to_treasury": value := x.FeeToTreasury return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.TopLevelDomainFee")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.TopLevelDomainFee")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.TopLevelDomainFee does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.TopLevelDomainFee does not contain field %s", descriptor.FullName())) } } @@ -1172,21 +1172,21 @@ func (x *fastReflection_TopLevelDomainFee) Get(descriptor protoreflect.FieldDesc // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_TopLevelDomainFee) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "mycel.registry.v1beta1.TopLevelDomainFee.total_fee": + case "mycel.registry.v1.TopLevelDomainFee.total_fee": lv := value.List() clv := lv.(*_TopLevelDomainFee_1_list) x.TotalFee = *clv.list - case "mycel.registry.v1beta1.TopLevelDomainFee.burn_weight": + case "mycel.registry.v1.TopLevelDomainFee.burn_weight": x.BurnWeight = value.Interface().(string) - case "mycel.registry.v1beta1.TopLevelDomainFee.fee_to_burn": + case "mycel.registry.v1.TopLevelDomainFee.fee_to_burn": x.FeeToBurn = value.Message().Interface().(*v1beta1.Coin) - case "mycel.registry.v1beta1.TopLevelDomainFee.fee_to_treasury": + case "mycel.registry.v1.TopLevelDomainFee.fee_to_treasury": x.FeeToTreasury = value.Message().Interface().(*v1beta1.Coin) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.TopLevelDomainFee")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.TopLevelDomainFee")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.TopLevelDomainFee does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.TopLevelDomainFee does not contain field %s", fd.FullName())) } } @@ -1202,29 +1202,29 @@ func (x *fastReflection_TopLevelDomainFee) Set(fd protoreflect.FieldDescriptor, // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_TopLevelDomainFee) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "mycel.registry.v1beta1.TopLevelDomainFee.total_fee": + case "mycel.registry.v1.TopLevelDomainFee.total_fee": if x.TotalFee == nil { x.TotalFee = []*v1beta1.Coin{} } value := &_TopLevelDomainFee_1_list{list: &x.TotalFee} return protoreflect.ValueOfList(value) - case "mycel.registry.v1beta1.TopLevelDomainFee.fee_to_burn": + case "mycel.registry.v1.TopLevelDomainFee.fee_to_burn": if x.FeeToBurn == nil { x.FeeToBurn = new(v1beta1.Coin) } return protoreflect.ValueOfMessage(x.FeeToBurn.ProtoReflect()) - case "mycel.registry.v1beta1.TopLevelDomainFee.fee_to_treasury": + case "mycel.registry.v1.TopLevelDomainFee.fee_to_treasury": if x.FeeToTreasury == nil { x.FeeToTreasury = new(v1beta1.Coin) } return protoreflect.ValueOfMessage(x.FeeToTreasury.ProtoReflect()) - case "mycel.registry.v1beta1.TopLevelDomainFee.burn_weight": - panic(fmt.Errorf("field burn_weight of message mycel.registry.v1beta1.TopLevelDomainFee is not mutable")) + case "mycel.registry.v1.TopLevelDomainFee.burn_weight": + panic(fmt.Errorf("field burn_weight of message mycel.registry.v1.TopLevelDomainFee is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.TopLevelDomainFee")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.TopLevelDomainFee")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.TopLevelDomainFee does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.TopLevelDomainFee does not contain field %s", fd.FullName())) } } @@ -1233,22 +1233,22 @@ func (x *fastReflection_TopLevelDomainFee) Mutable(fd protoreflect.FieldDescript // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_TopLevelDomainFee) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "mycel.registry.v1beta1.TopLevelDomainFee.total_fee": + case "mycel.registry.v1.TopLevelDomainFee.total_fee": list := []*v1beta1.Coin{} return protoreflect.ValueOfList(&_TopLevelDomainFee_1_list{list: &list}) - case "mycel.registry.v1beta1.TopLevelDomainFee.burn_weight": + case "mycel.registry.v1.TopLevelDomainFee.burn_weight": return protoreflect.ValueOfString("") - case "mycel.registry.v1beta1.TopLevelDomainFee.fee_to_burn": + case "mycel.registry.v1.TopLevelDomainFee.fee_to_burn": m := new(v1beta1.Coin) return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "mycel.registry.v1beta1.TopLevelDomainFee.fee_to_treasury": + case "mycel.registry.v1.TopLevelDomainFee.fee_to_treasury": m := new(v1beta1.Coin) return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.TopLevelDomainFee")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.TopLevelDomainFee")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.TopLevelDomainFee does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.TopLevelDomainFee does not contain field %s", fd.FullName())) } } @@ -1258,7 +1258,7 @@ func (x *fastReflection_TopLevelDomainFee) NewField(fd protoreflect.FieldDescrip func (x *fastReflection_TopLevelDomainFee) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in mycel.registry.v1beta1.TopLevelDomainFee", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in mycel.registry.v1.TopLevelDomainFee", d.FullName())) } panic("unreachable") } @@ -1637,7 +1637,7 @@ func (x *fastReflection_TopLevelDomainFee) ProtoMethods() *protoiface.Methods { // versions: // protoc-gen-go v1.27.0 // protoc (unknown) -// source: mycel/registry/v1beta1/top_level_domain.proto +// source: mycel/registry/v1/top_level_domain.proto const ( // Verify that this generated code is sufficiently up-to-date. @@ -1662,7 +1662,7 @@ type TopLevelDomain struct { func (x *TopLevelDomain) Reset() { *x = TopLevelDomain{} if protoimpl.UnsafeEnabled { - mi := &file_mycel_registry_v1beta1_top_level_domain_proto_msgTypes[0] + mi := &file_mycel_registry_v1_top_level_domain_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1676,7 +1676,7 @@ func (*TopLevelDomain) ProtoMessage() {} // Deprecated: Use TopLevelDomain.ProtoReflect.Descriptor instead. func (*TopLevelDomain) Descriptor() ([]byte, []int) { - return file_mycel_registry_v1beta1_top_level_domain_proto_rawDescGZIP(), []int{0} + return file_mycel_registry_v1_top_level_domain_proto_rawDescGZIP(), []int{0} } func (x *TopLevelDomain) GetName() string { @@ -1735,7 +1735,7 @@ type TopLevelDomainFee struct { func (x *TopLevelDomainFee) Reset() { *x = TopLevelDomainFee{} if protoimpl.UnsafeEnabled { - mi := &file_mycel_registry_v1beta1_top_level_domain_proto_msgTypes[1] + mi := &file_mycel_registry_v1_top_level_domain_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1749,7 +1749,7 @@ func (*TopLevelDomainFee) ProtoMessage() {} // Deprecated: Use TopLevelDomainFee.ProtoReflect.Descriptor instead. func (*TopLevelDomainFee) Descriptor() ([]byte, []int) { - return file_mycel_registry_v1beta1_top_level_domain_proto_rawDescGZIP(), []int{1} + return file_mycel_registry_v1_top_level_domain_proto_rawDescGZIP(), []int{1} } func (x *TopLevelDomainFee) GetTotalFee() []*v1beta1.Coin { @@ -1780,123 +1780,119 @@ func (x *TopLevelDomainFee) GetFeeToTreasury() *v1beta1.Coin { return nil } -var File_mycel_registry_v1beta1_top_level_domain_proto protoreflect.FileDescriptor - -var file_mycel_registry_v1beta1_top_level_domain_proto_rawDesc = []byte{ - 0x0a, 0x2d, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, - 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x74, 0x6f, 0x70, 0x5f, 0x6c, 0x65, 0x76, - 0x65, 0x6c, 0x5f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, - 0x16, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, - 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x1a, 0x1e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, - 0x62, 0x61, 0x73, 0x65, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x63, 0x6f, 0x69, - 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x14, 0x67, 0x6f, 0x67, 0x6f, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, - 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, - 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2b, - 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x63, 0x6f, - 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2d, 0x6d, 0x79, 0x63, - 0x65, 0x6c, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x62, 0x65, - 0x74, 0x61, 0x31, 0x2f, 0x73, 0x75, 0x62, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x5f, 0x63, 0x6f, - 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xc4, 0x03, 0x0a, 0x0e, 0x54, - 0x6f, 0x70, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x12, 0x0a, - 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, - 0x65, 0x12, 0x4d, 0x0a, 0x0f, 0x65, 0x78, 0x70, 0x69, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, - 0x64, 0x61, 0x74, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, - 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x08, 0xc8, 0xde, 0x1f, 0x00, 0x90, 0xdf, 0x1f, 0x01, - 0x52, 0x0e, 0x65, 0x78, 0x70, 0x69, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x61, 0x74, 0x65, - 0x12, 0x52, 0x0a, 0x10, 0x73, 0x75, 0x62, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x5f, 0x63, 0x6f, - 0x6e, 0x66, 0x69, 0x67, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x6d, 0x79, 0x63, - 0x65, 0x6c, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, - 0x74, 0x61, 0x31, 0x2e, 0x53, 0x75, 0x62, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x43, 0x6f, 0x6e, - 0x66, 0x69, 0x67, 0x52, 0x0f, 0x73, 0x75, 0x62, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x43, 0x6f, - 0x6e, 0x66, 0x69, 0x67, 0x12, 0x27, 0x0a, 0x0f, 0x73, 0x75, 0x62, 0x64, 0x6f, 0x6d, 0x61, 0x69, - 0x6e, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0e, 0x73, - 0x75, 0x62, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x4c, 0x0a, - 0x0e, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x18, - 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x72, 0x65, - 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x41, - 0x63, 0x63, 0x65, 0x73, 0x73, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x52, 0x0d, 0x61, 0x63, - 0x63, 0x65, 0x73, 0x73, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x12, 0x83, 0x01, 0x0a, 0x17, - 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x77, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x61, 0x6c, - 0x5f, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, - 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, - 0x74, 0x61, 0x31, 0x2e, 0x43, 0x6f, 0x69, 0x6e, 0x42, 0x30, 0xc8, 0xde, 0x1f, 0x00, 0xaa, 0xdf, - 0x1f, 0x28, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x73, - 0x6d, 0x6f, 0x73, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2d, 0x73, 0x64, 0x6b, 0x2f, 0x74, - 0x79, 0x70, 0x65, 0x73, 0x2e, 0x43, 0x6f, 0x69, 0x6e, 0x73, 0x52, 0x15, 0x74, 0x6f, 0x74, 0x61, - 0x6c, 0x57, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x61, 0x6c, 0x41, 0x6d, 0x6f, 0x75, 0x6e, - 0x74, 0x22, 0xfe, 0x02, 0x0a, 0x11, 0x54, 0x6f, 0x70, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x44, 0x6f, - 0x6d, 0x61, 0x69, 0x6e, 0x46, 0x65, 0x65, 0x12, 0x68, 0x0a, 0x09, 0x74, 0x6f, 0x74, 0x61, 0x6c, - 0x5f, 0x66, 0x65, 0x65, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x6f, 0x73, - 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, - 0x2e, 0x43, 0x6f, 0x69, 0x6e, 0x42, 0x30, 0xc8, 0xde, 0x1f, 0x00, 0xaa, 0xdf, 0x1f, 0x28, 0x67, - 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, - 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2d, 0x73, 0x64, 0x6b, 0x2f, 0x74, 0x79, 0x70, 0x65, - 0x73, 0x2e, 0x43, 0x6f, 0x69, 0x6e, 0x73, 0x52, 0x08, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x46, 0x65, - 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x62, 0x75, 0x72, 0x6e, 0x5f, 0x77, 0x65, 0x69, 0x67, 0x68, 0x74, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x62, 0x75, 0x72, 0x6e, 0x57, 0x65, 0x69, 0x67, - 0x68, 0x74, 0x12, 0x6a, 0x0a, 0x0b, 0x66, 0x65, 0x65, 0x5f, 0x74, 0x6f, 0x5f, 0x62, 0x75, 0x72, - 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, - 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x6f, - 0x69, 0x6e, 0x42, 0x2f, 0xc8, 0xde, 0x1f, 0x00, 0x8a, 0xdf, 0x1f, 0x27, 0x67, 0x69, 0x74, 0x68, - 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x63, 0x6f, - 0x73, 0x6d, 0x6f, 0x73, 0x2d, 0x73, 0x64, 0x6b, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x43, - 0x6f, 0x69, 0x6e, 0x52, 0x09, 0x66, 0x65, 0x65, 0x54, 0x6f, 0x42, 0x75, 0x72, 0x6e, 0x12, 0x72, - 0x0a, 0x0f, 0x66, 0x65, 0x65, 0x5f, 0x74, 0x6f, 0x5f, 0x74, 0x72, 0x65, 0x61, 0x73, 0x75, 0x72, - 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, - 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x6f, - 0x69, 0x6e, 0x42, 0x2f, 0xc8, 0xde, 0x1f, 0x00, 0x8a, 0xdf, 0x1f, 0x27, 0x67, 0x69, 0x74, 0x68, - 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x63, 0x6f, - 0x73, 0x6d, 0x6f, 0x73, 0x2d, 0x73, 0x64, 0x6b, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x43, - 0x6f, 0x69, 0x6e, 0x52, 0x0d, 0x66, 0x65, 0x65, 0x54, 0x6f, 0x54, 0x72, 0x65, 0x61, 0x73, 0x75, - 0x72, 0x79, 0x42, 0xdb, 0x01, 0x0a, 0x1a, 0x63, 0x6f, 0x6d, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, - 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, - 0x31, 0x42, 0x13, 0x54, 0x6f, 0x70, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x44, 0x6f, 0x6d, 0x61, 0x69, - 0x6e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2e, 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, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0xa2, 0x02, 0x03, 0x4d, 0x52, 0x58, 0xaa, 0x02, - 0x16, 0x4d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, - 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xca, 0x02, 0x16, 0x4d, 0x79, 0x63, 0x65, 0x6c, 0x5c, - 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, - 0xe2, 0x02, 0x22, 0x4d, 0x79, 0x63, 0x65, 0x6c, 0x5c, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, - 0x79, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, - 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x18, 0x4d, 0x79, 0x63, 0x65, 0x6c, 0x3a, 0x3a, 0x52, - 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, - 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +var File_mycel_registry_v1_top_level_domain_proto protoreflect.FileDescriptor + +var file_mycel_registry_v1_top_level_domain_proto_rawDesc = []byte{ + 0x0a, 0x28, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, + 0x2f, 0x76, 0x31, 0x2f, 0x74, 0x6f, 0x70, 0x5f, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x5f, 0x64, 0x6f, + 0x6d, 0x61, 0x69, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x11, 0x6d, 0x79, 0x63, 0x65, + 0x6c, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x1a, 0x1e, 0x63, + 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x62, 0x61, 0x73, 0x65, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, + 0x61, 0x31, 0x2f, 0x63, 0x6f, 0x69, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x14, 0x67, + 0x6f, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x26, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2f, 0x72, 0x65, 0x67, 0x69, + 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x63, + 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x28, 0x6d, 0x79, + 0x63, 0x65, 0x6c, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x2f, + 0x73, 0x75, 0x62, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xba, 0x03, 0x0a, 0x0e, 0x54, 0x6f, 0x70, 0x4c, 0x65, + 0x76, 0x65, 0x6c, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, + 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x4d, 0x0a, + 0x0f, 0x65, 0x78, 0x70, 0x69, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x64, 0x61, 0x74, 0x65, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, + 0x6d, 0x70, 0x42, 0x08, 0xc8, 0xde, 0x1f, 0x00, 0x90, 0xdf, 0x1f, 0x01, 0x52, 0x0e, 0x65, 0x78, + 0x70, 0x69, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x61, 0x74, 0x65, 0x12, 0x4d, 0x0a, 0x10, + 0x73, 0x75, 0x62, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x72, + 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x75, 0x62, 0x64, 0x6f, + 0x6d, 0x61, 0x69, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x0f, 0x73, 0x75, 0x62, 0x64, + 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x27, 0x0a, 0x0f, 0x73, + 0x75, 0x62, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x04, + 0x20, 0x01, 0x28, 0x04, 0x52, 0x0e, 0x73, 0x75, 0x62, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x43, + 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x47, 0x0a, 0x0e, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x63, + 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x6d, + 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, + 0x2e, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x52, 0x0d, + 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x12, 0x83, 0x01, + 0x0a, 0x17, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x77, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, + 0x61, 0x6c, 0x5f, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x19, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, + 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x6f, 0x69, 0x6e, 0x42, 0x30, 0xc8, 0xde, 0x1f, 0x00, + 0xaa, 0xdf, 0x1f, 0x28, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, + 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2d, 0x73, 0x64, 0x6b, + 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x43, 0x6f, 0x69, 0x6e, 0x73, 0x52, 0x15, 0x74, 0x6f, + 0x74, 0x61, 0x6c, 0x57, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x61, 0x6c, 0x41, 0x6d, 0x6f, + 0x75, 0x6e, 0x74, 0x22, 0xfe, 0x02, 0x0a, 0x11, 0x54, 0x6f, 0x70, 0x4c, 0x65, 0x76, 0x65, 0x6c, + 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x46, 0x65, 0x65, 0x12, 0x68, 0x0a, 0x09, 0x74, 0x6f, 0x74, + 0x61, 0x6c, 0x5f, 0x66, 0x65, 0x65, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, + 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, + 0x61, 0x31, 0x2e, 0x43, 0x6f, 0x69, 0x6e, 0x42, 0x30, 0xc8, 0xde, 0x1f, 0x00, 0xaa, 0xdf, 0x1f, + 0x28, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x73, 0x6d, + 0x6f, 0x73, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2d, 0x73, 0x64, 0x6b, 0x2f, 0x74, 0x79, + 0x70, 0x65, 0x73, 0x2e, 0x43, 0x6f, 0x69, 0x6e, 0x73, 0x52, 0x08, 0x74, 0x6f, 0x74, 0x61, 0x6c, + 0x46, 0x65, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x62, 0x75, 0x72, 0x6e, 0x5f, 0x77, 0x65, 0x69, 0x67, + 0x68, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x62, 0x75, 0x72, 0x6e, 0x57, 0x65, + 0x69, 0x67, 0x68, 0x74, 0x12, 0x6a, 0x0a, 0x0b, 0x66, 0x65, 0x65, 0x5f, 0x74, 0x6f, 0x5f, 0x62, + 0x75, 0x72, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x6f, 0x73, 0x6d, + 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, + 0x43, 0x6f, 0x69, 0x6e, 0x42, 0x2f, 0xc8, 0xde, 0x1f, 0x00, 0x8a, 0xdf, 0x1f, 0x27, 0x67, 0x69, + 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, + 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2d, 0x73, 0x64, 0x6b, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, + 0x2e, 0x43, 0x6f, 0x69, 0x6e, 0x52, 0x09, 0x66, 0x65, 0x65, 0x54, 0x6f, 0x42, 0x75, 0x72, 0x6e, + 0x12, 0x72, 0x0a, 0x0f, 0x66, 0x65, 0x65, 0x5f, 0x74, 0x6f, 0x5f, 0x74, 0x72, 0x65, 0x61, 0x73, + 0x75, 0x72, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x6f, 0x73, 0x6d, + 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, + 0x43, 0x6f, 0x69, 0x6e, 0x42, 0x2f, 0xc8, 0xde, 0x1f, 0x00, 0x8a, 0xdf, 0x1f, 0x27, 0x67, 0x69, + 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, + 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2d, 0x73, 0x64, 0x6b, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, + 0x2e, 0x43, 0x6f, 0x69, 0x6e, 0x52, 0x0d, 0x66, 0x65, 0x65, 0x54, 0x6f, 0x54, 0x72, 0x65, 0x61, + 0x73, 0x75, 0x72, 0x79, 0x42, 0xc1, 0x01, 0x0a, 0x15, 0x63, 0x6f, 0x6d, 0x2e, 0x6d, 0x79, 0x63, + 0x65, 0x6c, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x42, 0x13, + 0x54, 0x6f, 0x70, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x50, 0x72, + 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2d, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, + 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2f, 0x72, 0x65, + 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x3b, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, + 0x72, 0x79, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x4d, 0x52, 0x58, 0xaa, 0x02, 0x11, 0x4d, 0x79, 0x63, + 0x65, 0x6c, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x56, 0x31, 0xca, 0x02, + 0x11, 0x4d, 0x79, 0x63, 0x65, 0x6c, 0x5c, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x5c, + 0x56, 0x31, 0xe2, 0x02, 0x1d, 0x4d, 0x79, 0x63, 0x65, 0x6c, 0x5c, 0x52, 0x65, 0x67, 0x69, 0x73, + 0x74, 0x72, 0x79, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, + 0x74, 0x61, 0xea, 0x02, 0x13, 0x4d, 0x79, 0x63, 0x65, 0x6c, 0x3a, 0x3a, 0x52, 0x65, 0x67, 0x69, + 0x73, 0x74, 0x72, 0x79, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( - file_mycel_registry_v1beta1_top_level_domain_proto_rawDescOnce sync.Once - file_mycel_registry_v1beta1_top_level_domain_proto_rawDescData = file_mycel_registry_v1beta1_top_level_domain_proto_rawDesc + file_mycel_registry_v1_top_level_domain_proto_rawDescOnce sync.Once + file_mycel_registry_v1_top_level_domain_proto_rawDescData = file_mycel_registry_v1_top_level_domain_proto_rawDesc ) -func file_mycel_registry_v1beta1_top_level_domain_proto_rawDescGZIP() []byte { - file_mycel_registry_v1beta1_top_level_domain_proto_rawDescOnce.Do(func() { - file_mycel_registry_v1beta1_top_level_domain_proto_rawDescData = protoimpl.X.CompressGZIP(file_mycel_registry_v1beta1_top_level_domain_proto_rawDescData) +func file_mycel_registry_v1_top_level_domain_proto_rawDescGZIP() []byte { + file_mycel_registry_v1_top_level_domain_proto_rawDescOnce.Do(func() { + file_mycel_registry_v1_top_level_domain_proto_rawDescData = protoimpl.X.CompressGZIP(file_mycel_registry_v1_top_level_domain_proto_rawDescData) }) - return file_mycel_registry_v1beta1_top_level_domain_proto_rawDescData + return file_mycel_registry_v1_top_level_domain_proto_rawDescData } -var file_mycel_registry_v1beta1_top_level_domain_proto_msgTypes = make([]protoimpl.MessageInfo, 2) -var file_mycel_registry_v1beta1_top_level_domain_proto_goTypes = []interface{}{ - (*TopLevelDomain)(nil), // 0: mycel.registry.v1beta1.TopLevelDomain - (*TopLevelDomainFee)(nil), // 1: mycel.registry.v1beta1.TopLevelDomainFee +var file_mycel_registry_v1_top_level_domain_proto_msgTypes = make([]protoimpl.MessageInfo, 2) +var file_mycel_registry_v1_top_level_domain_proto_goTypes = []interface{}{ + (*TopLevelDomain)(nil), // 0: mycel.registry.v1.TopLevelDomain + (*TopLevelDomainFee)(nil), // 1: mycel.registry.v1.TopLevelDomainFee (*timestamppb.Timestamp)(nil), // 2: google.protobuf.Timestamp - (*SubdomainConfig)(nil), // 3: mycel.registry.v1beta1.SubdomainConfig - (*AccessControl)(nil), // 4: mycel.registry.v1beta1.AccessControl + (*SubdomainConfig)(nil), // 3: mycel.registry.v1.SubdomainConfig + (*AccessControl)(nil), // 4: mycel.registry.v1.AccessControl (*v1beta1.Coin)(nil), // 5: cosmos.base.v1beta1.Coin } -var file_mycel_registry_v1beta1_top_level_domain_proto_depIdxs = []int32{ - 2, // 0: mycel.registry.v1beta1.TopLevelDomain.expiration_date:type_name -> google.protobuf.Timestamp - 3, // 1: mycel.registry.v1beta1.TopLevelDomain.subdomain_config:type_name -> mycel.registry.v1beta1.SubdomainConfig - 4, // 2: mycel.registry.v1beta1.TopLevelDomain.access_control:type_name -> mycel.registry.v1beta1.AccessControl - 5, // 3: mycel.registry.v1beta1.TopLevelDomain.total_withdrawal_amount:type_name -> cosmos.base.v1beta1.Coin - 5, // 4: mycel.registry.v1beta1.TopLevelDomainFee.total_fee:type_name -> cosmos.base.v1beta1.Coin - 5, // 5: mycel.registry.v1beta1.TopLevelDomainFee.fee_to_burn:type_name -> cosmos.base.v1beta1.Coin - 5, // 6: mycel.registry.v1beta1.TopLevelDomainFee.fee_to_treasury:type_name -> cosmos.base.v1beta1.Coin +var file_mycel_registry_v1_top_level_domain_proto_depIdxs = []int32{ + 2, // 0: mycel.registry.v1.TopLevelDomain.expiration_date:type_name -> google.protobuf.Timestamp + 3, // 1: mycel.registry.v1.TopLevelDomain.subdomain_config:type_name -> mycel.registry.v1.SubdomainConfig + 4, // 2: mycel.registry.v1.TopLevelDomain.access_control:type_name -> mycel.registry.v1.AccessControl + 5, // 3: mycel.registry.v1.TopLevelDomain.total_withdrawal_amount:type_name -> cosmos.base.v1beta1.Coin + 5, // 4: mycel.registry.v1.TopLevelDomainFee.total_fee:type_name -> cosmos.base.v1beta1.Coin + 5, // 5: mycel.registry.v1.TopLevelDomainFee.fee_to_burn:type_name -> cosmos.base.v1beta1.Coin + 5, // 6: mycel.registry.v1.TopLevelDomainFee.fee_to_treasury:type_name -> cosmos.base.v1beta1.Coin 7, // [7:7] is the sub-list for method output_type 7, // [7:7] is the sub-list for method input_type 7, // [7:7] is the sub-list for extension type_name @@ -1904,15 +1900,15 @@ var file_mycel_registry_v1beta1_top_level_domain_proto_depIdxs = []int32{ 0, // [0:7] is the sub-list for field type_name } -func init() { file_mycel_registry_v1beta1_top_level_domain_proto_init() } -func file_mycel_registry_v1beta1_top_level_domain_proto_init() { - if File_mycel_registry_v1beta1_top_level_domain_proto != nil { +func init() { file_mycel_registry_v1_top_level_domain_proto_init() } +func file_mycel_registry_v1_top_level_domain_proto_init() { + if File_mycel_registry_v1_top_level_domain_proto != nil { return } - file_mycel_registry_v1beta1_access_control_proto_init() - file_mycel_registry_v1beta1_subdomain_config_proto_init() + file_mycel_registry_v1_access_control_proto_init() + file_mycel_registry_v1_subdomain_config_proto_init() if !protoimpl.UnsafeEnabled { - file_mycel_registry_v1beta1_top_level_domain_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_mycel_registry_v1_top_level_domain_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*TopLevelDomain); i { case 0: return &v.state @@ -1924,7 +1920,7 @@ func file_mycel_registry_v1beta1_top_level_domain_proto_init() { return nil } } - file_mycel_registry_v1beta1_top_level_domain_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_mycel_registry_v1_top_level_domain_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*TopLevelDomainFee); i { case 0: return &v.state @@ -1941,18 +1937,18 @@ func file_mycel_registry_v1beta1_top_level_domain_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_mycel_registry_v1beta1_top_level_domain_proto_rawDesc, + RawDescriptor: file_mycel_registry_v1_top_level_domain_proto_rawDesc, NumEnums: 0, NumMessages: 2, NumExtensions: 0, NumServices: 0, }, - GoTypes: file_mycel_registry_v1beta1_top_level_domain_proto_goTypes, - DependencyIndexes: file_mycel_registry_v1beta1_top_level_domain_proto_depIdxs, - MessageInfos: file_mycel_registry_v1beta1_top_level_domain_proto_msgTypes, + GoTypes: file_mycel_registry_v1_top_level_domain_proto_goTypes, + DependencyIndexes: file_mycel_registry_v1_top_level_domain_proto_depIdxs, + MessageInfos: file_mycel_registry_v1_top_level_domain_proto_msgTypes, }.Build() - File_mycel_registry_v1beta1_top_level_domain_proto = out.File - file_mycel_registry_v1beta1_top_level_domain_proto_rawDesc = nil - file_mycel_registry_v1beta1_top_level_domain_proto_goTypes = nil - file_mycel_registry_v1beta1_top_level_domain_proto_depIdxs = nil + File_mycel_registry_v1_top_level_domain_proto = out.File + file_mycel_registry_v1_top_level_domain_proto_rawDesc = nil + file_mycel_registry_v1_top_level_domain_proto_goTypes = nil + file_mycel_registry_v1_top_level_domain_proto_depIdxs = nil } diff --git a/api/mycel/registry/v1beta1/tx.pulsar.go b/api/mycel/registry/v1/tx.pulsar.go similarity index 82% rename from api/mycel/registry/v1beta1/tx.pulsar.go rename to api/mycel/registry/v1/tx.pulsar.go index f40fdd19..3ba8ab4e 100644 --- a/api/mycel/registry/v1beta1/tx.pulsar.go +++ b/api/mycel/registry/v1/tx.pulsar.go @@ -1,8 +1,9 @@ // Code generated by protoc-gen-go-pulsar. DO NOT EDIT. -package types +package registryv1 import ( v1beta1 "cosmossdk.io/api/cosmos/base/v1beta1" + _ "cosmossdk.io/api/cosmos/msg/v1" fmt "fmt" runtime "github.com/cosmos/cosmos-proto/runtime" _ "github.com/cosmos/gogoproto/gogoproto" @@ -24,8 +25,8 @@ var ( ) func init() { - file_mycel_registry_v1beta1_tx_proto_init() - md_MsgUpdateWalletRecord = File_mycel_registry_v1beta1_tx_proto.Messages().ByName("MsgUpdateWalletRecord") + file_mycel_registry_v1_tx_proto_init() + md_MsgUpdateWalletRecord = File_mycel_registry_v1_tx_proto.Messages().ByName("MsgUpdateWalletRecord") fd_MsgUpdateWalletRecord_creator = md_MsgUpdateWalletRecord.Fields().ByName("creator") fd_MsgUpdateWalletRecord_name = md_MsgUpdateWalletRecord.Fields().ByName("name") fd_MsgUpdateWalletRecord_parent = md_MsgUpdateWalletRecord.Fields().ByName("parent") @@ -42,7 +43,7 @@ func (x *MsgUpdateWalletRecord) ProtoReflect() protoreflect.Message { } func (x *MsgUpdateWalletRecord) slowProtoReflect() protoreflect.Message { - mi := &file_mycel_registry_v1beta1_tx_proto_msgTypes[0] + mi := &file_mycel_registry_v1_tx_proto_msgTypes[0] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -143,21 +144,21 @@ func (x *fastReflection_MsgUpdateWalletRecord) Range(f func(protoreflect.FieldDe // a repeated field is populated if it is non-empty. func (x *fastReflection_MsgUpdateWalletRecord) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "mycel.registry.v1beta1.MsgUpdateWalletRecord.creator": + case "mycel.registry.v1.MsgUpdateWalletRecord.creator": return x.Creator != "" - case "mycel.registry.v1beta1.MsgUpdateWalletRecord.name": + case "mycel.registry.v1.MsgUpdateWalletRecord.name": return x.Name != "" - case "mycel.registry.v1beta1.MsgUpdateWalletRecord.parent": + case "mycel.registry.v1.MsgUpdateWalletRecord.parent": return x.Parent != "" - case "mycel.registry.v1beta1.MsgUpdateWalletRecord.wallet_record_type": + case "mycel.registry.v1.MsgUpdateWalletRecord.wallet_record_type": return x.WalletRecordType != "" - case "mycel.registry.v1beta1.MsgUpdateWalletRecord.value": + case "mycel.registry.v1.MsgUpdateWalletRecord.value": return x.Value != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.MsgUpdateWalletRecord")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.MsgUpdateWalletRecord")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.MsgUpdateWalletRecord does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.MsgUpdateWalletRecord does not contain field %s", fd.FullName())) } } @@ -169,21 +170,21 @@ func (x *fastReflection_MsgUpdateWalletRecord) Has(fd protoreflect.FieldDescript // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_MsgUpdateWalletRecord) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "mycel.registry.v1beta1.MsgUpdateWalletRecord.creator": + case "mycel.registry.v1.MsgUpdateWalletRecord.creator": x.Creator = "" - case "mycel.registry.v1beta1.MsgUpdateWalletRecord.name": + case "mycel.registry.v1.MsgUpdateWalletRecord.name": x.Name = "" - case "mycel.registry.v1beta1.MsgUpdateWalletRecord.parent": + case "mycel.registry.v1.MsgUpdateWalletRecord.parent": x.Parent = "" - case "mycel.registry.v1beta1.MsgUpdateWalletRecord.wallet_record_type": + case "mycel.registry.v1.MsgUpdateWalletRecord.wallet_record_type": x.WalletRecordType = "" - case "mycel.registry.v1beta1.MsgUpdateWalletRecord.value": + case "mycel.registry.v1.MsgUpdateWalletRecord.value": x.Value = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.MsgUpdateWalletRecord")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.MsgUpdateWalletRecord")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.MsgUpdateWalletRecord does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.MsgUpdateWalletRecord does not contain field %s", fd.FullName())) } } @@ -195,26 +196,26 @@ func (x *fastReflection_MsgUpdateWalletRecord) Clear(fd protoreflect.FieldDescri // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_MsgUpdateWalletRecord) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "mycel.registry.v1beta1.MsgUpdateWalletRecord.creator": + case "mycel.registry.v1.MsgUpdateWalletRecord.creator": value := x.Creator return protoreflect.ValueOfString(value) - case "mycel.registry.v1beta1.MsgUpdateWalletRecord.name": + case "mycel.registry.v1.MsgUpdateWalletRecord.name": value := x.Name return protoreflect.ValueOfString(value) - case "mycel.registry.v1beta1.MsgUpdateWalletRecord.parent": + case "mycel.registry.v1.MsgUpdateWalletRecord.parent": value := x.Parent return protoreflect.ValueOfString(value) - case "mycel.registry.v1beta1.MsgUpdateWalletRecord.wallet_record_type": + case "mycel.registry.v1.MsgUpdateWalletRecord.wallet_record_type": value := x.WalletRecordType return protoreflect.ValueOfString(value) - case "mycel.registry.v1beta1.MsgUpdateWalletRecord.value": + case "mycel.registry.v1.MsgUpdateWalletRecord.value": value := x.Value return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.MsgUpdateWalletRecord")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.MsgUpdateWalletRecord")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.MsgUpdateWalletRecord does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.MsgUpdateWalletRecord does not contain field %s", descriptor.FullName())) } } @@ -230,21 +231,21 @@ func (x *fastReflection_MsgUpdateWalletRecord) Get(descriptor protoreflect.Field // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_MsgUpdateWalletRecord) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "mycel.registry.v1beta1.MsgUpdateWalletRecord.creator": + case "mycel.registry.v1.MsgUpdateWalletRecord.creator": x.Creator = value.Interface().(string) - case "mycel.registry.v1beta1.MsgUpdateWalletRecord.name": + case "mycel.registry.v1.MsgUpdateWalletRecord.name": x.Name = value.Interface().(string) - case "mycel.registry.v1beta1.MsgUpdateWalletRecord.parent": + case "mycel.registry.v1.MsgUpdateWalletRecord.parent": x.Parent = value.Interface().(string) - case "mycel.registry.v1beta1.MsgUpdateWalletRecord.wallet_record_type": + case "mycel.registry.v1.MsgUpdateWalletRecord.wallet_record_type": x.WalletRecordType = value.Interface().(string) - case "mycel.registry.v1beta1.MsgUpdateWalletRecord.value": + case "mycel.registry.v1.MsgUpdateWalletRecord.value": x.Value = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.MsgUpdateWalletRecord")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.MsgUpdateWalletRecord")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.MsgUpdateWalletRecord does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.MsgUpdateWalletRecord does not contain field %s", fd.FullName())) } } @@ -260,21 +261,21 @@ func (x *fastReflection_MsgUpdateWalletRecord) Set(fd protoreflect.FieldDescript // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_MsgUpdateWalletRecord) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "mycel.registry.v1beta1.MsgUpdateWalletRecord.creator": - panic(fmt.Errorf("field creator of message mycel.registry.v1beta1.MsgUpdateWalletRecord is not mutable")) - case "mycel.registry.v1beta1.MsgUpdateWalletRecord.name": - panic(fmt.Errorf("field name of message mycel.registry.v1beta1.MsgUpdateWalletRecord is not mutable")) - case "mycel.registry.v1beta1.MsgUpdateWalletRecord.parent": - panic(fmt.Errorf("field parent of message mycel.registry.v1beta1.MsgUpdateWalletRecord is not mutable")) - case "mycel.registry.v1beta1.MsgUpdateWalletRecord.wallet_record_type": - panic(fmt.Errorf("field wallet_record_type of message mycel.registry.v1beta1.MsgUpdateWalletRecord is not mutable")) - case "mycel.registry.v1beta1.MsgUpdateWalletRecord.value": - panic(fmt.Errorf("field value of message mycel.registry.v1beta1.MsgUpdateWalletRecord is not mutable")) + case "mycel.registry.v1.MsgUpdateWalletRecord.creator": + panic(fmt.Errorf("field creator of message mycel.registry.v1.MsgUpdateWalletRecord is not mutable")) + case "mycel.registry.v1.MsgUpdateWalletRecord.name": + panic(fmt.Errorf("field name of message mycel.registry.v1.MsgUpdateWalletRecord is not mutable")) + case "mycel.registry.v1.MsgUpdateWalletRecord.parent": + panic(fmt.Errorf("field parent of message mycel.registry.v1.MsgUpdateWalletRecord is not mutable")) + case "mycel.registry.v1.MsgUpdateWalletRecord.wallet_record_type": + panic(fmt.Errorf("field wallet_record_type of message mycel.registry.v1.MsgUpdateWalletRecord is not mutable")) + case "mycel.registry.v1.MsgUpdateWalletRecord.value": + panic(fmt.Errorf("field value of message mycel.registry.v1.MsgUpdateWalletRecord is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.MsgUpdateWalletRecord")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.MsgUpdateWalletRecord")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.MsgUpdateWalletRecord does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.MsgUpdateWalletRecord does not contain field %s", fd.FullName())) } } @@ -283,21 +284,21 @@ func (x *fastReflection_MsgUpdateWalletRecord) Mutable(fd protoreflect.FieldDesc // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_MsgUpdateWalletRecord) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "mycel.registry.v1beta1.MsgUpdateWalletRecord.creator": + case "mycel.registry.v1.MsgUpdateWalletRecord.creator": return protoreflect.ValueOfString("") - case "mycel.registry.v1beta1.MsgUpdateWalletRecord.name": + case "mycel.registry.v1.MsgUpdateWalletRecord.name": return protoreflect.ValueOfString("") - case "mycel.registry.v1beta1.MsgUpdateWalletRecord.parent": + case "mycel.registry.v1.MsgUpdateWalletRecord.parent": return protoreflect.ValueOfString("") - case "mycel.registry.v1beta1.MsgUpdateWalletRecord.wallet_record_type": + case "mycel.registry.v1.MsgUpdateWalletRecord.wallet_record_type": return protoreflect.ValueOfString("") - case "mycel.registry.v1beta1.MsgUpdateWalletRecord.value": + case "mycel.registry.v1.MsgUpdateWalletRecord.value": return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.MsgUpdateWalletRecord")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.MsgUpdateWalletRecord")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.MsgUpdateWalletRecord does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.MsgUpdateWalletRecord does not contain field %s", fd.FullName())) } } @@ -307,7 +308,7 @@ func (x *fastReflection_MsgUpdateWalletRecord) NewField(fd protoreflect.FieldDes func (x *fastReflection_MsgUpdateWalletRecord) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in mycel.registry.v1beta1.MsgUpdateWalletRecord", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in mycel.registry.v1.MsgUpdateWalletRecord", d.FullName())) } panic("unreachable") } @@ -695,8 +696,8 @@ var ( ) func init() { - file_mycel_registry_v1beta1_tx_proto_init() - md_MsgUpdateWalletRecordResponse = File_mycel_registry_v1beta1_tx_proto.Messages().ByName("MsgUpdateWalletRecordResponse") + file_mycel_registry_v1_tx_proto_init() + md_MsgUpdateWalletRecordResponse = File_mycel_registry_v1_tx_proto.Messages().ByName("MsgUpdateWalletRecordResponse") } var _ protoreflect.Message = (*fastReflection_MsgUpdateWalletRecordResponse)(nil) @@ -708,7 +709,7 @@ func (x *MsgUpdateWalletRecordResponse) ProtoReflect() protoreflect.Message { } func (x *MsgUpdateWalletRecordResponse) slowProtoReflect() protoreflect.Message { - mi := &file_mycel_registry_v1beta1_tx_proto_msgTypes[1] + mi := &file_mycel_registry_v1_tx_proto_msgTypes[1] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -781,9 +782,9 @@ func (x *fastReflection_MsgUpdateWalletRecordResponse) Has(fd protoreflect.Field switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.MsgUpdateWalletRecordResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.MsgUpdateWalletRecordResponse")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.MsgUpdateWalletRecordResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.MsgUpdateWalletRecordResponse does not contain field %s", fd.FullName())) } } @@ -797,9 +798,9 @@ func (x *fastReflection_MsgUpdateWalletRecordResponse) Clear(fd protoreflect.Fie switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.MsgUpdateWalletRecordResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.MsgUpdateWalletRecordResponse")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.MsgUpdateWalletRecordResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.MsgUpdateWalletRecordResponse does not contain field %s", fd.FullName())) } } @@ -813,9 +814,9 @@ func (x *fastReflection_MsgUpdateWalletRecordResponse) Get(descriptor protorefle switch descriptor.FullName() { default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.MsgUpdateWalletRecordResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.MsgUpdateWalletRecordResponse")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.MsgUpdateWalletRecordResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.MsgUpdateWalletRecordResponse does not contain field %s", descriptor.FullName())) } } @@ -833,9 +834,9 @@ func (x *fastReflection_MsgUpdateWalletRecordResponse) Set(fd protoreflect.Field switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.MsgUpdateWalletRecordResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.MsgUpdateWalletRecordResponse")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.MsgUpdateWalletRecordResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.MsgUpdateWalletRecordResponse does not contain field %s", fd.FullName())) } } @@ -853,9 +854,9 @@ func (x *fastReflection_MsgUpdateWalletRecordResponse) Mutable(fd protoreflect.F switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.MsgUpdateWalletRecordResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.MsgUpdateWalletRecordResponse")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.MsgUpdateWalletRecordResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.MsgUpdateWalletRecordResponse does not contain field %s", fd.FullName())) } } @@ -866,9 +867,9 @@ func (x *fastReflection_MsgUpdateWalletRecordResponse) NewField(fd protoreflect. switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.MsgUpdateWalletRecordResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.MsgUpdateWalletRecordResponse")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.MsgUpdateWalletRecordResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.MsgUpdateWalletRecordResponse does not contain field %s", fd.FullName())) } } @@ -878,7 +879,7 @@ func (x *fastReflection_MsgUpdateWalletRecordResponse) NewField(fd protoreflect. func (x *fastReflection_MsgUpdateWalletRecordResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in mycel.registry.v1beta1.MsgUpdateWalletRecordResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in mycel.registry.v1.MsgUpdateWalletRecordResponse", d.FullName())) } panic("unreachable") } @@ -1056,8 +1057,8 @@ var ( ) func init() { - file_mycel_registry_v1beta1_tx_proto_init() - md_MsgUpdateDnsRecord = File_mycel_registry_v1beta1_tx_proto.Messages().ByName("MsgUpdateDnsRecord") + file_mycel_registry_v1_tx_proto_init() + md_MsgUpdateDnsRecord = File_mycel_registry_v1_tx_proto.Messages().ByName("MsgUpdateDnsRecord") fd_MsgUpdateDnsRecord_creator = md_MsgUpdateDnsRecord.Fields().ByName("creator") fd_MsgUpdateDnsRecord_name = md_MsgUpdateDnsRecord.Fields().ByName("name") fd_MsgUpdateDnsRecord_parent = md_MsgUpdateDnsRecord.Fields().ByName("parent") @@ -1074,7 +1075,7 @@ func (x *MsgUpdateDnsRecord) ProtoReflect() protoreflect.Message { } func (x *MsgUpdateDnsRecord) slowProtoReflect() protoreflect.Message { - mi := &file_mycel_registry_v1beta1_tx_proto_msgTypes[2] + mi := &file_mycel_registry_v1_tx_proto_msgTypes[2] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1175,21 +1176,21 @@ func (x *fastReflection_MsgUpdateDnsRecord) Range(f func(protoreflect.FieldDescr // a repeated field is populated if it is non-empty. func (x *fastReflection_MsgUpdateDnsRecord) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "mycel.registry.v1beta1.MsgUpdateDnsRecord.creator": + case "mycel.registry.v1.MsgUpdateDnsRecord.creator": return x.Creator != "" - case "mycel.registry.v1beta1.MsgUpdateDnsRecord.name": + case "mycel.registry.v1.MsgUpdateDnsRecord.name": return x.Name != "" - case "mycel.registry.v1beta1.MsgUpdateDnsRecord.parent": + case "mycel.registry.v1.MsgUpdateDnsRecord.parent": return x.Parent != "" - case "mycel.registry.v1beta1.MsgUpdateDnsRecord.dns_record_type": + case "mycel.registry.v1.MsgUpdateDnsRecord.dns_record_type": return x.DnsRecordType != "" - case "mycel.registry.v1beta1.MsgUpdateDnsRecord.value": + case "mycel.registry.v1.MsgUpdateDnsRecord.value": return x.Value != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.MsgUpdateDnsRecord")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.MsgUpdateDnsRecord")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.MsgUpdateDnsRecord does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.MsgUpdateDnsRecord does not contain field %s", fd.FullName())) } } @@ -1201,21 +1202,21 @@ func (x *fastReflection_MsgUpdateDnsRecord) Has(fd protoreflect.FieldDescriptor) // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_MsgUpdateDnsRecord) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "mycel.registry.v1beta1.MsgUpdateDnsRecord.creator": + case "mycel.registry.v1.MsgUpdateDnsRecord.creator": x.Creator = "" - case "mycel.registry.v1beta1.MsgUpdateDnsRecord.name": + case "mycel.registry.v1.MsgUpdateDnsRecord.name": x.Name = "" - case "mycel.registry.v1beta1.MsgUpdateDnsRecord.parent": + case "mycel.registry.v1.MsgUpdateDnsRecord.parent": x.Parent = "" - case "mycel.registry.v1beta1.MsgUpdateDnsRecord.dns_record_type": + case "mycel.registry.v1.MsgUpdateDnsRecord.dns_record_type": x.DnsRecordType = "" - case "mycel.registry.v1beta1.MsgUpdateDnsRecord.value": + case "mycel.registry.v1.MsgUpdateDnsRecord.value": x.Value = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.MsgUpdateDnsRecord")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.MsgUpdateDnsRecord")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.MsgUpdateDnsRecord does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.MsgUpdateDnsRecord does not contain field %s", fd.FullName())) } } @@ -1227,26 +1228,26 @@ func (x *fastReflection_MsgUpdateDnsRecord) Clear(fd protoreflect.FieldDescripto // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_MsgUpdateDnsRecord) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "mycel.registry.v1beta1.MsgUpdateDnsRecord.creator": + case "mycel.registry.v1.MsgUpdateDnsRecord.creator": value := x.Creator return protoreflect.ValueOfString(value) - case "mycel.registry.v1beta1.MsgUpdateDnsRecord.name": + case "mycel.registry.v1.MsgUpdateDnsRecord.name": value := x.Name return protoreflect.ValueOfString(value) - case "mycel.registry.v1beta1.MsgUpdateDnsRecord.parent": + case "mycel.registry.v1.MsgUpdateDnsRecord.parent": value := x.Parent return protoreflect.ValueOfString(value) - case "mycel.registry.v1beta1.MsgUpdateDnsRecord.dns_record_type": + case "mycel.registry.v1.MsgUpdateDnsRecord.dns_record_type": value := x.DnsRecordType return protoreflect.ValueOfString(value) - case "mycel.registry.v1beta1.MsgUpdateDnsRecord.value": + case "mycel.registry.v1.MsgUpdateDnsRecord.value": value := x.Value return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.MsgUpdateDnsRecord")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.MsgUpdateDnsRecord")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.MsgUpdateDnsRecord does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.MsgUpdateDnsRecord does not contain field %s", descriptor.FullName())) } } @@ -1262,21 +1263,21 @@ func (x *fastReflection_MsgUpdateDnsRecord) Get(descriptor protoreflect.FieldDes // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_MsgUpdateDnsRecord) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "mycel.registry.v1beta1.MsgUpdateDnsRecord.creator": + case "mycel.registry.v1.MsgUpdateDnsRecord.creator": x.Creator = value.Interface().(string) - case "mycel.registry.v1beta1.MsgUpdateDnsRecord.name": + case "mycel.registry.v1.MsgUpdateDnsRecord.name": x.Name = value.Interface().(string) - case "mycel.registry.v1beta1.MsgUpdateDnsRecord.parent": + case "mycel.registry.v1.MsgUpdateDnsRecord.parent": x.Parent = value.Interface().(string) - case "mycel.registry.v1beta1.MsgUpdateDnsRecord.dns_record_type": + case "mycel.registry.v1.MsgUpdateDnsRecord.dns_record_type": x.DnsRecordType = value.Interface().(string) - case "mycel.registry.v1beta1.MsgUpdateDnsRecord.value": + case "mycel.registry.v1.MsgUpdateDnsRecord.value": x.Value = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.MsgUpdateDnsRecord")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.MsgUpdateDnsRecord")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.MsgUpdateDnsRecord does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.MsgUpdateDnsRecord does not contain field %s", fd.FullName())) } } @@ -1292,21 +1293,21 @@ func (x *fastReflection_MsgUpdateDnsRecord) Set(fd protoreflect.FieldDescriptor, // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_MsgUpdateDnsRecord) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "mycel.registry.v1beta1.MsgUpdateDnsRecord.creator": - panic(fmt.Errorf("field creator of message mycel.registry.v1beta1.MsgUpdateDnsRecord is not mutable")) - case "mycel.registry.v1beta1.MsgUpdateDnsRecord.name": - panic(fmt.Errorf("field name of message mycel.registry.v1beta1.MsgUpdateDnsRecord is not mutable")) - case "mycel.registry.v1beta1.MsgUpdateDnsRecord.parent": - panic(fmt.Errorf("field parent of message mycel.registry.v1beta1.MsgUpdateDnsRecord is not mutable")) - case "mycel.registry.v1beta1.MsgUpdateDnsRecord.dns_record_type": - panic(fmt.Errorf("field dns_record_type of message mycel.registry.v1beta1.MsgUpdateDnsRecord is not mutable")) - case "mycel.registry.v1beta1.MsgUpdateDnsRecord.value": - panic(fmt.Errorf("field value of message mycel.registry.v1beta1.MsgUpdateDnsRecord is not mutable")) + case "mycel.registry.v1.MsgUpdateDnsRecord.creator": + panic(fmt.Errorf("field creator of message mycel.registry.v1.MsgUpdateDnsRecord is not mutable")) + case "mycel.registry.v1.MsgUpdateDnsRecord.name": + panic(fmt.Errorf("field name of message mycel.registry.v1.MsgUpdateDnsRecord is not mutable")) + case "mycel.registry.v1.MsgUpdateDnsRecord.parent": + panic(fmt.Errorf("field parent of message mycel.registry.v1.MsgUpdateDnsRecord is not mutable")) + case "mycel.registry.v1.MsgUpdateDnsRecord.dns_record_type": + panic(fmt.Errorf("field dns_record_type of message mycel.registry.v1.MsgUpdateDnsRecord is not mutable")) + case "mycel.registry.v1.MsgUpdateDnsRecord.value": + panic(fmt.Errorf("field value of message mycel.registry.v1.MsgUpdateDnsRecord is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.MsgUpdateDnsRecord")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.MsgUpdateDnsRecord")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.MsgUpdateDnsRecord does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.MsgUpdateDnsRecord does not contain field %s", fd.FullName())) } } @@ -1315,21 +1316,21 @@ func (x *fastReflection_MsgUpdateDnsRecord) Mutable(fd protoreflect.FieldDescrip // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_MsgUpdateDnsRecord) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "mycel.registry.v1beta1.MsgUpdateDnsRecord.creator": + case "mycel.registry.v1.MsgUpdateDnsRecord.creator": return protoreflect.ValueOfString("") - case "mycel.registry.v1beta1.MsgUpdateDnsRecord.name": + case "mycel.registry.v1.MsgUpdateDnsRecord.name": return protoreflect.ValueOfString("") - case "mycel.registry.v1beta1.MsgUpdateDnsRecord.parent": + case "mycel.registry.v1.MsgUpdateDnsRecord.parent": return protoreflect.ValueOfString("") - case "mycel.registry.v1beta1.MsgUpdateDnsRecord.dns_record_type": + case "mycel.registry.v1.MsgUpdateDnsRecord.dns_record_type": return protoreflect.ValueOfString("") - case "mycel.registry.v1beta1.MsgUpdateDnsRecord.value": + case "mycel.registry.v1.MsgUpdateDnsRecord.value": return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.MsgUpdateDnsRecord")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.MsgUpdateDnsRecord")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.MsgUpdateDnsRecord does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.MsgUpdateDnsRecord does not contain field %s", fd.FullName())) } } @@ -1339,7 +1340,7 @@ func (x *fastReflection_MsgUpdateDnsRecord) NewField(fd protoreflect.FieldDescri func (x *fastReflection_MsgUpdateDnsRecord) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in mycel.registry.v1beta1.MsgUpdateDnsRecord", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in mycel.registry.v1.MsgUpdateDnsRecord", d.FullName())) } panic("unreachable") } @@ -1727,8 +1728,8 @@ var ( ) func init() { - file_mycel_registry_v1beta1_tx_proto_init() - md_MsgUpdateDnsRecordResponse = File_mycel_registry_v1beta1_tx_proto.Messages().ByName("MsgUpdateDnsRecordResponse") + file_mycel_registry_v1_tx_proto_init() + md_MsgUpdateDnsRecordResponse = File_mycel_registry_v1_tx_proto.Messages().ByName("MsgUpdateDnsRecordResponse") } var _ protoreflect.Message = (*fastReflection_MsgUpdateDnsRecordResponse)(nil) @@ -1740,7 +1741,7 @@ func (x *MsgUpdateDnsRecordResponse) ProtoReflect() protoreflect.Message { } func (x *MsgUpdateDnsRecordResponse) slowProtoReflect() protoreflect.Message { - mi := &file_mycel_registry_v1beta1_tx_proto_msgTypes[3] + mi := &file_mycel_registry_v1_tx_proto_msgTypes[3] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1813,9 +1814,9 @@ func (x *fastReflection_MsgUpdateDnsRecordResponse) Has(fd protoreflect.FieldDes switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.MsgUpdateDnsRecordResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.MsgUpdateDnsRecordResponse")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.MsgUpdateDnsRecordResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.MsgUpdateDnsRecordResponse does not contain field %s", fd.FullName())) } } @@ -1829,9 +1830,9 @@ func (x *fastReflection_MsgUpdateDnsRecordResponse) Clear(fd protoreflect.FieldD switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.MsgUpdateDnsRecordResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.MsgUpdateDnsRecordResponse")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.MsgUpdateDnsRecordResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.MsgUpdateDnsRecordResponse does not contain field %s", fd.FullName())) } } @@ -1845,9 +1846,9 @@ func (x *fastReflection_MsgUpdateDnsRecordResponse) Get(descriptor protoreflect. switch descriptor.FullName() { default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.MsgUpdateDnsRecordResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.MsgUpdateDnsRecordResponse")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.MsgUpdateDnsRecordResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.MsgUpdateDnsRecordResponse does not contain field %s", descriptor.FullName())) } } @@ -1865,9 +1866,9 @@ func (x *fastReflection_MsgUpdateDnsRecordResponse) Set(fd protoreflect.FieldDes switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.MsgUpdateDnsRecordResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.MsgUpdateDnsRecordResponse")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.MsgUpdateDnsRecordResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.MsgUpdateDnsRecordResponse does not contain field %s", fd.FullName())) } } @@ -1885,9 +1886,9 @@ func (x *fastReflection_MsgUpdateDnsRecordResponse) Mutable(fd protoreflect.Fiel switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.MsgUpdateDnsRecordResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.MsgUpdateDnsRecordResponse")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.MsgUpdateDnsRecordResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.MsgUpdateDnsRecordResponse does not contain field %s", fd.FullName())) } } @@ -1898,9 +1899,9 @@ func (x *fastReflection_MsgUpdateDnsRecordResponse) NewField(fd protoreflect.Fie switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.MsgUpdateDnsRecordResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.MsgUpdateDnsRecordResponse")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.MsgUpdateDnsRecordResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.MsgUpdateDnsRecordResponse does not contain field %s", fd.FullName())) } } @@ -1910,7 +1911,7 @@ func (x *fastReflection_MsgUpdateDnsRecordResponse) NewField(fd protoreflect.Fie func (x *fastReflection_MsgUpdateDnsRecordResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in mycel.registry.v1beta1.MsgUpdateDnsRecordResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in mycel.registry.v1.MsgUpdateDnsRecordResponse", d.FullName())) } panic("unreachable") } @@ -2087,8 +2088,8 @@ var ( ) func init() { - file_mycel_registry_v1beta1_tx_proto_init() - md_MsgRegisterSecondLevelDomain = File_mycel_registry_v1beta1_tx_proto.Messages().ByName("MsgRegisterSecondLevelDomain") + file_mycel_registry_v1_tx_proto_init() + md_MsgRegisterSecondLevelDomain = File_mycel_registry_v1_tx_proto.Messages().ByName("MsgRegisterSecondLevelDomain") fd_MsgRegisterSecondLevelDomain_creator = md_MsgRegisterSecondLevelDomain.Fields().ByName("creator") fd_MsgRegisterSecondLevelDomain_name = md_MsgRegisterSecondLevelDomain.Fields().ByName("name") fd_MsgRegisterSecondLevelDomain_parent = md_MsgRegisterSecondLevelDomain.Fields().ByName("parent") @@ -2104,7 +2105,7 @@ func (x *MsgRegisterSecondLevelDomain) ProtoReflect() protoreflect.Message { } func (x *MsgRegisterSecondLevelDomain) slowProtoReflect() protoreflect.Message { - mi := &file_mycel_registry_v1beta1_tx_proto_msgTypes[4] + mi := &file_mycel_registry_v1_tx_proto_msgTypes[4] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2199,19 +2200,19 @@ func (x *fastReflection_MsgRegisterSecondLevelDomain) Range(f func(protoreflect. // a repeated field is populated if it is non-empty. func (x *fastReflection_MsgRegisterSecondLevelDomain) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "mycel.registry.v1beta1.MsgRegisterSecondLevelDomain.creator": + case "mycel.registry.v1.MsgRegisterSecondLevelDomain.creator": return x.Creator != "" - case "mycel.registry.v1beta1.MsgRegisterSecondLevelDomain.name": + case "mycel.registry.v1.MsgRegisterSecondLevelDomain.name": return x.Name != "" - case "mycel.registry.v1beta1.MsgRegisterSecondLevelDomain.parent": + case "mycel.registry.v1.MsgRegisterSecondLevelDomain.parent": return x.Parent != "" - case "mycel.registry.v1beta1.MsgRegisterSecondLevelDomain.registration_period_in_year": + case "mycel.registry.v1.MsgRegisterSecondLevelDomain.registration_period_in_year": return x.RegistrationPeriodInYear != uint64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.MsgRegisterSecondLevelDomain")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.MsgRegisterSecondLevelDomain")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.MsgRegisterSecondLevelDomain does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.MsgRegisterSecondLevelDomain does not contain field %s", fd.FullName())) } } @@ -2223,19 +2224,19 @@ func (x *fastReflection_MsgRegisterSecondLevelDomain) Has(fd protoreflect.FieldD // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_MsgRegisterSecondLevelDomain) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "mycel.registry.v1beta1.MsgRegisterSecondLevelDomain.creator": + case "mycel.registry.v1.MsgRegisterSecondLevelDomain.creator": x.Creator = "" - case "mycel.registry.v1beta1.MsgRegisterSecondLevelDomain.name": + case "mycel.registry.v1.MsgRegisterSecondLevelDomain.name": x.Name = "" - case "mycel.registry.v1beta1.MsgRegisterSecondLevelDomain.parent": + case "mycel.registry.v1.MsgRegisterSecondLevelDomain.parent": x.Parent = "" - case "mycel.registry.v1beta1.MsgRegisterSecondLevelDomain.registration_period_in_year": + case "mycel.registry.v1.MsgRegisterSecondLevelDomain.registration_period_in_year": x.RegistrationPeriodInYear = uint64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.MsgRegisterSecondLevelDomain")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.MsgRegisterSecondLevelDomain")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.MsgRegisterSecondLevelDomain does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.MsgRegisterSecondLevelDomain does not contain field %s", fd.FullName())) } } @@ -2247,23 +2248,23 @@ func (x *fastReflection_MsgRegisterSecondLevelDomain) Clear(fd protoreflect.Fiel // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_MsgRegisterSecondLevelDomain) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "mycel.registry.v1beta1.MsgRegisterSecondLevelDomain.creator": + case "mycel.registry.v1.MsgRegisterSecondLevelDomain.creator": value := x.Creator return protoreflect.ValueOfString(value) - case "mycel.registry.v1beta1.MsgRegisterSecondLevelDomain.name": + case "mycel.registry.v1.MsgRegisterSecondLevelDomain.name": value := x.Name return protoreflect.ValueOfString(value) - case "mycel.registry.v1beta1.MsgRegisterSecondLevelDomain.parent": + case "mycel.registry.v1.MsgRegisterSecondLevelDomain.parent": value := x.Parent return protoreflect.ValueOfString(value) - case "mycel.registry.v1beta1.MsgRegisterSecondLevelDomain.registration_period_in_year": + case "mycel.registry.v1.MsgRegisterSecondLevelDomain.registration_period_in_year": value := x.RegistrationPeriodInYear return protoreflect.ValueOfUint64(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.MsgRegisterSecondLevelDomain")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.MsgRegisterSecondLevelDomain")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.MsgRegisterSecondLevelDomain does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.MsgRegisterSecondLevelDomain does not contain field %s", descriptor.FullName())) } } @@ -2279,19 +2280,19 @@ func (x *fastReflection_MsgRegisterSecondLevelDomain) Get(descriptor protoreflec // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_MsgRegisterSecondLevelDomain) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "mycel.registry.v1beta1.MsgRegisterSecondLevelDomain.creator": + case "mycel.registry.v1.MsgRegisterSecondLevelDomain.creator": x.Creator = value.Interface().(string) - case "mycel.registry.v1beta1.MsgRegisterSecondLevelDomain.name": + case "mycel.registry.v1.MsgRegisterSecondLevelDomain.name": x.Name = value.Interface().(string) - case "mycel.registry.v1beta1.MsgRegisterSecondLevelDomain.parent": + case "mycel.registry.v1.MsgRegisterSecondLevelDomain.parent": x.Parent = value.Interface().(string) - case "mycel.registry.v1beta1.MsgRegisterSecondLevelDomain.registration_period_in_year": + case "mycel.registry.v1.MsgRegisterSecondLevelDomain.registration_period_in_year": x.RegistrationPeriodInYear = value.Uint() default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.MsgRegisterSecondLevelDomain")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.MsgRegisterSecondLevelDomain")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.MsgRegisterSecondLevelDomain does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.MsgRegisterSecondLevelDomain does not contain field %s", fd.FullName())) } } @@ -2307,19 +2308,19 @@ func (x *fastReflection_MsgRegisterSecondLevelDomain) Set(fd protoreflect.FieldD // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_MsgRegisterSecondLevelDomain) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "mycel.registry.v1beta1.MsgRegisterSecondLevelDomain.creator": - panic(fmt.Errorf("field creator of message mycel.registry.v1beta1.MsgRegisterSecondLevelDomain is not mutable")) - case "mycel.registry.v1beta1.MsgRegisterSecondLevelDomain.name": - panic(fmt.Errorf("field name of message mycel.registry.v1beta1.MsgRegisterSecondLevelDomain is not mutable")) - case "mycel.registry.v1beta1.MsgRegisterSecondLevelDomain.parent": - panic(fmt.Errorf("field parent of message mycel.registry.v1beta1.MsgRegisterSecondLevelDomain is not mutable")) - case "mycel.registry.v1beta1.MsgRegisterSecondLevelDomain.registration_period_in_year": - panic(fmt.Errorf("field registration_period_in_year of message mycel.registry.v1beta1.MsgRegisterSecondLevelDomain is not mutable")) + case "mycel.registry.v1.MsgRegisterSecondLevelDomain.creator": + panic(fmt.Errorf("field creator of message mycel.registry.v1.MsgRegisterSecondLevelDomain is not mutable")) + case "mycel.registry.v1.MsgRegisterSecondLevelDomain.name": + panic(fmt.Errorf("field name of message mycel.registry.v1.MsgRegisterSecondLevelDomain is not mutable")) + case "mycel.registry.v1.MsgRegisterSecondLevelDomain.parent": + panic(fmt.Errorf("field parent of message mycel.registry.v1.MsgRegisterSecondLevelDomain is not mutable")) + case "mycel.registry.v1.MsgRegisterSecondLevelDomain.registration_period_in_year": + panic(fmt.Errorf("field registration_period_in_year of message mycel.registry.v1.MsgRegisterSecondLevelDomain is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.MsgRegisterSecondLevelDomain")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.MsgRegisterSecondLevelDomain")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.MsgRegisterSecondLevelDomain does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.MsgRegisterSecondLevelDomain does not contain field %s", fd.FullName())) } } @@ -2328,19 +2329,19 @@ func (x *fastReflection_MsgRegisterSecondLevelDomain) Mutable(fd protoreflect.Fi // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_MsgRegisterSecondLevelDomain) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "mycel.registry.v1beta1.MsgRegisterSecondLevelDomain.creator": + case "mycel.registry.v1.MsgRegisterSecondLevelDomain.creator": return protoreflect.ValueOfString("") - case "mycel.registry.v1beta1.MsgRegisterSecondLevelDomain.name": + case "mycel.registry.v1.MsgRegisterSecondLevelDomain.name": return protoreflect.ValueOfString("") - case "mycel.registry.v1beta1.MsgRegisterSecondLevelDomain.parent": + case "mycel.registry.v1.MsgRegisterSecondLevelDomain.parent": return protoreflect.ValueOfString("") - case "mycel.registry.v1beta1.MsgRegisterSecondLevelDomain.registration_period_in_year": + case "mycel.registry.v1.MsgRegisterSecondLevelDomain.registration_period_in_year": return protoreflect.ValueOfUint64(uint64(0)) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.MsgRegisterSecondLevelDomain")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.MsgRegisterSecondLevelDomain")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.MsgRegisterSecondLevelDomain does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.MsgRegisterSecondLevelDomain does not contain field %s", fd.FullName())) } } @@ -2350,7 +2351,7 @@ func (x *fastReflection_MsgRegisterSecondLevelDomain) NewField(fd protoreflect.F func (x *fastReflection_MsgRegisterSecondLevelDomain) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in mycel.registry.v1beta1.MsgRegisterSecondLevelDomain", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in mycel.registry.v1.MsgRegisterSecondLevelDomain", d.FullName())) } panic("unreachable") } @@ -2679,8 +2680,8 @@ var ( ) func init() { - file_mycel_registry_v1beta1_tx_proto_init() - md_MsgRegisterSecondLevelDomainResponse = File_mycel_registry_v1beta1_tx_proto.Messages().ByName("MsgRegisterSecondLevelDomainResponse") + file_mycel_registry_v1_tx_proto_init() + md_MsgRegisterSecondLevelDomainResponse = File_mycel_registry_v1_tx_proto.Messages().ByName("MsgRegisterSecondLevelDomainResponse") } var _ protoreflect.Message = (*fastReflection_MsgRegisterSecondLevelDomainResponse)(nil) @@ -2692,7 +2693,7 @@ func (x *MsgRegisterSecondLevelDomainResponse) ProtoReflect() protoreflect.Messa } func (x *MsgRegisterSecondLevelDomainResponse) slowProtoReflect() protoreflect.Message { - mi := &file_mycel_registry_v1beta1_tx_proto_msgTypes[5] + mi := &file_mycel_registry_v1_tx_proto_msgTypes[5] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2765,9 +2766,9 @@ func (x *fastReflection_MsgRegisterSecondLevelDomainResponse) Has(fd protoreflec switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.MsgRegisterSecondLevelDomainResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.MsgRegisterSecondLevelDomainResponse")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.MsgRegisterSecondLevelDomainResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.MsgRegisterSecondLevelDomainResponse does not contain field %s", fd.FullName())) } } @@ -2781,9 +2782,9 @@ func (x *fastReflection_MsgRegisterSecondLevelDomainResponse) Clear(fd protorefl switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.MsgRegisterSecondLevelDomainResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.MsgRegisterSecondLevelDomainResponse")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.MsgRegisterSecondLevelDomainResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.MsgRegisterSecondLevelDomainResponse does not contain field %s", fd.FullName())) } } @@ -2797,9 +2798,9 @@ func (x *fastReflection_MsgRegisterSecondLevelDomainResponse) Get(descriptor pro switch descriptor.FullName() { default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.MsgRegisterSecondLevelDomainResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.MsgRegisterSecondLevelDomainResponse")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.MsgRegisterSecondLevelDomainResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.MsgRegisterSecondLevelDomainResponse does not contain field %s", descriptor.FullName())) } } @@ -2817,9 +2818,9 @@ func (x *fastReflection_MsgRegisterSecondLevelDomainResponse) Set(fd protoreflec switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.MsgRegisterSecondLevelDomainResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.MsgRegisterSecondLevelDomainResponse")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.MsgRegisterSecondLevelDomainResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.MsgRegisterSecondLevelDomainResponse does not contain field %s", fd.FullName())) } } @@ -2837,9 +2838,9 @@ func (x *fastReflection_MsgRegisterSecondLevelDomainResponse) Mutable(fd protore switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.MsgRegisterSecondLevelDomainResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.MsgRegisterSecondLevelDomainResponse")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.MsgRegisterSecondLevelDomainResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.MsgRegisterSecondLevelDomainResponse does not contain field %s", fd.FullName())) } } @@ -2850,9 +2851,9 @@ func (x *fastReflection_MsgRegisterSecondLevelDomainResponse) NewField(fd protor switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.MsgRegisterSecondLevelDomainResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.MsgRegisterSecondLevelDomainResponse")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.MsgRegisterSecondLevelDomainResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.MsgRegisterSecondLevelDomainResponse does not contain field %s", fd.FullName())) } } @@ -2862,7 +2863,7 @@ func (x *fastReflection_MsgRegisterSecondLevelDomainResponse) NewField(fd protor func (x *fastReflection_MsgRegisterSecondLevelDomainResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in mycel.registry.v1beta1.MsgRegisterSecondLevelDomainResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in mycel.registry.v1.MsgRegisterSecondLevelDomainResponse", d.FullName())) } panic("unreachable") } @@ -3038,8 +3039,8 @@ var ( ) func init() { - file_mycel_registry_v1beta1_tx_proto_init() - md_MsgRegisterTopLevelDomain = File_mycel_registry_v1beta1_tx_proto.Messages().ByName("MsgRegisterTopLevelDomain") + file_mycel_registry_v1_tx_proto_init() + md_MsgRegisterTopLevelDomain = File_mycel_registry_v1_tx_proto.Messages().ByName("MsgRegisterTopLevelDomain") fd_MsgRegisterTopLevelDomain_creator = md_MsgRegisterTopLevelDomain.Fields().ByName("creator") fd_MsgRegisterTopLevelDomain_name = md_MsgRegisterTopLevelDomain.Fields().ByName("name") fd_MsgRegisterTopLevelDomain_registration_period_in_year = md_MsgRegisterTopLevelDomain.Fields().ByName("registration_period_in_year") @@ -3054,7 +3055,7 @@ func (x *MsgRegisterTopLevelDomain) ProtoReflect() protoreflect.Message { } func (x *MsgRegisterTopLevelDomain) slowProtoReflect() protoreflect.Message { - mi := &file_mycel_registry_v1beta1_tx_proto_msgTypes[6] + mi := &file_mycel_registry_v1_tx_proto_msgTypes[6] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3143,17 +3144,17 @@ func (x *fastReflection_MsgRegisterTopLevelDomain) Range(f func(protoreflect.Fie // a repeated field is populated if it is non-empty. func (x *fastReflection_MsgRegisterTopLevelDomain) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "mycel.registry.v1beta1.MsgRegisterTopLevelDomain.creator": + case "mycel.registry.v1.MsgRegisterTopLevelDomain.creator": return x.Creator != "" - case "mycel.registry.v1beta1.MsgRegisterTopLevelDomain.name": + case "mycel.registry.v1.MsgRegisterTopLevelDomain.name": return x.Name != "" - case "mycel.registry.v1beta1.MsgRegisterTopLevelDomain.registration_period_in_year": + case "mycel.registry.v1.MsgRegisterTopLevelDomain.registration_period_in_year": return x.RegistrationPeriodInYear != uint64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.MsgRegisterTopLevelDomain")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.MsgRegisterTopLevelDomain")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.MsgRegisterTopLevelDomain does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.MsgRegisterTopLevelDomain does not contain field %s", fd.FullName())) } } @@ -3165,17 +3166,17 @@ func (x *fastReflection_MsgRegisterTopLevelDomain) Has(fd protoreflect.FieldDesc // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_MsgRegisterTopLevelDomain) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "mycel.registry.v1beta1.MsgRegisterTopLevelDomain.creator": + case "mycel.registry.v1.MsgRegisterTopLevelDomain.creator": x.Creator = "" - case "mycel.registry.v1beta1.MsgRegisterTopLevelDomain.name": + case "mycel.registry.v1.MsgRegisterTopLevelDomain.name": x.Name = "" - case "mycel.registry.v1beta1.MsgRegisterTopLevelDomain.registration_period_in_year": + case "mycel.registry.v1.MsgRegisterTopLevelDomain.registration_period_in_year": x.RegistrationPeriodInYear = uint64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.MsgRegisterTopLevelDomain")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.MsgRegisterTopLevelDomain")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.MsgRegisterTopLevelDomain does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.MsgRegisterTopLevelDomain does not contain field %s", fd.FullName())) } } @@ -3187,20 +3188,20 @@ func (x *fastReflection_MsgRegisterTopLevelDomain) Clear(fd protoreflect.FieldDe // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_MsgRegisterTopLevelDomain) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "mycel.registry.v1beta1.MsgRegisterTopLevelDomain.creator": + case "mycel.registry.v1.MsgRegisterTopLevelDomain.creator": value := x.Creator return protoreflect.ValueOfString(value) - case "mycel.registry.v1beta1.MsgRegisterTopLevelDomain.name": + case "mycel.registry.v1.MsgRegisterTopLevelDomain.name": value := x.Name return protoreflect.ValueOfString(value) - case "mycel.registry.v1beta1.MsgRegisterTopLevelDomain.registration_period_in_year": + case "mycel.registry.v1.MsgRegisterTopLevelDomain.registration_period_in_year": value := x.RegistrationPeriodInYear return protoreflect.ValueOfUint64(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.MsgRegisterTopLevelDomain")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.MsgRegisterTopLevelDomain")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.MsgRegisterTopLevelDomain does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.MsgRegisterTopLevelDomain does not contain field %s", descriptor.FullName())) } } @@ -3216,17 +3217,17 @@ func (x *fastReflection_MsgRegisterTopLevelDomain) Get(descriptor protoreflect.F // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_MsgRegisterTopLevelDomain) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "mycel.registry.v1beta1.MsgRegisterTopLevelDomain.creator": + case "mycel.registry.v1.MsgRegisterTopLevelDomain.creator": x.Creator = value.Interface().(string) - case "mycel.registry.v1beta1.MsgRegisterTopLevelDomain.name": + case "mycel.registry.v1.MsgRegisterTopLevelDomain.name": x.Name = value.Interface().(string) - case "mycel.registry.v1beta1.MsgRegisterTopLevelDomain.registration_period_in_year": + case "mycel.registry.v1.MsgRegisterTopLevelDomain.registration_period_in_year": x.RegistrationPeriodInYear = value.Uint() default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.MsgRegisterTopLevelDomain")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.MsgRegisterTopLevelDomain")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.MsgRegisterTopLevelDomain does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.MsgRegisterTopLevelDomain does not contain field %s", fd.FullName())) } } @@ -3242,17 +3243,17 @@ func (x *fastReflection_MsgRegisterTopLevelDomain) Set(fd protoreflect.FieldDesc // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_MsgRegisterTopLevelDomain) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "mycel.registry.v1beta1.MsgRegisterTopLevelDomain.creator": - panic(fmt.Errorf("field creator of message mycel.registry.v1beta1.MsgRegisterTopLevelDomain is not mutable")) - case "mycel.registry.v1beta1.MsgRegisterTopLevelDomain.name": - panic(fmt.Errorf("field name of message mycel.registry.v1beta1.MsgRegisterTopLevelDomain is not mutable")) - case "mycel.registry.v1beta1.MsgRegisterTopLevelDomain.registration_period_in_year": - panic(fmt.Errorf("field registration_period_in_year of message mycel.registry.v1beta1.MsgRegisterTopLevelDomain is not mutable")) + case "mycel.registry.v1.MsgRegisterTopLevelDomain.creator": + panic(fmt.Errorf("field creator of message mycel.registry.v1.MsgRegisterTopLevelDomain is not mutable")) + case "mycel.registry.v1.MsgRegisterTopLevelDomain.name": + panic(fmt.Errorf("field name of message mycel.registry.v1.MsgRegisterTopLevelDomain is not mutable")) + case "mycel.registry.v1.MsgRegisterTopLevelDomain.registration_period_in_year": + panic(fmt.Errorf("field registration_period_in_year of message mycel.registry.v1.MsgRegisterTopLevelDomain is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.MsgRegisterTopLevelDomain")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.MsgRegisterTopLevelDomain")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.MsgRegisterTopLevelDomain does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.MsgRegisterTopLevelDomain does not contain field %s", fd.FullName())) } } @@ -3261,17 +3262,17 @@ func (x *fastReflection_MsgRegisterTopLevelDomain) Mutable(fd protoreflect.Field // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_MsgRegisterTopLevelDomain) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "mycel.registry.v1beta1.MsgRegisterTopLevelDomain.creator": + case "mycel.registry.v1.MsgRegisterTopLevelDomain.creator": return protoreflect.ValueOfString("") - case "mycel.registry.v1beta1.MsgRegisterTopLevelDomain.name": + case "mycel.registry.v1.MsgRegisterTopLevelDomain.name": return protoreflect.ValueOfString("") - case "mycel.registry.v1beta1.MsgRegisterTopLevelDomain.registration_period_in_year": + case "mycel.registry.v1.MsgRegisterTopLevelDomain.registration_period_in_year": return protoreflect.ValueOfUint64(uint64(0)) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.MsgRegisterTopLevelDomain")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.MsgRegisterTopLevelDomain")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.MsgRegisterTopLevelDomain does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.MsgRegisterTopLevelDomain does not contain field %s", fd.FullName())) } } @@ -3281,7 +3282,7 @@ func (x *fastReflection_MsgRegisterTopLevelDomain) NewField(fd protoreflect.Fiel func (x *fastReflection_MsgRegisterTopLevelDomain) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in mycel.registry.v1beta1.MsgRegisterTopLevelDomain", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in mycel.registry.v1.MsgRegisterTopLevelDomain", d.FullName())) } panic("unreachable") } @@ -3569,8 +3570,8 @@ var ( ) func init() { - file_mycel_registry_v1beta1_tx_proto_init() - md_MsgRegisterTopLevelDomainResponse = File_mycel_registry_v1beta1_tx_proto.Messages().ByName("MsgRegisterTopLevelDomainResponse") + file_mycel_registry_v1_tx_proto_init() + md_MsgRegisterTopLevelDomainResponse = File_mycel_registry_v1_tx_proto.Messages().ByName("MsgRegisterTopLevelDomainResponse") fd_MsgRegisterTopLevelDomainResponse_top_level_domain = md_MsgRegisterTopLevelDomainResponse.Fields().ByName("top_level_domain") fd_MsgRegisterTopLevelDomainResponse_fee = md_MsgRegisterTopLevelDomainResponse.Fields().ByName("fee") } @@ -3584,7 +3585,7 @@ func (x *MsgRegisterTopLevelDomainResponse) ProtoReflect() protoreflect.Message } func (x *MsgRegisterTopLevelDomainResponse) slowProtoReflect() protoreflect.Message { - mi := &file_mycel_registry_v1beta1_tx_proto_msgTypes[7] + mi := &file_mycel_registry_v1_tx_proto_msgTypes[7] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3667,15 +3668,15 @@ func (x *fastReflection_MsgRegisterTopLevelDomainResponse) Range(f func(protoref // a repeated field is populated if it is non-empty. func (x *fastReflection_MsgRegisterTopLevelDomainResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "mycel.registry.v1beta1.MsgRegisterTopLevelDomainResponse.top_level_domain": + case "mycel.registry.v1.MsgRegisterTopLevelDomainResponse.top_level_domain": return x.TopLevelDomain != nil - case "mycel.registry.v1beta1.MsgRegisterTopLevelDomainResponse.fee": + case "mycel.registry.v1.MsgRegisterTopLevelDomainResponse.fee": return x.Fee != nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.MsgRegisterTopLevelDomainResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.MsgRegisterTopLevelDomainResponse")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.MsgRegisterTopLevelDomainResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.MsgRegisterTopLevelDomainResponse does not contain field %s", fd.FullName())) } } @@ -3687,15 +3688,15 @@ func (x *fastReflection_MsgRegisterTopLevelDomainResponse) Has(fd protoreflect.F // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_MsgRegisterTopLevelDomainResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "mycel.registry.v1beta1.MsgRegisterTopLevelDomainResponse.top_level_domain": + case "mycel.registry.v1.MsgRegisterTopLevelDomainResponse.top_level_domain": x.TopLevelDomain = nil - case "mycel.registry.v1beta1.MsgRegisterTopLevelDomainResponse.fee": + case "mycel.registry.v1.MsgRegisterTopLevelDomainResponse.fee": x.Fee = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.MsgRegisterTopLevelDomainResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.MsgRegisterTopLevelDomainResponse")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.MsgRegisterTopLevelDomainResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.MsgRegisterTopLevelDomainResponse does not contain field %s", fd.FullName())) } } @@ -3707,17 +3708,17 @@ func (x *fastReflection_MsgRegisterTopLevelDomainResponse) Clear(fd protoreflect // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_MsgRegisterTopLevelDomainResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "mycel.registry.v1beta1.MsgRegisterTopLevelDomainResponse.top_level_domain": + case "mycel.registry.v1.MsgRegisterTopLevelDomainResponse.top_level_domain": value := x.TopLevelDomain return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "mycel.registry.v1beta1.MsgRegisterTopLevelDomainResponse.fee": + case "mycel.registry.v1.MsgRegisterTopLevelDomainResponse.fee": value := x.Fee return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.MsgRegisterTopLevelDomainResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.MsgRegisterTopLevelDomainResponse")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.MsgRegisterTopLevelDomainResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.MsgRegisterTopLevelDomainResponse does not contain field %s", descriptor.FullName())) } } @@ -3733,15 +3734,15 @@ func (x *fastReflection_MsgRegisterTopLevelDomainResponse) Get(descriptor protor // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_MsgRegisterTopLevelDomainResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "mycel.registry.v1beta1.MsgRegisterTopLevelDomainResponse.top_level_domain": + case "mycel.registry.v1.MsgRegisterTopLevelDomainResponse.top_level_domain": x.TopLevelDomain = value.Message().Interface().(*TopLevelDomain) - case "mycel.registry.v1beta1.MsgRegisterTopLevelDomainResponse.fee": + case "mycel.registry.v1.MsgRegisterTopLevelDomainResponse.fee": x.Fee = value.Message().Interface().(*TopLevelDomainFee) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.MsgRegisterTopLevelDomainResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.MsgRegisterTopLevelDomainResponse")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.MsgRegisterTopLevelDomainResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.MsgRegisterTopLevelDomainResponse does not contain field %s", fd.FullName())) } } @@ -3757,21 +3758,21 @@ func (x *fastReflection_MsgRegisterTopLevelDomainResponse) Set(fd protoreflect.F // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_MsgRegisterTopLevelDomainResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "mycel.registry.v1beta1.MsgRegisterTopLevelDomainResponse.top_level_domain": + case "mycel.registry.v1.MsgRegisterTopLevelDomainResponse.top_level_domain": if x.TopLevelDomain == nil { x.TopLevelDomain = new(TopLevelDomain) } return protoreflect.ValueOfMessage(x.TopLevelDomain.ProtoReflect()) - case "mycel.registry.v1beta1.MsgRegisterTopLevelDomainResponse.fee": + case "mycel.registry.v1.MsgRegisterTopLevelDomainResponse.fee": if x.Fee == nil { x.Fee = new(TopLevelDomainFee) } return protoreflect.ValueOfMessage(x.Fee.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.MsgRegisterTopLevelDomainResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.MsgRegisterTopLevelDomainResponse")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.MsgRegisterTopLevelDomainResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.MsgRegisterTopLevelDomainResponse does not contain field %s", fd.FullName())) } } @@ -3780,17 +3781,17 @@ func (x *fastReflection_MsgRegisterTopLevelDomainResponse) Mutable(fd protorefle // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_MsgRegisterTopLevelDomainResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "mycel.registry.v1beta1.MsgRegisterTopLevelDomainResponse.top_level_domain": + case "mycel.registry.v1.MsgRegisterTopLevelDomainResponse.top_level_domain": m := new(TopLevelDomain) return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "mycel.registry.v1beta1.MsgRegisterTopLevelDomainResponse.fee": + case "mycel.registry.v1.MsgRegisterTopLevelDomainResponse.fee": m := new(TopLevelDomainFee) return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.MsgRegisterTopLevelDomainResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.MsgRegisterTopLevelDomainResponse")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.MsgRegisterTopLevelDomainResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.MsgRegisterTopLevelDomainResponse does not contain field %s", fd.FullName())) } } @@ -3800,7 +3801,7 @@ func (x *fastReflection_MsgRegisterTopLevelDomainResponse) NewField(fd protorefl func (x *fastReflection_MsgRegisterTopLevelDomainResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in mycel.registry.v1beta1.MsgRegisterTopLevelDomainResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in mycel.registry.v1.MsgRegisterTopLevelDomainResponse", d.FullName())) } panic("unreachable") } @@ -4083,8 +4084,8 @@ var ( ) func init() { - file_mycel_registry_v1beta1_tx_proto_init() - md_MsgWithdrawRegistrationFee = File_mycel_registry_v1beta1_tx_proto.Messages().ByName("MsgWithdrawRegistrationFee") + file_mycel_registry_v1_tx_proto_init() + md_MsgWithdrawRegistrationFee = File_mycel_registry_v1_tx_proto.Messages().ByName("MsgWithdrawRegistrationFee") fd_MsgWithdrawRegistrationFee_creator = md_MsgWithdrawRegistrationFee.Fields().ByName("creator") fd_MsgWithdrawRegistrationFee_name = md_MsgWithdrawRegistrationFee.Fields().ByName("name") } @@ -4098,7 +4099,7 @@ func (x *MsgWithdrawRegistrationFee) ProtoReflect() protoreflect.Message { } func (x *MsgWithdrawRegistrationFee) slowProtoReflect() protoreflect.Message { - mi := &file_mycel_registry_v1beta1_tx_proto_msgTypes[8] + mi := &file_mycel_registry_v1_tx_proto_msgTypes[8] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4181,15 +4182,15 @@ func (x *fastReflection_MsgWithdrawRegistrationFee) Range(f func(protoreflect.Fi // a repeated field is populated if it is non-empty. func (x *fastReflection_MsgWithdrawRegistrationFee) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "mycel.registry.v1beta1.MsgWithdrawRegistrationFee.creator": + case "mycel.registry.v1.MsgWithdrawRegistrationFee.creator": return x.Creator != "" - case "mycel.registry.v1beta1.MsgWithdrawRegistrationFee.name": + case "mycel.registry.v1.MsgWithdrawRegistrationFee.name": return x.Name != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.MsgWithdrawRegistrationFee")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.MsgWithdrawRegistrationFee")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.MsgWithdrawRegistrationFee does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.MsgWithdrawRegistrationFee does not contain field %s", fd.FullName())) } } @@ -4201,15 +4202,15 @@ func (x *fastReflection_MsgWithdrawRegistrationFee) Has(fd protoreflect.FieldDes // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_MsgWithdrawRegistrationFee) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "mycel.registry.v1beta1.MsgWithdrawRegistrationFee.creator": + case "mycel.registry.v1.MsgWithdrawRegistrationFee.creator": x.Creator = "" - case "mycel.registry.v1beta1.MsgWithdrawRegistrationFee.name": + case "mycel.registry.v1.MsgWithdrawRegistrationFee.name": x.Name = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.MsgWithdrawRegistrationFee")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.MsgWithdrawRegistrationFee")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.MsgWithdrawRegistrationFee does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.MsgWithdrawRegistrationFee does not contain field %s", fd.FullName())) } } @@ -4221,17 +4222,17 @@ func (x *fastReflection_MsgWithdrawRegistrationFee) Clear(fd protoreflect.FieldD // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_MsgWithdrawRegistrationFee) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "mycel.registry.v1beta1.MsgWithdrawRegistrationFee.creator": + case "mycel.registry.v1.MsgWithdrawRegistrationFee.creator": value := x.Creator return protoreflect.ValueOfString(value) - case "mycel.registry.v1beta1.MsgWithdrawRegistrationFee.name": + case "mycel.registry.v1.MsgWithdrawRegistrationFee.name": value := x.Name return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.MsgWithdrawRegistrationFee")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.MsgWithdrawRegistrationFee")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.MsgWithdrawRegistrationFee does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.MsgWithdrawRegistrationFee does not contain field %s", descriptor.FullName())) } } @@ -4247,15 +4248,15 @@ func (x *fastReflection_MsgWithdrawRegistrationFee) Get(descriptor protoreflect. // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_MsgWithdrawRegistrationFee) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "mycel.registry.v1beta1.MsgWithdrawRegistrationFee.creator": + case "mycel.registry.v1.MsgWithdrawRegistrationFee.creator": x.Creator = value.Interface().(string) - case "mycel.registry.v1beta1.MsgWithdrawRegistrationFee.name": + case "mycel.registry.v1.MsgWithdrawRegistrationFee.name": x.Name = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.MsgWithdrawRegistrationFee")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.MsgWithdrawRegistrationFee")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.MsgWithdrawRegistrationFee does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.MsgWithdrawRegistrationFee does not contain field %s", fd.FullName())) } } @@ -4271,15 +4272,15 @@ func (x *fastReflection_MsgWithdrawRegistrationFee) Set(fd protoreflect.FieldDes // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_MsgWithdrawRegistrationFee) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "mycel.registry.v1beta1.MsgWithdrawRegistrationFee.creator": - panic(fmt.Errorf("field creator of message mycel.registry.v1beta1.MsgWithdrawRegistrationFee is not mutable")) - case "mycel.registry.v1beta1.MsgWithdrawRegistrationFee.name": - panic(fmt.Errorf("field name of message mycel.registry.v1beta1.MsgWithdrawRegistrationFee is not mutable")) + case "mycel.registry.v1.MsgWithdrawRegistrationFee.creator": + panic(fmt.Errorf("field creator of message mycel.registry.v1.MsgWithdrawRegistrationFee is not mutable")) + case "mycel.registry.v1.MsgWithdrawRegistrationFee.name": + panic(fmt.Errorf("field name of message mycel.registry.v1.MsgWithdrawRegistrationFee is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.MsgWithdrawRegistrationFee")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.MsgWithdrawRegistrationFee")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.MsgWithdrawRegistrationFee does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.MsgWithdrawRegistrationFee does not contain field %s", fd.FullName())) } } @@ -4288,15 +4289,15 @@ func (x *fastReflection_MsgWithdrawRegistrationFee) Mutable(fd protoreflect.Fiel // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_MsgWithdrawRegistrationFee) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "mycel.registry.v1beta1.MsgWithdrawRegistrationFee.creator": + case "mycel.registry.v1.MsgWithdrawRegistrationFee.creator": return protoreflect.ValueOfString("") - case "mycel.registry.v1beta1.MsgWithdrawRegistrationFee.name": + case "mycel.registry.v1.MsgWithdrawRegistrationFee.name": return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.MsgWithdrawRegistrationFee")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.MsgWithdrawRegistrationFee")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.MsgWithdrawRegistrationFee does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.MsgWithdrawRegistrationFee does not contain field %s", fd.FullName())) } } @@ -4306,7 +4307,7 @@ func (x *fastReflection_MsgWithdrawRegistrationFee) NewField(fd protoreflect.Fie func (x *fastReflection_MsgWithdrawRegistrationFee) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in mycel.registry.v1beta1.MsgWithdrawRegistrationFee", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in mycel.registry.v1.MsgWithdrawRegistrationFee", d.FullName())) } panic("unreachable") } @@ -4560,54 +4561,54 @@ func (x *fastReflection_MsgWithdrawRegistrationFee) ProtoMethods() *protoiface.M } } -var _ protoreflect.List = (*_MsgWithdrawRegistrationFeeResponse_7_list)(nil) +var _ protoreflect.List = (*_MsgWithdrawRegistrationFeeResponse_1_list)(nil) -type _MsgWithdrawRegistrationFeeResponse_7_list struct { +type _MsgWithdrawRegistrationFeeResponse_1_list struct { list *[]*v1beta1.Coin } -func (x *_MsgWithdrawRegistrationFeeResponse_7_list) Len() int { +func (x *_MsgWithdrawRegistrationFeeResponse_1_list) Len() int { if x.list == nil { return 0 } return len(*x.list) } -func (x *_MsgWithdrawRegistrationFeeResponse_7_list) Get(i int) protoreflect.Value { +func (x *_MsgWithdrawRegistrationFeeResponse_1_list) Get(i int) protoreflect.Value { return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) } -func (x *_MsgWithdrawRegistrationFeeResponse_7_list) Set(i int, value protoreflect.Value) { +func (x *_MsgWithdrawRegistrationFeeResponse_1_list) Set(i int, value protoreflect.Value) { valueUnwrapped := value.Message() concreteValue := valueUnwrapped.Interface().(*v1beta1.Coin) (*x.list)[i] = concreteValue } -func (x *_MsgWithdrawRegistrationFeeResponse_7_list) Append(value protoreflect.Value) { +func (x *_MsgWithdrawRegistrationFeeResponse_1_list) Append(value protoreflect.Value) { valueUnwrapped := value.Message() concreteValue := valueUnwrapped.Interface().(*v1beta1.Coin) *x.list = append(*x.list, concreteValue) } -func (x *_MsgWithdrawRegistrationFeeResponse_7_list) AppendMutable() protoreflect.Value { +func (x *_MsgWithdrawRegistrationFeeResponse_1_list) AppendMutable() protoreflect.Value { v := new(v1beta1.Coin) *x.list = append(*x.list, v) return protoreflect.ValueOfMessage(v.ProtoReflect()) } -func (x *_MsgWithdrawRegistrationFeeResponse_7_list) Truncate(n int) { +func (x *_MsgWithdrawRegistrationFeeResponse_1_list) Truncate(n int) { for i := n; i < len(*x.list); i++ { (*x.list)[i] = nil } *x.list = (*x.list)[:n] } -func (x *_MsgWithdrawRegistrationFeeResponse_7_list) NewElement() protoreflect.Value { +func (x *_MsgWithdrawRegistrationFeeResponse_1_list) NewElement() protoreflect.Value { v := new(v1beta1.Coin) return protoreflect.ValueOfMessage(v.ProtoReflect()) } -func (x *_MsgWithdrawRegistrationFeeResponse_7_list) IsValid() bool { +func (x *_MsgWithdrawRegistrationFeeResponse_1_list) IsValid() bool { return x.list != nil } @@ -4617,8 +4618,8 @@ var ( ) func init() { - file_mycel_registry_v1beta1_tx_proto_init() - md_MsgWithdrawRegistrationFeeResponse = File_mycel_registry_v1beta1_tx_proto.Messages().ByName("MsgWithdrawRegistrationFeeResponse") + file_mycel_registry_v1_tx_proto_init() + md_MsgWithdrawRegistrationFeeResponse = File_mycel_registry_v1_tx_proto.Messages().ByName("MsgWithdrawRegistrationFeeResponse") fd_MsgWithdrawRegistrationFeeResponse_registration_fee = md_MsgWithdrawRegistrationFeeResponse.Fields().ByName("registration_fee") } @@ -4631,7 +4632,7 @@ func (x *MsgWithdrawRegistrationFeeResponse) ProtoReflect() protoreflect.Message } func (x *MsgWithdrawRegistrationFeeResponse) slowProtoReflect() protoreflect.Message { - mi := &file_mycel_registry_v1beta1_tx_proto_msgTypes[9] + mi := &file_mycel_registry_v1_tx_proto_msgTypes[9] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4688,7 +4689,7 @@ func (x *fastReflection_MsgWithdrawRegistrationFeeResponse) Interface() protoref // on the current field descriptor. func (x *fastReflection_MsgWithdrawRegistrationFeeResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if len(x.RegistrationFee) != 0 { - value := protoreflect.ValueOfList(&_MsgWithdrawRegistrationFeeResponse_7_list{list: &x.RegistrationFee}) + value := protoreflect.ValueOfList(&_MsgWithdrawRegistrationFeeResponse_1_list{list: &x.RegistrationFee}) if !f(fd_MsgWithdrawRegistrationFeeResponse_registration_fee, value) { return } @@ -4708,13 +4709,13 @@ func (x *fastReflection_MsgWithdrawRegistrationFeeResponse) Range(f func(protore // a repeated field is populated if it is non-empty. func (x *fastReflection_MsgWithdrawRegistrationFeeResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "mycel.registry.v1beta1.MsgWithdrawRegistrationFeeResponse.registration_fee": + case "mycel.registry.v1.MsgWithdrawRegistrationFeeResponse.registration_fee": return len(x.RegistrationFee) != 0 default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.MsgWithdrawRegistrationFeeResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.MsgWithdrawRegistrationFeeResponse")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.MsgWithdrawRegistrationFeeResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.MsgWithdrawRegistrationFeeResponse does not contain field %s", fd.FullName())) } } @@ -4726,13 +4727,13 @@ func (x *fastReflection_MsgWithdrawRegistrationFeeResponse) Has(fd protoreflect. // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_MsgWithdrawRegistrationFeeResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "mycel.registry.v1beta1.MsgWithdrawRegistrationFeeResponse.registration_fee": + case "mycel.registry.v1.MsgWithdrawRegistrationFeeResponse.registration_fee": x.RegistrationFee = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.MsgWithdrawRegistrationFeeResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.MsgWithdrawRegistrationFeeResponse")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.MsgWithdrawRegistrationFeeResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.MsgWithdrawRegistrationFeeResponse does not contain field %s", fd.FullName())) } } @@ -4744,17 +4745,17 @@ func (x *fastReflection_MsgWithdrawRegistrationFeeResponse) Clear(fd protoreflec // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_MsgWithdrawRegistrationFeeResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "mycel.registry.v1beta1.MsgWithdrawRegistrationFeeResponse.registration_fee": + case "mycel.registry.v1.MsgWithdrawRegistrationFeeResponse.registration_fee": if len(x.RegistrationFee) == 0 { - return protoreflect.ValueOfList(&_MsgWithdrawRegistrationFeeResponse_7_list{}) + return protoreflect.ValueOfList(&_MsgWithdrawRegistrationFeeResponse_1_list{}) } - listValue := &_MsgWithdrawRegistrationFeeResponse_7_list{list: &x.RegistrationFee} + listValue := &_MsgWithdrawRegistrationFeeResponse_1_list{list: &x.RegistrationFee} return protoreflect.ValueOfList(listValue) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.MsgWithdrawRegistrationFeeResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.MsgWithdrawRegistrationFeeResponse")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.MsgWithdrawRegistrationFeeResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.MsgWithdrawRegistrationFeeResponse does not contain field %s", descriptor.FullName())) } } @@ -4770,15 +4771,15 @@ func (x *fastReflection_MsgWithdrawRegistrationFeeResponse) Get(descriptor proto // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_MsgWithdrawRegistrationFeeResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "mycel.registry.v1beta1.MsgWithdrawRegistrationFeeResponse.registration_fee": + case "mycel.registry.v1.MsgWithdrawRegistrationFeeResponse.registration_fee": lv := value.List() - clv := lv.(*_MsgWithdrawRegistrationFeeResponse_7_list) + clv := lv.(*_MsgWithdrawRegistrationFeeResponse_1_list) x.RegistrationFee = *clv.list default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.MsgWithdrawRegistrationFeeResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.MsgWithdrawRegistrationFeeResponse")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.MsgWithdrawRegistrationFeeResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.MsgWithdrawRegistrationFeeResponse does not contain field %s", fd.FullName())) } } @@ -4794,17 +4795,17 @@ func (x *fastReflection_MsgWithdrawRegistrationFeeResponse) Set(fd protoreflect. // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_MsgWithdrawRegistrationFeeResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "mycel.registry.v1beta1.MsgWithdrawRegistrationFeeResponse.registration_fee": + case "mycel.registry.v1.MsgWithdrawRegistrationFeeResponse.registration_fee": if x.RegistrationFee == nil { x.RegistrationFee = []*v1beta1.Coin{} } - value := &_MsgWithdrawRegistrationFeeResponse_7_list{list: &x.RegistrationFee} + value := &_MsgWithdrawRegistrationFeeResponse_1_list{list: &x.RegistrationFee} return protoreflect.ValueOfList(value) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.MsgWithdrawRegistrationFeeResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.MsgWithdrawRegistrationFeeResponse")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.MsgWithdrawRegistrationFeeResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.MsgWithdrawRegistrationFeeResponse does not contain field %s", fd.FullName())) } } @@ -4813,14 +4814,14 @@ func (x *fastReflection_MsgWithdrawRegistrationFeeResponse) Mutable(fd protorefl // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_MsgWithdrawRegistrationFeeResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "mycel.registry.v1beta1.MsgWithdrawRegistrationFeeResponse.registration_fee": + case "mycel.registry.v1.MsgWithdrawRegistrationFeeResponse.registration_fee": list := []*v1beta1.Coin{} - return protoreflect.ValueOfList(&_MsgWithdrawRegistrationFeeResponse_7_list{list: &list}) + return protoreflect.ValueOfList(&_MsgWithdrawRegistrationFeeResponse_1_list{list: &list}) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.MsgWithdrawRegistrationFeeResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.MsgWithdrawRegistrationFeeResponse")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.MsgWithdrawRegistrationFeeResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.MsgWithdrawRegistrationFeeResponse does not contain field %s", fd.FullName())) } } @@ -4830,7 +4831,7 @@ func (x *fastReflection_MsgWithdrawRegistrationFeeResponse) NewField(fd protoref func (x *fastReflection_MsgWithdrawRegistrationFeeResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in mycel.registry.v1beta1.MsgWithdrawRegistrationFeeResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in mycel.registry.v1.MsgWithdrawRegistrationFeeResponse", d.FullName())) } panic("unreachable") } @@ -4933,7 +4934,7 @@ func (x *fastReflection_MsgWithdrawRegistrationFeeResponse) ProtoMethods() *prot copy(dAtA[i:], encoded) i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) i-- - dAtA[i] = 0x3a + dAtA[i] = 0xa } } if input.Buf != nil { @@ -4985,7 +4986,7 @@ func (x *fastReflection_MsgWithdrawRegistrationFeeResponse) ProtoMethods() *prot return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgWithdrawRegistrationFeeResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { - case 7: + case 1: if wireType != 2 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field RegistrationFee", wireType) } @@ -5062,8 +5063,8 @@ var ( ) func init() { - file_mycel_registry_v1beta1_tx_proto_init() - md_MsgExtendTopLevelDomainExpirationDate = File_mycel_registry_v1beta1_tx_proto.Messages().ByName("MsgExtendTopLevelDomainExpirationDate") + file_mycel_registry_v1_tx_proto_init() + md_MsgExtendTopLevelDomainExpirationDate = File_mycel_registry_v1_tx_proto.Messages().ByName("MsgExtendTopLevelDomainExpirationDate") fd_MsgExtendTopLevelDomainExpirationDate_creator = md_MsgExtendTopLevelDomainExpirationDate.Fields().ByName("creator") fd_MsgExtendTopLevelDomainExpirationDate_name = md_MsgExtendTopLevelDomainExpirationDate.Fields().ByName("name") fd_MsgExtendTopLevelDomainExpirationDate_extension_period_in_year = md_MsgExtendTopLevelDomainExpirationDate.Fields().ByName("extension_period_in_year") @@ -5078,7 +5079,7 @@ func (x *MsgExtendTopLevelDomainExpirationDate) ProtoReflect() protoreflect.Mess } func (x *MsgExtendTopLevelDomainExpirationDate) slowProtoReflect() protoreflect.Message { - mi := &file_mycel_registry_v1beta1_tx_proto_msgTypes[10] + mi := &file_mycel_registry_v1_tx_proto_msgTypes[10] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5167,17 +5168,17 @@ func (x *fastReflection_MsgExtendTopLevelDomainExpirationDate) Range(f func(prot // a repeated field is populated if it is non-empty. func (x *fastReflection_MsgExtendTopLevelDomainExpirationDate) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "mycel.registry.v1beta1.MsgExtendTopLevelDomainExpirationDate.creator": + case "mycel.registry.v1.MsgExtendTopLevelDomainExpirationDate.creator": return x.Creator != "" - case "mycel.registry.v1beta1.MsgExtendTopLevelDomainExpirationDate.name": + case "mycel.registry.v1.MsgExtendTopLevelDomainExpirationDate.name": return x.Name != "" - case "mycel.registry.v1beta1.MsgExtendTopLevelDomainExpirationDate.extension_period_in_year": + case "mycel.registry.v1.MsgExtendTopLevelDomainExpirationDate.extension_period_in_year": return x.ExtensionPeriodInYear != uint64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.MsgExtendTopLevelDomainExpirationDate")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.MsgExtendTopLevelDomainExpirationDate")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.MsgExtendTopLevelDomainExpirationDate does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.MsgExtendTopLevelDomainExpirationDate does not contain field %s", fd.FullName())) } } @@ -5189,17 +5190,17 @@ func (x *fastReflection_MsgExtendTopLevelDomainExpirationDate) Has(fd protorefle // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_MsgExtendTopLevelDomainExpirationDate) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "mycel.registry.v1beta1.MsgExtendTopLevelDomainExpirationDate.creator": + case "mycel.registry.v1.MsgExtendTopLevelDomainExpirationDate.creator": x.Creator = "" - case "mycel.registry.v1beta1.MsgExtendTopLevelDomainExpirationDate.name": + case "mycel.registry.v1.MsgExtendTopLevelDomainExpirationDate.name": x.Name = "" - case "mycel.registry.v1beta1.MsgExtendTopLevelDomainExpirationDate.extension_period_in_year": + case "mycel.registry.v1.MsgExtendTopLevelDomainExpirationDate.extension_period_in_year": x.ExtensionPeriodInYear = uint64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.MsgExtendTopLevelDomainExpirationDate")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.MsgExtendTopLevelDomainExpirationDate")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.MsgExtendTopLevelDomainExpirationDate does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.MsgExtendTopLevelDomainExpirationDate does not contain field %s", fd.FullName())) } } @@ -5211,20 +5212,20 @@ func (x *fastReflection_MsgExtendTopLevelDomainExpirationDate) Clear(fd protoref // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_MsgExtendTopLevelDomainExpirationDate) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "mycel.registry.v1beta1.MsgExtendTopLevelDomainExpirationDate.creator": + case "mycel.registry.v1.MsgExtendTopLevelDomainExpirationDate.creator": value := x.Creator return protoreflect.ValueOfString(value) - case "mycel.registry.v1beta1.MsgExtendTopLevelDomainExpirationDate.name": + case "mycel.registry.v1.MsgExtendTopLevelDomainExpirationDate.name": value := x.Name return protoreflect.ValueOfString(value) - case "mycel.registry.v1beta1.MsgExtendTopLevelDomainExpirationDate.extension_period_in_year": + case "mycel.registry.v1.MsgExtendTopLevelDomainExpirationDate.extension_period_in_year": value := x.ExtensionPeriodInYear return protoreflect.ValueOfUint64(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.MsgExtendTopLevelDomainExpirationDate")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.MsgExtendTopLevelDomainExpirationDate")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.MsgExtendTopLevelDomainExpirationDate does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.MsgExtendTopLevelDomainExpirationDate does not contain field %s", descriptor.FullName())) } } @@ -5240,17 +5241,17 @@ func (x *fastReflection_MsgExtendTopLevelDomainExpirationDate) Get(descriptor pr // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_MsgExtendTopLevelDomainExpirationDate) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "mycel.registry.v1beta1.MsgExtendTopLevelDomainExpirationDate.creator": + case "mycel.registry.v1.MsgExtendTopLevelDomainExpirationDate.creator": x.Creator = value.Interface().(string) - case "mycel.registry.v1beta1.MsgExtendTopLevelDomainExpirationDate.name": + case "mycel.registry.v1.MsgExtendTopLevelDomainExpirationDate.name": x.Name = value.Interface().(string) - case "mycel.registry.v1beta1.MsgExtendTopLevelDomainExpirationDate.extension_period_in_year": + case "mycel.registry.v1.MsgExtendTopLevelDomainExpirationDate.extension_period_in_year": x.ExtensionPeriodInYear = value.Uint() default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.MsgExtendTopLevelDomainExpirationDate")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.MsgExtendTopLevelDomainExpirationDate")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.MsgExtendTopLevelDomainExpirationDate does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.MsgExtendTopLevelDomainExpirationDate does not contain field %s", fd.FullName())) } } @@ -5266,17 +5267,17 @@ func (x *fastReflection_MsgExtendTopLevelDomainExpirationDate) Set(fd protorefle // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_MsgExtendTopLevelDomainExpirationDate) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "mycel.registry.v1beta1.MsgExtendTopLevelDomainExpirationDate.creator": - panic(fmt.Errorf("field creator of message mycel.registry.v1beta1.MsgExtendTopLevelDomainExpirationDate is not mutable")) - case "mycel.registry.v1beta1.MsgExtendTopLevelDomainExpirationDate.name": - panic(fmt.Errorf("field name of message mycel.registry.v1beta1.MsgExtendTopLevelDomainExpirationDate is not mutable")) - case "mycel.registry.v1beta1.MsgExtendTopLevelDomainExpirationDate.extension_period_in_year": - panic(fmt.Errorf("field extension_period_in_year of message mycel.registry.v1beta1.MsgExtendTopLevelDomainExpirationDate is not mutable")) + case "mycel.registry.v1.MsgExtendTopLevelDomainExpirationDate.creator": + panic(fmt.Errorf("field creator of message mycel.registry.v1.MsgExtendTopLevelDomainExpirationDate is not mutable")) + case "mycel.registry.v1.MsgExtendTopLevelDomainExpirationDate.name": + panic(fmt.Errorf("field name of message mycel.registry.v1.MsgExtendTopLevelDomainExpirationDate is not mutable")) + case "mycel.registry.v1.MsgExtendTopLevelDomainExpirationDate.extension_period_in_year": + panic(fmt.Errorf("field extension_period_in_year of message mycel.registry.v1.MsgExtendTopLevelDomainExpirationDate is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.MsgExtendTopLevelDomainExpirationDate")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.MsgExtendTopLevelDomainExpirationDate")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.MsgExtendTopLevelDomainExpirationDate does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.MsgExtendTopLevelDomainExpirationDate does not contain field %s", fd.FullName())) } } @@ -5285,17 +5286,17 @@ func (x *fastReflection_MsgExtendTopLevelDomainExpirationDate) Mutable(fd protor // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_MsgExtendTopLevelDomainExpirationDate) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "mycel.registry.v1beta1.MsgExtendTopLevelDomainExpirationDate.creator": + case "mycel.registry.v1.MsgExtendTopLevelDomainExpirationDate.creator": return protoreflect.ValueOfString("") - case "mycel.registry.v1beta1.MsgExtendTopLevelDomainExpirationDate.name": + case "mycel.registry.v1.MsgExtendTopLevelDomainExpirationDate.name": return protoreflect.ValueOfString("") - case "mycel.registry.v1beta1.MsgExtendTopLevelDomainExpirationDate.extension_period_in_year": + case "mycel.registry.v1.MsgExtendTopLevelDomainExpirationDate.extension_period_in_year": return protoreflect.ValueOfUint64(uint64(0)) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.MsgExtendTopLevelDomainExpirationDate")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.MsgExtendTopLevelDomainExpirationDate")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.MsgExtendTopLevelDomainExpirationDate does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.MsgExtendTopLevelDomainExpirationDate does not contain field %s", fd.FullName())) } } @@ -5305,7 +5306,7 @@ func (x *fastReflection_MsgExtendTopLevelDomainExpirationDate) NewField(fd proto func (x *fastReflection_MsgExtendTopLevelDomainExpirationDate) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in mycel.registry.v1beta1.MsgExtendTopLevelDomainExpirationDate", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in mycel.registry.v1.MsgExtendTopLevelDomainExpirationDate", d.FullName())) } panic("unreachable") } @@ -5593,8 +5594,8 @@ var ( ) func init() { - file_mycel_registry_v1beta1_tx_proto_init() - md_MsgExtendTopLevelDomainExpirationDateResponse = File_mycel_registry_v1beta1_tx_proto.Messages().ByName("MsgExtendTopLevelDomainExpirationDateResponse") + file_mycel_registry_v1_tx_proto_init() + md_MsgExtendTopLevelDomainExpirationDateResponse = File_mycel_registry_v1_tx_proto.Messages().ByName("MsgExtendTopLevelDomainExpirationDateResponse") fd_MsgExtendTopLevelDomainExpirationDateResponse_top_level_domain = md_MsgExtendTopLevelDomainExpirationDateResponse.Fields().ByName("top_level_domain") fd_MsgExtendTopLevelDomainExpirationDateResponse_fee = md_MsgExtendTopLevelDomainExpirationDateResponse.Fields().ByName("fee") } @@ -5608,7 +5609,7 @@ func (x *MsgExtendTopLevelDomainExpirationDateResponse) ProtoReflect() protorefl } func (x *MsgExtendTopLevelDomainExpirationDateResponse) slowProtoReflect() protoreflect.Message { - mi := &file_mycel_registry_v1beta1_tx_proto_msgTypes[11] + mi := &file_mycel_registry_v1_tx_proto_msgTypes[11] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5691,15 +5692,15 @@ func (x *fastReflection_MsgExtendTopLevelDomainExpirationDateResponse) Range(f f // a repeated field is populated if it is non-empty. func (x *fastReflection_MsgExtendTopLevelDomainExpirationDateResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "mycel.registry.v1beta1.MsgExtendTopLevelDomainExpirationDateResponse.top_level_domain": + case "mycel.registry.v1.MsgExtendTopLevelDomainExpirationDateResponse.top_level_domain": return x.TopLevelDomain != nil - case "mycel.registry.v1beta1.MsgExtendTopLevelDomainExpirationDateResponse.fee": + case "mycel.registry.v1.MsgExtendTopLevelDomainExpirationDateResponse.fee": return x.Fee != nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.MsgExtendTopLevelDomainExpirationDateResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.MsgExtendTopLevelDomainExpirationDateResponse")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.MsgExtendTopLevelDomainExpirationDateResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.MsgExtendTopLevelDomainExpirationDateResponse does not contain field %s", fd.FullName())) } } @@ -5711,15 +5712,15 @@ func (x *fastReflection_MsgExtendTopLevelDomainExpirationDateResponse) Has(fd pr // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_MsgExtendTopLevelDomainExpirationDateResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "mycel.registry.v1beta1.MsgExtendTopLevelDomainExpirationDateResponse.top_level_domain": + case "mycel.registry.v1.MsgExtendTopLevelDomainExpirationDateResponse.top_level_domain": x.TopLevelDomain = nil - case "mycel.registry.v1beta1.MsgExtendTopLevelDomainExpirationDateResponse.fee": + case "mycel.registry.v1.MsgExtendTopLevelDomainExpirationDateResponse.fee": x.Fee = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.MsgExtendTopLevelDomainExpirationDateResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.MsgExtendTopLevelDomainExpirationDateResponse")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.MsgExtendTopLevelDomainExpirationDateResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.MsgExtendTopLevelDomainExpirationDateResponse does not contain field %s", fd.FullName())) } } @@ -5731,17 +5732,17 @@ func (x *fastReflection_MsgExtendTopLevelDomainExpirationDateResponse) Clear(fd // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_MsgExtendTopLevelDomainExpirationDateResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "mycel.registry.v1beta1.MsgExtendTopLevelDomainExpirationDateResponse.top_level_domain": + case "mycel.registry.v1.MsgExtendTopLevelDomainExpirationDateResponse.top_level_domain": value := x.TopLevelDomain return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "mycel.registry.v1beta1.MsgExtendTopLevelDomainExpirationDateResponse.fee": + case "mycel.registry.v1.MsgExtendTopLevelDomainExpirationDateResponse.fee": value := x.Fee return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.MsgExtendTopLevelDomainExpirationDateResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.MsgExtendTopLevelDomainExpirationDateResponse")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.MsgExtendTopLevelDomainExpirationDateResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.MsgExtendTopLevelDomainExpirationDateResponse does not contain field %s", descriptor.FullName())) } } @@ -5757,15 +5758,15 @@ func (x *fastReflection_MsgExtendTopLevelDomainExpirationDateResponse) Get(descr // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_MsgExtendTopLevelDomainExpirationDateResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "mycel.registry.v1beta1.MsgExtendTopLevelDomainExpirationDateResponse.top_level_domain": + case "mycel.registry.v1.MsgExtendTopLevelDomainExpirationDateResponse.top_level_domain": x.TopLevelDomain = value.Message().Interface().(*TopLevelDomain) - case "mycel.registry.v1beta1.MsgExtendTopLevelDomainExpirationDateResponse.fee": + case "mycel.registry.v1.MsgExtendTopLevelDomainExpirationDateResponse.fee": x.Fee = value.Message().Interface().(*TopLevelDomainFee) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.MsgExtendTopLevelDomainExpirationDateResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.MsgExtendTopLevelDomainExpirationDateResponse")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.MsgExtendTopLevelDomainExpirationDateResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.MsgExtendTopLevelDomainExpirationDateResponse does not contain field %s", fd.FullName())) } } @@ -5781,21 +5782,21 @@ func (x *fastReflection_MsgExtendTopLevelDomainExpirationDateResponse) Set(fd pr // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_MsgExtendTopLevelDomainExpirationDateResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "mycel.registry.v1beta1.MsgExtendTopLevelDomainExpirationDateResponse.top_level_domain": + case "mycel.registry.v1.MsgExtendTopLevelDomainExpirationDateResponse.top_level_domain": if x.TopLevelDomain == nil { x.TopLevelDomain = new(TopLevelDomain) } return protoreflect.ValueOfMessage(x.TopLevelDomain.ProtoReflect()) - case "mycel.registry.v1beta1.MsgExtendTopLevelDomainExpirationDateResponse.fee": + case "mycel.registry.v1.MsgExtendTopLevelDomainExpirationDateResponse.fee": if x.Fee == nil { x.Fee = new(TopLevelDomainFee) } return protoreflect.ValueOfMessage(x.Fee.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.MsgExtendTopLevelDomainExpirationDateResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.MsgExtendTopLevelDomainExpirationDateResponse")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.MsgExtendTopLevelDomainExpirationDateResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.MsgExtendTopLevelDomainExpirationDateResponse does not contain field %s", fd.FullName())) } } @@ -5804,17 +5805,17 @@ func (x *fastReflection_MsgExtendTopLevelDomainExpirationDateResponse) Mutable(f // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_MsgExtendTopLevelDomainExpirationDateResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "mycel.registry.v1beta1.MsgExtendTopLevelDomainExpirationDateResponse.top_level_domain": + case "mycel.registry.v1.MsgExtendTopLevelDomainExpirationDateResponse.top_level_domain": m := new(TopLevelDomain) return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "mycel.registry.v1beta1.MsgExtendTopLevelDomainExpirationDateResponse.fee": + case "mycel.registry.v1.MsgExtendTopLevelDomainExpirationDateResponse.fee": m := new(TopLevelDomainFee) return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.MsgExtendTopLevelDomainExpirationDateResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.MsgExtendTopLevelDomainExpirationDateResponse")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.MsgExtendTopLevelDomainExpirationDateResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.MsgExtendTopLevelDomainExpirationDateResponse does not contain field %s", fd.FullName())) } } @@ -5824,7 +5825,7 @@ func (x *fastReflection_MsgExtendTopLevelDomainExpirationDateResponse) NewField( func (x *fastReflection_MsgExtendTopLevelDomainExpirationDateResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in mycel.registry.v1beta1.MsgExtendTopLevelDomainExpirationDateResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in mycel.registry.v1.MsgExtendTopLevelDomainExpirationDateResponse", d.FullName())) } panic("unreachable") } @@ -6110,8 +6111,8 @@ var ( ) func init() { - file_mycel_registry_v1beta1_tx_proto_init() - md_MsgUpdateTextRecord = File_mycel_registry_v1beta1_tx_proto.Messages().ByName("MsgUpdateTextRecord") + file_mycel_registry_v1_tx_proto_init() + md_MsgUpdateTextRecord = File_mycel_registry_v1_tx_proto.Messages().ByName("MsgUpdateTextRecord") fd_MsgUpdateTextRecord_creator = md_MsgUpdateTextRecord.Fields().ByName("creator") fd_MsgUpdateTextRecord_name = md_MsgUpdateTextRecord.Fields().ByName("name") fd_MsgUpdateTextRecord_parent = md_MsgUpdateTextRecord.Fields().ByName("parent") @@ -6128,7 +6129,7 @@ func (x *MsgUpdateTextRecord) ProtoReflect() protoreflect.Message { } func (x *MsgUpdateTextRecord) slowProtoReflect() protoreflect.Message { - mi := &file_mycel_registry_v1beta1_tx_proto_msgTypes[12] + mi := &file_mycel_registry_v1_tx_proto_msgTypes[12] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -6229,21 +6230,21 @@ func (x *fastReflection_MsgUpdateTextRecord) Range(f func(protoreflect.FieldDesc // a repeated field is populated if it is non-empty. func (x *fastReflection_MsgUpdateTextRecord) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "mycel.registry.v1beta1.MsgUpdateTextRecord.creator": + case "mycel.registry.v1.MsgUpdateTextRecord.creator": return x.Creator != "" - case "mycel.registry.v1beta1.MsgUpdateTextRecord.name": + case "mycel.registry.v1.MsgUpdateTextRecord.name": return x.Name != "" - case "mycel.registry.v1beta1.MsgUpdateTextRecord.parent": + case "mycel.registry.v1.MsgUpdateTextRecord.parent": return x.Parent != "" - case "mycel.registry.v1beta1.MsgUpdateTextRecord.key": + case "mycel.registry.v1.MsgUpdateTextRecord.key": return x.Key != "" - case "mycel.registry.v1beta1.MsgUpdateTextRecord.value": + case "mycel.registry.v1.MsgUpdateTextRecord.value": return x.Value != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.MsgUpdateTextRecord")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.MsgUpdateTextRecord")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.MsgUpdateTextRecord does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.MsgUpdateTextRecord does not contain field %s", fd.FullName())) } } @@ -6255,21 +6256,21 @@ func (x *fastReflection_MsgUpdateTextRecord) Has(fd protoreflect.FieldDescriptor // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_MsgUpdateTextRecord) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "mycel.registry.v1beta1.MsgUpdateTextRecord.creator": + case "mycel.registry.v1.MsgUpdateTextRecord.creator": x.Creator = "" - case "mycel.registry.v1beta1.MsgUpdateTextRecord.name": + case "mycel.registry.v1.MsgUpdateTextRecord.name": x.Name = "" - case "mycel.registry.v1beta1.MsgUpdateTextRecord.parent": + case "mycel.registry.v1.MsgUpdateTextRecord.parent": x.Parent = "" - case "mycel.registry.v1beta1.MsgUpdateTextRecord.key": + case "mycel.registry.v1.MsgUpdateTextRecord.key": x.Key = "" - case "mycel.registry.v1beta1.MsgUpdateTextRecord.value": + case "mycel.registry.v1.MsgUpdateTextRecord.value": x.Value = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.MsgUpdateTextRecord")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.MsgUpdateTextRecord")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.MsgUpdateTextRecord does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.MsgUpdateTextRecord does not contain field %s", fd.FullName())) } } @@ -6281,26 +6282,26 @@ func (x *fastReflection_MsgUpdateTextRecord) Clear(fd protoreflect.FieldDescript // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_MsgUpdateTextRecord) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "mycel.registry.v1beta1.MsgUpdateTextRecord.creator": + case "mycel.registry.v1.MsgUpdateTextRecord.creator": value := x.Creator return protoreflect.ValueOfString(value) - case "mycel.registry.v1beta1.MsgUpdateTextRecord.name": + case "mycel.registry.v1.MsgUpdateTextRecord.name": value := x.Name return protoreflect.ValueOfString(value) - case "mycel.registry.v1beta1.MsgUpdateTextRecord.parent": + case "mycel.registry.v1.MsgUpdateTextRecord.parent": value := x.Parent return protoreflect.ValueOfString(value) - case "mycel.registry.v1beta1.MsgUpdateTextRecord.key": + case "mycel.registry.v1.MsgUpdateTextRecord.key": value := x.Key return protoreflect.ValueOfString(value) - case "mycel.registry.v1beta1.MsgUpdateTextRecord.value": + case "mycel.registry.v1.MsgUpdateTextRecord.value": value := x.Value return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.MsgUpdateTextRecord")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.MsgUpdateTextRecord")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.MsgUpdateTextRecord does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.MsgUpdateTextRecord does not contain field %s", descriptor.FullName())) } } @@ -6316,21 +6317,21 @@ func (x *fastReflection_MsgUpdateTextRecord) Get(descriptor protoreflect.FieldDe // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_MsgUpdateTextRecord) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "mycel.registry.v1beta1.MsgUpdateTextRecord.creator": + case "mycel.registry.v1.MsgUpdateTextRecord.creator": x.Creator = value.Interface().(string) - case "mycel.registry.v1beta1.MsgUpdateTextRecord.name": + case "mycel.registry.v1.MsgUpdateTextRecord.name": x.Name = value.Interface().(string) - case "mycel.registry.v1beta1.MsgUpdateTextRecord.parent": + case "mycel.registry.v1.MsgUpdateTextRecord.parent": x.Parent = value.Interface().(string) - case "mycel.registry.v1beta1.MsgUpdateTextRecord.key": + case "mycel.registry.v1.MsgUpdateTextRecord.key": x.Key = value.Interface().(string) - case "mycel.registry.v1beta1.MsgUpdateTextRecord.value": + case "mycel.registry.v1.MsgUpdateTextRecord.value": x.Value = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.MsgUpdateTextRecord")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.MsgUpdateTextRecord")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.MsgUpdateTextRecord does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.MsgUpdateTextRecord does not contain field %s", fd.FullName())) } } @@ -6346,21 +6347,21 @@ func (x *fastReflection_MsgUpdateTextRecord) Set(fd protoreflect.FieldDescriptor // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_MsgUpdateTextRecord) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "mycel.registry.v1beta1.MsgUpdateTextRecord.creator": - panic(fmt.Errorf("field creator of message mycel.registry.v1beta1.MsgUpdateTextRecord is not mutable")) - case "mycel.registry.v1beta1.MsgUpdateTextRecord.name": - panic(fmt.Errorf("field name of message mycel.registry.v1beta1.MsgUpdateTextRecord is not mutable")) - case "mycel.registry.v1beta1.MsgUpdateTextRecord.parent": - panic(fmt.Errorf("field parent of message mycel.registry.v1beta1.MsgUpdateTextRecord is not mutable")) - case "mycel.registry.v1beta1.MsgUpdateTextRecord.key": - panic(fmt.Errorf("field key of message mycel.registry.v1beta1.MsgUpdateTextRecord is not mutable")) - case "mycel.registry.v1beta1.MsgUpdateTextRecord.value": - panic(fmt.Errorf("field value of message mycel.registry.v1beta1.MsgUpdateTextRecord is not mutable")) + case "mycel.registry.v1.MsgUpdateTextRecord.creator": + panic(fmt.Errorf("field creator of message mycel.registry.v1.MsgUpdateTextRecord is not mutable")) + case "mycel.registry.v1.MsgUpdateTextRecord.name": + panic(fmt.Errorf("field name of message mycel.registry.v1.MsgUpdateTextRecord is not mutable")) + case "mycel.registry.v1.MsgUpdateTextRecord.parent": + panic(fmt.Errorf("field parent of message mycel.registry.v1.MsgUpdateTextRecord is not mutable")) + case "mycel.registry.v1.MsgUpdateTextRecord.key": + panic(fmt.Errorf("field key of message mycel.registry.v1.MsgUpdateTextRecord is not mutable")) + case "mycel.registry.v1.MsgUpdateTextRecord.value": + panic(fmt.Errorf("field value of message mycel.registry.v1.MsgUpdateTextRecord is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.MsgUpdateTextRecord")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.MsgUpdateTextRecord")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.MsgUpdateTextRecord does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.MsgUpdateTextRecord does not contain field %s", fd.FullName())) } } @@ -6369,21 +6370,21 @@ func (x *fastReflection_MsgUpdateTextRecord) Mutable(fd protoreflect.FieldDescri // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_MsgUpdateTextRecord) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "mycel.registry.v1beta1.MsgUpdateTextRecord.creator": + case "mycel.registry.v1.MsgUpdateTextRecord.creator": return protoreflect.ValueOfString("") - case "mycel.registry.v1beta1.MsgUpdateTextRecord.name": + case "mycel.registry.v1.MsgUpdateTextRecord.name": return protoreflect.ValueOfString("") - case "mycel.registry.v1beta1.MsgUpdateTextRecord.parent": + case "mycel.registry.v1.MsgUpdateTextRecord.parent": return protoreflect.ValueOfString("") - case "mycel.registry.v1beta1.MsgUpdateTextRecord.key": + case "mycel.registry.v1.MsgUpdateTextRecord.key": return protoreflect.ValueOfString("") - case "mycel.registry.v1beta1.MsgUpdateTextRecord.value": + case "mycel.registry.v1.MsgUpdateTextRecord.value": return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.MsgUpdateTextRecord")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.MsgUpdateTextRecord")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.MsgUpdateTextRecord does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.MsgUpdateTextRecord does not contain field %s", fd.FullName())) } } @@ -6393,7 +6394,7 @@ func (x *fastReflection_MsgUpdateTextRecord) NewField(fd protoreflect.FieldDescr func (x *fastReflection_MsgUpdateTextRecord) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in mycel.registry.v1beta1.MsgUpdateTextRecord", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in mycel.registry.v1.MsgUpdateTextRecord", d.FullName())) } panic("unreachable") } @@ -6781,8 +6782,8 @@ var ( ) func init() { - file_mycel_registry_v1beta1_tx_proto_init() - md_MsgUpdateTextRecordResponse = File_mycel_registry_v1beta1_tx_proto.Messages().ByName("MsgUpdateTextRecordResponse") + file_mycel_registry_v1_tx_proto_init() + md_MsgUpdateTextRecordResponse = File_mycel_registry_v1_tx_proto.Messages().ByName("MsgUpdateTextRecordResponse") } var _ protoreflect.Message = (*fastReflection_MsgUpdateTextRecordResponse)(nil) @@ -6794,7 +6795,7 @@ func (x *MsgUpdateTextRecordResponse) ProtoReflect() protoreflect.Message { } func (x *MsgUpdateTextRecordResponse) slowProtoReflect() protoreflect.Message { - mi := &file_mycel_registry_v1beta1_tx_proto_msgTypes[13] + mi := &file_mycel_registry_v1_tx_proto_msgTypes[13] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -6867,9 +6868,9 @@ func (x *fastReflection_MsgUpdateTextRecordResponse) Has(fd protoreflect.FieldDe switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.MsgUpdateTextRecordResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.MsgUpdateTextRecordResponse")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.MsgUpdateTextRecordResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.MsgUpdateTextRecordResponse does not contain field %s", fd.FullName())) } } @@ -6883,9 +6884,9 @@ func (x *fastReflection_MsgUpdateTextRecordResponse) Clear(fd protoreflect.Field switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.MsgUpdateTextRecordResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.MsgUpdateTextRecordResponse")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.MsgUpdateTextRecordResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.MsgUpdateTextRecordResponse does not contain field %s", fd.FullName())) } } @@ -6899,9 +6900,9 @@ func (x *fastReflection_MsgUpdateTextRecordResponse) Get(descriptor protoreflect switch descriptor.FullName() { default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.MsgUpdateTextRecordResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.MsgUpdateTextRecordResponse")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.MsgUpdateTextRecordResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.MsgUpdateTextRecordResponse does not contain field %s", descriptor.FullName())) } } @@ -6919,9 +6920,9 @@ func (x *fastReflection_MsgUpdateTextRecordResponse) Set(fd protoreflect.FieldDe switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.MsgUpdateTextRecordResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.MsgUpdateTextRecordResponse")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.MsgUpdateTextRecordResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.MsgUpdateTextRecordResponse does not contain field %s", fd.FullName())) } } @@ -6939,9 +6940,9 @@ func (x *fastReflection_MsgUpdateTextRecordResponse) Mutable(fd protoreflect.Fie switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.MsgUpdateTextRecordResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.MsgUpdateTextRecordResponse")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.MsgUpdateTextRecordResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.MsgUpdateTextRecordResponse does not contain field %s", fd.FullName())) } } @@ -6952,9 +6953,9 @@ func (x *fastReflection_MsgUpdateTextRecordResponse) NewField(fd protoreflect.Fi switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.MsgUpdateTextRecordResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.MsgUpdateTextRecordResponse")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.MsgUpdateTextRecordResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.MsgUpdateTextRecordResponse does not contain field %s", fd.FullName())) } } @@ -6964,7 +6965,7 @@ func (x *fastReflection_MsgUpdateTextRecordResponse) NewField(fd protoreflect.Fi func (x *fastReflection_MsgUpdateTextRecordResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in mycel.registry.v1beta1.MsgUpdateTextRecordResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in mycel.registry.v1.MsgUpdateTextRecordResponse", d.FullName())) } panic("unreachable") } @@ -7140,8 +7141,8 @@ var ( ) func init() { - file_mycel_registry_v1beta1_tx_proto_init() - md_MsgUpdateTopLevelDomainRegistrationPolicy = File_mycel_registry_v1beta1_tx_proto.Messages().ByName("MsgUpdateTopLevelDomainRegistrationPolicy") + file_mycel_registry_v1_tx_proto_init() + md_MsgUpdateTopLevelDomainRegistrationPolicy = File_mycel_registry_v1_tx_proto.Messages().ByName("MsgUpdateTopLevelDomainRegistrationPolicy") fd_MsgUpdateTopLevelDomainRegistrationPolicy_creator = md_MsgUpdateTopLevelDomainRegistrationPolicy.Fields().ByName("creator") fd_MsgUpdateTopLevelDomainRegistrationPolicy_name = md_MsgUpdateTopLevelDomainRegistrationPolicy.Fields().ByName("name") fd_MsgUpdateTopLevelDomainRegistrationPolicy_registration_policy = md_MsgUpdateTopLevelDomainRegistrationPolicy.Fields().ByName("registration_policy") @@ -7156,7 +7157,7 @@ func (x *MsgUpdateTopLevelDomainRegistrationPolicy) ProtoReflect() protoreflect. } func (x *MsgUpdateTopLevelDomainRegistrationPolicy) slowProtoReflect() protoreflect.Message { - mi := &file_mycel_registry_v1beta1_tx_proto_msgTypes[14] + mi := &file_mycel_registry_v1_tx_proto_msgTypes[14] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -7245,17 +7246,17 @@ func (x *fastReflection_MsgUpdateTopLevelDomainRegistrationPolicy) Range(f func( // a repeated field is populated if it is non-empty. func (x *fastReflection_MsgUpdateTopLevelDomainRegistrationPolicy) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "mycel.registry.v1beta1.MsgUpdateTopLevelDomainRegistrationPolicy.creator": + case "mycel.registry.v1.MsgUpdateTopLevelDomainRegistrationPolicy.creator": return x.Creator != "" - case "mycel.registry.v1beta1.MsgUpdateTopLevelDomainRegistrationPolicy.name": + case "mycel.registry.v1.MsgUpdateTopLevelDomainRegistrationPolicy.name": return x.Name != "" - case "mycel.registry.v1beta1.MsgUpdateTopLevelDomainRegistrationPolicy.registration_policy": + case "mycel.registry.v1.MsgUpdateTopLevelDomainRegistrationPolicy.registration_policy": return x.RegistrationPolicy != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.MsgUpdateTopLevelDomainRegistrationPolicy")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.MsgUpdateTopLevelDomainRegistrationPolicy")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.MsgUpdateTopLevelDomainRegistrationPolicy does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.MsgUpdateTopLevelDomainRegistrationPolicy does not contain field %s", fd.FullName())) } } @@ -7267,17 +7268,17 @@ func (x *fastReflection_MsgUpdateTopLevelDomainRegistrationPolicy) Has(fd protor // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_MsgUpdateTopLevelDomainRegistrationPolicy) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "mycel.registry.v1beta1.MsgUpdateTopLevelDomainRegistrationPolicy.creator": + case "mycel.registry.v1.MsgUpdateTopLevelDomainRegistrationPolicy.creator": x.Creator = "" - case "mycel.registry.v1beta1.MsgUpdateTopLevelDomainRegistrationPolicy.name": + case "mycel.registry.v1.MsgUpdateTopLevelDomainRegistrationPolicy.name": x.Name = "" - case "mycel.registry.v1beta1.MsgUpdateTopLevelDomainRegistrationPolicy.registration_policy": + case "mycel.registry.v1.MsgUpdateTopLevelDomainRegistrationPolicy.registration_policy": x.RegistrationPolicy = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.MsgUpdateTopLevelDomainRegistrationPolicy")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.MsgUpdateTopLevelDomainRegistrationPolicy")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.MsgUpdateTopLevelDomainRegistrationPolicy does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.MsgUpdateTopLevelDomainRegistrationPolicy does not contain field %s", fd.FullName())) } } @@ -7289,20 +7290,20 @@ func (x *fastReflection_MsgUpdateTopLevelDomainRegistrationPolicy) Clear(fd prot // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_MsgUpdateTopLevelDomainRegistrationPolicy) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "mycel.registry.v1beta1.MsgUpdateTopLevelDomainRegistrationPolicy.creator": + case "mycel.registry.v1.MsgUpdateTopLevelDomainRegistrationPolicy.creator": value := x.Creator return protoreflect.ValueOfString(value) - case "mycel.registry.v1beta1.MsgUpdateTopLevelDomainRegistrationPolicy.name": + case "mycel.registry.v1.MsgUpdateTopLevelDomainRegistrationPolicy.name": value := x.Name return protoreflect.ValueOfString(value) - case "mycel.registry.v1beta1.MsgUpdateTopLevelDomainRegistrationPolicy.registration_policy": + case "mycel.registry.v1.MsgUpdateTopLevelDomainRegistrationPolicy.registration_policy": value := x.RegistrationPolicy return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.MsgUpdateTopLevelDomainRegistrationPolicy")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.MsgUpdateTopLevelDomainRegistrationPolicy")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.MsgUpdateTopLevelDomainRegistrationPolicy does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.MsgUpdateTopLevelDomainRegistrationPolicy does not contain field %s", descriptor.FullName())) } } @@ -7318,17 +7319,17 @@ func (x *fastReflection_MsgUpdateTopLevelDomainRegistrationPolicy) Get(descripto // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_MsgUpdateTopLevelDomainRegistrationPolicy) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "mycel.registry.v1beta1.MsgUpdateTopLevelDomainRegistrationPolicy.creator": + case "mycel.registry.v1.MsgUpdateTopLevelDomainRegistrationPolicy.creator": x.Creator = value.Interface().(string) - case "mycel.registry.v1beta1.MsgUpdateTopLevelDomainRegistrationPolicy.name": + case "mycel.registry.v1.MsgUpdateTopLevelDomainRegistrationPolicy.name": x.Name = value.Interface().(string) - case "mycel.registry.v1beta1.MsgUpdateTopLevelDomainRegistrationPolicy.registration_policy": + case "mycel.registry.v1.MsgUpdateTopLevelDomainRegistrationPolicy.registration_policy": x.RegistrationPolicy = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.MsgUpdateTopLevelDomainRegistrationPolicy")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.MsgUpdateTopLevelDomainRegistrationPolicy")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.MsgUpdateTopLevelDomainRegistrationPolicy does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.MsgUpdateTopLevelDomainRegistrationPolicy does not contain field %s", fd.FullName())) } } @@ -7344,17 +7345,17 @@ func (x *fastReflection_MsgUpdateTopLevelDomainRegistrationPolicy) Set(fd protor // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_MsgUpdateTopLevelDomainRegistrationPolicy) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "mycel.registry.v1beta1.MsgUpdateTopLevelDomainRegistrationPolicy.creator": - panic(fmt.Errorf("field creator of message mycel.registry.v1beta1.MsgUpdateTopLevelDomainRegistrationPolicy is not mutable")) - case "mycel.registry.v1beta1.MsgUpdateTopLevelDomainRegistrationPolicy.name": - panic(fmt.Errorf("field name of message mycel.registry.v1beta1.MsgUpdateTopLevelDomainRegistrationPolicy is not mutable")) - case "mycel.registry.v1beta1.MsgUpdateTopLevelDomainRegistrationPolicy.registration_policy": - panic(fmt.Errorf("field registration_policy of message mycel.registry.v1beta1.MsgUpdateTopLevelDomainRegistrationPolicy is not mutable")) + case "mycel.registry.v1.MsgUpdateTopLevelDomainRegistrationPolicy.creator": + panic(fmt.Errorf("field creator of message mycel.registry.v1.MsgUpdateTopLevelDomainRegistrationPolicy is not mutable")) + case "mycel.registry.v1.MsgUpdateTopLevelDomainRegistrationPolicy.name": + panic(fmt.Errorf("field name of message mycel.registry.v1.MsgUpdateTopLevelDomainRegistrationPolicy is not mutable")) + case "mycel.registry.v1.MsgUpdateTopLevelDomainRegistrationPolicy.registration_policy": + panic(fmt.Errorf("field registration_policy of message mycel.registry.v1.MsgUpdateTopLevelDomainRegistrationPolicy is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.MsgUpdateTopLevelDomainRegistrationPolicy")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.MsgUpdateTopLevelDomainRegistrationPolicy")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.MsgUpdateTopLevelDomainRegistrationPolicy does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.MsgUpdateTopLevelDomainRegistrationPolicy does not contain field %s", fd.FullName())) } } @@ -7363,17 +7364,17 @@ func (x *fastReflection_MsgUpdateTopLevelDomainRegistrationPolicy) Mutable(fd pr // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_MsgUpdateTopLevelDomainRegistrationPolicy) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "mycel.registry.v1beta1.MsgUpdateTopLevelDomainRegistrationPolicy.creator": + case "mycel.registry.v1.MsgUpdateTopLevelDomainRegistrationPolicy.creator": return protoreflect.ValueOfString("") - case "mycel.registry.v1beta1.MsgUpdateTopLevelDomainRegistrationPolicy.name": + case "mycel.registry.v1.MsgUpdateTopLevelDomainRegistrationPolicy.name": return protoreflect.ValueOfString("") - case "mycel.registry.v1beta1.MsgUpdateTopLevelDomainRegistrationPolicy.registration_policy": + case "mycel.registry.v1.MsgUpdateTopLevelDomainRegistrationPolicy.registration_policy": return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.MsgUpdateTopLevelDomainRegistrationPolicy")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.MsgUpdateTopLevelDomainRegistrationPolicy")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.MsgUpdateTopLevelDomainRegistrationPolicy does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.MsgUpdateTopLevelDomainRegistrationPolicy does not contain field %s", fd.FullName())) } } @@ -7383,7 +7384,7 @@ func (x *fastReflection_MsgUpdateTopLevelDomainRegistrationPolicy) NewField(fd p func (x *fastReflection_MsgUpdateTopLevelDomainRegistrationPolicy) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in mycel.registry.v1beta1.MsgUpdateTopLevelDomainRegistrationPolicy", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in mycel.registry.v1.MsgUpdateTopLevelDomainRegistrationPolicy", d.FullName())) } panic("unreachable") } @@ -7685,8 +7686,8 @@ var ( ) func init() { - file_mycel_registry_v1beta1_tx_proto_init() - md_MsgUpdateTopLevelDomainRegistrationPolicyResponse = File_mycel_registry_v1beta1_tx_proto.Messages().ByName("MsgUpdateTopLevelDomainRegistrationPolicyResponse") + file_mycel_registry_v1_tx_proto_init() + md_MsgUpdateTopLevelDomainRegistrationPolicyResponse = File_mycel_registry_v1_tx_proto.Messages().ByName("MsgUpdateTopLevelDomainRegistrationPolicyResponse") } var _ protoreflect.Message = (*fastReflection_MsgUpdateTopLevelDomainRegistrationPolicyResponse)(nil) @@ -7698,7 +7699,7 @@ func (x *MsgUpdateTopLevelDomainRegistrationPolicyResponse) ProtoReflect() proto } func (x *MsgUpdateTopLevelDomainRegistrationPolicyResponse) slowProtoReflect() protoreflect.Message { - mi := &file_mycel_registry_v1beta1_tx_proto_msgTypes[15] + mi := &file_mycel_registry_v1_tx_proto_msgTypes[15] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -7771,9 +7772,9 @@ func (x *fastReflection_MsgUpdateTopLevelDomainRegistrationPolicyResponse) Has(f switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.MsgUpdateTopLevelDomainRegistrationPolicyResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.MsgUpdateTopLevelDomainRegistrationPolicyResponse")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.MsgUpdateTopLevelDomainRegistrationPolicyResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.MsgUpdateTopLevelDomainRegistrationPolicyResponse does not contain field %s", fd.FullName())) } } @@ -7787,9 +7788,9 @@ func (x *fastReflection_MsgUpdateTopLevelDomainRegistrationPolicyResponse) Clear switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.MsgUpdateTopLevelDomainRegistrationPolicyResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.MsgUpdateTopLevelDomainRegistrationPolicyResponse")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.MsgUpdateTopLevelDomainRegistrationPolicyResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.MsgUpdateTopLevelDomainRegistrationPolicyResponse does not contain field %s", fd.FullName())) } } @@ -7803,9 +7804,9 @@ func (x *fastReflection_MsgUpdateTopLevelDomainRegistrationPolicyResponse) Get(d switch descriptor.FullName() { default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.MsgUpdateTopLevelDomainRegistrationPolicyResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.MsgUpdateTopLevelDomainRegistrationPolicyResponse")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.MsgUpdateTopLevelDomainRegistrationPolicyResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.MsgUpdateTopLevelDomainRegistrationPolicyResponse does not contain field %s", descriptor.FullName())) } } @@ -7823,9 +7824,9 @@ func (x *fastReflection_MsgUpdateTopLevelDomainRegistrationPolicyResponse) Set(f switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.MsgUpdateTopLevelDomainRegistrationPolicyResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.MsgUpdateTopLevelDomainRegistrationPolicyResponse")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.MsgUpdateTopLevelDomainRegistrationPolicyResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.MsgUpdateTopLevelDomainRegistrationPolicyResponse does not contain field %s", fd.FullName())) } } @@ -7843,9 +7844,9 @@ func (x *fastReflection_MsgUpdateTopLevelDomainRegistrationPolicyResponse) Mutab switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.MsgUpdateTopLevelDomainRegistrationPolicyResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.MsgUpdateTopLevelDomainRegistrationPolicyResponse")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.MsgUpdateTopLevelDomainRegistrationPolicyResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.MsgUpdateTopLevelDomainRegistrationPolicyResponse does not contain field %s", fd.FullName())) } } @@ -7856,9 +7857,9 @@ func (x *fastReflection_MsgUpdateTopLevelDomainRegistrationPolicyResponse) NewFi switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1beta1.MsgUpdateTopLevelDomainRegistrationPolicyResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.registry.v1.MsgUpdateTopLevelDomainRegistrationPolicyResponse")) } - panic(fmt.Errorf("message mycel.registry.v1beta1.MsgUpdateTopLevelDomainRegistrationPolicyResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message mycel.registry.v1.MsgUpdateTopLevelDomainRegistrationPolicyResponse does not contain field %s", fd.FullName())) } } @@ -7868,7 +7869,7 @@ func (x *fastReflection_MsgUpdateTopLevelDomainRegistrationPolicyResponse) NewFi func (x *fastReflection_MsgUpdateTopLevelDomainRegistrationPolicyResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in mycel.registry.v1beta1.MsgUpdateTopLevelDomainRegistrationPolicyResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in mycel.registry.v1.MsgUpdateTopLevelDomainRegistrationPolicyResponse", d.FullName())) } panic("unreachable") } @@ -8040,7 +8041,7 @@ func (x *fastReflection_MsgUpdateTopLevelDomainRegistrationPolicyResponse) Proto // versions: // protoc-gen-go v1.27.0 // protoc (unknown) -// source: mycel/registry/v1beta1/tx.proto +// source: mycel/registry/v1/tx.proto const ( // Verify that this generated code is sufficiently up-to-date. @@ -8064,7 +8065,7 @@ type MsgUpdateWalletRecord struct { func (x *MsgUpdateWalletRecord) Reset() { *x = MsgUpdateWalletRecord{} if protoimpl.UnsafeEnabled { - mi := &file_mycel_registry_v1beta1_tx_proto_msgTypes[0] + mi := &file_mycel_registry_v1_tx_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -8078,7 +8079,7 @@ func (*MsgUpdateWalletRecord) ProtoMessage() {} // Deprecated: Use MsgUpdateWalletRecord.ProtoReflect.Descriptor instead. func (*MsgUpdateWalletRecord) Descriptor() ([]byte, []int) { - return file_mycel_registry_v1beta1_tx_proto_rawDescGZIP(), []int{0} + return file_mycel_registry_v1_tx_proto_rawDescGZIP(), []int{0} } func (x *MsgUpdateWalletRecord) GetCreator() string { @@ -8125,7 +8126,7 @@ type MsgUpdateWalletRecordResponse struct { func (x *MsgUpdateWalletRecordResponse) Reset() { *x = MsgUpdateWalletRecordResponse{} if protoimpl.UnsafeEnabled { - mi := &file_mycel_registry_v1beta1_tx_proto_msgTypes[1] + mi := &file_mycel_registry_v1_tx_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -8139,7 +8140,7 @@ func (*MsgUpdateWalletRecordResponse) ProtoMessage() {} // Deprecated: Use MsgUpdateWalletRecordResponse.ProtoReflect.Descriptor instead. func (*MsgUpdateWalletRecordResponse) Descriptor() ([]byte, []int) { - return file_mycel_registry_v1beta1_tx_proto_rawDescGZIP(), []int{1} + return file_mycel_registry_v1_tx_proto_rawDescGZIP(), []int{1} } type MsgUpdateDnsRecord struct { @@ -8157,7 +8158,7 @@ type MsgUpdateDnsRecord struct { func (x *MsgUpdateDnsRecord) Reset() { *x = MsgUpdateDnsRecord{} if protoimpl.UnsafeEnabled { - mi := &file_mycel_registry_v1beta1_tx_proto_msgTypes[2] + mi := &file_mycel_registry_v1_tx_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -8171,7 +8172,7 @@ func (*MsgUpdateDnsRecord) ProtoMessage() {} // Deprecated: Use MsgUpdateDnsRecord.ProtoReflect.Descriptor instead. func (*MsgUpdateDnsRecord) Descriptor() ([]byte, []int) { - return file_mycel_registry_v1beta1_tx_proto_rawDescGZIP(), []int{2} + return file_mycel_registry_v1_tx_proto_rawDescGZIP(), []int{2} } func (x *MsgUpdateDnsRecord) GetCreator() string { @@ -8218,7 +8219,7 @@ type MsgUpdateDnsRecordResponse struct { func (x *MsgUpdateDnsRecordResponse) Reset() { *x = MsgUpdateDnsRecordResponse{} if protoimpl.UnsafeEnabled { - mi := &file_mycel_registry_v1beta1_tx_proto_msgTypes[3] + mi := &file_mycel_registry_v1_tx_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -8232,7 +8233,7 @@ func (*MsgUpdateDnsRecordResponse) ProtoMessage() {} // Deprecated: Use MsgUpdateDnsRecordResponse.ProtoReflect.Descriptor instead. func (*MsgUpdateDnsRecordResponse) Descriptor() ([]byte, []int) { - return file_mycel_registry_v1beta1_tx_proto_rawDescGZIP(), []int{3} + return file_mycel_registry_v1_tx_proto_rawDescGZIP(), []int{3} } type MsgRegisterSecondLevelDomain struct { @@ -8249,7 +8250,7 @@ type MsgRegisterSecondLevelDomain struct { func (x *MsgRegisterSecondLevelDomain) Reset() { *x = MsgRegisterSecondLevelDomain{} if protoimpl.UnsafeEnabled { - mi := &file_mycel_registry_v1beta1_tx_proto_msgTypes[4] + mi := &file_mycel_registry_v1_tx_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -8263,7 +8264,7 @@ func (*MsgRegisterSecondLevelDomain) ProtoMessage() {} // Deprecated: Use MsgRegisterSecondLevelDomain.ProtoReflect.Descriptor instead. func (*MsgRegisterSecondLevelDomain) Descriptor() ([]byte, []int) { - return file_mycel_registry_v1beta1_tx_proto_rawDescGZIP(), []int{4} + return file_mycel_registry_v1_tx_proto_rawDescGZIP(), []int{4} } func (x *MsgRegisterSecondLevelDomain) GetCreator() string { @@ -8303,7 +8304,7 @@ type MsgRegisterSecondLevelDomainResponse struct { func (x *MsgRegisterSecondLevelDomainResponse) Reset() { *x = MsgRegisterSecondLevelDomainResponse{} if protoimpl.UnsafeEnabled { - mi := &file_mycel_registry_v1beta1_tx_proto_msgTypes[5] + mi := &file_mycel_registry_v1_tx_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -8317,7 +8318,7 @@ func (*MsgRegisterSecondLevelDomainResponse) ProtoMessage() {} // Deprecated: Use MsgRegisterSecondLevelDomainResponse.ProtoReflect.Descriptor instead. func (*MsgRegisterSecondLevelDomainResponse) Descriptor() ([]byte, []int) { - return file_mycel_registry_v1beta1_tx_proto_rawDescGZIP(), []int{5} + return file_mycel_registry_v1_tx_proto_rawDescGZIP(), []int{5} } type MsgRegisterTopLevelDomain struct { @@ -8333,7 +8334,7 @@ type MsgRegisterTopLevelDomain struct { func (x *MsgRegisterTopLevelDomain) Reset() { *x = MsgRegisterTopLevelDomain{} if protoimpl.UnsafeEnabled { - mi := &file_mycel_registry_v1beta1_tx_proto_msgTypes[6] + mi := &file_mycel_registry_v1_tx_proto_msgTypes[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -8347,7 +8348,7 @@ func (*MsgRegisterTopLevelDomain) ProtoMessage() {} // Deprecated: Use MsgRegisterTopLevelDomain.ProtoReflect.Descriptor instead. func (*MsgRegisterTopLevelDomain) Descriptor() ([]byte, []int) { - return file_mycel_registry_v1beta1_tx_proto_rawDescGZIP(), []int{6} + return file_mycel_registry_v1_tx_proto_rawDescGZIP(), []int{6} } func (x *MsgRegisterTopLevelDomain) GetCreator() string { @@ -8383,7 +8384,7 @@ type MsgRegisterTopLevelDomainResponse struct { func (x *MsgRegisterTopLevelDomainResponse) Reset() { *x = MsgRegisterTopLevelDomainResponse{} if protoimpl.UnsafeEnabled { - mi := &file_mycel_registry_v1beta1_tx_proto_msgTypes[7] + mi := &file_mycel_registry_v1_tx_proto_msgTypes[7] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -8397,7 +8398,7 @@ func (*MsgRegisterTopLevelDomainResponse) ProtoMessage() {} // Deprecated: Use MsgRegisterTopLevelDomainResponse.ProtoReflect.Descriptor instead. func (*MsgRegisterTopLevelDomainResponse) Descriptor() ([]byte, []int) { - return file_mycel_registry_v1beta1_tx_proto_rawDescGZIP(), []int{7} + return file_mycel_registry_v1_tx_proto_rawDescGZIP(), []int{7} } func (x *MsgRegisterTopLevelDomainResponse) GetTopLevelDomain() *TopLevelDomain { @@ -8426,7 +8427,7 @@ type MsgWithdrawRegistrationFee struct { func (x *MsgWithdrawRegistrationFee) Reset() { *x = MsgWithdrawRegistrationFee{} if protoimpl.UnsafeEnabled { - mi := &file_mycel_registry_v1beta1_tx_proto_msgTypes[8] + mi := &file_mycel_registry_v1_tx_proto_msgTypes[8] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -8440,7 +8441,7 @@ func (*MsgWithdrawRegistrationFee) ProtoMessage() {} // Deprecated: Use MsgWithdrawRegistrationFee.ProtoReflect.Descriptor instead. func (*MsgWithdrawRegistrationFee) Descriptor() ([]byte, []int) { - return file_mycel_registry_v1beta1_tx_proto_rawDescGZIP(), []int{8} + return file_mycel_registry_v1_tx_proto_rawDescGZIP(), []int{8} } func (x *MsgWithdrawRegistrationFee) GetCreator() string { @@ -8462,13 +8463,13 @@ type MsgWithdrawRegistrationFeeResponse struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - RegistrationFee []*v1beta1.Coin `protobuf:"bytes,7,rep,name=registration_fee,json=registrationFee,proto3" json:"registration_fee,omitempty"` + RegistrationFee []*v1beta1.Coin `protobuf:"bytes,1,rep,name=registration_fee,json=registrationFee,proto3" json:"registration_fee,omitempty"` } func (x *MsgWithdrawRegistrationFeeResponse) Reset() { *x = MsgWithdrawRegistrationFeeResponse{} if protoimpl.UnsafeEnabled { - mi := &file_mycel_registry_v1beta1_tx_proto_msgTypes[9] + mi := &file_mycel_registry_v1_tx_proto_msgTypes[9] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -8482,7 +8483,7 @@ func (*MsgWithdrawRegistrationFeeResponse) ProtoMessage() {} // Deprecated: Use MsgWithdrawRegistrationFeeResponse.ProtoReflect.Descriptor instead. func (*MsgWithdrawRegistrationFeeResponse) Descriptor() ([]byte, []int) { - return file_mycel_registry_v1beta1_tx_proto_rawDescGZIP(), []int{9} + return file_mycel_registry_v1_tx_proto_rawDescGZIP(), []int{9} } func (x *MsgWithdrawRegistrationFeeResponse) GetRegistrationFee() []*v1beta1.Coin { @@ -8505,7 +8506,7 @@ type MsgExtendTopLevelDomainExpirationDate struct { func (x *MsgExtendTopLevelDomainExpirationDate) Reset() { *x = MsgExtendTopLevelDomainExpirationDate{} if protoimpl.UnsafeEnabled { - mi := &file_mycel_registry_v1beta1_tx_proto_msgTypes[10] + mi := &file_mycel_registry_v1_tx_proto_msgTypes[10] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -8519,7 +8520,7 @@ func (*MsgExtendTopLevelDomainExpirationDate) ProtoMessage() {} // Deprecated: Use MsgExtendTopLevelDomainExpirationDate.ProtoReflect.Descriptor instead. func (*MsgExtendTopLevelDomainExpirationDate) Descriptor() ([]byte, []int) { - return file_mycel_registry_v1beta1_tx_proto_rawDescGZIP(), []int{10} + return file_mycel_registry_v1_tx_proto_rawDescGZIP(), []int{10} } func (x *MsgExtendTopLevelDomainExpirationDate) GetCreator() string { @@ -8555,7 +8556,7 @@ type MsgExtendTopLevelDomainExpirationDateResponse struct { func (x *MsgExtendTopLevelDomainExpirationDateResponse) Reset() { *x = MsgExtendTopLevelDomainExpirationDateResponse{} if protoimpl.UnsafeEnabled { - mi := &file_mycel_registry_v1beta1_tx_proto_msgTypes[11] + mi := &file_mycel_registry_v1_tx_proto_msgTypes[11] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -8569,7 +8570,7 @@ func (*MsgExtendTopLevelDomainExpirationDateResponse) ProtoMessage() {} // Deprecated: Use MsgExtendTopLevelDomainExpirationDateResponse.ProtoReflect.Descriptor instead. func (*MsgExtendTopLevelDomainExpirationDateResponse) Descriptor() ([]byte, []int) { - return file_mycel_registry_v1beta1_tx_proto_rawDescGZIP(), []int{11} + return file_mycel_registry_v1_tx_proto_rawDescGZIP(), []int{11} } func (x *MsgExtendTopLevelDomainExpirationDateResponse) GetTopLevelDomain() *TopLevelDomain { @@ -8601,7 +8602,7 @@ type MsgUpdateTextRecord struct { func (x *MsgUpdateTextRecord) Reset() { *x = MsgUpdateTextRecord{} if protoimpl.UnsafeEnabled { - mi := &file_mycel_registry_v1beta1_tx_proto_msgTypes[12] + mi := &file_mycel_registry_v1_tx_proto_msgTypes[12] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -8615,7 +8616,7 @@ func (*MsgUpdateTextRecord) ProtoMessage() {} // Deprecated: Use MsgUpdateTextRecord.ProtoReflect.Descriptor instead. func (*MsgUpdateTextRecord) Descriptor() ([]byte, []int) { - return file_mycel_registry_v1beta1_tx_proto_rawDescGZIP(), []int{12} + return file_mycel_registry_v1_tx_proto_rawDescGZIP(), []int{12} } func (x *MsgUpdateTextRecord) GetCreator() string { @@ -8662,7 +8663,7 @@ type MsgUpdateTextRecordResponse struct { func (x *MsgUpdateTextRecordResponse) Reset() { *x = MsgUpdateTextRecordResponse{} if protoimpl.UnsafeEnabled { - mi := &file_mycel_registry_v1beta1_tx_proto_msgTypes[13] + mi := &file_mycel_registry_v1_tx_proto_msgTypes[13] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -8676,7 +8677,7 @@ func (*MsgUpdateTextRecordResponse) ProtoMessage() {} // Deprecated: Use MsgUpdateTextRecordResponse.ProtoReflect.Descriptor instead. func (*MsgUpdateTextRecordResponse) Descriptor() ([]byte, []int) { - return file_mycel_registry_v1beta1_tx_proto_rawDescGZIP(), []int{13} + return file_mycel_registry_v1_tx_proto_rawDescGZIP(), []int{13} } type MsgUpdateTopLevelDomainRegistrationPolicy struct { @@ -8692,7 +8693,7 @@ type MsgUpdateTopLevelDomainRegistrationPolicy struct { func (x *MsgUpdateTopLevelDomainRegistrationPolicy) Reset() { *x = MsgUpdateTopLevelDomainRegistrationPolicy{} if protoimpl.UnsafeEnabled { - mi := &file_mycel_registry_v1beta1_tx_proto_msgTypes[14] + mi := &file_mycel_registry_v1_tx_proto_msgTypes[14] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -8706,7 +8707,7 @@ func (*MsgUpdateTopLevelDomainRegistrationPolicy) ProtoMessage() {} // Deprecated: Use MsgUpdateTopLevelDomainRegistrationPolicy.ProtoReflect.Descriptor instead. func (*MsgUpdateTopLevelDomainRegistrationPolicy) Descriptor() ([]byte, []int) { - return file_mycel_registry_v1beta1_tx_proto_rawDescGZIP(), []int{14} + return file_mycel_registry_v1_tx_proto_rawDescGZIP(), []int{14} } func (x *MsgUpdateTopLevelDomainRegistrationPolicy) GetCreator() string { @@ -8739,7 +8740,7 @@ type MsgUpdateTopLevelDomainRegistrationPolicyResponse struct { func (x *MsgUpdateTopLevelDomainRegistrationPolicyResponse) Reset() { *x = MsgUpdateTopLevelDomainRegistrationPolicyResponse{} if protoimpl.UnsafeEnabled { - mi := &file_mycel_registry_v1beta1_tx_proto_msgTypes[15] + mi := &file_mycel_registry_v1_tx_proto_msgTypes[15] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -8753,281 +8754,281 @@ func (*MsgUpdateTopLevelDomainRegistrationPolicyResponse) ProtoMessage() {} // Deprecated: Use MsgUpdateTopLevelDomainRegistrationPolicyResponse.ProtoReflect.Descriptor instead. func (*MsgUpdateTopLevelDomainRegistrationPolicyResponse) Descriptor() ([]byte, []int) { - return file_mycel_registry_v1beta1_tx_proto_rawDescGZIP(), []int{15} -} - -var File_mycel_registry_v1beta1_tx_proto protoreflect.FileDescriptor - -var file_mycel_registry_v1beta1_tx_proto_rawDesc = []byte{ - 0x0a, 0x1f, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, - 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x74, 0x78, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x12, 0x16, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, - 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x1a, 0x1e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, - 0x73, 0x2f, 0x62, 0x61, 0x73, 0x65, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x63, - 0x6f, 0x69, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x14, 0x67, 0x6f, 0x67, 0x6f, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, - 0x2d, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f, - 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x74, 0x6f, 0x70, 0x5f, 0x6c, 0x65, 0x76, 0x65, - 0x6c, 0x5f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xa1, - 0x01, 0x0a, 0x15, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x57, 0x61, 0x6c, 0x6c, - 0x65, 0x74, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, - 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, - 0x6f, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x2c, - 0x0a, 0x12, 0x77, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x5f, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x5f, - 0x74, 0x79, 0x70, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x77, 0x61, 0x6c, 0x6c, - 0x65, 0x74, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x54, 0x79, 0x70, 0x65, 0x12, 0x14, 0x0a, 0x05, - 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, - 0x75, 0x65, 0x22, 0x1f, 0x0a, 0x1d, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x57, - 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x22, 0x98, 0x01, 0x0a, 0x12, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, - 0x65, 0x44, 0x6e, 0x73, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, - 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, - 0x61, 0x74, 0x6f, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, - 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, - 0x12, 0x26, 0x0a, 0x0f, 0x64, 0x6e, 0x73, 0x5f, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x5f, 0x74, - 0x79, 0x70, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x64, 0x6e, 0x73, 0x52, 0x65, - 0x63, 0x6f, 0x72, 0x64, 0x54, 0x79, 0x70, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, - 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x1c, - 0x0a, 0x1a, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x44, 0x6e, 0x73, 0x52, 0x65, - 0x63, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xa3, 0x01, 0x0a, - 0x1c, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x53, 0x65, 0x63, 0x6f, - 0x6e, 0x64, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x18, 0x0a, - 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, - 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x70, - 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x70, 0x61, 0x72, - 0x65, 0x6e, 0x74, 0x12, 0x3d, 0x0a, 0x1b, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x5f, 0x70, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x5f, 0x69, 0x6e, 0x5f, 0x79, 0x65, - 0x61, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x18, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, - 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x49, 0x6e, 0x59, 0x65, - 0x61, 0x72, 0x22, 0x26, 0x0a, 0x24, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, - 0x72, 0x53, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x44, 0x6f, 0x6d, 0x61, - 0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x88, 0x01, 0x0a, 0x19, 0x4d, - 0x73, 0x67, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x54, 0x6f, 0x70, 0x4c, 0x65, 0x76, - 0x65, 0x6c, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, - 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, - 0x6f, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x3d, 0x0a, 0x1b, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, - 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x70, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x5f, 0x69, 0x6e, - 0x5f, 0x79, 0x65, 0x61, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x18, 0x72, 0x65, 0x67, - 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x49, - 0x6e, 0x59, 0x65, 0x61, 0x72, 0x22, 0xb2, 0x01, 0x0a, 0x21, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x67, - 0x69, 0x73, 0x74, 0x65, 0x72, 0x54, 0x6f, 0x70, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x44, 0x6f, 0x6d, - 0x61, 0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x50, 0x0a, 0x10, 0x74, - 0x6f, 0x70, 0x5f, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x5f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x72, 0x65, - 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x54, - 0x6f, 0x70, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x0e, 0x74, - 0x6f, 0x70, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x3b, 0x0a, - 0x03, 0x66, 0x65, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x6d, 0x79, 0x63, - 0x65, 0x6c, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, - 0x74, 0x61, 0x31, 0x2e, 0x54, 0x6f, 0x70, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x44, 0x6f, 0x6d, 0x61, - 0x69, 0x6e, 0x46, 0x65, 0x65, 0x52, 0x03, 0x66, 0x65, 0x65, 0x22, 0x4a, 0x0a, 0x1a, 0x4d, 0x73, - 0x67, 0x57, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x65, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, - 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, - 0x6f, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x9c, 0x01, 0x0a, 0x22, 0x4d, 0x73, 0x67, 0x57, 0x69, - 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x46, 0x65, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x76, 0x0a, - 0x10, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x66, 0x65, - 0x65, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, - 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x6f, - 0x69, 0x6e, 0x42, 0x30, 0xc8, 0xde, 0x1f, 0x00, 0xaa, 0xdf, 0x1f, 0x28, 0x67, 0x69, 0x74, 0x68, - 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x63, 0x6f, - 0x73, 0x6d, 0x6f, 0x73, 0x2d, 0x73, 0x64, 0x6b, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x43, - 0x6f, 0x69, 0x6e, 0x73, 0x52, 0x0f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x46, 0x65, 0x65, 0x22, 0x8e, 0x01, 0x0a, 0x25, 0x4d, 0x73, 0x67, 0x45, 0x78, 0x74, - 0x65, 0x6e, 0x64, 0x54, 0x6f, 0x70, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x44, 0x6f, 0x6d, 0x61, 0x69, - 0x6e, 0x45, 0x78, 0x70, 0x69, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x61, 0x74, 0x65, 0x12, - 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, - 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x37, 0x0a, - 0x18, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x70, 0x65, 0x72, 0x69, 0x6f, + return file_mycel_registry_v1_tx_proto_rawDescGZIP(), []int{15} +} + +var File_mycel_registry_v1_tx_proto protoreflect.FileDescriptor + +var file_mycel_registry_v1_tx_proto_rawDesc = []byte{ + 0x0a, 0x1a, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, + 0x2f, 0x76, 0x31, 0x2f, 0x74, 0x78, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x11, 0x6d, 0x79, + 0x63, 0x65, 0x6c, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x1a, + 0x1e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x62, 0x61, 0x73, 0x65, 0x2f, 0x76, 0x31, 0x62, + 0x65, 0x74, 0x61, 0x31, 0x2f, 0x63, 0x6f, 0x69, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, + 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, 0x14, 0x67, 0x6f, 0x67, 0x6f, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x28, + 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, + 0x31, 0x2f, 0x74, 0x6f, 0x70, 0x5f, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x5f, 0x64, 0x6f, 0x6d, 0x61, + 0x69, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xaf, 0x01, 0x0a, 0x15, 0x4d, 0x73, 0x67, + 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x57, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x52, 0x65, 0x63, 0x6f, + 0x72, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x12, 0x0a, 0x04, + 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, + 0x12, 0x16, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x2c, 0x0a, 0x12, 0x77, 0x61, 0x6c, 0x6c, + 0x65, 0x74, 0x5f, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x04, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x77, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x52, 0x65, 0x63, 0x6f, + 0x72, 0x64, 0x54, 0x79, 0x70, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, + 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x0c, 0x82, 0xe7, + 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x1f, 0x0a, 0x1d, 0x4d, 0x73, + 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x57, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x52, 0x65, 0x63, + 0x6f, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xa6, 0x01, 0x0a, 0x12, + 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x44, 0x6e, 0x73, 0x52, 0x65, 0x63, 0x6f, + 0x72, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x12, 0x0a, 0x04, + 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, + 0x12, 0x16, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x26, 0x0a, 0x0f, 0x64, 0x6e, 0x73, 0x5f, + 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x0d, 0x64, 0x6e, 0x73, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x54, 0x79, 0x70, 0x65, + 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, + 0x61, 0x74, 0x6f, 0x72, 0x22, 0x1c, 0x0a, 0x1a, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, + 0x65, 0x44, 0x6e, 0x73, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0xb1, 0x01, 0x0a, 0x1c, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, + 0x65, 0x72, 0x53, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x44, 0x6f, 0x6d, + 0x61, 0x69, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x12, 0x0a, + 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, + 0x65, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x3d, 0x0a, 0x1b, 0x72, 0x65, 0x67, + 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x70, 0x65, 0x72, 0x69, 0x6f, 0x64, + 0x5f, 0x69, 0x6e, 0x5f, 0x79, 0x65, 0x61, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x18, + 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x65, 0x72, 0x69, + 0x6f, 0x64, 0x49, 0x6e, 0x59, 0x65, 0x61, 0x72, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x63, + 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x26, 0x0a, 0x24, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x67, + 0x69, 0x73, 0x74, 0x65, 0x72, 0x53, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x4c, 0x65, 0x76, 0x65, 0x6c, + 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x96, + 0x01, 0x0a, 0x19, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x54, 0x6f, + 0x70, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x18, 0x0a, 0x07, + 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, + 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x3d, 0x0a, 0x1b, 0x72, 0x65, + 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x70, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x5f, 0x69, 0x6e, 0x5f, 0x79, 0x65, 0x61, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, - 0x15, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x50, 0x65, 0x72, 0x69, 0x6f, 0x64, - 0x49, 0x6e, 0x59, 0x65, 0x61, 0x72, 0x22, 0xbe, 0x01, 0x0a, 0x2d, 0x4d, 0x73, 0x67, 0x45, 0x78, - 0x74, 0x65, 0x6e, 0x64, 0x54, 0x6f, 0x70, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x44, 0x6f, 0x6d, 0x61, - 0x69, 0x6e, 0x45, 0x78, 0x70, 0x69, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x61, 0x74, 0x65, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x50, 0x0a, 0x10, 0x74, 0x6f, 0x70, 0x5f, - 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x5f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, - 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x54, 0x6f, 0x70, 0x4c, + 0x18, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x65, 0x72, + 0x69, 0x6f, 0x64, 0x49, 0x6e, 0x59, 0x65, 0x61, 0x72, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, 0x2a, 0x07, + 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0xa8, 0x01, 0x0a, 0x21, 0x4d, 0x73, 0x67, 0x52, + 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x54, 0x6f, 0x70, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x44, + 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4b, 0x0a, + 0x10, 0x74, 0x6f, 0x70, 0x5f, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x5f, 0x64, 0x6f, 0x6d, 0x61, 0x69, + 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, + 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x6f, 0x70, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x0e, 0x74, 0x6f, 0x70, 0x4c, - 0x65, 0x76, 0x65, 0x6c, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x3b, 0x0a, 0x03, 0x66, 0x65, - 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, - 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, - 0x2e, 0x54, 0x6f, 0x70, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x46, - 0x65, 0x65, 0x52, 0x03, 0x66, 0x65, 0x65, 0x22, 0x83, 0x01, 0x0a, 0x13, 0x4d, 0x73, 0x67, 0x55, - 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x65, 0x78, 0x74, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x12, - 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, - 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x16, 0x0a, - 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x70, - 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x04, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, - 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x1d, 0x0a, - 0x1b, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x65, 0x78, 0x74, 0x52, 0x65, - 0x63, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x8a, 0x01, 0x0a, - 0x29, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x6f, 0x70, 0x4c, 0x65, 0x76, - 0x65, 0x6c, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, - 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, - 0x61, 0x74, 0x6f, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x2f, 0x0a, 0x13, 0x72, 0x65, 0x67, 0x69, - 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x12, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x22, 0x33, 0x0a, 0x31, 0x4d, 0x73, 0x67, - 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x6f, 0x70, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x44, 0x6f, - 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0xf7, - 0x08, 0x0a, 0x03, 0x4d, 0x73, 0x67, 0x12, 0x7a, 0x0a, 0x12, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, - 0x57, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x12, 0x2d, 0x2e, 0x6d, + 0x65, 0x76, 0x65, 0x6c, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x36, 0x0a, 0x03, 0x66, 0x65, + 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, + 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x6f, 0x70, 0x4c, + 0x65, 0x76, 0x65, 0x6c, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x46, 0x65, 0x65, 0x52, 0x03, 0x66, + 0x65, 0x65, 0x22, 0x58, 0x0a, 0x1a, 0x4d, 0x73, 0x67, 0x57, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, + 0x77, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x65, 0x65, + 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, + 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x3a, 0x0c, + 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x9c, 0x01, 0x0a, + 0x22, 0x4d, 0x73, 0x67, 0x57, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x52, 0x65, 0x67, 0x69, + 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x65, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x76, 0x0a, 0x10, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x5f, 0x66, 0x65, 0x65, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, + 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, + 0x74, 0x61, 0x31, 0x2e, 0x43, 0x6f, 0x69, 0x6e, 0x42, 0x30, 0xc8, 0xde, 0x1f, 0x00, 0xaa, 0xdf, + 0x1f, 0x28, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x73, + 0x6d, 0x6f, 0x73, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2d, 0x73, 0x64, 0x6b, 0x2f, 0x74, + 0x79, 0x70, 0x65, 0x73, 0x2e, 0x43, 0x6f, 0x69, 0x6e, 0x73, 0x52, 0x0f, 0x72, 0x65, 0x67, 0x69, + 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x65, 0x65, 0x22, 0x9c, 0x01, 0x0a, 0x25, + 0x4d, 0x73, 0x67, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x64, 0x54, 0x6f, 0x70, 0x4c, 0x65, 0x76, 0x65, + 0x6c, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x45, 0x78, 0x70, 0x69, 0x72, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x44, 0x61, 0x74, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, + 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, + 0x61, 0x6d, 0x65, 0x12, 0x37, 0x0a, 0x18, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, + 0x5f, 0x70, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x5f, 0x69, 0x6e, 0x5f, 0x79, 0x65, 0x61, 0x72, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x15, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, + 0x50, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x49, 0x6e, 0x59, 0x65, 0x61, 0x72, 0x3a, 0x0c, 0x82, 0xe7, + 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0xb4, 0x01, 0x0a, 0x2d, 0x4d, + 0x73, 0x67, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x64, 0x54, 0x6f, 0x70, 0x4c, 0x65, 0x76, 0x65, 0x6c, + 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x45, 0x78, 0x70, 0x69, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x44, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4b, 0x0a, 0x10, + 0x74, 0x6f, 0x70, 0x5f, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x5f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x72, + 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x6f, 0x70, 0x4c, 0x65, + 0x76, 0x65, 0x6c, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x0e, 0x74, 0x6f, 0x70, 0x4c, 0x65, + 0x76, 0x65, 0x6c, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x36, 0x0a, 0x03, 0x66, 0x65, 0x65, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x72, + 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x6f, 0x70, 0x4c, 0x65, + 0x76, 0x65, 0x6c, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x46, 0x65, 0x65, 0x52, 0x03, 0x66, 0x65, + 0x65, 0x22, 0x91, 0x01, 0x0a, 0x13, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, + 0x65, 0x78, 0x74, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, + 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, + 0x74, 0x6f, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, + 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, + 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, + 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x63, 0x72, + 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x1d, 0x0a, 0x1b, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, + 0x74, 0x65, 0x54, 0x65, 0x78, 0x74, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x98, 0x01, 0x0a, 0x29, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, + 0x74, 0x65, 0x54, 0x6f, 0x70, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, + 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x6f, 0x6c, 0x69, + 0x63, 0x79, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x12, 0x0a, 0x04, + 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, + 0x12, 0x2f, 0x0a, 0x13, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x12, 0x72, + 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x6f, 0x6c, 0x69, 0x63, + 0x79, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, + 0x33, 0x0a, 0x31, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x6f, 0x70, 0x4c, + 0x65, 0x76, 0x65, 0x6c, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, + 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x32, 0xac, 0x08, 0x0a, 0x03, 0x4d, 0x73, 0x67, 0x12, 0x70, 0x0a, 0x12, + 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x57, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x52, 0x65, 0x63, 0x6f, + 0x72, 0x64, 0x12, 0x28, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, + 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, + 0x57, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x1a, 0x30, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, - 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x57, - 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x1a, 0x35, 0x2e, 0x6d, 0x79, - 0x63, 0x65, 0x6c, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, - 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x57, 0x61, - 0x6c, 0x6c, 0x65, 0x74, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x71, 0x0a, 0x0f, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x44, 0x6e, 0x73, 0x52, - 0x65, 0x63, 0x6f, 0x72, 0x64, 0x12, 0x2a, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x72, 0x65, - 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4d, - 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x44, 0x6e, 0x73, 0x52, 0x65, 0x63, 0x6f, 0x72, - 0x64, 0x1a, 0x32, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, - 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, - 0x64, 0x61, 0x74, 0x65, 0x44, 0x6e, 0x73, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x8f, 0x01, 0x0a, 0x19, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, - 0x65, 0x72, 0x53, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x44, 0x6f, 0x6d, - 0x61, 0x69, 0x6e, 0x12, 0x34, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x72, 0x65, 0x67, 0x69, - 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4d, 0x73, 0x67, - 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x53, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x4c, 0x65, - 0x76, 0x65, 0x6c, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x1a, 0x3c, 0x2e, 0x6d, 0x79, 0x63, 0x65, - 0x6c, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, - 0x61, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x53, 0x65, - 0x63, 0x6f, 0x6e, 0x64, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x86, 0x01, 0x0a, 0x16, 0x52, 0x65, 0x67, 0x69, - 0x73, 0x74, 0x65, 0x72, 0x54, 0x6f, 0x70, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x44, 0x6f, 0x6d, 0x61, - 0x69, 0x6e, 0x12, 0x31, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, - 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x52, + 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x57, 0x61, 0x6c, 0x6c, 0x65, 0x74, + 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x67, + 0x0a, 0x0f, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x44, 0x6e, 0x73, 0x52, 0x65, 0x63, 0x6f, 0x72, + 0x64, 0x12, 0x25, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, + 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x44, + 0x6e, 0x73, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x1a, 0x2d, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, + 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, + 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x44, 0x6e, 0x73, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x85, 0x01, 0x0a, 0x19, 0x52, 0x65, 0x67, 0x69, + 0x73, 0x74, 0x65, 0x72, 0x53, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x44, + 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x2f, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x72, 0x65, + 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x67, + 0x69, 0x73, 0x74, 0x65, 0x72, 0x53, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x4c, 0x65, 0x76, 0x65, 0x6c, + 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x1a, 0x37, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x72, + 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x52, 0x65, + 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x53, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x4c, 0x65, 0x76, 0x65, + 0x6c, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x7c, 0x0a, 0x16, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x54, 0x6f, 0x70, 0x4c, 0x65, + 0x76, 0x65, 0x6c, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x2c, 0x2e, 0x6d, 0x79, 0x63, 0x65, + 0x6c, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, + 0x67, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x54, 0x6f, 0x70, 0x4c, 0x65, 0x76, 0x65, + 0x6c, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x1a, 0x34, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, + 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x54, 0x6f, 0x70, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x44, - 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x1a, 0x39, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x72, 0x65, - 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4d, - 0x73, 0x67, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x54, 0x6f, 0x70, 0x4c, 0x65, 0x76, - 0x65, 0x6c, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x89, 0x01, 0x0a, 0x17, 0x57, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x52, 0x65, 0x67, - 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x65, 0x65, 0x12, 0x32, 0x2e, 0x6d, - 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, - 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x57, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, - 0x77, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x65, 0x65, - 0x1a, 0x3a, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, - 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x57, 0x69, 0x74, - 0x68, 0x64, 0x72, 0x61, 0x77, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x46, 0x65, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0xaa, 0x01, 0x0a, - 0x22, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x64, 0x54, 0x6f, 0x70, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x44, - 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x45, 0x78, 0x70, 0x69, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x44, - 0x61, 0x74, 0x65, 0x12, 0x3d, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x72, 0x65, 0x67, 0x69, - 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4d, 0x73, 0x67, - 0x45, 0x78, 0x74, 0x65, 0x6e, 0x64, 0x54, 0x6f, 0x70, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x44, 0x6f, - 0x6d, 0x61, 0x69, 0x6e, 0x45, 0x78, 0x70, 0x69, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x61, - 0x74, 0x65, 0x1a, 0x45, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, - 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x45, - 0x78, 0x74, 0x65, 0x6e, 0x64, 0x54, 0x6f, 0x70, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x44, 0x6f, 0x6d, - 0x61, 0x69, 0x6e, 0x45, 0x78, 0x70, 0x69, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x61, 0x74, - 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x74, 0x0a, 0x10, 0x55, 0x70, 0x64, - 0x61, 0x74, 0x65, 0x54, 0x65, 0x78, 0x74, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x12, 0x2b, 0x2e, - 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, - 0x54, 0x65, 0x78, 0x74, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x1a, 0x33, 0x2e, 0x6d, 0x79, 0x63, - 0x65, 0x6c, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, - 0x74, 0x61, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x65, 0x78, - 0x74, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0xb6, 0x01, 0x0a, 0x26, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x6f, 0x70, 0x4c, 0x65, 0x76, - 0x65, 0x6c, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x41, 0x2e, 0x6d, 0x79, 0x63, - 0x65, 0x6c, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, - 0x74, 0x61, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x6f, 0x70, - 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x67, 0x69, 0x73, - 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x1a, 0x49, 0x2e, + 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x7f, 0x0a, + 0x17, 0x57, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x65, 0x65, 0x12, 0x2d, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, + 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, + 0x57, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x65, 0x65, 0x1a, 0x35, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, + 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x57, + 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x46, 0x65, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0xa0, + 0x01, 0x0a, 0x22, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x64, 0x54, 0x6f, 0x70, 0x4c, 0x65, 0x76, 0x65, + 0x6c, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x45, 0x78, 0x70, 0x69, 0x72, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x44, 0x61, 0x74, 0x65, 0x12, 0x38, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x72, 0x65, + 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x45, 0x78, 0x74, + 0x65, 0x6e, 0x64, 0x54, 0x6f, 0x70, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x44, 0x6f, 0x6d, 0x61, 0x69, + 0x6e, 0x45, 0x78, 0x70, 0x69, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x61, 0x74, 0x65, 0x1a, + 0x40, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, + 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x64, 0x54, 0x6f, 0x70, + 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x45, 0x78, 0x70, 0x69, 0x72, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x6a, 0x0a, 0x10, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x65, 0x78, 0x74, 0x52, + 0x65, 0x63, 0x6f, 0x72, 0x64, 0x12, 0x26, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x72, 0x65, + 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, + 0x61, 0x74, 0x65, 0x54, 0x65, 0x78, 0x74, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x1a, 0x2e, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, - 0x54, 0x6f, 0x70, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x65, - 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0xcf, 0x01, 0x0a, 0x1a, 0x63, 0x6f, 0x6d, - 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, - 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x42, 0x07, 0x54, 0x78, 0x50, 0x72, 0x6f, 0x74, 0x6f, - 0x50, 0x01, 0x5a, 0x2e, 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, 0x2f, 0x74, 0x79, 0x70, - 0x65, 0x73, 0xa2, 0x02, 0x03, 0x4d, 0x52, 0x58, 0xaa, 0x02, 0x16, 0x4d, 0x79, 0x63, 0x65, 0x6c, - 0x2e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, - 0x31, 0xca, 0x02, 0x16, 0x4d, 0x79, 0x63, 0x65, 0x6c, 0x5c, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, - 0x72, 0x79, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xe2, 0x02, 0x22, 0x4d, 0x79, 0x63, - 0x65, 0x6c, 0x5c, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x5c, 0x56, 0x31, 0x62, 0x65, - 0x74, 0x61, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, - 0x02, 0x18, 0x4d, 0x79, 0x63, 0x65, 0x6c, 0x3a, 0x3a, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, - 0x79, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x33, + 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x65, 0x78, 0x74, 0x52, + 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0xac, 0x01, + 0x0a, 0x26, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x6f, 0x70, 0x4c, 0x65, 0x76, 0x65, 0x6c, + 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x3c, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, + 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, + 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x6f, 0x70, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x44, 0x6f, + 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x1a, 0x44, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x72, + 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, + 0x64, 0x61, 0x74, 0x65, 0x54, 0x6f, 0x70, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x44, 0x6f, 0x6d, 0x61, + 0x69, 0x6e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x6f, + 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x1a, 0x05, 0x80, 0xe7, + 0xb0, 0x2a, 0x01, 0x42, 0xb5, 0x01, 0x0a, 0x15, 0x63, 0x6f, 0x6d, 0x2e, 0x6d, 0x79, 0x63, 0x65, + 0x6c, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x42, 0x07, 0x54, + 0x78, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2d, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, + 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x6d, 0x79, 0x63, 0x65, 0x6c, + 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x3b, 0x72, 0x65, 0x67, + 0x69, 0x73, 0x74, 0x72, 0x79, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x4d, 0x52, 0x58, 0xaa, 0x02, 0x11, + 0x4d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x56, + 0x31, 0xca, 0x02, 0x11, 0x4d, 0x79, 0x63, 0x65, 0x6c, 0x5c, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, + 0x72, 0x79, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x1d, 0x4d, 0x79, 0x63, 0x65, 0x6c, 0x5c, 0x52, 0x65, + 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, + 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x13, 0x4d, 0x79, 0x63, 0x65, 0x6c, 0x3a, 0x3a, 0x52, + 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x33, } var ( - file_mycel_registry_v1beta1_tx_proto_rawDescOnce sync.Once - file_mycel_registry_v1beta1_tx_proto_rawDescData = file_mycel_registry_v1beta1_tx_proto_rawDesc + file_mycel_registry_v1_tx_proto_rawDescOnce sync.Once + file_mycel_registry_v1_tx_proto_rawDescData = file_mycel_registry_v1_tx_proto_rawDesc ) -func file_mycel_registry_v1beta1_tx_proto_rawDescGZIP() []byte { - file_mycel_registry_v1beta1_tx_proto_rawDescOnce.Do(func() { - file_mycel_registry_v1beta1_tx_proto_rawDescData = protoimpl.X.CompressGZIP(file_mycel_registry_v1beta1_tx_proto_rawDescData) +func file_mycel_registry_v1_tx_proto_rawDescGZIP() []byte { + file_mycel_registry_v1_tx_proto_rawDescOnce.Do(func() { + file_mycel_registry_v1_tx_proto_rawDescData = protoimpl.X.CompressGZIP(file_mycel_registry_v1_tx_proto_rawDescData) }) - return file_mycel_registry_v1beta1_tx_proto_rawDescData -} - -var file_mycel_registry_v1beta1_tx_proto_msgTypes = make([]protoimpl.MessageInfo, 16) -var file_mycel_registry_v1beta1_tx_proto_goTypes = []interface{}{ - (*MsgUpdateWalletRecord)(nil), // 0: mycel.registry.v1beta1.MsgUpdateWalletRecord - (*MsgUpdateWalletRecordResponse)(nil), // 1: mycel.registry.v1beta1.MsgUpdateWalletRecordResponse - (*MsgUpdateDnsRecord)(nil), // 2: mycel.registry.v1beta1.MsgUpdateDnsRecord - (*MsgUpdateDnsRecordResponse)(nil), // 3: mycel.registry.v1beta1.MsgUpdateDnsRecordResponse - (*MsgRegisterSecondLevelDomain)(nil), // 4: mycel.registry.v1beta1.MsgRegisterSecondLevelDomain - (*MsgRegisterSecondLevelDomainResponse)(nil), // 5: mycel.registry.v1beta1.MsgRegisterSecondLevelDomainResponse - (*MsgRegisterTopLevelDomain)(nil), // 6: mycel.registry.v1beta1.MsgRegisterTopLevelDomain - (*MsgRegisterTopLevelDomainResponse)(nil), // 7: mycel.registry.v1beta1.MsgRegisterTopLevelDomainResponse - (*MsgWithdrawRegistrationFee)(nil), // 8: mycel.registry.v1beta1.MsgWithdrawRegistrationFee - (*MsgWithdrawRegistrationFeeResponse)(nil), // 9: mycel.registry.v1beta1.MsgWithdrawRegistrationFeeResponse - (*MsgExtendTopLevelDomainExpirationDate)(nil), // 10: mycel.registry.v1beta1.MsgExtendTopLevelDomainExpirationDate - (*MsgExtendTopLevelDomainExpirationDateResponse)(nil), // 11: mycel.registry.v1beta1.MsgExtendTopLevelDomainExpirationDateResponse - (*MsgUpdateTextRecord)(nil), // 12: mycel.registry.v1beta1.MsgUpdateTextRecord - (*MsgUpdateTextRecordResponse)(nil), // 13: mycel.registry.v1beta1.MsgUpdateTextRecordResponse - (*MsgUpdateTopLevelDomainRegistrationPolicy)(nil), // 14: mycel.registry.v1beta1.MsgUpdateTopLevelDomainRegistrationPolicy - (*MsgUpdateTopLevelDomainRegistrationPolicyResponse)(nil), // 15: mycel.registry.v1beta1.MsgUpdateTopLevelDomainRegistrationPolicyResponse - (*TopLevelDomain)(nil), // 16: mycel.registry.v1beta1.TopLevelDomain - (*TopLevelDomainFee)(nil), // 17: mycel.registry.v1beta1.TopLevelDomainFee + return file_mycel_registry_v1_tx_proto_rawDescData +} + +var file_mycel_registry_v1_tx_proto_msgTypes = make([]protoimpl.MessageInfo, 16) +var file_mycel_registry_v1_tx_proto_goTypes = []interface{}{ + (*MsgUpdateWalletRecord)(nil), // 0: mycel.registry.v1.MsgUpdateWalletRecord + (*MsgUpdateWalletRecordResponse)(nil), // 1: mycel.registry.v1.MsgUpdateWalletRecordResponse + (*MsgUpdateDnsRecord)(nil), // 2: mycel.registry.v1.MsgUpdateDnsRecord + (*MsgUpdateDnsRecordResponse)(nil), // 3: mycel.registry.v1.MsgUpdateDnsRecordResponse + (*MsgRegisterSecondLevelDomain)(nil), // 4: mycel.registry.v1.MsgRegisterSecondLevelDomain + (*MsgRegisterSecondLevelDomainResponse)(nil), // 5: mycel.registry.v1.MsgRegisterSecondLevelDomainResponse + (*MsgRegisterTopLevelDomain)(nil), // 6: mycel.registry.v1.MsgRegisterTopLevelDomain + (*MsgRegisterTopLevelDomainResponse)(nil), // 7: mycel.registry.v1.MsgRegisterTopLevelDomainResponse + (*MsgWithdrawRegistrationFee)(nil), // 8: mycel.registry.v1.MsgWithdrawRegistrationFee + (*MsgWithdrawRegistrationFeeResponse)(nil), // 9: mycel.registry.v1.MsgWithdrawRegistrationFeeResponse + (*MsgExtendTopLevelDomainExpirationDate)(nil), // 10: mycel.registry.v1.MsgExtendTopLevelDomainExpirationDate + (*MsgExtendTopLevelDomainExpirationDateResponse)(nil), // 11: mycel.registry.v1.MsgExtendTopLevelDomainExpirationDateResponse + (*MsgUpdateTextRecord)(nil), // 12: mycel.registry.v1.MsgUpdateTextRecord + (*MsgUpdateTextRecordResponse)(nil), // 13: mycel.registry.v1.MsgUpdateTextRecordResponse + (*MsgUpdateTopLevelDomainRegistrationPolicy)(nil), // 14: mycel.registry.v1.MsgUpdateTopLevelDomainRegistrationPolicy + (*MsgUpdateTopLevelDomainRegistrationPolicyResponse)(nil), // 15: mycel.registry.v1.MsgUpdateTopLevelDomainRegistrationPolicyResponse + (*TopLevelDomain)(nil), // 16: mycel.registry.v1.TopLevelDomain + (*TopLevelDomainFee)(nil), // 17: mycel.registry.v1.TopLevelDomainFee (*v1beta1.Coin)(nil), // 18: cosmos.base.v1beta1.Coin } -var file_mycel_registry_v1beta1_tx_proto_depIdxs = []int32{ - 16, // 0: mycel.registry.v1beta1.MsgRegisterTopLevelDomainResponse.top_level_domain:type_name -> mycel.registry.v1beta1.TopLevelDomain - 17, // 1: mycel.registry.v1beta1.MsgRegisterTopLevelDomainResponse.fee:type_name -> mycel.registry.v1beta1.TopLevelDomainFee - 18, // 2: mycel.registry.v1beta1.MsgWithdrawRegistrationFeeResponse.registration_fee:type_name -> cosmos.base.v1beta1.Coin - 16, // 3: mycel.registry.v1beta1.MsgExtendTopLevelDomainExpirationDateResponse.top_level_domain:type_name -> mycel.registry.v1beta1.TopLevelDomain - 17, // 4: mycel.registry.v1beta1.MsgExtendTopLevelDomainExpirationDateResponse.fee:type_name -> mycel.registry.v1beta1.TopLevelDomainFee - 0, // 5: mycel.registry.v1beta1.Msg.UpdateWalletRecord:input_type -> mycel.registry.v1beta1.MsgUpdateWalletRecord - 2, // 6: mycel.registry.v1beta1.Msg.UpdateDnsRecord:input_type -> mycel.registry.v1beta1.MsgUpdateDnsRecord - 4, // 7: mycel.registry.v1beta1.Msg.RegisterSecondLevelDomain:input_type -> mycel.registry.v1beta1.MsgRegisterSecondLevelDomain - 6, // 8: mycel.registry.v1beta1.Msg.RegisterTopLevelDomain:input_type -> mycel.registry.v1beta1.MsgRegisterTopLevelDomain - 8, // 9: mycel.registry.v1beta1.Msg.WithdrawRegistrationFee:input_type -> mycel.registry.v1beta1.MsgWithdrawRegistrationFee - 10, // 10: mycel.registry.v1beta1.Msg.ExtendTopLevelDomainExpirationDate:input_type -> mycel.registry.v1beta1.MsgExtendTopLevelDomainExpirationDate - 12, // 11: mycel.registry.v1beta1.Msg.UpdateTextRecord:input_type -> mycel.registry.v1beta1.MsgUpdateTextRecord - 14, // 12: mycel.registry.v1beta1.Msg.UpdateTopLevelDomainRegistrationPolicy:input_type -> mycel.registry.v1beta1.MsgUpdateTopLevelDomainRegistrationPolicy - 1, // 13: mycel.registry.v1beta1.Msg.UpdateWalletRecord:output_type -> mycel.registry.v1beta1.MsgUpdateWalletRecordResponse - 3, // 14: mycel.registry.v1beta1.Msg.UpdateDnsRecord:output_type -> mycel.registry.v1beta1.MsgUpdateDnsRecordResponse - 5, // 15: mycel.registry.v1beta1.Msg.RegisterSecondLevelDomain:output_type -> mycel.registry.v1beta1.MsgRegisterSecondLevelDomainResponse - 7, // 16: mycel.registry.v1beta1.Msg.RegisterTopLevelDomain:output_type -> mycel.registry.v1beta1.MsgRegisterTopLevelDomainResponse - 9, // 17: mycel.registry.v1beta1.Msg.WithdrawRegistrationFee:output_type -> mycel.registry.v1beta1.MsgWithdrawRegistrationFeeResponse - 11, // 18: mycel.registry.v1beta1.Msg.ExtendTopLevelDomainExpirationDate:output_type -> mycel.registry.v1beta1.MsgExtendTopLevelDomainExpirationDateResponse - 13, // 19: mycel.registry.v1beta1.Msg.UpdateTextRecord:output_type -> mycel.registry.v1beta1.MsgUpdateTextRecordResponse - 15, // 20: mycel.registry.v1beta1.Msg.UpdateTopLevelDomainRegistrationPolicy:output_type -> mycel.registry.v1beta1.MsgUpdateTopLevelDomainRegistrationPolicyResponse +var file_mycel_registry_v1_tx_proto_depIdxs = []int32{ + 16, // 0: mycel.registry.v1.MsgRegisterTopLevelDomainResponse.top_level_domain:type_name -> mycel.registry.v1.TopLevelDomain + 17, // 1: mycel.registry.v1.MsgRegisterTopLevelDomainResponse.fee:type_name -> mycel.registry.v1.TopLevelDomainFee + 18, // 2: mycel.registry.v1.MsgWithdrawRegistrationFeeResponse.registration_fee:type_name -> cosmos.base.v1beta1.Coin + 16, // 3: mycel.registry.v1.MsgExtendTopLevelDomainExpirationDateResponse.top_level_domain:type_name -> mycel.registry.v1.TopLevelDomain + 17, // 4: mycel.registry.v1.MsgExtendTopLevelDomainExpirationDateResponse.fee:type_name -> mycel.registry.v1.TopLevelDomainFee + 0, // 5: mycel.registry.v1.Msg.UpdateWalletRecord:input_type -> mycel.registry.v1.MsgUpdateWalletRecord + 2, // 6: mycel.registry.v1.Msg.UpdateDnsRecord:input_type -> mycel.registry.v1.MsgUpdateDnsRecord + 4, // 7: mycel.registry.v1.Msg.RegisterSecondLevelDomain:input_type -> mycel.registry.v1.MsgRegisterSecondLevelDomain + 6, // 8: mycel.registry.v1.Msg.RegisterTopLevelDomain:input_type -> mycel.registry.v1.MsgRegisterTopLevelDomain + 8, // 9: mycel.registry.v1.Msg.WithdrawRegistrationFee:input_type -> mycel.registry.v1.MsgWithdrawRegistrationFee + 10, // 10: mycel.registry.v1.Msg.ExtendTopLevelDomainExpirationDate:input_type -> mycel.registry.v1.MsgExtendTopLevelDomainExpirationDate + 12, // 11: mycel.registry.v1.Msg.UpdateTextRecord:input_type -> mycel.registry.v1.MsgUpdateTextRecord + 14, // 12: mycel.registry.v1.Msg.UpdateTopLevelDomainRegistrationPolicy:input_type -> mycel.registry.v1.MsgUpdateTopLevelDomainRegistrationPolicy + 1, // 13: mycel.registry.v1.Msg.UpdateWalletRecord:output_type -> mycel.registry.v1.MsgUpdateWalletRecordResponse + 3, // 14: mycel.registry.v1.Msg.UpdateDnsRecord:output_type -> mycel.registry.v1.MsgUpdateDnsRecordResponse + 5, // 15: mycel.registry.v1.Msg.RegisterSecondLevelDomain:output_type -> mycel.registry.v1.MsgRegisterSecondLevelDomainResponse + 7, // 16: mycel.registry.v1.Msg.RegisterTopLevelDomain:output_type -> mycel.registry.v1.MsgRegisterTopLevelDomainResponse + 9, // 17: mycel.registry.v1.Msg.WithdrawRegistrationFee:output_type -> mycel.registry.v1.MsgWithdrawRegistrationFeeResponse + 11, // 18: mycel.registry.v1.Msg.ExtendTopLevelDomainExpirationDate:output_type -> mycel.registry.v1.MsgExtendTopLevelDomainExpirationDateResponse + 13, // 19: mycel.registry.v1.Msg.UpdateTextRecord:output_type -> mycel.registry.v1.MsgUpdateTextRecordResponse + 15, // 20: mycel.registry.v1.Msg.UpdateTopLevelDomainRegistrationPolicy:output_type -> mycel.registry.v1.MsgUpdateTopLevelDomainRegistrationPolicyResponse 13, // [13:21] is the sub-list for method output_type 5, // [5:13] is the sub-list for method input_type 5, // [5:5] is the sub-list for extension type_name @@ -9035,14 +9036,14 @@ var file_mycel_registry_v1beta1_tx_proto_depIdxs = []int32{ 0, // [0:5] is the sub-list for field type_name } -func init() { file_mycel_registry_v1beta1_tx_proto_init() } -func file_mycel_registry_v1beta1_tx_proto_init() { - if File_mycel_registry_v1beta1_tx_proto != nil { +func init() { file_mycel_registry_v1_tx_proto_init() } +func file_mycel_registry_v1_tx_proto_init() { + if File_mycel_registry_v1_tx_proto != nil { return } - file_mycel_registry_v1beta1_top_level_domain_proto_init() + file_mycel_registry_v1_top_level_domain_proto_init() if !protoimpl.UnsafeEnabled { - file_mycel_registry_v1beta1_tx_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_mycel_registry_v1_tx_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*MsgUpdateWalletRecord); i { case 0: return &v.state @@ -9054,7 +9055,7 @@ func file_mycel_registry_v1beta1_tx_proto_init() { return nil } } - file_mycel_registry_v1beta1_tx_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_mycel_registry_v1_tx_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*MsgUpdateWalletRecordResponse); i { case 0: return &v.state @@ -9066,7 +9067,7 @@ func file_mycel_registry_v1beta1_tx_proto_init() { return nil } } - file_mycel_registry_v1beta1_tx_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + file_mycel_registry_v1_tx_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*MsgUpdateDnsRecord); i { case 0: return &v.state @@ -9078,7 +9079,7 @@ func file_mycel_registry_v1beta1_tx_proto_init() { return nil } } - file_mycel_registry_v1beta1_tx_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + file_mycel_registry_v1_tx_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*MsgUpdateDnsRecordResponse); i { case 0: return &v.state @@ -9090,7 +9091,7 @@ func file_mycel_registry_v1beta1_tx_proto_init() { return nil } } - file_mycel_registry_v1beta1_tx_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + file_mycel_registry_v1_tx_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*MsgRegisterSecondLevelDomain); i { case 0: return &v.state @@ -9102,7 +9103,7 @@ func file_mycel_registry_v1beta1_tx_proto_init() { return nil } } - file_mycel_registry_v1beta1_tx_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + file_mycel_registry_v1_tx_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*MsgRegisterSecondLevelDomainResponse); i { case 0: return &v.state @@ -9114,7 +9115,7 @@ func file_mycel_registry_v1beta1_tx_proto_init() { return nil } } - file_mycel_registry_v1beta1_tx_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + file_mycel_registry_v1_tx_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*MsgRegisterTopLevelDomain); i { case 0: return &v.state @@ -9126,7 +9127,7 @@ func file_mycel_registry_v1beta1_tx_proto_init() { return nil } } - file_mycel_registry_v1beta1_tx_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + file_mycel_registry_v1_tx_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*MsgRegisterTopLevelDomainResponse); i { case 0: return &v.state @@ -9138,7 +9139,7 @@ func file_mycel_registry_v1beta1_tx_proto_init() { return nil } } - file_mycel_registry_v1beta1_tx_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + file_mycel_registry_v1_tx_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*MsgWithdrawRegistrationFee); i { case 0: return &v.state @@ -9150,7 +9151,7 @@ func file_mycel_registry_v1beta1_tx_proto_init() { return nil } } - file_mycel_registry_v1beta1_tx_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + file_mycel_registry_v1_tx_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*MsgWithdrawRegistrationFeeResponse); i { case 0: return &v.state @@ -9162,7 +9163,7 @@ func file_mycel_registry_v1beta1_tx_proto_init() { return nil } } - file_mycel_registry_v1beta1_tx_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + file_mycel_registry_v1_tx_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*MsgExtendTopLevelDomainExpirationDate); i { case 0: return &v.state @@ -9174,7 +9175,7 @@ func file_mycel_registry_v1beta1_tx_proto_init() { return nil } } - file_mycel_registry_v1beta1_tx_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + file_mycel_registry_v1_tx_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*MsgExtendTopLevelDomainExpirationDateResponse); i { case 0: return &v.state @@ -9186,7 +9187,7 @@ func file_mycel_registry_v1beta1_tx_proto_init() { return nil } } - file_mycel_registry_v1beta1_tx_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + file_mycel_registry_v1_tx_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*MsgUpdateTextRecord); i { case 0: return &v.state @@ -9198,7 +9199,7 @@ func file_mycel_registry_v1beta1_tx_proto_init() { return nil } } - file_mycel_registry_v1beta1_tx_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + file_mycel_registry_v1_tx_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*MsgUpdateTextRecordResponse); i { case 0: return &v.state @@ -9210,7 +9211,7 @@ func file_mycel_registry_v1beta1_tx_proto_init() { return nil } } - file_mycel_registry_v1beta1_tx_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + file_mycel_registry_v1_tx_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*MsgUpdateTopLevelDomainRegistrationPolicy); i { case 0: return &v.state @@ -9222,7 +9223,7 @@ func file_mycel_registry_v1beta1_tx_proto_init() { return nil } } - file_mycel_registry_v1beta1_tx_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { + file_mycel_registry_v1_tx_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*MsgUpdateTopLevelDomainRegistrationPolicyResponse); i { case 0: return &v.state @@ -9239,18 +9240,18 @@ func file_mycel_registry_v1beta1_tx_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_mycel_registry_v1beta1_tx_proto_rawDesc, + RawDescriptor: file_mycel_registry_v1_tx_proto_rawDesc, NumEnums: 0, NumMessages: 16, NumExtensions: 0, NumServices: 1, }, - GoTypes: file_mycel_registry_v1beta1_tx_proto_goTypes, - DependencyIndexes: file_mycel_registry_v1beta1_tx_proto_depIdxs, - MessageInfos: file_mycel_registry_v1beta1_tx_proto_msgTypes, + GoTypes: file_mycel_registry_v1_tx_proto_goTypes, + DependencyIndexes: file_mycel_registry_v1_tx_proto_depIdxs, + MessageInfos: file_mycel_registry_v1_tx_proto_msgTypes, }.Build() - File_mycel_registry_v1beta1_tx_proto = out.File - file_mycel_registry_v1beta1_tx_proto_rawDesc = nil - file_mycel_registry_v1beta1_tx_proto_goTypes = nil - file_mycel_registry_v1beta1_tx_proto_depIdxs = nil + File_mycel_registry_v1_tx_proto = out.File + file_mycel_registry_v1_tx_proto_rawDesc = nil + file_mycel_registry_v1_tx_proto_goTypes = nil + file_mycel_registry_v1_tx_proto_depIdxs = nil } diff --git a/api/mycel/registry/v1beta1/tx_grpc.pb.go b/api/mycel/registry/v1/tx_grpc.pb.go similarity index 86% rename from api/mycel/registry/v1beta1/tx_grpc.pb.go rename to api/mycel/registry/v1/tx_grpc.pb.go index ceb1424b..604cd2e3 100644 --- a/api/mycel/registry/v1beta1/tx_grpc.pb.go +++ b/api/mycel/registry/v1/tx_grpc.pb.go @@ -1,6 +1,10 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. +// versions: +// - protoc-gen-go-grpc v1.3.0 +// - protoc (unknown) +// source: mycel/registry/v1/tx.proto -package types +package registryv1 import ( context "context" @@ -14,6 +18,17 @@ import ( // Requires gRPC-Go v1.32.0 or later. const _ = grpc.SupportPackageIsVersion7 +const ( + Msg_UpdateWalletRecord_FullMethodName = "/mycel.registry.v1.Msg/UpdateWalletRecord" + Msg_UpdateDnsRecord_FullMethodName = "/mycel.registry.v1.Msg/UpdateDnsRecord" + Msg_RegisterSecondLevelDomain_FullMethodName = "/mycel.registry.v1.Msg/RegisterSecondLevelDomain" + Msg_RegisterTopLevelDomain_FullMethodName = "/mycel.registry.v1.Msg/RegisterTopLevelDomain" + Msg_WithdrawRegistrationFee_FullMethodName = "/mycel.registry.v1.Msg/WithdrawRegistrationFee" + Msg_ExtendTopLevelDomainExpirationDate_FullMethodName = "/mycel.registry.v1.Msg/ExtendTopLevelDomainExpirationDate" + Msg_UpdateTextRecord_FullMethodName = "/mycel.registry.v1.Msg/UpdateTextRecord" + Msg_UpdateTopLevelDomainRegistrationPolicy_FullMethodName = "/mycel.registry.v1.Msg/UpdateTopLevelDomainRegistrationPolicy" +) + // MsgClient is the client API for Msg 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. @@ -38,7 +53,7 @@ func NewMsgClient(cc grpc.ClientConnInterface) MsgClient { func (c *msgClient) UpdateWalletRecord(ctx context.Context, in *MsgUpdateWalletRecord, opts ...grpc.CallOption) (*MsgUpdateWalletRecordResponse, error) { out := new(MsgUpdateWalletRecordResponse) - err := c.cc.Invoke(ctx, "/mycel.registry.v1beta1.Msg/UpdateWalletRecord", in, out, opts...) + err := c.cc.Invoke(ctx, Msg_UpdateWalletRecord_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -47,7 +62,7 @@ func (c *msgClient) UpdateWalletRecord(ctx context.Context, in *MsgUpdateWalletR func (c *msgClient) UpdateDnsRecord(ctx context.Context, in *MsgUpdateDnsRecord, opts ...grpc.CallOption) (*MsgUpdateDnsRecordResponse, error) { out := new(MsgUpdateDnsRecordResponse) - err := c.cc.Invoke(ctx, "/mycel.registry.v1beta1.Msg/UpdateDnsRecord", in, out, opts...) + err := c.cc.Invoke(ctx, Msg_UpdateDnsRecord_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -56,7 +71,7 @@ func (c *msgClient) UpdateDnsRecord(ctx context.Context, in *MsgUpdateDnsRecord, func (c *msgClient) RegisterSecondLevelDomain(ctx context.Context, in *MsgRegisterSecondLevelDomain, opts ...grpc.CallOption) (*MsgRegisterSecondLevelDomainResponse, error) { out := new(MsgRegisterSecondLevelDomainResponse) - err := c.cc.Invoke(ctx, "/mycel.registry.v1beta1.Msg/RegisterSecondLevelDomain", in, out, opts...) + err := c.cc.Invoke(ctx, Msg_RegisterSecondLevelDomain_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -65,7 +80,7 @@ func (c *msgClient) RegisterSecondLevelDomain(ctx context.Context, in *MsgRegist func (c *msgClient) RegisterTopLevelDomain(ctx context.Context, in *MsgRegisterTopLevelDomain, opts ...grpc.CallOption) (*MsgRegisterTopLevelDomainResponse, error) { out := new(MsgRegisterTopLevelDomainResponse) - err := c.cc.Invoke(ctx, "/mycel.registry.v1beta1.Msg/RegisterTopLevelDomain", in, out, opts...) + err := c.cc.Invoke(ctx, Msg_RegisterTopLevelDomain_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -74,7 +89,7 @@ func (c *msgClient) RegisterTopLevelDomain(ctx context.Context, in *MsgRegisterT func (c *msgClient) WithdrawRegistrationFee(ctx context.Context, in *MsgWithdrawRegistrationFee, opts ...grpc.CallOption) (*MsgWithdrawRegistrationFeeResponse, error) { out := new(MsgWithdrawRegistrationFeeResponse) - err := c.cc.Invoke(ctx, "/mycel.registry.v1beta1.Msg/WithdrawRegistrationFee", in, out, opts...) + err := c.cc.Invoke(ctx, Msg_WithdrawRegistrationFee_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -83,7 +98,7 @@ func (c *msgClient) WithdrawRegistrationFee(ctx context.Context, in *MsgWithdraw func (c *msgClient) ExtendTopLevelDomainExpirationDate(ctx context.Context, in *MsgExtendTopLevelDomainExpirationDate, opts ...grpc.CallOption) (*MsgExtendTopLevelDomainExpirationDateResponse, error) { out := new(MsgExtendTopLevelDomainExpirationDateResponse) - err := c.cc.Invoke(ctx, "/mycel.registry.v1beta1.Msg/ExtendTopLevelDomainExpirationDate", in, out, opts...) + err := c.cc.Invoke(ctx, Msg_ExtendTopLevelDomainExpirationDate_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -92,7 +107,7 @@ func (c *msgClient) ExtendTopLevelDomainExpirationDate(ctx context.Context, in * func (c *msgClient) UpdateTextRecord(ctx context.Context, in *MsgUpdateTextRecord, opts ...grpc.CallOption) (*MsgUpdateTextRecordResponse, error) { out := new(MsgUpdateTextRecordResponse) - err := c.cc.Invoke(ctx, "/mycel.registry.v1beta1.Msg/UpdateTextRecord", in, out, opts...) + err := c.cc.Invoke(ctx, Msg_UpdateTextRecord_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -101,7 +116,7 @@ func (c *msgClient) UpdateTextRecord(ctx context.Context, in *MsgUpdateTextRecor func (c *msgClient) UpdateTopLevelDomainRegistrationPolicy(ctx context.Context, in *MsgUpdateTopLevelDomainRegistrationPolicy, opts ...grpc.CallOption) (*MsgUpdateTopLevelDomainRegistrationPolicyResponse, error) { out := new(MsgUpdateTopLevelDomainRegistrationPolicyResponse) - err := c.cc.Invoke(ctx, "/mycel.registry.v1beta1.Msg/UpdateTopLevelDomainRegistrationPolicy", in, out, opts...) + err := c.cc.Invoke(ctx, Msg_UpdateTopLevelDomainRegistrationPolicy_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -174,7 +189,7 @@ func _Msg_UpdateWalletRecord_Handler(srv interface{}, ctx context.Context, dec f } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mycel.registry.v1beta1.Msg/UpdateWalletRecord", + FullMethod: Msg_UpdateWalletRecord_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MsgServer).UpdateWalletRecord(ctx, req.(*MsgUpdateWalletRecord)) @@ -192,7 +207,7 @@ func _Msg_UpdateDnsRecord_Handler(srv interface{}, ctx context.Context, dec func } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mycel.registry.v1beta1.Msg/UpdateDnsRecord", + FullMethod: Msg_UpdateDnsRecord_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MsgServer).UpdateDnsRecord(ctx, req.(*MsgUpdateDnsRecord)) @@ -210,7 +225,7 @@ func _Msg_RegisterSecondLevelDomain_Handler(srv interface{}, ctx context.Context } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mycel.registry.v1beta1.Msg/RegisterSecondLevelDomain", + FullMethod: Msg_RegisterSecondLevelDomain_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MsgServer).RegisterSecondLevelDomain(ctx, req.(*MsgRegisterSecondLevelDomain)) @@ -228,7 +243,7 @@ func _Msg_RegisterTopLevelDomain_Handler(srv interface{}, ctx context.Context, d } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mycel.registry.v1beta1.Msg/RegisterTopLevelDomain", + FullMethod: Msg_RegisterTopLevelDomain_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MsgServer).RegisterTopLevelDomain(ctx, req.(*MsgRegisterTopLevelDomain)) @@ -246,7 +261,7 @@ func _Msg_WithdrawRegistrationFee_Handler(srv interface{}, ctx context.Context, } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mycel.registry.v1beta1.Msg/WithdrawRegistrationFee", + FullMethod: Msg_WithdrawRegistrationFee_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MsgServer).WithdrawRegistrationFee(ctx, req.(*MsgWithdrawRegistrationFee)) @@ -264,7 +279,7 @@ func _Msg_ExtendTopLevelDomainExpirationDate_Handler(srv interface{}, ctx contex } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mycel.registry.v1beta1.Msg/ExtendTopLevelDomainExpirationDate", + FullMethod: Msg_ExtendTopLevelDomainExpirationDate_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MsgServer).ExtendTopLevelDomainExpirationDate(ctx, req.(*MsgExtendTopLevelDomainExpirationDate)) @@ -282,7 +297,7 @@ func _Msg_UpdateTextRecord_Handler(srv interface{}, ctx context.Context, dec fun } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mycel.registry.v1beta1.Msg/UpdateTextRecord", + FullMethod: Msg_UpdateTextRecord_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MsgServer).UpdateTextRecord(ctx, req.(*MsgUpdateTextRecord)) @@ -300,7 +315,7 @@ func _Msg_UpdateTopLevelDomainRegistrationPolicy_Handler(srv interface{}, ctx co } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mycel.registry.v1beta1.Msg/UpdateTopLevelDomainRegistrationPolicy", + FullMethod: Msg_UpdateTopLevelDomainRegistrationPolicy_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MsgServer).UpdateTopLevelDomainRegistrationPolicy(ctx, req.(*MsgUpdateTopLevelDomainRegistrationPolicy)) @@ -312,7 +327,7 @@ func _Msg_UpdateTopLevelDomainRegistrationPolicy_Handler(srv interface{}, ctx co // It's only intended for direct use with grpc.RegisterService, // and not to be introspected or modified (even as a copy) var Msg_ServiceDesc = grpc.ServiceDesc{ - ServiceName: "mycel.registry.v1beta1.Msg", + ServiceName: "mycel.registry.v1.Msg", HandlerType: (*MsgServer)(nil), Methods: []grpc.MethodDesc{ { @@ -349,5 +364,5 @@ var Msg_ServiceDesc = grpc.ServiceDesc{ }, }, Streams: []grpc.StreamDesc{}, - Metadata: "mycel/registry/v1beta1/tx.proto", + Metadata: "mycel/registry/v1/tx.proto", } diff --git a/api/mycel/registry/v1beta1/dns_record.pulsar.go b/api/mycel/registry/v1beta1/dns_record.pulsar.go deleted file mode 100644 index 0eafdc03..00000000 --- a/api/mycel/registry/v1beta1/dns_record.pulsar.go +++ /dev/null @@ -1,172 +0,0 @@ -// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. -package types - -import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" -) - -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.27.0 -// protoc (unknown) -// source: mycel/registry/v1beta1/dns_record.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) -) - -type DnsRecordType int32 - -const ( - DnsRecordType_NO_RECORD_TYPE DnsRecordType = 0 - DnsRecordType_A DnsRecordType = 1 - DnsRecordType_AAAA DnsRecordType = 2 - DnsRecordType_CNAME DnsRecordType = 3 - DnsRecordType_NS DnsRecordType = 4 - DnsRecordType_MX DnsRecordType = 5 - DnsRecordType_PTR DnsRecordType = 6 - DnsRecordType_SOA DnsRecordType = 7 - DnsRecordType_SRV DnsRecordType = 8 - DnsRecordType_TXT DnsRecordType = 9 -) - -// Enum value maps for DnsRecordType. -var ( - DnsRecordType_name = map[int32]string{ - 0: "NO_RECORD_TYPE", - 1: "A", - 2: "AAAA", - 3: "CNAME", - 4: "NS", - 5: "MX", - 6: "PTR", - 7: "SOA", - 8: "SRV", - 9: "TXT", - } - DnsRecordType_value = map[string]int32{ - "NO_RECORD_TYPE": 0, - "A": 1, - "AAAA": 2, - "CNAME": 3, - "NS": 4, - "MX": 5, - "PTR": 6, - "SOA": 7, - "SRV": 8, - "TXT": 9, - } -) - -func (x DnsRecordType) Enum() *DnsRecordType { - p := new(DnsRecordType) - *p = x - return p -} - -func (x DnsRecordType) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (DnsRecordType) Descriptor() protoreflect.EnumDescriptor { - return file_mycel_registry_v1beta1_dns_record_proto_enumTypes[0].Descriptor() -} - -func (DnsRecordType) Type() protoreflect.EnumType { - return &file_mycel_registry_v1beta1_dns_record_proto_enumTypes[0] -} - -func (x DnsRecordType) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use DnsRecordType.Descriptor instead. -func (DnsRecordType) EnumDescriptor() ([]byte, []int) { - return file_mycel_registry_v1beta1_dns_record_proto_rawDescGZIP(), []int{0} -} - -var File_mycel_registry_v1beta1_dns_record_proto protoreflect.FileDescriptor - -var file_mycel_registry_v1beta1_dns_record_proto_rawDesc = []byte{ - 0x0a, 0x27, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, - 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x64, 0x6e, 0x73, 0x5f, 0x72, 0x65, 0x63, - 0x6f, 0x72, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x16, 0x6d, 0x79, 0x63, 0x65, 0x6c, - 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, - 0x31, 0x2a, 0x73, 0x0a, 0x0d, 0x44, 0x6e, 0x73, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x54, 0x79, - 0x70, 0x65, 0x12, 0x12, 0x0a, 0x0e, 0x4e, 0x4f, 0x5f, 0x52, 0x45, 0x43, 0x4f, 0x52, 0x44, 0x5f, - 0x54, 0x59, 0x50, 0x45, 0x10, 0x00, 0x12, 0x05, 0x0a, 0x01, 0x41, 0x10, 0x01, 0x12, 0x08, 0x0a, - 0x04, 0x41, 0x41, 0x41, 0x41, 0x10, 0x02, 0x12, 0x09, 0x0a, 0x05, 0x43, 0x4e, 0x41, 0x4d, 0x45, - 0x10, 0x03, 0x12, 0x06, 0x0a, 0x02, 0x4e, 0x53, 0x10, 0x04, 0x12, 0x06, 0x0a, 0x02, 0x4d, 0x58, - 0x10, 0x05, 0x12, 0x07, 0x0a, 0x03, 0x50, 0x54, 0x52, 0x10, 0x06, 0x12, 0x07, 0x0a, 0x03, 0x53, - 0x4f, 0x41, 0x10, 0x07, 0x12, 0x07, 0x0a, 0x03, 0x53, 0x52, 0x56, 0x10, 0x08, 0x12, 0x07, 0x0a, - 0x03, 0x54, 0x58, 0x54, 0x10, 0x09, 0x42, 0xd6, 0x01, 0x0a, 0x1a, 0x63, 0x6f, 0x6d, 0x2e, 0x6d, - 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, - 0x62, 0x65, 0x74, 0x61, 0x31, 0x42, 0x0e, 0x44, 0x6e, 0x73, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, - 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2e, 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, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0xa2, 0x02, 0x03, 0x4d, 0x52, 0x58, 0xaa, 0x02, 0x16, - 0x4d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x56, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xca, 0x02, 0x16, 0x4d, 0x79, 0x63, 0x65, 0x6c, 0x5c, 0x52, - 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xe2, - 0x02, 0x22, 0x4d, 0x79, 0x63, 0x65, 0x6c, 0x5c, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, - 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, - 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x18, 0x4d, 0x79, 0x63, 0x65, 0x6c, 0x3a, 0x3a, 0x52, 0x65, - 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x62, - 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_mycel_registry_v1beta1_dns_record_proto_rawDescOnce sync.Once - file_mycel_registry_v1beta1_dns_record_proto_rawDescData = file_mycel_registry_v1beta1_dns_record_proto_rawDesc -) - -func file_mycel_registry_v1beta1_dns_record_proto_rawDescGZIP() []byte { - file_mycel_registry_v1beta1_dns_record_proto_rawDescOnce.Do(func() { - file_mycel_registry_v1beta1_dns_record_proto_rawDescData = protoimpl.X.CompressGZIP(file_mycel_registry_v1beta1_dns_record_proto_rawDescData) - }) - return file_mycel_registry_v1beta1_dns_record_proto_rawDescData -} - -var file_mycel_registry_v1beta1_dns_record_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_mycel_registry_v1beta1_dns_record_proto_goTypes = []interface{}{ - (DnsRecordType)(0), // 0: mycel.registry.v1beta1.DnsRecordType -} -var file_mycel_registry_v1beta1_dns_record_proto_depIdxs = []int32{ - 0, // [0:0] is the sub-list for method output_type - 0, // [0:0] is the sub-list for method input_type - 0, // [0:0] is the sub-list for extension type_name - 0, // [0:0] is the sub-list for extension extendee - 0, // [0:0] is the sub-list for field type_name -} - -func init() { file_mycel_registry_v1beta1_dns_record_proto_init() } -func file_mycel_registry_v1beta1_dns_record_proto_init() { - if File_mycel_registry_v1beta1_dns_record_proto != nil { - return - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_mycel_registry_v1beta1_dns_record_proto_rawDesc, - NumEnums: 1, - NumMessages: 0, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_mycel_registry_v1beta1_dns_record_proto_goTypes, - DependencyIndexes: file_mycel_registry_v1beta1_dns_record_proto_depIdxs, - EnumInfos: file_mycel_registry_v1beta1_dns_record_proto_enumTypes, - }.Build() - File_mycel_registry_v1beta1_dns_record_proto = out.File - file_mycel_registry_v1beta1_dns_record_proto_rawDesc = nil - file_mycel_registry_v1beta1_dns_record_proto_goTypes = nil - file_mycel_registry_v1beta1_dns_record_proto_depIdxs = nil -} diff --git a/api/mycel/registry/v1beta1/network_name.pulsar.go b/api/mycel/registry/v1beta1/network_name.pulsar.go deleted file mode 100644 index 763570ca..00000000 --- a/api/mycel/registry/v1beta1/network_name.pulsar.go +++ /dev/null @@ -1,304 +0,0 @@ -// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. -package types - -import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" -) - -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.27.0 -// protoc (unknown) -// source: mycel/registry/v1beta1/network_name.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) -) - -type NetworkName int32 - -const ( - NetworkName_NO_NETWORK NetworkName = 0 - // BTC 1xxx - NetworkName_BITCOIN_MAINNET_MAINNET NetworkName = 10000 - NetworkName_BITCOIN_TESTNET_TESTNET NetworkName = 10001 - // DEFAULT - NetworkName_BITCOIN_DEFAULT_DEFAULT NetworkName = 19999 - // EVM 2xxxx - // Etheruem - NetworkName_ETHEREUM_MAINNET_MAINNET NetworkName = 20000 - NetworkName_ETHEREUM_TESTNET_GOERLI NetworkName = 20001 - NetworkName_ETHEREUM_TESTNET_SEPOLIA NetworkName = 20002 - // Polygon - NetworkName_POLYGON_MAINNET_MAINNET NetworkName = 20003 - NetworkName_POLYGON_TESTNET_MUMBAI NetworkName = 20004 - // BNB Chain - NetworkName_BNB_MAINNET_MAINNET NetworkName = 20005 - NetworkName_BNB_TESTNET_TESTNET NetworkName = 20006 - // Avalanche - NetworkName_AVALANCHE_MAINNET_CCHAIN NetworkName = 20007 - NetworkName_AVALANCHE_TESTNET_FUJI NetworkName = 20008 - // Gnosis - NetworkName_GNOSIS_MAINNET_MAINNET NetworkName = 20009 - NetworkName_GNOSIS_TESTNET_CHIADO NetworkName = 20010 - // Optimism - NetworkName_OPTIMISM_MAINNET_MAINNET NetworkName = 20011 - NetworkName_OPTIMISM_TESTNET_GOERLI NetworkName = 20012 - // Arbitrum - NetworkName_ARBITRUM_MAINNET_MAINNET NetworkName = 20013 - NetworkName_ARBITRUM_TESTNET_GOERLI NetworkName = 20014 - // Shardeum - // - // SHARDEUM_MAINNET_ = 20015; - // SHARDEUM_TESTNET_ = 20016; - NetworkName_SHARDEUM_BETANET_SPHINX NetworkName = 20017 - // Zetachain - // ZETA_MAINNET_MAINNET = 20018; - NetworkName_ZETA_TESTNET_ATHENS NetworkName = 20019 - // DEFAULT - NetworkName_EVM_DEFAULT_DEFAULT NetworkName = 29999 - // MOVE 3xxxx - // Aptos - NetworkName_APTOS_MAINNET_MAINNET NetworkName = 30000 - NetworkName_APTOS_TESTNET_TESTNET NetworkName = 30001 - // Sui - NetworkName_SUI_MAINNET_MAINNET NetworkName = 30002 - NetworkName_SUI_TESTNET_TESTNET NetworkName = 30003 - // DEFAULT - NetworkName_MOVE_DEFAULT_DEFAULT NetworkName = 39999 - // SOLANA 4xxxx - NetworkName_SOLANA_MAINNET_MAINNET NetworkName = 40000 - NetworkName_SOLANA_TESTNET_TESTNET NetworkName = 40001 - // DEFAULT - NetworkName_SOLANA_DEFAULT_DEFAULT NetworkName = 49999 -) - -// Enum value maps for NetworkName. -var ( - NetworkName_name = map[int32]string{ - 0: "NO_NETWORK", - 10000: "BITCOIN_MAINNET_MAINNET", - 10001: "BITCOIN_TESTNET_TESTNET", - 19999: "BITCOIN_DEFAULT_DEFAULT", - 20000: "ETHEREUM_MAINNET_MAINNET", - 20001: "ETHEREUM_TESTNET_GOERLI", - 20002: "ETHEREUM_TESTNET_SEPOLIA", - 20003: "POLYGON_MAINNET_MAINNET", - 20004: "POLYGON_TESTNET_MUMBAI", - 20005: "BNB_MAINNET_MAINNET", - 20006: "BNB_TESTNET_TESTNET", - 20007: "AVALANCHE_MAINNET_CCHAIN", - 20008: "AVALANCHE_TESTNET_FUJI", - 20009: "GNOSIS_MAINNET_MAINNET", - 20010: "GNOSIS_TESTNET_CHIADO", - 20011: "OPTIMISM_MAINNET_MAINNET", - 20012: "OPTIMISM_TESTNET_GOERLI", - 20013: "ARBITRUM_MAINNET_MAINNET", - 20014: "ARBITRUM_TESTNET_GOERLI", - 20017: "SHARDEUM_BETANET_SPHINX", - 20019: "ZETA_TESTNET_ATHENS", - 29999: "EVM_DEFAULT_DEFAULT", - 30000: "APTOS_MAINNET_MAINNET", - 30001: "APTOS_TESTNET_TESTNET", - 30002: "SUI_MAINNET_MAINNET", - 30003: "SUI_TESTNET_TESTNET", - 39999: "MOVE_DEFAULT_DEFAULT", - 40000: "SOLANA_MAINNET_MAINNET", - 40001: "SOLANA_TESTNET_TESTNET", - 49999: "SOLANA_DEFAULT_DEFAULT", - } - NetworkName_value = map[string]int32{ - "NO_NETWORK": 0, - "BITCOIN_MAINNET_MAINNET": 10000, - "BITCOIN_TESTNET_TESTNET": 10001, - "BITCOIN_DEFAULT_DEFAULT": 19999, - "ETHEREUM_MAINNET_MAINNET": 20000, - "ETHEREUM_TESTNET_GOERLI": 20001, - "ETHEREUM_TESTNET_SEPOLIA": 20002, - "POLYGON_MAINNET_MAINNET": 20003, - "POLYGON_TESTNET_MUMBAI": 20004, - "BNB_MAINNET_MAINNET": 20005, - "BNB_TESTNET_TESTNET": 20006, - "AVALANCHE_MAINNET_CCHAIN": 20007, - "AVALANCHE_TESTNET_FUJI": 20008, - "GNOSIS_MAINNET_MAINNET": 20009, - "GNOSIS_TESTNET_CHIADO": 20010, - "OPTIMISM_MAINNET_MAINNET": 20011, - "OPTIMISM_TESTNET_GOERLI": 20012, - "ARBITRUM_MAINNET_MAINNET": 20013, - "ARBITRUM_TESTNET_GOERLI": 20014, - "SHARDEUM_BETANET_SPHINX": 20017, - "ZETA_TESTNET_ATHENS": 20019, - "EVM_DEFAULT_DEFAULT": 29999, - "APTOS_MAINNET_MAINNET": 30000, - "APTOS_TESTNET_TESTNET": 30001, - "SUI_MAINNET_MAINNET": 30002, - "SUI_TESTNET_TESTNET": 30003, - "MOVE_DEFAULT_DEFAULT": 39999, - "SOLANA_MAINNET_MAINNET": 40000, - "SOLANA_TESTNET_TESTNET": 40001, - "SOLANA_DEFAULT_DEFAULT": 49999, - } -) - -func (x NetworkName) Enum() *NetworkName { - p := new(NetworkName) - *p = x - return p -} - -func (x NetworkName) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (NetworkName) Descriptor() protoreflect.EnumDescriptor { - return file_mycel_registry_v1beta1_network_name_proto_enumTypes[0].Descriptor() -} - -func (NetworkName) Type() protoreflect.EnumType { - return &file_mycel_registry_v1beta1_network_name_proto_enumTypes[0] -} - -func (x NetworkName) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use NetworkName.Descriptor instead. -func (NetworkName) EnumDescriptor() ([]byte, []int) { - return file_mycel_registry_v1beta1_network_name_proto_rawDescGZIP(), []int{0} -} - -var File_mycel_registry_v1beta1_network_name_proto protoreflect.FileDescriptor - -var file_mycel_registry_v1beta1_network_name_proto_rawDesc = []byte{ - 0x0a, 0x29, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, - 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, - 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x16, 0x6d, 0x79, 0x63, - 0x65, 0x6c, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, - 0x74, 0x61, 0x31, 0x2a, 0xfc, 0x06, 0x0a, 0x0b, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x4e, - 0x61, 0x6d, 0x65, 0x12, 0x0e, 0x0a, 0x0a, 0x4e, 0x4f, 0x5f, 0x4e, 0x45, 0x54, 0x57, 0x4f, 0x52, - 0x4b, 0x10, 0x00, 0x12, 0x1c, 0x0a, 0x17, 0x42, 0x49, 0x54, 0x43, 0x4f, 0x49, 0x4e, 0x5f, 0x4d, - 0x41, 0x49, 0x4e, 0x4e, 0x45, 0x54, 0x5f, 0x4d, 0x41, 0x49, 0x4e, 0x4e, 0x45, 0x54, 0x10, 0x90, - 0x4e, 0x12, 0x1c, 0x0a, 0x17, 0x42, 0x49, 0x54, 0x43, 0x4f, 0x49, 0x4e, 0x5f, 0x54, 0x45, 0x53, - 0x54, 0x4e, 0x45, 0x54, 0x5f, 0x54, 0x45, 0x53, 0x54, 0x4e, 0x45, 0x54, 0x10, 0x91, 0x4e, 0x12, - 0x1d, 0x0a, 0x17, 0x42, 0x49, 0x54, 0x43, 0x4f, 0x49, 0x4e, 0x5f, 0x44, 0x45, 0x46, 0x41, 0x55, - 0x4c, 0x54, 0x5f, 0x44, 0x45, 0x46, 0x41, 0x55, 0x4c, 0x54, 0x10, 0x9f, 0x9c, 0x01, 0x12, 0x1e, - 0x0a, 0x18, 0x45, 0x54, 0x48, 0x45, 0x52, 0x45, 0x55, 0x4d, 0x5f, 0x4d, 0x41, 0x49, 0x4e, 0x4e, - 0x45, 0x54, 0x5f, 0x4d, 0x41, 0x49, 0x4e, 0x4e, 0x45, 0x54, 0x10, 0xa0, 0x9c, 0x01, 0x12, 0x1d, - 0x0a, 0x17, 0x45, 0x54, 0x48, 0x45, 0x52, 0x45, 0x55, 0x4d, 0x5f, 0x54, 0x45, 0x53, 0x54, 0x4e, - 0x45, 0x54, 0x5f, 0x47, 0x4f, 0x45, 0x52, 0x4c, 0x49, 0x10, 0xa1, 0x9c, 0x01, 0x12, 0x1e, 0x0a, - 0x18, 0x45, 0x54, 0x48, 0x45, 0x52, 0x45, 0x55, 0x4d, 0x5f, 0x54, 0x45, 0x53, 0x54, 0x4e, 0x45, - 0x54, 0x5f, 0x53, 0x45, 0x50, 0x4f, 0x4c, 0x49, 0x41, 0x10, 0xa2, 0x9c, 0x01, 0x12, 0x1d, 0x0a, - 0x17, 0x50, 0x4f, 0x4c, 0x59, 0x47, 0x4f, 0x4e, 0x5f, 0x4d, 0x41, 0x49, 0x4e, 0x4e, 0x45, 0x54, - 0x5f, 0x4d, 0x41, 0x49, 0x4e, 0x4e, 0x45, 0x54, 0x10, 0xa3, 0x9c, 0x01, 0x12, 0x1c, 0x0a, 0x16, - 0x50, 0x4f, 0x4c, 0x59, 0x47, 0x4f, 0x4e, 0x5f, 0x54, 0x45, 0x53, 0x54, 0x4e, 0x45, 0x54, 0x5f, - 0x4d, 0x55, 0x4d, 0x42, 0x41, 0x49, 0x10, 0xa4, 0x9c, 0x01, 0x12, 0x19, 0x0a, 0x13, 0x42, 0x4e, - 0x42, 0x5f, 0x4d, 0x41, 0x49, 0x4e, 0x4e, 0x45, 0x54, 0x5f, 0x4d, 0x41, 0x49, 0x4e, 0x4e, 0x45, - 0x54, 0x10, 0xa5, 0x9c, 0x01, 0x12, 0x19, 0x0a, 0x13, 0x42, 0x4e, 0x42, 0x5f, 0x54, 0x45, 0x53, - 0x54, 0x4e, 0x45, 0x54, 0x5f, 0x54, 0x45, 0x53, 0x54, 0x4e, 0x45, 0x54, 0x10, 0xa6, 0x9c, 0x01, - 0x12, 0x1e, 0x0a, 0x18, 0x41, 0x56, 0x41, 0x4c, 0x41, 0x4e, 0x43, 0x48, 0x45, 0x5f, 0x4d, 0x41, - 0x49, 0x4e, 0x4e, 0x45, 0x54, 0x5f, 0x43, 0x43, 0x48, 0x41, 0x49, 0x4e, 0x10, 0xa7, 0x9c, 0x01, - 0x12, 0x1c, 0x0a, 0x16, 0x41, 0x56, 0x41, 0x4c, 0x41, 0x4e, 0x43, 0x48, 0x45, 0x5f, 0x54, 0x45, - 0x53, 0x54, 0x4e, 0x45, 0x54, 0x5f, 0x46, 0x55, 0x4a, 0x49, 0x10, 0xa8, 0x9c, 0x01, 0x12, 0x1c, - 0x0a, 0x16, 0x47, 0x4e, 0x4f, 0x53, 0x49, 0x53, 0x5f, 0x4d, 0x41, 0x49, 0x4e, 0x4e, 0x45, 0x54, - 0x5f, 0x4d, 0x41, 0x49, 0x4e, 0x4e, 0x45, 0x54, 0x10, 0xa9, 0x9c, 0x01, 0x12, 0x1b, 0x0a, 0x15, - 0x47, 0x4e, 0x4f, 0x53, 0x49, 0x53, 0x5f, 0x54, 0x45, 0x53, 0x54, 0x4e, 0x45, 0x54, 0x5f, 0x43, - 0x48, 0x49, 0x41, 0x44, 0x4f, 0x10, 0xaa, 0x9c, 0x01, 0x12, 0x1e, 0x0a, 0x18, 0x4f, 0x50, 0x54, - 0x49, 0x4d, 0x49, 0x53, 0x4d, 0x5f, 0x4d, 0x41, 0x49, 0x4e, 0x4e, 0x45, 0x54, 0x5f, 0x4d, 0x41, - 0x49, 0x4e, 0x4e, 0x45, 0x54, 0x10, 0xab, 0x9c, 0x01, 0x12, 0x1d, 0x0a, 0x17, 0x4f, 0x50, 0x54, - 0x49, 0x4d, 0x49, 0x53, 0x4d, 0x5f, 0x54, 0x45, 0x53, 0x54, 0x4e, 0x45, 0x54, 0x5f, 0x47, 0x4f, - 0x45, 0x52, 0x4c, 0x49, 0x10, 0xac, 0x9c, 0x01, 0x12, 0x1e, 0x0a, 0x18, 0x41, 0x52, 0x42, 0x49, - 0x54, 0x52, 0x55, 0x4d, 0x5f, 0x4d, 0x41, 0x49, 0x4e, 0x4e, 0x45, 0x54, 0x5f, 0x4d, 0x41, 0x49, - 0x4e, 0x4e, 0x45, 0x54, 0x10, 0xad, 0x9c, 0x01, 0x12, 0x1d, 0x0a, 0x17, 0x41, 0x52, 0x42, 0x49, - 0x54, 0x52, 0x55, 0x4d, 0x5f, 0x54, 0x45, 0x53, 0x54, 0x4e, 0x45, 0x54, 0x5f, 0x47, 0x4f, 0x45, - 0x52, 0x4c, 0x49, 0x10, 0xae, 0x9c, 0x01, 0x12, 0x1d, 0x0a, 0x17, 0x53, 0x48, 0x41, 0x52, 0x44, - 0x45, 0x55, 0x4d, 0x5f, 0x42, 0x45, 0x54, 0x41, 0x4e, 0x45, 0x54, 0x5f, 0x53, 0x50, 0x48, 0x49, - 0x4e, 0x58, 0x10, 0xb1, 0x9c, 0x01, 0x12, 0x19, 0x0a, 0x13, 0x5a, 0x45, 0x54, 0x41, 0x5f, 0x54, - 0x45, 0x53, 0x54, 0x4e, 0x45, 0x54, 0x5f, 0x41, 0x54, 0x48, 0x45, 0x4e, 0x53, 0x10, 0xb3, 0x9c, - 0x01, 0x12, 0x19, 0x0a, 0x13, 0x45, 0x56, 0x4d, 0x5f, 0x44, 0x45, 0x46, 0x41, 0x55, 0x4c, 0x54, - 0x5f, 0x44, 0x45, 0x46, 0x41, 0x55, 0x4c, 0x54, 0x10, 0xaf, 0xea, 0x01, 0x12, 0x1b, 0x0a, 0x15, - 0x41, 0x50, 0x54, 0x4f, 0x53, 0x5f, 0x4d, 0x41, 0x49, 0x4e, 0x4e, 0x45, 0x54, 0x5f, 0x4d, 0x41, - 0x49, 0x4e, 0x4e, 0x45, 0x54, 0x10, 0xb0, 0xea, 0x01, 0x12, 0x1b, 0x0a, 0x15, 0x41, 0x50, 0x54, - 0x4f, 0x53, 0x5f, 0x54, 0x45, 0x53, 0x54, 0x4e, 0x45, 0x54, 0x5f, 0x54, 0x45, 0x53, 0x54, 0x4e, - 0x45, 0x54, 0x10, 0xb1, 0xea, 0x01, 0x12, 0x19, 0x0a, 0x13, 0x53, 0x55, 0x49, 0x5f, 0x4d, 0x41, - 0x49, 0x4e, 0x4e, 0x45, 0x54, 0x5f, 0x4d, 0x41, 0x49, 0x4e, 0x4e, 0x45, 0x54, 0x10, 0xb2, 0xea, - 0x01, 0x12, 0x19, 0x0a, 0x13, 0x53, 0x55, 0x49, 0x5f, 0x54, 0x45, 0x53, 0x54, 0x4e, 0x45, 0x54, - 0x5f, 0x54, 0x45, 0x53, 0x54, 0x4e, 0x45, 0x54, 0x10, 0xb3, 0xea, 0x01, 0x12, 0x1a, 0x0a, 0x14, - 0x4d, 0x4f, 0x56, 0x45, 0x5f, 0x44, 0x45, 0x46, 0x41, 0x55, 0x4c, 0x54, 0x5f, 0x44, 0x45, 0x46, - 0x41, 0x55, 0x4c, 0x54, 0x10, 0xbf, 0xb8, 0x02, 0x12, 0x1c, 0x0a, 0x16, 0x53, 0x4f, 0x4c, 0x41, - 0x4e, 0x41, 0x5f, 0x4d, 0x41, 0x49, 0x4e, 0x4e, 0x45, 0x54, 0x5f, 0x4d, 0x41, 0x49, 0x4e, 0x4e, - 0x45, 0x54, 0x10, 0xc0, 0xb8, 0x02, 0x12, 0x1c, 0x0a, 0x16, 0x53, 0x4f, 0x4c, 0x41, 0x4e, 0x41, - 0x5f, 0x54, 0x45, 0x53, 0x54, 0x4e, 0x45, 0x54, 0x5f, 0x54, 0x45, 0x53, 0x54, 0x4e, 0x45, 0x54, - 0x10, 0xc1, 0xb8, 0x02, 0x12, 0x1c, 0x0a, 0x16, 0x53, 0x4f, 0x4c, 0x41, 0x4e, 0x41, 0x5f, 0x44, - 0x45, 0x46, 0x41, 0x55, 0x4c, 0x54, 0x5f, 0x44, 0x45, 0x46, 0x41, 0x55, 0x4c, 0x54, 0x10, 0xcf, - 0x86, 0x03, 0x42, 0xd8, 0x01, 0x0a, 0x1a, 0x63, 0x6f, 0x6d, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, - 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, - 0x31, 0x42, 0x10, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x4e, 0x61, 0x6d, 0x65, 0x50, 0x72, - 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2e, 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, 0x2f, - 0x74, 0x79, 0x70, 0x65, 0x73, 0xa2, 0x02, 0x03, 0x4d, 0x52, 0x58, 0xaa, 0x02, 0x16, 0x4d, 0x79, - 0x63, 0x65, 0x6c, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x56, 0x31, 0x62, - 0x65, 0x74, 0x61, 0x31, 0xca, 0x02, 0x16, 0x4d, 0x79, 0x63, 0x65, 0x6c, 0x5c, 0x52, 0x65, 0x67, - 0x69, 0x73, 0x74, 0x72, 0x79, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xe2, 0x02, 0x22, - 0x4d, 0x79, 0x63, 0x65, 0x6c, 0x5c, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x5c, 0x56, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, - 0x74, 0x61, 0xea, 0x02, 0x18, 0x4d, 0x79, 0x63, 0x65, 0x6c, 0x3a, 0x3a, 0x52, 0x65, 0x67, 0x69, - 0x73, 0x74, 0x72, 0x79, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x62, 0x06, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_mycel_registry_v1beta1_network_name_proto_rawDescOnce sync.Once - file_mycel_registry_v1beta1_network_name_proto_rawDescData = file_mycel_registry_v1beta1_network_name_proto_rawDesc -) - -func file_mycel_registry_v1beta1_network_name_proto_rawDescGZIP() []byte { - file_mycel_registry_v1beta1_network_name_proto_rawDescOnce.Do(func() { - file_mycel_registry_v1beta1_network_name_proto_rawDescData = protoimpl.X.CompressGZIP(file_mycel_registry_v1beta1_network_name_proto_rawDescData) - }) - return file_mycel_registry_v1beta1_network_name_proto_rawDescData -} - -var file_mycel_registry_v1beta1_network_name_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_mycel_registry_v1beta1_network_name_proto_goTypes = []interface{}{ - (NetworkName)(0), // 0: mycel.registry.v1beta1.NetworkName -} -var file_mycel_registry_v1beta1_network_name_proto_depIdxs = []int32{ - 0, // [0:0] is the sub-list for method output_type - 0, // [0:0] is the sub-list for method input_type - 0, // [0:0] is the sub-list for extension type_name - 0, // [0:0] is the sub-list for extension extendee - 0, // [0:0] is the sub-list for field type_name -} - -func init() { file_mycel_registry_v1beta1_network_name_proto_init() } -func file_mycel_registry_v1beta1_network_name_proto_init() { - if File_mycel_registry_v1beta1_network_name_proto != nil { - return - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_mycel_registry_v1beta1_network_name_proto_rawDesc, - NumEnums: 1, - NumMessages: 0, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_mycel_registry_v1beta1_network_name_proto_goTypes, - DependencyIndexes: file_mycel_registry_v1beta1_network_name_proto_depIdxs, - EnumInfos: file_mycel_registry_v1beta1_network_name_proto_enumTypes, - }.Build() - File_mycel_registry_v1beta1_network_name_proto = out.File - file_mycel_registry_v1beta1_network_name_proto_rawDesc = nil - file_mycel_registry_v1beta1_network_name_proto_goTypes = nil - file_mycel_registry_v1beta1_network_name_proto_depIdxs = nil -} diff --git a/api/mycel/resolver/module/v1/module.pulsar.go b/api/mycel/resolver/module/v1/module.pulsar.go deleted file mode 100644 index e9df9307..00000000 --- a/api/mycel/resolver/module/v1/module.pulsar.go +++ /dev/null @@ -1,503 +0,0 @@ -// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. -package resolver - -import ( - _ "cosmossdk.io/api/cosmos/app/v1alpha1" - fmt "fmt" - runtime "github.com/cosmos/cosmos-proto/runtime" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoiface "google.golang.org/protobuf/runtime/protoiface" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - io "io" - reflect "reflect" - sync "sync" -) - -var ( - md_Module protoreflect.MessageDescriptor -) - -func init() { - file_mycel_resolver_module_v1_module_proto_init() - md_Module = File_mycel_resolver_module_v1_module_proto.Messages().ByName("Module") -} - -var _ protoreflect.Message = (*fastReflection_Module)(nil) - -type fastReflection_Module Module - -func (x *Module) ProtoReflect() protoreflect.Message { - return (*fastReflection_Module)(x) -} - -func (x *Module) slowProtoReflect() protoreflect.Message { - mi := &file_mycel_resolver_module_v1_module_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_Module_messageType fastReflection_Module_messageType -var _ protoreflect.MessageType = fastReflection_Module_messageType{} - -type fastReflection_Module_messageType struct{} - -func (x fastReflection_Module_messageType) Zero() protoreflect.Message { - return (*fastReflection_Module)(nil) -} -func (x fastReflection_Module_messageType) New() protoreflect.Message { - return new(fastReflection_Module) -} -func (x fastReflection_Module_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_Module -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_Module) Descriptor() protoreflect.MessageDescriptor { - return md_Module -} - -// 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_Module) Type() protoreflect.MessageType { - return _fastReflection_Module_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_Module) New() protoreflect.Message { - return new(fastReflection_Module) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_Module) Interface() protoreflect.ProtoMessage { - return (*Module)(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_Module) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_Module) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.resolver.module.v1.Module")) - } - panic(fmt.Errorf("message mycel.resolver.module.v1.Module 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_Module) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.resolver.module.v1.Module")) - } - panic(fmt.Errorf("message mycel.resolver.module.v1.Module 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_Module) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.resolver.module.v1.Module")) - } - panic(fmt.Errorf("message mycel.resolver.module.v1.Module 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_Module) 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.resolver.module.v1.Module")) - } - panic(fmt.Errorf("message mycel.resolver.module.v1.Module 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_Module) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.resolver.module.v1.Module")) - } - panic(fmt.Errorf("message mycel.resolver.module.v1.Module 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_Module) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.resolver.module.v1.Module")) - } - panic(fmt.Errorf("message mycel.resolver.module.v1.Module 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_Module) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in mycel.resolver.module.v1.Module", 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_Module) 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_Module) 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_Module) 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_Module) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*Module) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*Module) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*Module) - 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: Module: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Module: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.27.0 -// protoc (unknown) -// source: mycel/resolver/module/v1/module.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) -) - -// Module is the config object of the resolver module. -type Module struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *Module) Reset() { - *x = Module{} - if protoimpl.UnsafeEnabled { - mi := &file_mycel_resolver_module_v1_module_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Module) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Module) ProtoMessage() {} - -// Deprecated: Use Module.ProtoReflect.Descriptor instead. -func (*Module) Descriptor() ([]byte, []int) { - return file_mycel_resolver_module_v1_module_proto_rawDescGZIP(), []int{0} -} - -var File_mycel_resolver_module_v1_module_proto protoreflect.FileDescriptor - -var file_mycel_resolver_module_v1_module_proto_rawDesc = []byte{ - 0x0a, 0x25, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, - 0x2f, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x6d, 0x6f, 0x64, 0x75, 0x6c, - 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x18, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x72, - 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 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, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x42, - 0xd8, 0x01, 0x0a, 0x1c, 0x63, 0x6f, 0x6d, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x72, 0x65, - 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 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, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 0xa2, 0x02, 0x03, 0x4d, 0x52, 0x4d, 0xaa, - 0x02, 0x18, 0x4d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, - 0x2e, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x18, 0x4d, 0x79, 0x63, - 0x65, 0x6c, 0x5c, 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x5c, 0x4d, 0x6f, 0x64, 0x75, - 0x6c, 0x65, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x24, 0x4d, 0x79, 0x63, 0x65, 0x6c, 0x5c, 0x52, 0x65, - 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 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, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x3a, 0x3a, - 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x33, -} - -var ( - file_mycel_resolver_module_v1_module_proto_rawDescOnce sync.Once - file_mycel_resolver_module_v1_module_proto_rawDescData = file_mycel_resolver_module_v1_module_proto_rawDesc -) - -func file_mycel_resolver_module_v1_module_proto_rawDescGZIP() []byte { - file_mycel_resolver_module_v1_module_proto_rawDescOnce.Do(func() { - file_mycel_resolver_module_v1_module_proto_rawDescData = protoimpl.X.CompressGZIP(file_mycel_resolver_module_v1_module_proto_rawDescData) - }) - return file_mycel_resolver_module_v1_module_proto_rawDescData -} - -var file_mycel_resolver_module_v1_module_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_mycel_resolver_module_v1_module_proto_goTypes = []interface{}{ - (*Module)(nil), // 0: mycel.resolver.module.v1.Module -} -var file_mycel_resolver_module_v1_module_proto_depIdxs = []int32{ - 0, // [0:0] is the sub-list for method output_type - 0, // [0:0] is the sub-list for method input_type - 0, // [0:0] is the sub-list for extension type_name - 0, // [0:0] is the sub-list for extension extendee - 0, // [0:0] is the sub-list for field type_name -} - -func init() { file_mycel_resolver_module_v1_module_proto_init() } -func file_mycel_resolver_module_v1_module_proto_init() { - if File_mycel_resolver_module_v1_module_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_mycel_resolver_module_v1_module_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Module); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_mycel_resolver_module_v1_module_proto_rawDesc, - NumEnums: 0, - NumMessages: 1, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_mycel_resolver_module_v1_module_proto_goTypes, - DependencyIndexes: file_mycel_resolver_module_v1_module_proto_depIdxs, - MessageInfos: file_mycel_resolver_module_v1_module_proto_msgTypes, - }.Build() - File_mycel_resolver_module_v1_module_proto = out.File - file_mycel_resolver_module_v1_module_proto_rawDesc = nil - file_mycel_resolver_module_v1_module_proto_goTypes = nil - file_mycel_resolver_module_v1_module_proto_depIdxs = nil -} diff --git a/api/mycel/resolver/v1beta1/genesis.pulsar.go b/api/mycel/resolver/v1beta1/genesis.pulsar.go deleted file mode 100644 index 4733695d..00000000 --- a/api/mycel/resolver/v1beta1/genesis.pulsar.go +++ /dev/null @@ -1,596 +0,0 @@ -// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. -package types - -import ( - fmt "fmt" - runtime "github.com/cosmos/cosmos-proto/runtime" - _ "github.com/cosmos/gogoproto/gogoproto" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoiface "google.golang.org/protobuf/runtime/protoiface" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - io "io" - reflect "reflect" - sync "sync" -) - -var ( - md_GenesisState protoreflect.MessageDescriptor - fd_GenesisState_params protoreflect.FieldDescriptor -) - -func init() { - file_mycel_resolver_v1beta1_genesis_proto_init() - md_GenesisState = File_mycel_resolver_v1beta1_genesis_proto.Messages().ByName("GenesisState") - fd_GenesisState_params = md_GenesisState.Fields().ByName("params") -} - -var _ protoreflect.Message = (*fastReflection_GenesisState)(nil) - -type fastReflection_GenesisState GenesisState - -func (x *GenesisState) ProtoReflect() protoreflect.Message { - return (*fastReflection_GenesisState)(x) -} - -func (x *GenesisState) slowProtoReflect() protoreflect.Message { - mi := &file_mycel_resolver_v1beta1_genesis_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_GenesisState_messageType fastReflection_GenesisState_messageType -var _ protoreflect.MessageType = fastReflection_GenesisState_messageType{} - -type fastReflection_GenesisState_messageType struct{} - -func (x fastReflection_GenesisState_messageType) Zero() protoreflect.Message { - return (*fastReflection_GenesisState)(nil) -} -func (x fastReflection_GenesisState_messageType) New() protoreflect.Message { - return new(fastReflection_GenesisState) -} -func (x fastReflection_GenesisState_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_GenesisState -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_GenesisState) Descriptor() protoreflect.MessageDescriptor { - return md_GenesisState -} - -// 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_GenesisState) Type() protoreflect.MessageType { - return _fastReflection_GenesisState_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_GenesisState) New() protoreflect.Message { - return new(fastReflection_GenesisState) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_GenesisState) Interface() protoreflect.ProtoMessage { - return (*GenesisState)(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_GenesisState) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Params != nil { - value := protoreflect.ValueOfMessage(x.Params.ProtoReflect()) - if !f(fd_GenesisState_params, 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_GenesisState) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "mycel.resolver.v1beta1.GenesisState.params": - return x.Params != nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.resolver.v1beta1.GenesisState")) - } - panic(fmt.Errorf("message mycel.resolver.v1beta1.GenesisState 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_GenesisState) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "mycel.resolver.v1beta1.GenesisState.params": - x.Params = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.resolver.v1beta1.GenesisState")) - } - panic(fmt.Errorf("message mycel.resolver.v1beta1.GenesisState 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_GenesisState) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "mycel.resolver.v1beta1.GenesisState.params": - value := x.Params - return protoreflect.ValueOfMessage(value.ProtoReflect()) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.resolver.v1beta1.GenesisState")) - } - panic(fmt.Errorf("message mycel.resolver.v1beta1.GenesisState 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_GenesisState) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "mycel.resolver.v1beta1.GenesisState.params": - x.Params = value.Message().Interface().(*Params) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.resolver.v1beta1.GenesisState")) - } - panic(fmt.Errorf("message mycel.resolver.v1beta1.GenesisState 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_GenesisState) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "mycel.resolver.v1beta1.GenesisState.params": - if x.Params == nil { - x.Params = new(Params) - } - return protoreflect.ValueOfMessage(x.Params.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.resolver.v1beta1.GenesisState")) - } - panic(fmt.Errorf("message mycel.resolver.v1beta1.GenesisState 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_GenesisState) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "mycel.resolver.v1beta1.GenesisState.params": - m := new(Params) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.resolver.v1beta1.GenesisState")) - } - panic(fmt.Errorf("message mycel.resolver.v1beta1.GenesisState 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_GenesisState) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in mycel.resolver.v1beta1.GenesisState", 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_GenesisState) 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_GenesisState) 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_GenesisState) 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_GenesisState) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*GenesisState) - 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.Params != nil { - l = options.Size(x.Params) - 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().(*GenesisState) - 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.Params != nil { - encoded, err := options.Marshal(x.Params) - 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().(*GenesisState) - 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: GenesisState: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: GenesisState: 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) - } - 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.Params == nil { - x.Params = &Params{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Params); 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/resolver/v1beta1/genesis.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) -) - -// GenesisState defines the resolver module's genesis state. -type GenesisState struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"` -} - -func (x *GenesisState) Reset() { - *x = GenesisState{} - if protoimpl.UnsafeEnabled { - mi := &file_mycel_resolver_v1beta1_genesis_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GenesisState) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GenesisState) ProtoMessage() {} - -// Deprecated: Use GenesisState.ProtoReflect.Descriptor instead. -func (*GenesisState) Descriptor() ([]byte, []int) { - return file_mycel_resolver_v1beta1_genesis_proto_rawDescGZIP(), []int{0} -} - -func (x *GenesisState) GetParams() *Params { - if x != nil { - return x.Params - } - return nil -} - -var File_mycel_resolver_v1beta1_genesis_proto protoreflect.FileDescriptor - -var file_mycel_resolver_v1beta1_genesis_proto_rawDesc = []byte{ - 0x0a, 0x24, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, - 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x67, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x16, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x72, 0x65, - 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 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, 0x23, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2f, 0x72, 0x65, 0x73, 0x6f, - 0x6c, 0x76, 0x65, 0x72, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x70, 0x61, 0x72, - 0x61, 0x6d, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x4c, 0x0a, 0x0c, 0x47, 0x65, 0x6e, - 0x65, 0x73, 0x69, 0x73, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x3c, 0x0a, 0x06, 0x70, 0x61, 0x72, - 0x61, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x6d, 0x79, 0x63, 0x65, - 0x6c, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 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, 0x42, 0xd4, 0x01, 0x0a, 0x1a, 0x63, 0x6f, 0x6d, 0x2e, - 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x2e, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x42, 0x0c, 0x47, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x50, - 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2e, 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, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, - 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0xa2, 0x02, 0x03, 0x4d, 0x52, 0x58, 0xaa, 0x02, 0x16, 0x4d, - 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x2e, 0x56, 0x31, - 0x62, 0x65, 0x74, 0x61, 0x31, 0xca, 0x02, 0x16, 0x4d, 0x79, 0x63, 0x65, 0x6c, 0x5c, 0x52, 0x65, - 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xe2, 0x02, - 0x22, 0x4d, 0x79, 0x63, 0x65, 0x6c, 0x5c, 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x5c, - 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, - 0x61, 0x74, 0x61, 0xea, 0x02, 0x18, 0x4d, 0x79, 0x63, 0x65, 0x6c, 0x3a, 0x3a, 0x52, 0x65, 0x73, - 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x62, 0x06, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_mycel_resolver_v1beta1_genesis_proto_rawDescOnce sync.Once - file_mycel_resolver_v1beta1_genesis_proto_rawDescData = file_mycel_resolver_v1beta1_genesis_proto_rawDesc -) - -func file_mycel_resolver_v1beta1_genesis_proto_rawDescGZIP() []byte { - file_mycel_resolver_v1beta1_genesis_proto_rawDescOnce.Do(func() { - file_mycel_resolver_v1beta1_genesis_proto_rawDescData = protoimpl.X.CompressGZIP(file_mycel_resolver_v1beta1_genesis_proto_rawDescData) - }) - return file_mycel_resolver_v1beta1_genesis_proto_rawDescData -} - -var file_mycel_resolver_v1beta1_genesis_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_mycel_resolver_v1beta1_genesis_proto_goTypes = []interface{}{ - (*GenesisState)(nil), // 0: mycel.resolver.v1beta1.GenesisState - (*Params)(nil), // 1: mycel.resolver.v1beta1.Params -} -var file_mycel_resolver_v1beta1_genesis_proto_depIdxs = []int32{ - 1, // 0: mycel.resolver.v1beta1.GenesisState.params:type_name -> mycel.resolver.v1beta1.Params - 1, // [1:1] is the sub-list for method output_type - 1, // [1:1] is the sub-list for method input_type - 1, // [1:1] is the sub-list for extension type_name - 1, // [1:1] is the sub-list for extension extendee - 0, // [0:1] is the sub-list for field type_name -} - -func init() { file_mycel_resolver_v1beta1_genesis_proto_init() } -func file_mycel_resolver_v1beta1_genesis_proto_init() { - if File_mycel_resolver_v1beta1_genesis_proto != nil { - return - } - file_mycel_resolver_v1beta1_params_proto_init() - if !protoimpl.UnsafeEnabled { - file_mycel_resolver_v1beta1_genesis_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GenesisState); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_mycel_resolver_v1beta1_genesis_proto_rawDesc, - NumEnums: 0, - NumMessages: 1, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_mycel_resolver_v1beta1_genesis_proto_goTypes, - DependencyIndexes: file_mycel_resolver_v1beta1_genesis_proto_depIdxs, - MessageInfos: file_mycel_resolver_v1beta1_genesis_proto_msgTypes, - }.Build() - File_mycel_resolver_v1beta1_genesis_proto = out.File - file_mycel_resolver_v1beta1_genesis_proto_rawDesc = nil - file_mycel_resolver_v1beta1_genesis_proto_goTypes = nil - file_mycel_resolver_v1beta1_genesis_proto_depIdxs = nil -} diff --git a/api/mycel/resolver/v1beta1/params.pulsar.go b/api/mycel/resolver/v1beta1/params.pulsar.go deleted file mode 100644 index b6d72656..00000000 --- a/api/mycel/resolver/v1beta1/params.pulsar.go +++ /dev/null @@ -1,499 +0,0 @@ -// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. -package types - -import ( - fmt "fmt" - runtime "github.com/cosmos/cosmos-proto/runtime" - _ "github.com/cosmos/gogoproto/gogoproto" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoiface "google.golang.org/protobuf/runtime/protoiface" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - io "io" - reflect "reflect" - sync "sync" -) - -var ( - md_Params protoreflect.MessageDescriptor -) - -func init() { - file_mycel_resolver_v1beta1_params_proto_init() - md_Params = File_mycel_resolver_v1beta1_params_proto.Messages().ByName("Params") -} - -var _ protoreflect.Message = (*fastReflection_Params)(nil) - -type fastReflection_Params Params - -func (x *Params) ProtoReflect() protoreflect.Message { - return (*fastReflection_Params)(x) -} - -func (x *Params) slowProtoReflect() protoreflect.Message { - mi := &file_mycel_resolver_v1beta1_params_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_Params_messageType fastReflection_Params_messageType -var _ protoreflect.MessageType = fastReflection_Params_messageType{} - -type fastReflection_Params_messageType struct{} - -func (x fastReflection_Params_messageType) Zero() protoreflect.Message { - return (*fastReflection_Params)(nil) -} -func (x fastReflection_Params_messageType) New() protoreflect.Message { - return new(fastReflection_Params) -} -func (x fastReflection_Params_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_Params -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_Params) Descriptor() protoreflect.MessageDescriptor { - return md_Params -} - -// 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_Params) Type() protoreflect.MessageType { - return _fastReflection_Params_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_Params) New() protoreflect.Message { - return new(fastReflection_Params) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_Params) Interface() protoreflect.ProtoMessage { - return (*Params)(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_Params) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_Params) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.resolver.v1beta1.Params")) - } - panic(fmt.Errorf("message mycel.resolver.v1beta1.Params 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_Params) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.resolver.v1beta1.Params")) - } - panic(fmt.Errorf("message mycel.resolver.v1beta1.Params 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_Params) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.resolver.v1beta1.Params")) - } - panic(fmt.Errorf("message mycel.resolver.v1beta1.Params 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_Params) 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.resolver.v1beta1.Params")) - } - panic(fmt.Errorf("message mycel.resolver.v1beta1.Params 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_Params) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.resolver.v1beta1.Params")) - } - panic(fmt.Errorf("message mycel.resolver.v1beta1.Params 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_Params) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.resolver.v1beta1.Params")) - } - panic(fmt.Errorf("message mycel.resolver.v1beta1.Params 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_Params) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in mycel.resolver.v1beta1.Params", 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_Params) 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_Params) 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_Params) 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_Params) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*Params) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*Params) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*Params) - 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: Params: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Params: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.27.0 -// protoc (unknown) -// source: mycel/resolver/v1beta1/params.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) -) - -// Params defines the parameters for the module. -type Params struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *Params) Reset() { - *x = Params{} - if protoimpl.UnsafeEnabled { - mi := &file_mycel_resolver_v1beta1_params_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Params) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Params) ProtoMessage() {} - -// Deprecated: Use Params.ProtoReflect.Descriptor instead. -func (*Params) Descriptor() ([]byte, []int) { - return file_mycel_resolver_v1beta1_params_proto_rawDescGZIP(), []int{0} -} - -var File_mycel_resolver_v1beta1_params_proto protoreflect.FileDescriptor - -var file_mycel_resolver_v1beta1_params_proto_rawDesc = []byte{ - 0x0a, 0x23, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, - 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x16, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x72, 0x65, 0x73, - 0x6f, 0x6c, 0x76, 0x65, 0x72, 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, 0x22, 0x0e, 0x0a, 0x06, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x3a, 0x04, 0x98, - 0xa0, 0x1f, 0x00, 0x42, 0xd3, 0x01, 0x0a, 0x1a, 0x63, 0x6f, 0x6d, 0x2e, 0x6d, 0x79, 0x63, 0x65, - 0x6c, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, - 0x61, 0x31, 0x42, 0x0b, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, - 0x01, 0x5a, 0x2e, 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, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x2f, 0x74, 0x79, 0x70, 0x65, - 0x73, 0xa2, 0x02, 0x03, 0x4d, 0x52, 0x58, 0xaa, 0x02, 0x16, 0x4d, 0x79, 0x63, 0x65, 0x6c, 0x2e, - 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x2e, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, - 0xca, 0x02, 0x16, 0x4d, 0x79, 0x63, 0x65, 0x6c, 0x5c, 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, - 0x72, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xe2, 0x02, 0x22, 0x4d, 0x79, 0x63, 0x65, - 0x6c, 0x5c, 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, - 0x61, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, - 0x18, 0x4d, 0x79, 0x63, 0x65, 0x6c, 0x3a, 0x3a, 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, - 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x33, -} - -var ( - file_mycel_resolver_v1beta1_params_proto_rawDescOnce sync.Once - file_mycel_resolver_v1beta1_params_proto_rawDescData = file_mycel_resolver_v1beta1_params_proto_rawDesc -) - -func file_mycel_resolver_v1beta1_params_proto_rawDescGZIP() []byte { - file_mycel_resolver_v1beta1_params_proto_rawDescOnce.Do(func() { - file_mycel_resolver_v1beta1_params_proto_rawDescData = protoimpl.X.CompressGZIP(file_mycel_resolver_v1beta1_params_proto_rawDescData) - }) - return file_mycel_resolver_v1beta1_params_proto_rawDescData -} - -var file_mycel_resolver_v1beta1_params_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_mycel_resolver_v1beta1_params_proto_goTypes = []interface{}{ - (*Params)(nil), // 0: mycel.resolver.v1beta1.Params -} -var file_mycel_resolver_v1beta1_params_proto_depIdxs = []int32{ - 0, // [0:0] is the sub-list for method output_type - 0, // [0:0] is the sub-list for method input_type - 0, // [0:0] is the sub-list for extension type_name - 0, // [0:0] is the sub-list for extension extendee - 0, // [0:0] is the sub-list for field type_name -} - -func init() { file_mycel_resolver_v1beta1_params_proto_init() } -func file_mycel_resolver_v1beta1_params_proto_init() { - if File_mycel_resolver_v1beta1_params_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_mycel_resolver_v1beta1_params_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Params); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_mycel_resolver_v1beta1_params_proto_rawDesc, - NumEnums: 0, - NumMessages: 1, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_mycel_resolver_v1beta1_params_proto_goTypes, - DependencyIndexes: file_mycel_resolver_v1beta1_params_proto_depIdxs, - MessageInfos: file_mycel_resolver_v1beta1_params_proto_msgTypes, - }.Build() - File_mycel_resolver_v1beta1_params_proto = out.File - file_mycel_resolver_v1beta1_params_proto_rawDesc = nil - file_mycel_resolver_v1beta1_params_proto_goTypes = nil - file_mycel_resolver_v1beta1_params_proto_depIdxs = nil -} diff --git a/api/mycel/resolver/v1beta1/query.pulsar.go b/api/mycel/resolver/v1beta1/query.pulsar.go deleted file mode 100644 index dce98165..00000000 --- a/api/mycel/resolver/v1beta1/query.pulsar.go +++ /dev/null @@ -1,5700 +0,0 @@ -// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. -package types - -import ( - fmt "fmt" - runtime "github.com/cosmos/cosmos-proto/runtime" - _ "github.com/cosmos/gogoproto/gogoproto" - types "github.com/mycel-domain/mycel/x/registry/types" - _ "google.golang.org/genproto/googleapis/api/annotations" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoiface "google.golang.org/protobuf/runtime/protoiface" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - io "io" - reflect "reflect" - sort "sort" - sync "sync" -) - -var ( - md_QueryParamsRequest protoreflect.MessageDescriptor -) - -func init() { - file_mycel_resolver_v1beta1_query_proto_init() - md_QueryParamsRequest = File_mycel_resolver_v1beta1_query_proto.Messages().ByName("QueryParamsRequest") -} - -var _ protoreflect.Message = (*fastReflection_QueryParamsRequest)(nil) - -type fastReflection_QueryParamsRequest QueryParamsRequest - -func (x *QueryParamsRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryParamsRequest)(x) -} - -func (x *QueryParamsRequest) slowProtoReflect() protoreflect.Message { - mi := &file_mycel_resolver_v1beta1_query_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_QueryParamsRequest_messageType fastReflection_QueryParamsRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryParamsRequest_messageType{} - -type fastReflection_QueryParamsRequest_messageType struct{} - -func (x fastReflection_QueryParamsRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryParamsRequest)(nil) -} -func (x fastReflection_QueryParamsRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryParamsRequest) -} -func (x fastReflection_QueryParamsRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryParamsRequest -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_QueryParamsRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryParamsRequest -} - -// 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 -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryParamsRequest) New() protoreflect.Message { - return new(fastReflection_QueryParamsRequest) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryParamsRequest) Interface() protoreflect.ProtoMessage { - return (*QueryParamsRequest)(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_QueryParamsRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryParamsRequest) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.resolver.v1beta1.QueryParamsRequest")) - } - panic(fmt.Errorf("message mycel.resolver.v1beta1.QueryParamsRequest 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_QueryParamsRequest) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.resolver.v1beta1.QueryParamsRequest")) - } - panic(fmt.Errorf("message mycel.resolver.v1beta1.QueryParamsRequest 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_QueryParamsRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.resolver.v1beta1.QueryParamsRequest")) - } - panic(fmt.Errorf("message mycel.resolver.v1beta1.QueryParamsRequest 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_QueryParamsRequest) 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.resolver.v1beta1.QueryParamsRequest")) - } - panic(fmt.Errorf("message mycel.resolver.v1beta1.QueryParamsRequest 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_QueryParamsRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.resolver.v1beta1.QueryParamsRequest")) - } - panic(fmt.Errorf("message mycel.resolver.v1beta1.QueryParamsRequest 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 { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.resolver.v1beta1.QueryParamsRequest")) - } - panic(fmt.Errorf("message mycel.resolver.v1beta1.QueryParamsRequest 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 { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in mycel.resolver.v1beta1.QueryParamsRequest", 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_QueryParamsRequest) 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_QueryParamsRequest) 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_QueryParamsRequest) 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_QueryParamsRequest) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryParamsRequest) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryParamsRequest) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryParamsRequest) - 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: QueryParamsRequest: 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) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_QueryParamsResponse protoreflect.MessageDescriptor - fd_QueryParamsResponse_params protoreflect.FieldDescriptor -) - -func init() { - file_mycel_resolver_v1beta1_query_proto_init() - md_QueryParamsResponse = File_mycel_resolver_v1beta1_query_proto.Messages().ByName("QueryParamsResponse") - fd_QueryParamsResponse_params = md_QueryParamsResponse.Fields().ByName("params") -} - -var _ protoreflect.Message = (*fastReflection_QueryParamsResponse)(nil) - -type fastReflection_QueryParamsResponse QueryParamsResponse - -func (x *QueryParamsResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryParamsResponse)(x) -} - -func (x *QueryParamsResponse) slowProtoReflect() protoreflect.Message { - mi := &file_mycel_resolver_v1beta1_query_proto_msgTypes[1] - 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_QueryParamsResponse_messageType fastReflection_QueryParamsResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryParamsResponse_messageType{} - -type fastReflection_QueryParamsResponse_messageType struct{} - -func (x fastReflection_QueryParamsResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryParamsResponse)(nil) -} -func (x fastReflection_QueryParamsResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryParamsResponse) -} -func (x fastReflection_QueryParamsResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryParamsResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_QueryParamsResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryParamsResponse -} - -// 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 -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryParamsResponse) New() protoreflect.Message { - return new(fastReflection_QueryParamsResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryParamsResponse) Interface() protoreflect.ProtoMessage { - return (*QueryParamsResponse)(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_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) { - 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_QueryParamsResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "mycel.resolver.v1beta1.QueryParamsResponse.params": - return x.Params != nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.resolver.v1beta1.QueryParamsResponse")) - } - panic(fmt.Errorf("message mycel.resolver.v1beta1.QueryParamsResponse 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_QueryParamsResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "mycel.resolver.v1beta1.QueryParamsResponse.params": - x.Params = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.resolver.v1beta1.QueryParamsResponse")) - } - panic(fmt.Errorf("message mycel.resolver.v1beta1.QueryParamsResponse 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_QueryParamsResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "mycel.resolver.v1beta1.QueryParamsResponse.params": - value := x.Params - return protoreflect.ValueOfMessage(value.ProtoReflect()) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.resolver.v1beta1.QueryParamsResponse")) - } - panic(fmt.Errorf("message mycel.resolver.v1beta1.QueryParamsResponse 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_QueryParamsResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "mycel.resolver.v1beta1.QueryParamsResponse.params": - x.Params = value.Message().Interface().(*Params) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.resolver.v1beta1.QueryParamsResponse")) - } - panic(fmt.Errorf("message mycel.resolver.v1beta1.QueryParamsResponse 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_QueryParamsResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "mycel.resolver.v1beta1.QueryParamsResponse.params": - if x.Params == nil { - x.Params = new(Params) - } - return protoreflect.ValueOfMessage(x.Params.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.resolver.v1beta1.QueryParamsResponse")) - } - panic(fmt.Errorf("message mycel.resolver.v1beta1.QueryParamsResponse 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 { - switch fd.FullName() { - case "mycel.resolver.v1beta1.QueryParamsResponse.params": - m := new(Params) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.resolver.v1beta1.QueryParamsResponse")) - } - panic(fmt.Errorf("message mycel.resolver.v1beta1.QueryParamsResponse 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 { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in mycel.resolver.v1beta1.QueryParamsResponse", 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_QueryParamsResponse) 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_QueryParamsResponse) 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_QueryParamsResponse) 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_QueryParamsResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryParamsResponse) - 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.Params != nil { - l = options.Size(x.Params) - 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().(*QueryParamsResponse) - 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.Params != nil { - encoded, err := options.Marshal(x.Params) - 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().(*QueryParamsResponse) - 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: QueryParamsResponse: 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) - } - 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) - } - 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.Params == nil { - x.Params = &Params{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Params); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_QueryWalletRecordRequest protoreflect.MessageDescriptor - fd_QueryWalletRecordRequest_domain_name protoreflect.FieldDescriptor - fd_QueryWalletRecordRequest_domain_parent protoreflect.FieldDescriptor - fd_QueryWalletRecordRequest_wallet_record_type protoreflect.FieldDescriptor -) - -func init() { - file_mycel_resolver_v1beta1_query_proto_init() - md_QueryWalletRecordRequest = File_mycel_resolver_v1beta1_query_proto.Messages().ByName("QueryWalletRecordRequest") - fd_QueryWalletRecordRequest_domain_name = md_QueryWalletRecordRequest.Fields().ByName("domain_name") - fd_QueryWalletRecordRequest_domain_parent = md_QueryWalletRecordRequest.Fields().ByName("domain_parent") - fd_QueryWalletRecordRequest_wallet_record_type = md_QueryWalletRecordRequest.Fields().ByName("wallet_record_type") -} - -var _ protoreflect.Message = (*fastReflection_QueryWalletRecordRequest)(nil) - -type fastReflection_QueryWalletRecordRequest QueryWalletRecordRequest - -func (x *QueryWalletRecordRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryWalletRecordRequest)(x) -} - -func (x *QueryWalletRecordRequest) slowProtoReflect() protoreflect.Message { - mi := &file_mycel_resolver_v1beta1_query_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_QueryWalletRecordRequest_messageType fastReflection_QueryWalletRecordRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryWalletRecordRequest_messageType{} - -type fastReflection_QueryWalletRecordRequest_messageType struct{} - -func (x fastReflection_QueryWalletRecordRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryWalletRecordRequest)(nil) -} -func (x fastReflection_QueryWalletRecordRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryWalletRecordRequest) -} -func (x fastReflection_QueryWalletRecordRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryWalletRecordRequest -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_QueryWalletRecordRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryWalletRecordRequest -} - -// 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_QueryWalletRecordRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryWalletRecordRequest_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryWalletRecordRequest) New() protoreflect.Message { - return new(fastReflection_QueryWalletRecordRequest) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryWalletRecordRequest) Interface() protoreflect.ProtoMessage { - return (*QueryWalletRecordRequest)(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_QueryWalletRecordRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.DomainName != "" { - value := protoreflect.ValueOfString(x.DomainName) - if !f(fd_QueryWalletRecordRequest_domain_name, value) { - return - } - } - if x.DomainParent != "" { - value := protoreflect.ValueOfString(x.DomainParent) - if !f(fd_QueryWalletRecordRequest_domain_parent, value) { - return - } - } - if x.WalletRecordType != "" { - value := protoreflect.ValueOfString(x.WalletRecordType) - if !f(fd_QueryWalletRecordRequest_wallet_record_type, 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_QueryWalletRecordRequest) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "mycel.resolver.v1beta1.QueryWalletRecordRequest.domain_name": - return x.DomainName != "" - case "mycel.resolver.v1beta1.QueryWalletRecordRequest.domain_parent": - return x.DomainParent != "" - case "mycel.resolver.v1beta1.QueryWalletRecordRequest.wallet_record_type": - return x.WalletRecordType != "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.resolver.v1beta1.QueryWalletRecordRequest")) - } - panic(fmt.Errorf("message mycel.resolver.v1beta1.QueryWalletRecordRequest 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_QueryWalletRecordRequest) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "mycel.resolver.v1beta1.QueryWalletRecordRequest.domain_name": - x.DomainName = "" - case "mycel.resolver.v1beta1.QueryWalletRecordRequest.domain_parent": - x.DomainParent = "" - case "mycel.resolver.v1beta1.QueryWalletRecordRequest.wallet_record_type": - x.WalletRecordType = "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.resolver.v1beta1.QueryWalletRecordRequest")) - } - panic(fmt.Errorf("message mycel.resolver.v1beta1.QueryWalletRecordRequest 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_QueryWalletRecordRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "mycel.resolver.v1beta1.QueryWalletRecordRequest.domain_name": - value := x.DomainName - return protoreflect.ValueOfString(value) - case "mycel.resolver.v1beta1.QueryWalletRecordRequest.domain_parent": - value := x.DomainParent - return protoreflect.ValueOfString(value) - case "mycel.resolver.v1beta1.QueryWalletRecordRequest.wallet_record_type": - value := x.WalletRecordType - return protoreflect.ValueOfString(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.resolver.v1beta1.QueryWalletRecordRequest")) - } - panic(fmt.Errorf("message mycel.resolver.v1beta1.QueryWalletRecordRequest 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_QueryWalletRecordRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "mycel.resolver.v1beta1.QueryWalletRecordRequest.domain_name": - x.DomainName = value.Interface().(string) - case "mycel.resolver.v1beta1.QueryWalletRecordRequest.domain_parent": - x.DomainParent = value.Interface().(string) - case "mycel.resolver.v1beta1.QueryWalletRecordRequest.wallet_record_type": - x.WalletRecordType = value.Interface().(string) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.resolver.v1beta1.QueryWalletRecordRequest")) - } - panic(fmt.Errorf("message mycel.resolver.v1beta1.QueryWalletRecordRequest 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_QueryWalletRecordRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "mycel.resolver.v1beta1.QueryWalletRecordRequest.domain_name": - panic(fmt.Errorf("field domain_name of message mycel.resolver.v1beta1.QueryWalletRecordRequest is not mutable")) - case "mycel.resolver.v1beta1.QueryWalletRecordRequest.domain_parent": - panic(fmt.Errorf("field domain_parent of message mycel.resolver.v1beta1.QueryWalletRecordRequest is not mutable")) - case "mycel.resolver.v1beta1.QueryWalletRecordRequest.wallet_record_type": - panic(fmt.Errorf("field wallet_record_type of message mycel.resolver.v1beta1.QueryWalletRecordRequest is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.resolver.v1beta1.QueryWalletRecordRequest")) - } - panic(fmt.Errorf("message mycel.resolver.v1beta1.QueryWalletRecordRequest 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_QueryWalletRecordRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "mycel.resolver.v1beta1.QueryWalletRecordRequest.domain_name": - return protoreflect.ValueOfString("") - case "mycel.resolver.v1beta1.QueryWalletRecordRequest.domain_parent": - return protoreflect.ValueOfString("") - case "mycel.resolver.v1beta1.QueryWalletRecordRequest.wallet_record_type": - return protoreflect.ValueOfString("") - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.resolver.v1beta1.QueryWalletRecordRequest")) - } - panic(fmt.Errorf("message mycel.resolver.v1beta1.QueryWalletRecordRequest 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_QueryWalletRecordRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in mycel.resolver.v1beta1.QueryWalletRecordRequest", 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_QueryWalletRecordRequest) 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_QueryWalletRecordRequest) 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_QueryWalletRecordRequest) 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_QueryWalletRecordRequest) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryWalletRecordRequest) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - l = len(x.DomainName) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.DomainParent) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.WalletRecordType) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryWalletRecordRequest) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if len(x.WalletRecordType) > 0 { - i -= len(x.WalletRecordType) - copy(dAtA[i:], x.WalletRecordType) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.WalletRecordType))) - i-- - dAtA[i] = 0x1a - } - if len(x.DomainParent) > 0 { - i -= len(x.DomainParent) - copy(dAtA[i:], x.DomainParent) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.DomainParent))) - i-- - dAtA[i] = 0x12 - } - if len(x.DomainName) > 0 { - i -= len(x.DomainName) - copy(dAtA[i:], x.DomainName) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.DomainName))) - 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().(*QueryWalletRecordRequest) - 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: QueryWalletRecordRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryWalletRecordRequest: 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 DomainName", 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.DomainName = 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 DomainParent", 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.DomainParent = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field WalletRecordType", 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.WalletRecordType = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_QueryWalletRecordResponse protoreflect.MessageDescriptor - fd_QueryWalletRecordResponse_value protoreflect.FieldDescriptor -) - -func init() { - file_mycel_resolver_v1beta1_query_proto_init() - md_QueryWalletRecordResponse = File_mycel_resolver_v1beta1_query_proto.Messages().ByName("QueryWalletRecordResponse") - fd_QueryWalletRecordResponse_value = md_QueryWalletRecordResponse.Fields().ByName("value") -} - -var _ protoreflect.Message = (*fastReflection_QueryWalletRecordResponse)(nil) - -type fastReflection_QueryWalletRecordResponse QueryWalletRecordResponse - -func (x *QueryWalletRecordResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryWalletRecordResponse)(x) -} - -func (x *QueryWalletRecordResponse) slowProtoReflect() protoreflect.Message { - mi := &file_mycel_resolver_v1beta1_query_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_QueryWalletRecordResponse_messageType fastReflection_QueryWalletRecordResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryWalletRecordResponse_messageType{} - -type fastReflection_QueryWalletRecordResponse_messageType struct{} - -func (x fastReflection_QueryWalletRecordResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryWalletRecordResponse)(nil) -} -func (x fastReflection_QueryWalletRecordResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryWalletRecordResponse) -} -func (x fastReflection_QueryWalletRecordResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryWalletRecordResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_QueryWalletRecordResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryWalletRecordResponse -} - -// 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_QueryWalletRecordResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryWalletRecordResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryWalletRecordResponse) New() protoreflect.Message { - return new(fastReflection_QueryWalletRecordResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryWalletRecordResponse) Interface() protoreflect.ProtoMessage { - return (*QueryWalletRecordResponse)(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_QueryWalletRecordResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Value != nil { - value := protoreflect.ValueOfMessage(x.Value.ProtoReflect()) - if !f(fd_QueryWalletRecordResponse_value, 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_QueryWalletRecordResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "mycel.resolver.v1beta1.QueryWalletRecordResponse.value": - return x.Value != nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.resolver.v1beta1.QueryWalletRecordResponse")) - } - panic(fmt.Errorf("message mycel.resolver.v1beta1.QueryWalletRecordResponse 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_QueryWalletRecordResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "mycel.resolver.v1beta1.QueryWalletRecordResponse.value": - x.Value = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.resolver.v1beta1.QueryWalletRecordResponse")) - } - panic(fmt.Errorf("message mycel.resolver.v1beta1.QueryWalletRecordResponse 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_QueryWalletRecordResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "mycel.resolver.v1beta1.QueryWalletRecordResponse.value": - value := x.Value - return protoreflect.ValueOfMessage(value.ProtoReflect()) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.resolver.v1beta1.QueryWalletRecordResponse")) - } - panic(fmt.Errorf("message mycel.resolver.v1beta1.QueryWalletRecordResponse 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_QueryWalletRecordResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "mycel.resolver.v1beta1.QueryWalletRecordResponse.value": - x.Value = value.Message().Interface().(*types.WalletRecord) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.resolver.v1beta1.QueryWalletRecordResponse")) - } - panic(fmt.Errorf("message mycel.resolver.v1beta1.QueryWalletRecordResponse 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_QueryWalletRecordResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "mycel.resolver.v1beta1.QueryWalletRecordResponse.value": - if x.Value == nil { - x.Value = new(types.WalletRecord) - } - return protoreflect.ValueOfMessage(x.Value.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.resolver.v1beta1.QueryWalletRecordResponse")) - } - panic(fmt.Errorf("message mycel.resolver.v1beta1.QueryWalletRecordResponse 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_QueryWalletRecordResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "mycel.resolver.v1beta1.QueryWalletRecordResponse.value": - m := new(types.WalletRecord) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.resolver.v1beta1.QueryWalletRecordResponse")) - } - panic(fmt.Errorf("message mycel.resolver.v1beta1.QueryWalletRecordResponse 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_QueryWalletRecordResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in mycel.resolver.v1beta1.QueryWalletRecordResponse", 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_QueryWalletRecordResponse) 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_QueryWalletRecordResponse) 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_QueryWalletRecordResponse) 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_QueryWalletRecordResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryWalletRecordResponse) - 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.Value != nil { - l = options.Size(x.Value) - 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().(*QueryWalletRecordResponse) - 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.Value != nil { - encoded, err := options.Marshal(x.Value) - 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().(*QueryWalletRecordResponse) - 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: QueryWalletRecordResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryWalletRecordResponse: 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 Value", 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.Value == nil { - x.Value = &types.WalletRecord{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Value); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_QueryDnsRecordRequest protoreflect.MessageDescriptor - fd_QueryDnsRecordRequest_domain_name protoreflect.FieldDescriptor - fd_QueryDnsRecordRequest_domain_parent protoreflect.FieldDescriptor - fd_QueryDnsRecordRequest_dns_record_type protoreflect.FieldDescriptor -) - -func init() { - file_mycel_resolver_v1beta1_query_proto_init() - md_QueryDnsRecordRequest = File_mycel_resolver_v1beta1_query_proto.Messages().ByName("QueryDnsRecordRequest") - fd_QueryDnsRecordRequest_domain_name = md_QueryDnsRecordRequest.Fields().ByName("domain_name") - fd_QueryDnsRecordRequest_domain_parent = md_QueryDnsRecordRequest.Fields().ByName("domain_parent") - fd_QueryDnsRecordRequest_dns_record_type = md_QueryDnsRecordRequest.Fields().ByName("dns_record_type") -} - -var _ protoreflect.Message = (*fastReflection_QueryDnsRecordRequest)(nil) - -type fastReflection_QueryDnsRecordRequest QueryDnsRecordRequest - -func (x *QueryDnsRecordRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryDnsRecordRequest)(x) -} - -func (x *QueryDnsRecordRequest) slowProtoReflect() protoreflect.Message { - mi := &file_mycel_resolver_v1beta1_query_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_QueryDnsRecordRequest_messageType fastReflection_QueryDnsRecordRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryDnsRecordRequest_messageType{} - -type fastReflection_QueryDnsRecordRequest_messageType struct{} - -func (x fastReflection_QueryDnsRecordRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryDnsRecordRequest)(nil) -} -func (x fastReflection_QueryDnsRecordRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryDnsRecordRequest) -} -func (x fastReflection_QueryDnsRecordRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryDnsRecordRequest -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_QueryDnsRecordRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryDnsRecordRequest -} - -// 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_QueryDnsRecordRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryDnsRecordRequest_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryDnsRecordRequest) New() protoreflect.Message { - return new(fastReflection_QueryDnsRecordRequest) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryDnsRecordRequest) Interface() protoreflect.ProtoMessage { - return (*QueryDnsRecordRequest)(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_QueryDnsRecordRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.DomainName != "" { - value := protoreflect.ValueOfString(x.DomainName) - if !f(fd_QueryDnsRecordRequest_domain_name, value) { - return - } - } - if x.DomainParent != "" { - value := protoreflect.ValueOfString(x.DomainParent) - if !f(fd_QueryDnsRecordRequest_domain_parent, value) { - return - } - } - if x.DnsRecordType != "" { - value := protoreflect.ValueOfString(x.DnsRecordType) - if !f(fd_QueryDnsRecordRequest_dns_record_type, 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_QueryDnsRecordRequest) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "mycel.resolver.v1beta1.QueryDnsRecordRequest.domain_name": - return x.DomainName != "" - case "mycel.resolver.v1beta1.QueryDnsRecordRequest.domain_parent": - return x.DomainParent != "" - case "mycel.resolver.v1beta1.QueryDnsRecordRequest.dns_record_type": - return x.DnsRecordType != "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.resolver.v1beta1.QueryDnsRecordRequest")) - } - panic(fmt.Errorf("message mycel.resolver.v1beta1.QueryDnsRecordRequest 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_QueryDnsRecordRequest) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "mycel.resolver.v1beta1.QueryDnsRecordRequest.domain_name": - x.DomainName = "" - case "mycel.resolver.v1beta1.QueryDnsRecordRequest.domain_parent": - x.DomainParent = "" - case "mycel.resolver.v1beta1.QueryDnsRecordRequest.dns_record_type": - x.DnsRecordType = "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.resolver.v1beta1.QueryDnsRecordRequest")) - } - panic(fmt.Errorf("message mycel.resolver.v1beta1.QueryDnsRecordRequest 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_QueryDnsRecordRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "mycel.resolver.v1beta1.QueryDnsRecordRequest.domain_name": - value := x.DomainName - return protoreflect.ValueOfString(value) - case "mycel.resolver.v1beta1.QueryDnsRecordRequest.domain_parent": - value := x.DomainParent - return protoreflect.ValueOfString(value) - case "mycel.resolver.v1beta1.QueryDnsRecordRequest.dns_record_type": - value := x.DnsRecordType - return protoreflect.ValueOfString(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.resolver.v1beta1.QueryDnsRecordRequest")) - } - panic(fmt.Errorf("message mycel.resolver.v1beta1.QueryDnsRecordRequest 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_QueryDnsRecordRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "mycel.resolver.v1beta1.QueryDnsRecordRequest.domain_name": - x.DomainName = value.Interface().(string) - case "mycel.resolver.v1beta1.QueryDnsRecordRequest.domain_parent": - x.DomainParent = value.Interface().(string) - case "mycel.resolver.v1beta1.QueryDnsRecordRequest.dns_record_type": - x.DnsRecordType = value.Interface().(string) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.resolver.v1beta1.QueryDnsRecordRequest")) - } - panic(fmt.Errorf("message mycel.resolver.v1beta1.QueryDnsRecordRequest 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_QueryDnsRecordRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "mycel.resolver.v1beta1.QueryDnsRecordRequest.domain_name": - panic(fmt.Errorf("field domain_name of message mycel.resolver.v1beta1.QueryDnsRecordRequest is not mutable")) - case "mycel.resolver.v1beta1.QueryDnsRecordRequest.domain_parent": - panic(fmt.Errorf("field domain_parent of message mycel.resolver.v1beta1.QueryDnsRecordRequest is not mutable")) - case "mycel.resolver.v1beta1.QueryDnsRecordRequest.dns_record_type": - panic(fmt.Errorf("field dns_record_type of message mycel.resolver.v1beta1.QueryDnsRecordRequest is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.resolver.v1beta1.QueryDnsRecordRequest")) - } - panic(fmt.Errorf("message mycel.resolver.v1beta1.QueryDnsRecordRequest 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_QueryDnsRecordRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "mycel.resolver.v1beta1.QueryDnsRecordRequest.domain_name": - return protoreflect.ValueOfString("") - case "mycel.resolver.v1beta1.QueryDnsRecordRequest.domain_parent": - return protoreflect.ValueOfString("") - case "mycel.resolver.v1beta1.QueryDnsRecordRequest.dns_record_type": - return protoreflect.ValueOfString("") - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.resolver.v1beta1.QueryDnsRecordRequest")) - } - panic(fmt.Errorf("message mycel.resolver.v1beta1.QueryDnsRecordRequest 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_QueryDnsRecordRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in mycel.resolver.v1beta1.QueryDnsRecordRequest", 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_QueryDnsRecordRequest) 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_QueryDnsRecordRequest) 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_QueryDnsRecordRequest) 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_QueryDnsRecordRequest) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryDnsRecordRequest) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - l = len(x.DomainName) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.DomainParent) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.DnsRecordType) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryDnsRecordRequest) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if len(x.DnsRecordType) > 0 { - i -= len(x.DnsRecordType) - copy(dAtA[i:], x.DnsRecordType) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.DnsRecordType))) - i-- - dAtA[i] = 0x1a - } - if len(x.DomainParent) > 0 { - i -= len(x.DomainParent) - copy(dAtA[i:], x.DomainParent) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.DomainParent))) - i-- - dAtA[i] = 0x12 - } - if len(x.DomainName) > 0 { - i -= len(x.DomainName) - copy(dAtA[i:], x.DomainName) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.DomainName))) - 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().(*QueryDnsRecordRequest) - 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: QueryDnsRecordRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryDnsRecordRequest: 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 DomainName", 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.DomainName = 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 DomainParent", 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.DomainParent = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field DnsRecordType", 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.DnsRecordType = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_QueryDnsRecordResponse protoreflect.MessageDescriptor - fd_QueryDnsRecordResponse_value protoreflect.FieldDescriptor -) - -func init() { - file_mycel_resolver_v1beta1_query_proto_init() - md_QueryDnsRecordResponse = File_mycel_resolver_v1beta1_query_proto.Messages().ByName("QueryDnsRecordResponse") - fd_QueryDnsRecordResponse_value = md_QueryDnsRecordResponse.Fields().ByName("value") -} - -var _ protoreflect.Message = (*fastReflection_QueryDnsRecordResponse)(nil) - -type fastReflection_QueryDnsRecordResponse QueryDnsRecordResponse - -func (x *QueryDnsRecordResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryDnsRecordResponse)(x) -} - -func (x *QueryDnsRecordResponse) slowProtoReflect() protoreflect.Message { - mi := &file_mycel_resolver_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_QueryDnsRecordResponse_messageType fastReflection_QueryDnsRecordResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryDnsRecordResponse_messageType{} - -type fastReflection_QueryDnsRecordResponse_messageType struct{} - -func (x fastReflection_QueryDnsRecordResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryDnsRecordResponse)(nil) -} -func (x fastReflection_QueryDnsRecordResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryDnsRecordResponse) -} -func (x fastReflection_QueryDnsRecordResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryDnsRecordResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_QueryDnsRecordResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryDnsRecordResponse -} - -// 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_QueryDnsRecordResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryDnsRecordResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryDnsRecordResponse) New() protoreflect.Message { - return new(fastReflection_QueryDnsRecordResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryDnsRecordResponse) Interface() protoreflect.ProtoMessage { - return (*QueryDnsRecordResponse)(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_QueryDnsRecordResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Value != nil { - value := protoreflect.ValueOfMessage(x.Value.ProtoReflect()) - if !f(fd_QueryDnsRecordResponse_value, 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_QueryDnsRecordResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "mycel.resolver.v1beta1.QueryDnsRecordResponse.value": - return x.Value != nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.resolver.v1beta1.QueryDnsRecordResponse")) - } - panic(fmt.Errorf("message mycel.resolver.v1beta1.QueryDnsRecordResponse 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_QueryDnsRecordResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "mycel.resolver.v1beta1.QueryDnsRecordResponse.value": - x.Value = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.resolver.v1beta1.QueryDnsRecordResponse")) - } - panic(fmt.Errorf("message mycel.resolver.v1beta1.QueryDnsRecordResponse 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_QueryDnsRecordResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "mycel.resolver.v1beta1.QueryDnsRecordResponse.value": - value := x.Value - return protoreflect.ValueOfMessage(value.ProtoReflect()) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.resolver.v1beta1.QueryDnsRecordResponse")) - } - panic(fmt.Errorf("message mycel.resolver.v1beta1.QueryDnsRecordResponse 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_QueryDnsRecordResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "mycel.resolver.v1beta1.QueryDnsRecordResponse.value": - x.Value = value.Message().Interface().(*types.DnsRecord) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.resolver.v1beta1.QueryDnsRecordResponse")) - } - panic(fmt.Errorf("message mycel.resolver.v1beta1.QueryDnsRecordResponse 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_QueryDnsRecordResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "mycel.resolver.v1beta1.QueryDnsRecordResponse.value": - if x.Value == nil { - x.Value = new(types.DnsRecord) - } - return protoreflect.ValueOfMessage(x.Value.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.resolver.v1beta1.QueryDnsRecordResponse")) - } - panic(fmt.Errorf("message mycel.resolver.v1beta1.QueryDnsRecordResponse 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_QueryDnsRecordResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "mycel.resolver.v1beta1.QueryDnsRecordResponse.value": - m := new(types.DnsRecord) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.resolver.v1beta1.QueryDnsRecordResponse")) - } - panic(fmt.Errorf("message mycel.resolver.v1beta1.QueryDnsRecordResponse 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_QueryDnsRecordResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in mycel.resolver.v1beta1.QueryDnsRecordResponse", 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_QueryDnsRecordResponse) 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_QueryDnsRecordResponse) 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_QueryDnsRecordResponse) 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_QueryDnsRecordResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryDnsRecordResponse) - 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.Value != nil { - l = options.Size(x.Value) - 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().(*QueryDnsRecordResponse) - 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.Value != nil { - encoded, err := options.Marshal(x.Value) - 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().(*QueryDnsRecordResponse) - 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: QueryDnsRecordResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryDnsRecordResponse: 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 Value", 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.Value == nil { - x.Value = &types.DnsRecord{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Value); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_QueryAllRecordsRequest protoreflect.MessageDescriptor - fd_QueryAllRecordsRequest_domain_name protoreflect.FieldDescriptor - fd_QueryAllRecordsRequest_domain_parent protoreflect.FieldDescriptor -) - -func init() { - file_mycel_resolver_v1beta1_query_proto_init() - md_QueryAllRecordsRequest = File_mycel_resolver_v1beta1_query_proto.Messages().ByName("QueryAllRecordsRequest") - fd_QueryAllRecordsRequest_domain_name = md_QueryAllRecordsRequest.Fields().ByName("domain_name") - fd_QueryAllRecordsRequest_domain_parent = md_QueryAllRecordsRequest.Fields().ByName("domain_parent") -} - -var _ protoreflect.Message = (*fastReflection_QueryAllRecordsRequest)(nil) - -type fastReflection_QueryAllRecordsRequest QueryAllRecordsRequest - -func (x *QueryAllRecordsRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryAllRecordsRequest)(x) -} - -func (x *QueryAllRecordsRequest) slowProtoReflect() protoreflect.Message { - mi := &file_mycel_resolver_v1beta1_query_proto_msgTypes[6] - 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_QueryAllRecordsRequest_messageType fastReflection_QueryAllRecordsRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryAllRecordsRequest_messageType{} - -type fastReflection_QueryAllRecordsRequest_messageType struct{} - -func (x fastReflection_QueryAllRecordsRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryAllRecordsRequest)(nil) -} -func (x fastReflection_QueryAllRecordsRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryAllRecordsRequest) -} -func (x fastReflection_QueryAllRecordsRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryAllRecordsRequest -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_QueryAllRecordsRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryAllRecordsRequest -} - -// 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_QueryAllRecordsRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryAllRecordsRequest_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryAllRecordsRequest) New() protoreflect.Message { - return new(fastReflection_QueryAllRecordsRequest) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryAllRecordsRequest) Interface() protoreflect.ProtoMessage { - return (*QueryAllRecordsRequest)(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_QueryAllRecordsRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.DomainName != "" { - value := protoreflect.ValueOfString(x.DomainName) - if !f(fd_QueryAllRecordsRequest_domain_name, value) { - return - } - } - if x.DomainParent != "" { - value := protoreflect.ValueOfString(x.DomainParent) - if !f(fd_QueryAllRecordsRequest_domain_parent, 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_QueryAllRecordsRequest) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "mycel.resolver.v1beta1.QueryAllRecordsRequest.domain_name": - return x.DomainName != "" - case "mycel.resolver.v1beta1.QueryAllRecordsRequest.domain_parent": - return x.DomainParent != "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.resolver.v1beta1.QueryAllRecordsRequest")) - } - panic(fmt.Errorf("message mycel.resolver.v1beta1.QueryAllRecordsRequest 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_QueryAllRecordsRequest) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "mycel.resolver.v1beta1.QueryAllRecordsRequest.domain_name": - x.DomainName = "" - case "mycel.resolver.v1beta1.QueryAllRecordsRequest.domain_parent": - x.DomainParent = "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.resolver.v1beta1.QueryAllRecordsRequest")) - } - panic(fmt.Errorf("message mycel.resolver.v1beta1.QueryAllRecordsRequest 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_QueryAllRecordsRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "mycel.resolver.v1beta1.QueryAllRecordsRequest.domain_name": - value := x.DomainName - return protoreflect.ValueOfString(value) - case "mycel.resolver.v1beta1.QueryAllRecordsRequest.domain_parent": - value := x.DomainParent - return protoreflect.ValueOfString(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.resolver.v1beta1.QueryAllRecordsRequest")) - } - panic(fmt.Errorf("message mycel.resolver.v1beta1.QueryAllRecordsRequest 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_QueryAllRecordsRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "mycel.resolver.v1beta1.QueryAllRecordsRequest.domain_name": - x.DomainName = value.Interface().(string) - case "mycel.resolver.v1beta1.QueryAllRecordsRequest.domain_parent": - x.DomainParent = value.Interface().(string) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.resolver.v1beta1.QueryAllRecordsRequest")) - } - panic(fmt.Errorf("message mycel.resolver.v1beta1.QueryAllRecordsRequest 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_QueryAllRecordsRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "mycel.resolver.v1beta1.QueryAllRecordsRequest.domain_name": - panic(fmt.Errorf("field domain_name of message mycel.resolver.v1beta1.QueryAllRecordsRequest is not mutable")) - case "mycel.resolver.v1beta1.QueryAllRecordsRequest.domain_parent": - panic(fmt.Errorf("field domain_parent of message mycel.resolver.v1beta1.QueryAllRecordsRequest is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.resolver.v1beta1.QueryAllRecordsRequest")) - } - panic(fmt.Errorf("message mycel.resolver.v1beta1.QueryAllRecordsRequest 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_QueryAllRecordsRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "mycel.resolver.v1beta1.QueryAllRecordsRequest.domain_name": - return protoreflect.ValueOfString("") - case "mycel.resolver.v1beta1.QueryAllRecordsRequest.domain_parent": - return protoreflect.ValueOfString("") - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.resolver.v1beta1.QueryAllRecordsRequest")) - } - panic(fmt.Errorf("message mycel.resolver.v1beta1.QueryAllRecordsRequest 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_QueryAllRecordsRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in mycel.resolver.v1beta1.QueryAllRecordsRequest", 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_QueryAllRecordsRequest) 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_QueryAllRecordsRequest) 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_QueryAllRecordsRequest) 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_QueryAllRecordsRequest) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryAllRecordsRequest) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - l = len(x.DomainName) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.DomainParent) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryAllRecordsRequest) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if len(x.DomainParent) > 0 { - i -= len(x.DomainParent) - copy(dAtA[i:], x.DomainParent) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.DomainParent))) - i-- - dAtA[i] = 0x12 - } - if len(x.DomainName) > 0 { - i -= len(x.DomainName) - copy(dAtA[i:], x.DomainName) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.DomainName))) - 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().(*QueryAllRecordsRequest) - 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: QueryAllRecordsRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryAllRecordsRequest: 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 DomainName", 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.DomainName = 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 DomainParent", 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.DomainParent = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var _ protoreflect.Map = (*_QueryAllRecordsResponse_1_map)(nil) - -type _QueryAllRecordsResponse_1_map struct { - m *map[string]*types.Record -} - -func (x *_QueryAllRecordsResponse_1_map) Len() int { - if x.m == nil { - return 0 - } - return len(*x.m) -} - -func (x *_QueryAllRecordsResponse_1_map) Range(f func(protoreflect.MapKey, protoreflect.Value) bool) { - if x.m == nil { - return - } - for k, v := range *x.m { - mapKey := (protoreflect.MapKey)(protoreflect.ValueOfString(k)) - mapValue := protoreflect.ValueOfMessage(v.ProtoReflect()) - if !f(mapKey, mapValue) { - break - } - } -} - -func (x *_QueryAllRecordsResponse_1_map) Has(key protoreflect.MapKey) bool { - if x.m == nil { - return false - } - keyUnwrapped := key.String() - concreteValue := keyUnwrapped - _, ok := (*x.m)[concreteValue] - return ok -} - -func (x *_QueryAllRecordsResponse_1_map) Clear(key protoreflect.MapKey) { - if x.m == nil { - return - } - keyUnwrapped := key.String() - concreteKey := keyUnwrapped - delete(*x.m, concreteKey) -} - -func (x *_QueryAllRecordsResponse_1_map) Get(key protoreflect.MapKey) protoreflect.Value { - if x.m == nil { - return protoreflect.Value{} - } - keyUnwrapped := key.String() - concreteKey := keyUnwrapped - v, ok := (*x.m)[concreteKey] - if !ok { - return protoreflect.Value{} - } - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_QueryAllRecordsResponse_1_map) Set(key protoreflect.MapKey, value protoreflect.Value) { - if !key.IsValid() || !value.IsValid() { - panic("invalid key or value provided") - } - keyUnwrapped := key.String() - concreteKey := keyUnwrapped - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*types.Record) - (*x.m)[concreteKey] = concreteValue -} - -func (x *_QueryAllRecordsResponse_1_map) Mutable(key protoreflect.MapKey) protoreflect.Value { - keyUnwrapped := key.String() - concreteKey := keyUnwrapped - v, ok := (*x.m)[concreteKey] - if ok { - return protoreflect.ValueOfMessage(v.ProtoReflect()) - } - newValue := new(types.Record) - (*x.m)[concreteKey] = newValue - return protoreflect.ValueOfMessage(newValue.ProtoReflect()) -} - -func (x *_QueryAllRecordsResponse_1_map) NewValue() protoreflect.Value { - v := new(types.Record) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_QueryAllRecordsResponse_1_map) IsValid() bool { - return x.m != nil -} - -var ( - md_QueryAllRecordsResponse protoreflect.MessageDescriptor - fd_QueryAllRecordsResponse_values protoreflect.FieldDescriptor -) - -func init() { - file_mycel_resolver_v1beta1_query_proto_init() - md_QueryAllRecordsResponse = File_mycel_resolver_v1beta1_query_proto.Messages().ByName("QueryAllRecordsResponse") - fd_QueryAllRecordsResponse_values = md_QueryAllRecordsResponse.Fields().ByName("values") -} - -var _ protoreflect.Message = (*fastReflection_QueryAllRecordsResponse)(nil) - -type fastReflection_QueryAllRecordsResponse QueryAllRecordsResponse - -func (x *QueryAllRecordsResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryAllRecordsResponse)(x) -} - -func (x *QueryAllRecordsResponse) slowProtoReflect() protoreflect.Message { - mi := &file_mycel_resolver_v1beta1_query_proto_msgTypes[7] - 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_QueryAllRecordsResponse_messageType fastReflection_QueryAllRecordsResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryAllRecordsResponse_messageType{} - -type fastReflection_QueryAllRecordsResponse_messageType struct{} - -func (x fastReflection_QueryAllRecordsResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryAllRecordsResponse)(nil) -} -func (x fastReflection_QueryAllRecordsResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryAllRecordsResponse) -} -func (x fastReflection_QueryAllRecordsResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryAllRecordsResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_QueryAllRecordsResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryAllRecordsResponse -} - -// 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_QueryAllRecordsResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryAllRecordsResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryAllRecordsResponse) New() protoreflect.Message { - return new(fastReflection_QueryAllRecordsResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryAllRecordsResponse) Interface() protoreflect.ProtoMessage { - return (*QueryAllRecordsResponse)(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_QueryAllRecordsResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if len(x.Values) != 0 { - value := protoreflect.ValueOfMap(&_QueryAllRecordsResponse_1_map{m: &x.Values}) - if !f(fd_QueryAllRecordsResponse_values, 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_QueryAllRecordsResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "mycel.resolver.v1beta1.QueryAllRecordsResponse.values": - return len(x.Values) != 0 - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.resolver.v1beta1.QueryAllRecordsResponse")) - } - panic(fmt.Errorf("message mycel.resolver.v1beta1.QueryAllRecordsResponse 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_QueryAllRecordsResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "mycel.resolver.v1beta1.QueryAllRecordsResponse.values": - x.Values = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.resolver.v1beta1.QueryAllRecordsResponse")) - } - panic(fmt.Errorf("message mycel.resolver.v1beta1.QueryAllRecordsResponse 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_QueryAllRecordsResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "mycel.resolver.v1beta1.QueryAllRecordsResponse.values": - if len(x.Values) == 0 { - return protoreflect.ValueOfMap(&_QueryAllRecordsResponse_1_map{}) - } - mapValue := &_QueryAllRecordsResponse_1_map{m: &x.Values} - return protoreflect.ValueOfMap(mapValue) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.resolver.v1beta1.QueryAllRecordsResponse")) - } - panic(fmt.Errorf("message mycel.resolver.v1beta1.QueryAllRecordsResponse 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_QueryAllRecordsResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "mycel.resolver.v1beta1.QueryAllRecordsResponse.values": - mv := value.Map() - cmv := mv.(*_QueryAllRecordsResponse_1_map) - x.Values = *cmv.m - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.resolver.v1beta1.QueryAllRecordsResponse")) - } - panic(fmt.Errorf("message mycel.resolver.v1beta1.QueryAllRecordsResponse 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_QueryAllRecordsResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "mycel.resolver.v1beta1.QueryAllRecordsResponse.values": - if x.Values == nil { - x.Values = make(map[string]*types.Record) - } - value := &_QueryAllRecordsResponse_1_map{m: &x.Values} - return protoreflect.ValueOfMap(value) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.resolver.v1beta1.QueryAllRecordsResponse")) - } - panic(fmt.Errorf("message mycel.resolver.v1beta1.QueryAllRecordsResponse 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_QueryAllRecordsResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "mycel.resolver.v1beta1.QueryAllRecordsResponse.values": - m := make(map[string]*types.Record) - return protoreflect.ValueOfMap(&_QueryAllRecordsResponse_1_map{m: &m}) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.resolver.v1beta1.QueryAllRecordsResponse")) - } - panic(fmt.Errorf("message mycel.resolver.v1beta1.QueryAllRecordsResponse 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_QueryAllRecordsResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in mycel.resolver.v1beta1.QueryAllRecordsResponse", 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_QueryAllRecordsResponse) 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_QueryAllRecordsResponse) 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_QueryAllRecordsResponse) 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_QueryAllRecordsResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryAllRecordsResponse) - 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.Values) > 0 { - SiZeMaP := func(k string, v *types.Record) { - l := 0 - if v != nil { - l = options.Size(v) - } - l += 1 + runtime.Sov(uint64(l)) - mapEntrySize := 1 + len(k) + runtime.Sov(uint64(len(k))) + l - n += mapEntrySize + 1 + runtime.Sov(uint64(mapEntrySize)) - } - if options.Deterministic { - sortme := make([]string, 0, len(x.Values)) - for k := range x.Values { - sortme = append(sortme, k) - } - sort.Strings(sortme) - for _, k := range sortme { - v := x.Values[k] - SiZeMaP(k, v) - } - } else { - for k, v := range x.Values { - SiZeMaP(k, v) - } - } - } - 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().(*QueryAllRecordsResponse) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if len(x.Values) > 0 { - MaRsHaLmAp := func(k string, v *types.Record) (protoiface.MarshalOutput, error) { - baseI := i - encoded, err := options.Marshal(v) - 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 - i -= len(k) - copy(dAtA[i:], k) - i = runtime.EncodeVarint(dAtA, i, uint64(len(k))) - i-- - dAtA[i] = 0xa - i = runtime.EncodeVarint(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0xa - return protoiface.MarshalOutput{}, nil - } - if options.Deterministic { - keysForValues := make([]string, 0, len(x.Values)) - for k := range x.Values { - keysForValues = append(keysForValues, string(k)) - } - sort.Slice(keysForValues, func(i, j int) bool { - return keysForValues[i] < keysForValues[j] - }) - for iNdEx := len(keysForValues) - 1; iNdEx >= 0; iNdEx-- { - v := x.Values[string(keysForValues[iNdEx])] - out, err := MaRsHaLmAp(keysForValues[iNdEx], v) - if err != nil { - return out, err - } - } - } else { - for k := range x.Values { - v := x.Values[k] - out, err := MaRsHaLmAp(k, v) - if err != nil { - return out, err - } - } - } - } - 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().(*QueryAllRecordsResponse) - 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: QueryAllRecordsResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryAllRecordsResponse: 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 Values", 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.Values == nil { - x.Values = make(map[string]*types.Record) - } - var mapkey string - var mapvalue *types.Record - for iNdEx < postIndex { - entryPreIndex := 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) - if fieldNum == 1 { - var stringLenmapkey 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++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postStringIndexmapkey > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var mapmsglen 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++ - mapmsglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if mapmsglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postmsgIndex := iNdEx + mapmsglen - if postmsgIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postmsgIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - mapvalue = &types.Record{} - if err := options.Unmarshal(dAtA[iNdEx:postmsgIndex], mapvalue); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postmsgIndex - } else { - iNdEx = entryPreIndex - 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) > postIndex { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - x.Values[mapkey] = mapvalue - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_QueryTextRecordRequest protoreflect.MessageDescriptor - fd_QueryTextRecordRequest_domain_name protoreflect.FieldDescriptor - fd_QueryTextRecordRequest_domain_parent protoreflect.FieldDescriptor - fd_QueryTextRecordRequest_key protoreflect.FieldDescriptor -) - -func init() { - file_mycel_resolver_v1beta1_query_proto_init() - md_QueryTextRecordRequest = File_mycel_resolver_v1beta1_query_proto.Messages().ByName("QueryTextRecordRequest") - fd_QueryTextRecordRequest_domain_name = md_QueryTextRecordRequest.Fields().ByName("domain_name") - fd_QueryTextRecordRequest_domain_parent = md_QueryTextRecordRequest.Fields().ByName("domain_parent") - fd_QueryTextRecordRequest_key = md_QueryTextRecordRequest.Fields().ByName("key") -} - -var _ protoreflect.Message = (*fastReflection_QueryTextRecordRequest)(nil) - -type fastReflection_QueryTextRecordRequest QueryTextRecordRequest - -func (x *QueryTextRecordRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryTextRecordRequest)(x) -} - -func (x *QueryTextRecordRequest) slowProtoReflect() protoreflect.Message { - mi := &file_mycel_resolver_v1beta1_query_proto_msgTypes[8] - 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_QueryTextRecordRequest_messageType fastReflection_QueryTextRecordRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryTextRecordRequest_messageType{} - -type fastReflection_QueryTextRecordRequest_messageType struct{} - -func (x fastReflection_QueryTextRecordRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryTextRecordRequest)(nil) -} -func (x fastReflection_QueryTextRecordRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryTextRecordRequest) -} -func (x fastReflection_QueryTextRecordRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryTextRecordRequest -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_QueryTextRecordRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryTextRecordRequest -} - -// 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_QueryTextRecordRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryTextRecordRequest_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryTextRecordRequest) New() protoreflect.Message { - return new(fastReflection_QueryTextRecordRequest) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryTextRecordRequest) Interface() protoreflect.ProtoMessage { - return (*QueryTextRecordRequest)(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_QueryTextRecordRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.DomainName != "" { - value := protoreflect.ValueOfString(x.DomainName) - if !f(fd_QueryTextRecordRequest_domain_name, value) { - return - } - } - if x.DomainParent != "" { - value := protoreflect.ValueOfString(x.DomainParent) - if !f(fd_QueryTextRecordRequest_domain_parent, value) { - return - } - } - if x.Key != "" { - value := protoreflect.ValueOfString(x.Key) - if !f(fd_QueryTextRecordRequest_key, 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_QueryTextRecordRequest) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "mycel.resolver.v1beta1.QueryTextRecordRequest.domain_name": - return x.DomainName != "" - case "mycel.resolver.v1beta1.QueryTextRecordRequest.domain_parent": - return x.DomainParent != "" - case "mycel.resolver.v1beta1.QueryTextRecordRequest.key": - return x.Key != "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.resolver.v1beta1.QueryTextRecordRequest")) - } - panic(fmt.Errorf("message mycel.resolver.v1beta1.QueryTextRecordRequest 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_QueryTextRecordRequest) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "mycel.resolver.v1beta1.QueryTextRecordRequest.domain_name": - x.DomainName = "" - case "mycel.resolver.v1beta1.QueryTextRecordRequest.domain_parent": - x.DomainParent = "" - case "mycel.resolver.v1beta1.QueryTextRecordRequest.key": - x.Key = "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.resolver.v1beta1.QueryTextRecordRequest")) - } - panic(fmt.Errorf("message mycel.resolver.v1beta1.QueryTextRecordRequest 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_QueryTextRecordRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "mycel.resolver.v1beta1.QueryTextRecordRequest.domain_name": - value := x.DomainName - return protoreflect.ValueOfString(value) - case "mycel.resolver.v1beta1.QueryTextRecordRequest.domain_parent": - value := x.DomainParent - return protoreflect.ValueOfString(value) - case "mycel.resolver.v1beta1.QueryTextRecordRequest.key": - value := x.Key - return protoreflect.ValueOfString(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.resolver.v1beta1.QueryTextRecordRequest")) - } - panic(fmt.Errorf("message mycel.resolver.v1beta1.QueryTextRecordRequest 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_QueryTextRecordRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "mycel.resolver.v1beta1.QueryTextRecordRequest.domain_name": - x.DomainName = value.Interface().(string) - case "mycel.resolver.v1beta1.QueryTextRecordRequest.domain_parent": - x.DomainParent = value.Interface().(string) - case "mycel.resolver.v1beta1.QueryTextRecordRequest.key": - x.Key = value.Interface().(string) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.resolver.v1beta1.QueryTextRecordRequest")) - } - panic(fmt.Errorf("message mycel.resolver.v1beta1.QueryTextRecordRequest 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_QueryTextRecordRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "mycel.resolver.v1beta1.QueryTextRecordRequest.domain_name": - panic(fmt.Errorf("field domain_name of message mycel.resolver.v1beta1.QueryTextRecordRequest is not mutable")) - case "mycel.resolver.v1beta1.QueryTextRecordRequest.domain_parent": - panic(fmt.Errorf("field domain_parent of message mycel.resolver.v1beta1.QueryTextRecordRequest is not mutable")) - case "mycel.resolver.v1beta1.QueryTextRecordRequest.key": - panic(fmt.Errorf("field key of message mycel.resolver.v1beta1.QueryTextRecordRequest is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.resolver.v1beta1.QueryTextRecordRequest")) - } - panic(fmt.Errorf("message mycel.resolver.v1beta1.QueryTextRecordRequest 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_QueryTextRecordRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "mycel.resolver.v1beta1.QueryTextRecordRequest.domain_name": - return protoreflect.ValueOfString("") - case "mycel.resolver.v1beta1.QueryTextRecordRequest.domain_parent": - return protoreflect.ValueOfString("") - case "mycel.resolver.v1beta1.QueryTextRecordRequest.key": - return protoreflect.ValueOfString("") - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.resolver.v1beta1.QueryTextRecordRequest")) - } - panic(fmt.Errorf("message mycel.resolver.v1beta1.QueryTextRecordRequest 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_QueryTextRecordRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in mycel.resolver.v1beta1.QueryTextRecordRequest", 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_QueryTextRecordRequest) 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_QueryTextRecordRequest) 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_QueryTextRecordRequest) 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_QueryTextRecordRequest) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryTextRecordRequest) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - l = len(x.DomainName) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.DomainParent) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.Key) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryTextRecordRequest) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if len(x.Key) > 0 { - i -= len(x.Key) - copy(dAtA[i:], x.Key) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Key))) - i-- - dAtA[i] = 0x1a - } - if len(x.DomainParent) > 0 { - i -= len(x.DomainParent) - copy(dAtA[i:], x.DomainParent) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.DomainParent))) - i-- - dAtA[i] = 0x12 - } - if len(x.DomainName) > 0 { - i -= len(x.DomainName) - copy(dAtA[i:], x.DomainName) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.DomainName))) - 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().(*QueryTextRecordRequest) - 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: QueryTextRecordRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryTextRecordRequest: 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 DomainName", 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.DomainName = 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 DomainParent", 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.DomainParent = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Key", 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.Key = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_QueryTextRecordResponse protoreflect.MessageDescriptor - fd_QueryTextRecordResponse_value protoreflect.FieldDescriptor -) - -func init() { - file_mycel_resolver_v1beta1_query_proto_init() - md_QueryTextRecordResponse = File_mycel_resolver_v1beta1_query_proto.Messages().ByName("QueryTextRecordResponse") - fd_QueryTextRecordResponse_value = md_QueryTextRecordResponse.Fields().ByName("value") -} - -var _ protoreflect.Message = (*fastReflection_QueryTextRecordResponse)(nil) - -type fastReflection_QueryTextRecordResponse QueryTextRecordResponse - -func (x *QueryTextRecordResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryTextRecordResponse)(x) -} - -func (x *QueryTextRecordResponse) slowProtoReflect() protoreflect.Message { - mi := &file_mycel_resolver_v1beta1_query_proto_msgTypes[9] - 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_QueryTextRecordResponse_messageType fastReflection_QueryTextRecordResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryTextRecordResponse_messageType{} - -type fastReflection_QueryTextRecordResponse_messageType struct{} - -func (x fastReflection_QueryTextRecordResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryTextRecordResponse)(nil) -} -func (x fastReflection_QueryTextRecordResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryTextRecordResponse) -} -func (x fastReflection_QueryTextRecordResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryTextRecordResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_QueryTextRecordResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryTextRecordResponse -} - -// 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_QueryTextRecordResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryTextRecordResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryTextRecordResponse) New() protoreflect.Message { - return new(fastReflection_QueryTextRecordResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryTextRecordResponse) Interface() protoreflect.ProtoMessage { - return (*QueryTextRecordResponse)(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_QueryTextRecordResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Value != nil { - value := protoreflect.ValueOfMessage(x.Value.ProtoReflect()) - if !f(fd_QueryTextRecordResponse_value, 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_QueryTextRecordResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "mycel.resolver.v1beta1.QueryTextRecordResponse.value": - return x.Value != nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.resolver.v1beta1.QueryTextRecordResponse")) - } - panic(fmt.Errorf("message mycel.resolver.v1beta1.QueryTextRecordResponse 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_QueryTextRecordResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "mycel.resolver.v1beta1.QueryTextRecordResponse.value": - x.Value = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.resolver.v1beta1.QueryTextRecordResponse")) - } - panic(fmt.Errorf("message mycel.resolver.v1beta1.QueryTextRecordResponse 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_QueryTextRecordResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "mycel.resolver.v1beta1.QueryTextRecordResponse.value": - value := x.Value - return protoreflect.ValueOfMessage(value.ProtoReflect()) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.resolver.v1beta1.QueryTextRecordResponse")) - } - panic(fmt.Errorf("message mycel.resolver.v1beta1.QueryTextRecordResponse 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_QueryTextRecordResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "mycel.resolver.v1beta1.QueryTextRecordResponse.value": - x.Value = value.Message().Interface().(*types.TextRecord) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.resolver.v1beta1.QueryTextRecordResponse")) - } - panic(fmt.Errorf("message mycel.resolver.v1beta1.QueryTextRecordResponse 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_QueryTextRecordResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "mycel.resolver.v1beta1.QueryTextRecordResponse.value": - if x.Value == nil { - x.Value = new(types.TextRecord) - } - return protoreflect.ValueOfMessage(x.Value.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.resolver.v1beta1.QueryTextRecordResponse")) - } - panic(fmt.Errorf("message mycel.resolver.v1beta1.QueryTextRecordResponse 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_QueryTextRecordResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "mycel.resolver.v1beta1.QueryTextRecordResponse.value": - m := new(types.TextRecord) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: mycel.resolver.v1beta1.QueryTextRecordResponse")) - } - panic(fmt.Errorf("message mycel.resolver.v1beta1.QueryTextRecordResponse 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_QueryTextRecordResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in mycel.resolver.v1beta1.QueryTextRecordResponse", 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_QueryTextRecordResponse) 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_QueryTextRecordResponse) 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_QueryTextRecordResponse) 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_QueryTextRecordResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryTextRecordResponse) - 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.Value != nil { - l = options.Size(x.Value) - 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().(*QueryTextRecordResponse) - 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.Value != nil { - encoded, err := options.Marshal(x.Value) - 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().(*QueryTextRecordResponse) - 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: QueryTextRecordResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryTextRecordResponse: 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 Value", 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.Value == nil { - x.Value = &types.TextRecord{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Value); 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/resolver/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_resolver_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_resolver_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_resolver_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 (*QueryParamsResponse) ProtoMessage() {} - -// Deprecated: Use QueryParamsResponse.ProtoReflect.Descriptor instead. -func (*QueryParamsResponse) Descriptor() ([]byte, []int) { - return file_mycel_resolver_v1beta1_query_proto_rawDescGZIP(), []int{1} -} - -func (x *QueryParamsResponse) GetParams() *Params { - if x != nil { - return x.Params - } - return nil -} - -type QueryWalletRecordRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - DomainName string `protobuf:"bytes,1,opt,name=domain_name,json=domainName,proto3" json:"domain_name,omitempty"` - DomainParent string `protobuf:"bytes,2,opt,name=domain_parent,json=domainParent,proto3" json:"domain_parent,omitempty"` - WalletRecordType string `protobuf:"bytes,3,opt,name=wallet_record_type,json=walletRecordType,proto3" json:"wallet_record_type,omitempty"` -} - -func (x *QueryWalletRecordRequest) Reset() { - *x = QueryWalletRecordRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_mycel_resolver_v1beta1_query_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QueryWalletRecordRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QueryWalletRecordRequest) ProtoMessage() {} - -// Deprecated: Use QueryWalletRecordRequest.ProtoReflect.Descriptor instead. -func (*QueryWalletRecordRequest) Descriptor() ([]byte, []int) { - return file_mycel_resolver_v1beta1_query_proto_rawDescGZIP(), []int{2} -} - -func (x *QueryWalletRecordRequest) GetDomainName() string { - if x != nil { - return x.DomainName - } - return "" -} - -func (x *QueryWalletRecordRequest) GetDomainParent() string { - if x != nil { - return x.DomainParent - } - return "" -} - -func (x *QueryWalletRecordRequest) GetWalletRecordType() string { - if x != nil { - return x.WalletRecordType - } - return "" -} - -type QueryWalletRecordResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Value *types.WalletRecord `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` -} - -func (x *QueryWalletRecordResponse) Reset() { - *x = QueryWalletRecordResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_mycel_resolver_v1beta1_query_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QueryWalletRecordResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QueryWalletRecordResponse) ProtoMessage() {} - -// Deprecated: Use QueryWalletRecordResponse.ProtoReflect.Descriptor instead. -func (*QueryWalletRecordResponse) Descriptor() ([]byte, []int) { - return file_mycel_resolver_v1beta1_query_proto_rawDescGZIP(), []int{3} -} - -func (x *QueryWalletRecordResponse) GetValue() *types.WalletRecord { - if x != nil { - return x.Value - } - return nil -} - -type QueryDnsRecordRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - DomainName string `protobuf:"bytes,1,opt,name=domain_name,json=domainName,proto3" json:"domain_name,omitempty"` - DomainParent string `protobuf:"bytes,2,opt,name=domain_parent,json=domainParent,proto3" json:"domain_parent,omitempty"` - DnsRecordType string `protobuf:"bytes,3,opt,name=dns_record_type,json=dnsRecordType,proto3" json:"dns_record_type,omitempty"` -} - -func (x *QueryDnsRecordRequest) Reset() { - *x = QueryDnsRecordRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_mycel_resolver_v1beta1_query_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QueryDnsRecordRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QueryDnsRecordRequest) ProtoMessage() {} - -// Deprecated: Use QueryDnsRecordRequest.ProtoReflect.Descriptor instead. -func (*QueryDnsRecordRequest) Descriptor() ([]byte, []int) { - return file_mycel_resolver_v1beta1_query_proto_rawDescGZIP(), []int{4} -} - -func (x *QueryDnsRecordRequest) GetDomainName() string { - if x != nil { - return x.DomainName - } - return "" -} - -func (x *QueryDnsRecordRequest) GetDomainParent() string { - if x != nil { - return x.DomainParent - } - return "" -} - -func (x *QueryDnsRecordRequest) GetDnsRecordType() string { - if x != nil { - return x.DnsRecordType - } - return "" -} - -type QueryDnsRecordResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Value *types.DnsRecord `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` -} - -func (x *QueryDnsRecordResponse) Reset() { - *x = QueryDnsRecordResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_mycel_resolver_v1beta1_query_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QueryDnsRecordResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QueryDnsRecordResponse) ProtoMessage() {} - -// Deprecated: Use QueryDnsRecordResponse.ProtoReflect.Descriptor instead. -func (*QueryDnsRecordResponse) Descriptor() ([]byte, []int) { - return file_mycel_resolver_v1beta1_query_proto_rawDescGZIP(), []int{5} -} - -func (x *QueryDnsRecordResponse) GetValue() *types.DnsRecord { - if x != nil { - return x.Value - } - return nil -} - -type QueryAllRecordsRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - DomainName string `protobuf:"bytes,1,opt,name=domain_name,json=domainName,proto3" json:"domain_name,omitempty"` - DomainParent string `protobuf:"bytes,2,opt,name=domain_parent,json=domainParent,proto3" json:"domain_parent,omitempty"` -} - -func (x *QueryAllRecordsRequest) Reset() { - *x = QueryAllRecordsRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_mycel_resolver_v1beta1_query_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QueryAllRecordsRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QueryAllRecordsRequest) ProtoMessage() {} - -// Deprecated: Use QueryAllRecordsRequest.ProtoReflect.Descriptor instead. -func (*QueryAllRecordsRequest) Descriptor() ([]byte, []int) { - return file_mycel_resolver_v1beta1_query_proto_rawDescGZIP(), []int{6} -} - -func (x *QueryAllRecordsRequest) GetDomainName() string { - if x != nil { - return x.DomainName - } - return "" -} - -func (x *QueryAllRecordsRequest) GetDomainParent() string { - if x != nil { - return x.DomainParent - } - return "" -} - -type QueryAllRecordsResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Values map[string]*types.Record `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` -} - -func (x *QueryAllRecordsResponse) Reset() { - *x = QueryAllRecordsResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_mycel_resolver_v1beta1_query_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QueryAllRecordsResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QueryAllRecordsResponse) ProtoMessage() {} - -// Deprecated: Use QueryAllRecordsResponse.ProtoReflect.Descriptor instead. -func (*QueryAllRecordsResponse) Descriptor() ([]byte, []int) { - return file_mycel_resolver_v1beta1_query_proto_rawDescGZIP(), []int{7} -} - -func (x *QueryAllRecordsResponse) GetValues() map[string]*types.Record { - if x != nil { - return x.Values - } - return nil -} - -type QueryTextRecordRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - DomainName string `protobuf:"bytes,1,opt,name=domain_name,json=domainName,proto3" json:"domain_name,omitempty"` - DomainParent string `protobuf:"bytes,2,opt,name=domain_parent,json=domainParent,proto3" json:"domain_parent,omitempty"` - Key string `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty"` -} - -func (x *QueryTextRecordRequest) Reset() { - *x = QueryTextRecordRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_mycel_resolver_v1beta1_query_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QueryTextRecordRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QueryTextRecordRequest) ProtoMessage() {} - -// Deprecated: Use QueryTextRecordRequest.ProtoReflect.Descriptor instead. -func (*QueryTextRecordRequest) Descriptor() ([]byte, []int) { - return file_mycel_resolver_v1beta1_query_proto_rawDescGZIP(), []int{8} -} - -func (x *QueryTextRecordRequest) GetDomainName() string { - if x != nil { - return x.DomainName - } - return "" -} - -func (x *QueryTextRecordRequest) GetDomainParent() string { - if x != nil { - return x.DomainParent - } - return "" -} - -func (x *QueryTextRecordRequest) GetKey() string { - if x != nil { - return x.Key - } - return "" -} - -type QueryTextRecordResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Value *types.TextRecord `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` -} - -func (x *QueryTextRecordResponse) Reset() { - *x = QueryTextRecordResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_mycel_resolver_v1beta1_query_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QueryTextRecordResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QueryTextRecordResponse) ProtoMessage() {} - -// Deprecated: Use QueryTextRecordResponse.ProtoReflect.Descriptor instead. -func (*QueryTextRecordResponse) Descriptor() ([]byte, []int) { - return file_mycel_resolver_v1beta1_query_proto_rawDescGZIP(), []int{9} -} - -func (x *QueryTextRecordResponse) GetValue() *types.TextRecord { - if x != nil { - return x.Value - } - return nil -} - -var File_mycel_resolver_v1beta1_query_proto protoreflect.FileDescriptor - -var file_mycel_resolver_v1beta1_query_proto_rawDesc = []byte{ - 0x0a, 0x22, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, - 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x16, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x72, 0x65, 0x73, 0x6f, - 0x6c, 0x76, 0x65, 0x72, 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, 0x30, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, - 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x5f, - 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x5f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x1a, 0x23, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x6c, 0x76, - 0x65, 0x72, 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, 0x53, 0x0a, - 0x13, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3c, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x72, 0x65, 0x73, - 0x6f, 0x6c, 0x76, 0x65, 0x72, 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, 0x8e, 0x01, 0x0a, 0x18, 0x51, 0x75, 0x65, 0x72, 0x79, 0x57, 0x61, 0x6c, 0x6c, - 0x65, 0x74, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, - 0x1f, 0x0a, 0x0b, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x4e, 0x61, 0x6d, 0x65, - 0x12, 0x23, 0x0a, 0x0d, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x5f, 0x70, 0x61, 0x72, 0x65, 0x6e, - 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x50, - 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x2c, 0x0a, 0x12, 0x77, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x5f, - 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x10, 0x77, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x54, - 0x79, 0x70, 0x65, 0x22, 0x57, 0x0a, 0x19, 0x51, 0x75, 0x65, 0x72, 0x79, 0x57, 0x61, 0x6c, 0x6c, - 0x65, 0x74, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x3a, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x24, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, - 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x57, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x52, - 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x85, 0x01, 0x0a, - 0x15, 0x51, 0x75, 0x65, 0x72, 0x79, 0x44, 0x6e, 0x73, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, - 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x64, 0x6f, 0x6d, - 0x61, 0x69, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x64, 0x6f, 0x6d, 0x61, 0x69, - 0x6e, 0x5f, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, - 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x50, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x26, 0x0a, 0x0f, - 0x64, 0x6e, 0x73, 0x5f, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x64, 0x6e, 0x73, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, - 0x54, 0x79, 0x70, 0x65, 0x22, 0x51, 0x0a, 0x16, 0x51, 0x75, 0x65, 0x72, 0x79, 0x44, 0x6e, 0x73, - 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x37, - 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, - 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x44, 0x6e, 0x73, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, - 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x5e, 0x0a, 0x16, 0x51, 0x75, 0x65, 0x72, 0x79, - 0x41, 0x6c, 0x6c, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x5f, 0x6e, 0x61, 0x6d, 0x65, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x4e, 0x61, - 0x6d, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x5f, 0x70, 0x61, 0x72, - 0x65, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x64, 0x6f, 0x6d, 0x61, 0x69, - 0x6e, 0x50, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x22, 0xc9, 0x01, 0x0a, 0x17, 0x51, 0x75, 0x65, 0x72, - 0x79, 0x41, 0x6c, 0x6c, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x53, 0x0a, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x01, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x3b, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x72, 0x65, 0x73, 0x6f, - 0x6c, 0x76, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x51, 0x75, 0x65, - 0x72, 0x79, 0x41, 0x6c, 0x6c, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, - 0x52, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x1a, 0x59, 0x0a, 0x0b, 0x56, 0x61, 0x6c, 0x75, - 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x34, 0x0a, 0x05, 0x76, 0x61, 0x6c, - 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, - 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, - 0x31, 0x2e, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, - 0x02, 0x38, 0x01, 0x22, 0x70, 0x0a, 0x16, 0x51, 0x75, 0x65, 0x72, 0x79, 0x54, 0x65, 0x78, 0x74, - 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1f, 0x0a, - 0x0b, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x0a, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x23, - 0x0a, 0x0d, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x5f, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x50, 0x61, 0x72, - 0x65, 0x6e, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x03, 0x6b, 0x65, 0x79, 0x22, 0x53, 0x0a, 0x17, 0x51, 0x75, 0x65, 0x72, 0x79, 0x54, 0x65, - 0x78, 0x74, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x38, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x22, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, - 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x54, 0x65, 0x78, 0x74, 0x52, 0x65, 0x63, - 0x6f, 0x72, 0x64, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x32, 0xf1, 0x07, 0x0a, 0x05, 0x51, - 0x75, 0x65, 0x72, 0x79, 0x12, 0x96, 0x01, 0x0a, 0x06, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, - 0x2a, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, - 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, 0x2b, 0x2e, 0x6d, 0x79, - 0x63, 0x65, 0x6c, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 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, 0x33, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2d, - 0x12, 0x2b, 0x2f, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2d, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x2f, - 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x2f, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0xe2, 0x01, - 0x0a, 0x0c, 0x57, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x12, 0x30, - 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x2e, - 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x57, 0x61, 0x6c, - 0x6c, 0x65, 0x74, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x31, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, - 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x57, - 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x22, 0x6d, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x67, 0x12, 0x65, 0x2f, 0x6d, 0x79, - 0x63, 0x65, 0x6c, 0x2d, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x2f, 0x6d, 0x79, 0x63, 0x65, 0x6c, - 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, - 0x31, 0x2f, 0x77, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x5f, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x2f, - 0x7b, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x7d, 0x2f, 0x7b, 0x64, - 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x5f, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x7d, 0x2f, 0x7b, 0x77, - 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x5f, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x5f, 0x74, 0x79, 0x70, - 0x65, 0x7d, 0x12, 0xd3, 0x01, 0x0a, 0x09, 0x44, 0x6e, 0x73, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, - 0x12, 0x2d, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, - 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x44, - 0x6e, 0x73, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x2e, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, - 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x44, 0x6e, - 0x73, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, - 0x67, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x61, 0x12, 0x5f, 0x2f, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2d, - 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x2f, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2f, 0x72, 0x65, 0x73, - 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x64, 0x6e, - 0x73, 0x5f, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x2f, 0x7b, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, - 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x7d, 0x2f, 0x7b, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x5f, 0x70, - 0x61, 0x72, 0x65, 0x6e, 0x74, 0x7d, 0x2f, 0x7b, 0x64, 0x6e, 0x73, 0x5f, 0x72, 0x65, 0x63, 0x6f, - 0x72, 0x64, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x7d, 0x12, 0xc5, 0x01, 0x0a, 0x0a, 0x41, 0x6c, 0x6c, - 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x12, 0x2e, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, - 0x72, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, - 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x6c, 0x6c, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2f, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, - 0x72, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, - 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x6c, 0x6c, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x56, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x50, - 0x12, 0x4e, 0x2f, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2d, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x2f, - 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x2f, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x61, 0x6c, 0x6c, 0x5f, 0x72, 0x65, 0x63, 0x6f, 0x72, - 0x64, 0x73, 0x2f, 0x7b, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x7d, - 0x2f, 0x7b, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x5f, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x7d, - 0x12, 0xcb, 0x01, 0x0a, 0x0a, 0x54, 0x65, 0x78, 0x74, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x12, - 0x2e, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, - 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x54, 0x65, - 0x78, 0x74, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x2f, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, - 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x54, 0x65, - 0x78, 0x74, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x22, 0x5c, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x56, 0x12, 0x54, 0x2f, 0x6d, 0x79, 0x63, 0x65, 0x6c, - 0x2d, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x2f, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2f, 0x72, 0x65, - 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x74, - 0x65, 0x78, 0x74, 0x5f, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x2f, 0x7b, 0x64, 0x6f, 0x6d, 0x61, - 0x69, 0x6e, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x7d, 0x2f, 0x7b, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, - 0x5f, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x7d, 0x2f, 0x7b, 0x6b, 0x65, 0x79, 0x7d, 0x42, 0xd2, - 0x01, 0x0a, 0x1a, 0x63, 0x6f, 0x6d, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x72, 0x65, 0x73, - 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x42, 0x0a, 0x51, - 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2e, 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, 0x73, - 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0xa2, 0x02, 0x03, 0x4d, 0x52, - 0x58, 0xaa, 0x02, 0x16, 0x4d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x76, - 0x65, 0x72, 0x2e, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xca, 0x02, 0x16, 0x4d, 0x79, 0x63, - 0x65, 0x6c, 0x5c, 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x5c, 0x56, 0x31, 0x62, 0x65, - 0x74, 0x61, 0x31, 0xe2, 0x02, 0x22, 0x4d, 0x79, 0x63, 0x65, 0x6c, 0x5c, 0x52, 0x65, 0x73, 0x6f, - 0x6c, 0x76, 0x65, 0x72, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x5c, 0x47, 0x50, 0x42, - 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x18, 0x4d, 0x79, 0x63, 0x65, 0x6c, - 0x3a, 0x3a, 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x65, - 0x74, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_mycel_resolver_v1beta1_query_proto_rawDescOnce sync.Once - file_mycel_resolver_v1beta1_query_proto_rawDescData = file_mycel_resolver_v1beta1_query_proto_rawDesc -) - -func file_mycel_resolver_v1beta1_query_proto_rawDescGZIP() []byte { - file_mycel_resolver_v1beta1_query_proto_rawDescOnce.Do(func() { - file_mycel_resolver_v1beta1_query_proto_rawDescData = protoimpl.X.CompressGZIP(file_mycel_resolver_v1beta1_query_proto_rawDescData) - }) - return file_mycel_resolver_v1beta1_query_proto_rawDescData -} - -var file_mycel_resolver_v1beta1_query_proto_msgTypes = make([]protoimpl.MessageInfo, 11) -var file_mycel_resolver_v1beta1_query_proto_goTypes = []interface{}{ - (*QueryParamsRequest)(nil), // 0: mycel.resolver.v1beta1.QueryParamsRequest - (*QueryParamsResponse)(nil), // 1: mycel.resolver.v1beta1.QueryParamsResponse - (*QueryWalletRecordRequest)(nil), // 2: mycel.resolver.v1beta1.QueryWalletRecordRequest - (*QueryWalletRecordResponse)(nil), // 3: mycel.resolver.v1beta1.QueryWalletRecordResponse - (*QueryDnsRecordRequest)(nil), // 4: mycel.resolver.v1beta1.QueryDnsRecordRequest - (*QueryDnsRecordResponse)(nil), // 5: mycel.resolver.v1beta1.QueryDnsRecordResponse - (*QueryAllRecordsRequest)(nil), // 6: mycel.resolver.v1beta1.QueryAllRecordsRequest - (*QueryAllRecordsResponse)(nil), // 7: mycel.resolver.v1beta1.QueryAllRecordsResponse - (*QueryTextRecordRequest)(nil), // 8: mycel.resolver.v1beta1.QueryTextRecordRequest - (*QueryTextRecordResponse)(nil), // 9: mycel.resolver.v1beta1.QueryTextRecordResponse - nil, // 10: mycel.resolver.v1beta1.QueryAllRecordsResponse.ValuesEntry - (*Params)(nil), // 11: mycel.resolver.v1beta1.Params - (*types.WalletRecord)(nil), // 12: mycel.registry.v1beta1.WalletRecord - (*types.DnsRecord)(nil), // 13: mycel.registry.v1beta1.DnsRecord - (*types.TextRecord)(nil), // 14: mycel.registry.v1beta1.TextRecord - (*types.Record)(nil), // 15: mycel.registry.v1beta1.Record -} -var file_mycel_resolver_v1beta1_query_proto_depIdxs = []int32{ - 11, // 0: mycel.resolver.v1beta1.QueryParamsResponse.params:type_name -> mycel.resolver.v1beta1.Params - 12, // 1: mycel.resolver.v1beta1.QueryWalletRecordResponse.value:type_name -> mycel.registry.v1beta1.WalletRecord - 13, // 2: mycel.resolver.v1beta1.QueryDnsRecordResponse.value:type_name -> mycel.registry.v1beta1.DnsRecord - 10, // 3: mycel.resolver.v1beta1.QueryAllRecordsResponse.values:type_name -> mycel.resolver.v1beta1.QueryAllRecordsResponse.ValuesEntry - 14, // 4: mycel.resolver.v1beta1.QueryTextRecordResponse.value:type_name -> mycel.registry.v1beta1.TextRecord - 15, // 5: mycel.resolver.v1beta1.QueryAllRecordsResponse.ValuesEntry.value:type_name -> mycel.registry.v1beta1.Record - 0, // 6: mycel.resolver.v1beta1.Query.Params:input_type -> mycel.resolver.v1beta1.QueryParamsRequest - 2, // 7: mycel.resolver.v1beta1.Query.WalletRecord:input_type -> mycel.resolver.v1beta1.QueryWalletRecordRequest - 4, // 8: mycel.resolver.v1beta1.Query.DnsRecord:input_type -> mycel.resolver.v1beta1.QueryDnsRecordRequest - 6, // 9: mycel.resolver.v1beta1.Query.AllRecords:input_type -> mycel.resolver.v1beta1.QueryAllRecordsRequest - 8, // 10: mycel.resolver.v1beta1.Query.TextRecord:input_type -> mycel.resolver.v1beta1.QueryTextRecordRequest - 1, // 11: mycel.resolver.v1beta1.Query.Params:output_type -> mycel.resolver.v1beta1.QueryParamsResponse - 3, // 12: mycel.resolver.v1beta1.Query.WalletRecord:output_type -> mycel.resolver.v1beta1.QueryWalletRecordResponse - 5, // 13: mycel.resolver.v1beta1.Query.DnsRecord:output_type -> mycel.resolver.v1beta1.QueryDnsRecordResponse - 7, // 14: mycel.resolver.v1beta1.Query.AllRecords:output_type -> mycel.resolver.v1beta1.QueryAllRecordsResponse - 9, // 15: mycel.resolver.v1beta1.Query.TextRecord:output_type -> mycel.resolver.v1beta1.QueryTextRecordResponse - 11, // [11:16] is the sub-list for method output_type - 6, // [6:11] is the sub-list for method input_type - 6, // [6:6] is the sub-list for extension type_name - 6, // [6:6] is the sub-list for extension extendee - 0, // [0:6] is the sub-list for field type_name -} - -func init() { file_mycel_resolver_v1beta1_query_proto_init() } -func file_mycel_resolver_v1beta1_query_proto_init() { - if File_mycel_resolver_v1beta1_query_proto != nil { - return - } - file_mycel_resolver_v1beta1_params_proto_init() - if !protoimpl.UnsafeEnabled { - file_mycel_resolver_v1beta1_query_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryParamsRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_mycel_resolver_v1beta1_query_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryParamsResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_mycel_resolver_v1beta1_query_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryWalletRecordRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_mycel_resolver_v1beta1_query_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryWalletRecordResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_mycel_resolver_v1beta1_query_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryDnsRecordRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_mycel_resolver_v1beta1_query_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryDnsRecordResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_mycel_resolver_v1beta1_query_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryAllRecordsRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_mycel_resolver_v1beta1_query_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryAllRecordsResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_mycel_resolver_v1beta1_query_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryTextRecordRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_mycel_resolver_v1beta1_query_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryTextRecordResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_mycel_resolver_v1beta1_query_proto_rawDesc, - NumEnums: 0, - NumMessages: 11, - NumExtensions: 0, - NumServices: 1, - }, - GoTypes: file_mycel_resolver_v1beta1_query_proto_goTypes, - DependencyIndexes: file_mycel_resolver_v1beta1_query_proto_depIdxs, - MessageInfos: file_mycel_resolver_v1beta1_query_proto_msgTypes, - }.Build() - File_mycel_resolver_v1beta1_query_proto = out.File - file_mycel_resolver_v1beta1_query_proto_rawDesc = nil - file_mycel_resolver_v1beta1_query_proto_goTypes = nil - file_mycel_resolver_v1beta1_query_proto_depIdxs = nil -} diff --git a/api/mycel/resolver/v1beta1/query_grpc.pb.go b/api/mycel/resolver/v1beta1/query_grpc.pb.go deleted file mode 100644 index 1f78f06e..00000000 --- a/api/mycel/resolver/v1beta1/query_grpc.pb.go +++ /dev/null @@ -1,255 +0,0 @@ -// Code generated by protoc-gen-go-grpc. DO NOT EDIT. - -package types - -import ( - context "context" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" -) - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 - -// 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 QueryWalletRecord items. - WalletRecord(ctx context.Context, in *QueryWalletRecordRequest, opts ...grpc.CallOption) (*QueryWalletRecordResponse, error) - // Queries a list of DnsRecord items. - DnsRecord(ctx context.Context, in *QueryDnsRecordRequest, opts ...grpc.CallOption) (*QueryDnsRecordResponse, error) - // Queries a list of AllRecord items. - AllRecords(ctx context.Context, in *QueryAllRecordsRequest, opts ...grpc.CallOption) (*QueryAllRecordsResponse, error) - // Queries a list of TextRecord items. - TextRecord(ctx context.Context, in *QueryTextRecordRequest, opts ...grpc.CallOption) (*QueryTextRecordResponse, error) -} - -type queryClient struct { - cc grpc.ClientConnInterface -} - -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, "/mycel.resolver.v1beta1.Query/Params", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *queryClient) WalletRecord(ctx context.Context, in *QueryWalletRecordRequest, opts ...grpc.CallOption) (*QueryWalletRecordResponse, error) { - out := new(QueryWalletRecordResponse) - err := c.cc.Invoke(ctx, "/mycel.resolver.v1beta1.Query/WalletRecord", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *queryClient) DnsRecord(ctx context.Context, in *QueryDnsRecordRequest, opts ...grpc.CallOption) (*QueryDnsRecordResponse, error) { - out := new(QueryDnsRecordResponse) - err := c.cc.Invoke(ctx, "/mycel.resolver.v1beta1.Query/DnsRecord", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *queryClient) AllRecords(ctx context.Context, in *QueryAllRecordsRequest, opts ...grpc.CallOption) (*QueryAllRecordsResponse, error) { - out := new(QueryAllRecordsResponse) - err := c.cc.Invoke(ctx, "/mycel.resolver.v1beta1.Query/AllRecords", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *queryClient) TextRecord(ctx context.Context, in *QueryTextRecordRequest, opts ...grpc.CallOption) (*QueryTextRecordResponse, error) { - out := new(QueryTextRecordResponse) - err := c.cc.Invoke(ctx, "/mycel.resolver.v1beta1.Query/TextRecord", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// QueryServer is the server API for Query service. -// All implementations must embed UnimplementedQueryServer -// for forward compatibility -type QueryServer interface { - // Parameters queries the parameters of the module. - Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) - // Queries a list of QueryWalletRecord items. - WalletRecord(context.Context, *QueryWalletRecordRequest) (*QueryWalletRecordResponse, error) - // Queries a list of DnsRecord items. - DnsRecord(context.Context, *QueryDnsRecordRequest) (*QueryDnsRecordResponse, error) - // Queries a list of AllRecord items. - AllRecords(context.Context, *QueryAllRecordsRequest) (*QueryAllRecordsResponse, error) - // Queries a list of TextRecord items. - TextRecord(context.Context, *QueryTextRecordRequest) (*QueryTextRecordResponse, error) - mustEmbedUnimplementedQueryServer() -} - -// UnimplementedQueryServer must be embedded to have forward compatible implementations. -type UnimplementedQueryServer struct { -} - -func (UnimplementedQueryServer) Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Params not implemented") -} -func (UnimplementedQueryServer) WalletRecord(context.Context, *QueryWalletRecordRequest) (*QueryWalletRecordResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method WalletRecord not implemented") -} -func (UnimplementedQueryServer) DnsRecord(context.Context, *QueryDnsRecordRequest) (*QueryDnsRecordResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method DnsRecord not implemented") -} -func (UnimplementedQueryServer) AllRecords(context.Context, *QueryAllRecordsRequest) (*QueryAllRecordsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method AllRecords not implemented") -} -func (UnimplementedQueryServer) TextRecord(context.Context, *QueryTextRecordRequest) (*QueryTextRecordResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method TextRecord not implemented") -} -func (UnimplementedQueryServer) mustEmbedUnimplementedQueryServer() {} - -// UnsafeQueryServer may be embedded to opt out of forward compatibility for this service. -// Use of this interface is not recommended, as added methods to QueryServer will -// result in compilation errors. -type UnsafeQueryServer interface { - mustEmbedUnimplementedQueryServer() -} - -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: "/mycel.resolver.v1beta1.Query/Params", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).Params(ctx, req.(*QueryParamsRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Query_WalletRecord_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryWalletRecordRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).WalletRecord(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/mycel.resolver.v1beta1.Query/WalletRecord", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).WalletRecord(ctx, req.(*QueryWalletRecordRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Query_DnsRecord_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryDnsRecordRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).DnsRecord(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/mycel.resolver.v1beta1.Query/DnsRecord", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).DnsRecord(ctx, req.(*QueryDnsRecordRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Query_AllRecords_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryAllRecordsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).AllRecords(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/mycel.resolver.v1beta1.Query/AllRecords", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).AllRecords(ctx, req.(*QueryAllRecordsRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Query_TextRecord_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryTextRecordRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).TextRecord(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/mycel.resolver.v1beta1.Query/TextRecord", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).TextRecord(ctx, req.(*QueryTextRecordRequest)) - } - return interceptor(ctx, in, info, handler) -} - -// Query_ServiceDesc is the grpc.ServiceDesc for Query service. -// It's only intended for direct use with grpc.RegisterService, -// and not to be introspected or modified (even as a copy) -var Query_ServiceDesc = grpc.ServiceDesc{ - ServiceName: "mycel.resolver.v1beta1.Query", - HandlerType: (*QueryServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "Params", - Handler: _Query_Params_Handler, - }, - { - MethodName: "WalletRecord", - Handler: _Query_WalletRecord_Handler, - }, - { - MethodName: "DnsRecord", - Handler: _Query_DnsRecord_Handler, - }, - { - MethodName: "AllRecords", - Handler: _Query_AllRecords_Handler, - }, - { - MethodName: "TextRecord", - Handler: _Query_TextRecord_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "mycel/resolver/v1beta1/query.proto", -} diff --git a/api/mycel/resolver/v1beta1/tx.pulsar.go b/api/mycel/resolver/v1beta1/tx.pulsar.go deleted file mode 100644 index ffcb33a7..00000000 --- a/api/mycel/resolver/v1beta1/tx.pulsar.go +++ /dev/null @@ -1,77 +0,0 @@ -// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. -package types - -import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" -) - -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.27.0 -// protoc (unknown) -// source: mycel/resolver/v1beta1/tx.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) -) - -var File_mycel_resolver_v1beta1_tx_proto protoreflect.FileDescriptor - -var file_mycel_resolver_v1beta1_tx_proto_rawDesc = []byte{ - 0x0a, 0x1f, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, - 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x74, 0x78, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x12, 0x16, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, - 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x32, 0x05, 0x0a, 0x03, 0x4d, 0x73, 0x67, - 0x42, 0xcf, 0x01, 0x0a, 0x1a, 0x63, 0x6f, 0x6d, 0x2e, 0x6d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x72, - 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x42, - 0x07, 0x54, 0x78, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2e, 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, 0x73, 0x6f, - 0x6c, 0x76, 0x65, 0x72, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0xa2, 0x02, 0x03, 0x4d, 0x52, 0x58, - 0xaa, 0x02, 0x16, 0x4d, 0x79, 0x63, 0x65, 0x6c, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, - 0x72, 0x2e, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xca, 0x02, 0x16, 0x4d, 0x79, 0x63, 0x65, - 0x6c, 0x5c, 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, - 0x61, 0x31, 0xe2, 0x02, 0x22, 0x4d, 0x79, 0x63, 0x65, 0x6c, 0x5c, 0x52, 0x65, 0x73, 0x6f, 0x6c, - 0x76, 0x65, 0x72, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, - 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x18, 0x4d, 0x79, 0x63, 0x65, 0x6c, 0x3a, - 0x3a, 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x65, 0x74, - 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var file_mycel_resolver_v1beta1_tx_proto_goTypes = []interface{}{} -var file_mycel_resolver_v1beta1_tx_proto_depIdxs = []int32{ - 0, // [0:0] is the sub-list for method output_type - 0, // [0:0] is the sub-list for method input_type - 0, // [0:0] is the sub-list for extension type_name - 0, // [0:0] is the sub-list for extension extendee - 0, // [0:0] is the sub-list for field type_name -} - -func init() { file_mycel_resolver_v1beta1_tx_proto_init() } -func file_mycel_resolver_v1beta1_tx_proto_init() { - if File_mycel_resolver_v1beta1_tx_proto != nil { - return - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_mycel_resolver_v1beta1_tx_proto_rawDesc, - NumEnums: 0, - NumMessages: 0, - NumExtensions: 0, - NumServices: 1, - }, - GoTypes: file_mycel_resolver_v1beta1_tx_proto_goTypes, - DependencyIndexes: file_mycel_resolver_v1beta1_tx_proto_depIdxs, - }.Build() - File_mycel_resolver_v1beta1_tx_proto = out.File - file_mycel_resolver_v1beta1_tx_proto_rawDesc = nil - file_mycel_resolver_v1beta1_tx_proto_goTypes = nil - file_mycel_resolver_v1beta1_tx_proto_depIdxs = nil -} diff --git a/app/app.go b/app/app.go index 3c6c2a2d..44c2fc7e 100644 --- a/app/app.go +++ b/app/app.go @@ -1,994 +1,378 @@ package app import ( - "encoding/json" - "fmt" "io" "os" "path/filepath" - "strings" - // CosmWasm - "github.com/CosmWasm/wasmd/x/wasm" - wasmkeeper "github.com/CosmWasm/wasmd/x/wasm/keeper" - wasmtypes "github.com/CosmWasm/wasmd/x/wasm/types" - "github.com/spf13/cast" - - abci "github.com/cometbft/cometbft/abci/types" - tmos "github.com/cometbft/cometbft/libs/os" + _ "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 dbm "github.com/cosmos/cosmos-db" - "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" - ica "github.com/cosmos/ibc-go/v8/modules/apps/27-interchain-accounts" icacontrollerkeeper "github.com/cosmos/ibc-go/v8/modules/apps/27-interchain-accounts/controller/keeper" - icacontrollertypes "github.com/cosmos/ibc-go/v8/modules/apps/27-interchain-accounts/controller/types" - icahost "github.com/cosmos/ibc-go/v8/modules/apps/27-interchain-accounts/host" icahostkeeper "github.com/cosmos/ibc-go/v8/modules/apps/27-interchain-accounts/host/keeper" - icahosttypes "github.com/cosmos/ibc-go/v8/modules/apps/27-interchain-accounts/host/types" - icatypes "github.com/cosmos/ibc-go/v8/modules/apps/27-interchain-accounts/types" - "github.com/cosmos/ibc-go/v8/modules/apps/transfer" + ibcfeekeeper "github.com/cosmos/ibc-go/v8/modules/apps/29-fee/keeper" ibctransferkeeper "github.com/cosmos/ibc-go/v8/modules/apps/transfer/keeper" - ibctransfertypes "github.com/cosmos/ibc-go/v8/modules/apps/transfer/types" - ibc "github.com/cosmos/ibc-go/v8/modules/core" - ibcporttypes "github.com/cosmos/ibc-go/v8/modules/core/05-port/types" - ibcexported "github.com/cosmos/ibc-go/v8/modules/core/exported" ibckeeper "github.com/cosmos/ibc-go/v8/modules/core/keeper" - autocliv1 "cosmossdk.io/api/cosmos/autocli/v1" - reflectionv1 "cosmossdk.io/api/cosmos/reflection/v1" - "cosmossdk.io/client/v2/autocli" - "cosmossdk.io/core/appmodule" + "cosmossdk.io/depinject" "cosmossdk.io/log" storetypes "cosmossdk.io/store/types" - "cosmossdk.io/x/evidence" + circuitkeeper "cosmossdk.io/x/circuit/keeper" evidencekeeper "cosmossdk.io/x/evidence/keeper" - evidencetypes "cosmossdk.io/x/evidence/types" - "cosmossdk.io/x/feegrant" feegrantkeeper "cosmossdk.io/x/feegrant/keeper" - feegrantmodule "cosmossdk.io/x/feegrant/module" - "cosmossdk.io/x/upgrade" + nftkeeper "cosmossdk.io/x/nft/keeper" upgradekeeper "cosmossdk.io/x/upgrade/keeper" - upgradetypes "cosmossdk.io/x/upgrade/types" "github.com/cosmos/cosmos-sdk/baseapp" "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/client/grpc/cmtservice" - nodeservice "github.com/cosmos/cosmos-sdk/client/grpc/node" "github.com/cosmos/cosmos-sdk/codec" - addresscodec "github.com/cosmos/cosmos-sdk/codec/address" - "github.com/cosmos/cosmos-sdk/codec/types" + codectypes "github.com/cosmos/cosmos-sdk/codec/types" "github.com/cosmos/cosmos-sdk/runtime" - runtimeservices "github.com/cosmos/cosmos-sdk/runtime/services" + "github.com/cosmos/cosmos-sdk/server" "github.com/cosmos/cosmos-sdk/server/api" "github.com/cosmos/cosmos-sdk/server/config" servertypes "github.com/cosmos/cosmos-sdk/server/types" - "github.com/cosmos/cosmos-sdk/std" - sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/module" - "github.com/cosmos/cosmos-sdk/version" "github.com/cosmos/cosmos-sdk/x/auth" - "github.com/cosmos/cosmos-sdk/x/auth/ante" - authcodec "github.com/cosmos/cosmos-sdk/x/auth/codec" authkeeper "github.com/cosmos/cosmos-sdk/x/auth/keeper" authsims "github.com/cosmos/cosmos-sdk/x/auth/simulation" - authtx "github.com/cosmos/cosmos-sdk/x/auth/tx" authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" - "github.com/cosmos/cosmos-sdk/x/auth/vesting" - vestingtypes "github.com/cosmos/cosmos-sdk/x/auth/vesting/types" - "github.com/cosmos/cosmos-sdk/x/authz" authzkeeper "github.com/cosmos/cosmos-sdk/x/authz/keeper" - authzmodule "github.com/cosmos/cosmos-sdk/x/authz/module" - "github.com/cosmos/cosmos-sdk/x/bank" bankkeeper "github.com/cosmos/cosmos-sdk/x/bank/keeper" - banktypes "github.com/cosmos/cosmos-sdk/x/bank/types" - "github.com/cosmos/cosmos-sdk/x/consensus" - consensusparamkeeper "github.com/cosmos/cosmos-sdk/x/consensus/keeper" - consensusparamtypes "github.com/cosmos/cosmos-sdk/x/consensus/types" - "github.com/cosmos/cosmos-sdk/x/crisis" + consensuskeeper "github.com/cosmos/cosmos-sdk/x/consensus/keeper" crisiskeeper "github.com/cosmos/cosmos-sdk/x/crisis/keeper" - crisistypes "github.com/cosmos/cosmos-sdk/x/crisis/types" - distr "github.com/cosmos/cosmos-sdk/x/distribution" distrkeeper "github.com/cosmos/cosmos-sdk/x/distribution/keeper" - distrtypes "github.com/cosmos/cosmos-sdk/x/distribution/types" "github.com/cosmos/cosmos-sdk/x/genutil" genutiltypes "github.com/cosmos/cosmos-sdk/x/genutil/types" "github.com/cosmos/cosmos-sdk/x/gov" govclient "github.com/cosmos/cosmos-sdk/x/gov/client" govkeeper "github.com/cosmos/cosmos-sdk/x/gov/keeper" govtypes "github.com/cosmos/cosmos-sdk/x/gov/types" - govv1 "github.com/cosmos/cosmos-sdk/x/gov/types/v1" - govv1beta1 "github.com/cosmos/cosmos-sdk/x/gov/types/v1beta1" - "github.com/cosmos/cosmos-sdk/x/group" groupkeeper "github.com/cosmos/cosmos-sdk/x/group/keeper" - groupmodule "github.com/cosmos/cosmos-sdk/x/group/module" - "github.com/cosmos/cosmos-sdk/x/mint" mintkeeper "github.com/cosmos/cosmos-sdk/x/mint/keeper" - minttypes "github.com/cosmos/cosmos-sdk/x/mint/types" - "github.com/cosmos/cosmos-sdk/x/params" 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" - paramproposal "github.com/cosmos/cosmos-sdk/x/params/types/proposal" - "github.com/cosmos/cosmos-sdk/x/slashing" slashingkeeper "github.com/cosmos/cosmos-sdk/x/slashing/keeper" - slashingtypes "github.com/cosmos/cosmos-sdk/x/slashing/types" - "github.com/cosmos/cosmos-sdk/x/staking" stakingkeeper "github.com/cosmos/cosmos-sdk/x/staking/keeper" - stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types" - appparams "github.com/mycel-domain/mycel/app/params" "github.com/mycel-domain/mycel/docs" - // Epochs - epochsmodule "github.com/mycel-domain/mycel/x/epochs" + + // Mycel Modules epochsmodulekeeper "github.com/mycel-domain/mycel/x/epochs/keeper" - epochsmoduletypes "github.com/mycel-domain/mycel/x/epochs/types" - furnacemodule "github.com/mycel-domain/mycel/x/furnace" furnacemodulekeeper "github.com/mycel-domain/mycel/x/furnace/keeper" - furnacemoduletypes "github.com/mycel-domain/mycel/x/furnace/types" - // Registry - registrymodule "github.com/mycel-domain/mycel/x/registry" registrymodulekeeper "github.com/mycel-domain/mycel/x/registry/keeper" - registrymoduletypes "github.com/mycel-domain/mycel/x/registry/types" - resolvermodule "github.com/mycel-domain/mycel/x/resolver" - resolvermodulekeeper "github.com/mycel-domain/mycel/x/resolver/keeper" - resolvermoduletypes "github.com/mycel-domain/mycel/x/resolver/types" ) const ( Name = "mycel" + AccountAddressPrefix = "mycel" DefaultGasLimit int64 = 50000000 DefaultVoteExtensionsEnableHeight = 1 ) -// this line is used by starport scaffolding # stargate/wasm/app/enabledProposals - -func getGovProposalHandlers() []govclient.ProposalHandler { - var govProposalHandlers []govclient.ProposalHandler - // this line is used by starport scaffolding # stargate/app/govProposalHandlers - - govProposalHandlers = append(govProposalHandlers, - paramsclient.ProposalHandler, - // this line is used by starport scaffolding # stargate/app/govProposalHandler - ) - - return govProposalHandlers -} - -var ( - // DefaultNodeHome default home directories for the application daemon - DefaultNodeHome string - - // module account permissions - maccPerms = map[string][]string{ - authtypes.FeeCollectorName: nil, - distrtypes.ModuleName: nil, - icatypes.ModuleName: nil, - minttypes.ModuleName: {authtypes.Minter}, - stakingtypes.BondedPoolName: {authtypes.Burner, authtypes.Staking}, - stakingtypes.NotBondedPoolName: {authtypes.Burner, authtypes.Staking}, - govtypes.ModuleName: {authtypes.Burner}, - ibctransfertypes.ModuleName: {authtypes.Minter, authtypes.Burner}, - // CosmWasm - wasmtypes.ModuleName: {authtypes.Burner}, - // my modules - registrymoduletypes.ModuleName: {authtypes.Minter, authtypes.Burner, authtypes.Staking}, - furnacemoduletypes.ModuleName: {authtypes.Minter, authtypes.Burner, authtypes.Staking}, - // this line is used by starport scaffolding # stargate/app/maccPerms - } -) +// DefaultNodeHome default home directories for the application daemon +var DefaultNodeHome string var ( _ runtime.AppI = (*App)(nil) _ servertypes.Application = (*App)(nil) ) -func init() { - userHomeDir, err := os.UserHomeDir() - if err != nil { - panic(err) - } - - DefaultNodeHome = filepath.Join(userHomeDir, "."+Name) -} - // App extends an ABCI application, but with most of its parameters exported. // They are exported for convenience in creating helper functions, as object // capabilities aren't needed for testing. type App struct { - *baseapp.BaseApp - + *runtime.App legacyAmino *codec.LegacyAmino appCodec codec.Codec - interfaceRegistry types.InterfaceRegistry txConfig client.TxConfig - event runtime.EventService - - invCheckPeriod uint - - // keys to access the substores - keys map[string]*storetypes.KVStoreKey - tkeys map[string]*storetypes.TransientStoreKey - memKeys map[string]*storetypes.MemoryStoreKey + interfaceRegistry codectypes.InterfaceRegistry // keepers AccountKeeper authkeeper.AccountKeeper - AuthzKeeper authzkeeper.Keeper BankKeeper bankkeeper.Keeper - CapabilityKeeper *capabilitykeeper.Keeper StakingKeeper *stakingkeeper.Keeper - SlashingKeeper slashingkeeper.Keeper - MintKeeper mintkeeper.Keeper DistrKeeper distrkeeper.Keeper - GovKeeper govkeeper.Keeper - CrisisKeeper *crisiskeeper.Keeper - UpgradeKeeper *upgradekeeper.Keeper - ParamsKeeper paramskeeper.Keeper - IBCKeeper *ibckeeper.Keeper // IBC Keeper must be a pointer in the app, so we can SetRouter on it correctly - EvidenceKeeper evidencekeeper.Keeper - TransferKeeper ibctransferkeeper.Keeper - ICAHostKeeper icahostkeeper.Keeper - FeeGrantKeeper feegrantkeeper.Keeper - GroupKeeper groupkeeper.Keeper - ConsensusParamsKeeper consensusparamkeeper.Keeper - - // make scoped keepers public for test purposes - ScopedIBCKeeper capabilitykeeper.ScopedKeeper - ScopedTransferKeeper capabilitykeeper.ScopedKeeper - ScopedICAHostKeeper capabilitykeeper.ScopedKeeper + ConsensusParamsKeeper consensuskeeper.Keeper + + SlashingKeeper slashingkeeper.Keeper + MintKeeper mintkeeper.Keeper + GovKeeper *govkeeper.Keeper + CrisisKeeper *crisiskeeper.Keeper + UpgradeKeeper *upgradekeeper.Keeper + ParamsKeeper paramskeeper.Keeper + AuthzKeeper authzkeeper.Keeper + EvidenceKeeper evidencekeeper.Keeper + FeeGrantKeeper feegrantkeeper.Keeper + GroupKeeper groupkeeper.Keeper + NFTKeeper nftkeeper.Keeper + CircuitBreakerKeeper circuitkeeper.Keeper + + // IBC + IBCKeeper *ibckeeper.Keeper // IBC Keeper must be a pointer in the app, so we can SetRouter on it correctly + CapabilityKeeper *capabilitykeeper.Keeper + IBCFeeKeeper ibcfeekeeper.Keeper + ICAControllerKeeper icacontrollerkeeper.Keeper + ICAHostKeeper icahostkeeper.Keeper + TransferKeeper ibctransferkeeper.Keeper + + // Scoped IBC + ScopedIBCKeeper capabilitykeeper.ScopedKeeper + ScopedIBCTransferKeeper capabilitykeeper.ScopedKeeper + ScopedICAControllerKeeper capabilitykeeper.ScopedKeeper + ScopedICAHostKeeper capabilitykeeper.ScopedKeeper // CosmWasm - WasmKeeper wasmkeeper.Keeper + // WasmKeeper wasmkeeper.Keeper - // my mnodules - RegistryKeeper registrymodulekeeper.Keeper + // Mycel modules EpochsKeeper epochsmodulekeeper.Keeper - ResolverKeeper resolvermodulekeeper.Keeper FurnaceKeeper furnacemodulekeeper.Keeper - // this line is used by starport scaffolding # stargate/app/keeperDeclaration - - // mm is the module manager - mm *module.Manager - BasicModuleManager module.BasicManager + RegistryKeeper registrymodulekeeper.Keeper // sm is the simulation manager - sm *module.SimulationManager - configurator module.Configurator -} - -// New returns a reference to an initialized blockchain app -func New( - logger log.Logger, - db dbm.DB, - traceStore io.Writer, - loadLatest bool, - skipUpgradeHeights map[int64]bool, - homePath string, - invCheckPeriod uint, - encodingConfig appparams.EncodingConfig, - appOpts servertypes.AppOptions, - wasmOpts []wasmkeeper.Option, - baseAppOptions ...func(*baseapp.BaseApp), -) *App { - return NewApp( - logger, - db, - traceStore, - loadLatest, - skipUpgradeHeights, - homePath, - invCheckPeriod, - encodingConfig, - appOpts, - wasmOpts, - baseAppOptions..., - ) + sm *module.SimulationManager } -func NewApp( - logger log.Logger, - db dbm.DB, - traceStore io.Writer, - loadLatest bool, - skipUpgradeHeights map[int64]bool, - homePath string, - invCheckPeriod uint, - encodingConfig appparams.EncodingConfig, - appOpts servertypes.AppOptions, - wasmOpts []wasmkeeper.Option, - baseAppOptions ...func(*baseapp.BaseApp), -) *App { - encCfg := appparams.DefaultEncodingConfig() - interfaceRegistry := encCfg.InterfaceRegistry - appCodec := encCfg.Marshaler - legacyAmino := encCfg.Amino - txConfig := encCfg.TxConfig - std.RegisterLegacyAminoCodec(legacyAmino) - std.RegisterInterfaces(interfaceRegistry) - - bApp := baseapp.NewBaseApp( - Name, - logger, - db, - encodingConfig.TxConfig.TxDecoder(), - baseAppOptions..., - ) - bApp.SetCommitMultiStoreTracer(traceStore) - bApp.SetVersion(version.Version) - bApp.SetInterfaceRegistry(interfaceRegistry) - bApp.SetTxEncoder(txConfig.TxEncoder()) - - keys := storetypes.NewKVStoreKeys( - authtypes.StoreKey, authzkeeper.StoreKey, banktypes.StoreKey, stakingtypes.StoreKey, - crisistypes.StoreKey, minttypes.StoreKey, distrtypes.StoreKey, slashingtypes.StoreKey, - govtypes.StoreKey, paramstypes.StoreKey, ibcexported.StoreKey, upgradetypes.StoreKey, - feegrant.StoreKey, evidencetypes.StoreKey, ibctransfertypes.StoreKey, icahosttypes.StoreKey, - capabilitytypes.StoreKey, group.StoreKey, icacontrollertypes.StoreKey, consensusparamtypes.StoreKey, - - // CosmWasm - wasmtypes.StoreKey, - - // my modules - registrymoduletypes.StoreKey, - epochsmoduletypes.StoreKey, - resolvermoduletypes.StoreKey, - furnacemoduletypes.StoreKey, - // this line is used by starport scaffolding # stargate/app/storeKey - ) - tkeys := storetypes.NewTransientStoreKeys(paramstypes.TStoreKey) - memKeys := storetypes.NewMemoryStoreKeys(capabilitytypes.MemStoreKey) - - app := &App{ - BaseApp: bApp, - legacyAmino: legacyAmino, - appCodec: appCodec, - interfaceRegistry: interfaceRegistry, - txConfig: encodingConfig.TxConfig, - invCheckPeriod: invCheckPeriod, - keys: keys, - tkeys: tkeys, - memKeys: memKeys, - } - - app.ParamsKeeper = initParamsKeeper( - appCodec, - legacyAmino, - keys[paramstypes.StoreKey], - tkeys[paramstypes.TStoreKey], - ) - - // set the BaseApp's parameter store - app.ConsensusParamsKeeper = consensusparamkeeper.NewKeeper( - appCodec, - runtime.NewKVStoreService(keys[consensusparamtypes.StoreKey]), - authtypes.NewModuleAddress(govtypes.ModuleName).String(), - app.event, - ) - bApp.SetParamStore(&app.ConsensusParamsKeeper.ParamsStore) - - // add capability keeper and ScopeToModule for ibc module - app.CapabilityKeeper = capabilitykeeper.NewKeeper( - appCodec, - keys[capabilitytypes.StoreKey], - memKeys[capabilitytypes.MemStoreKey], - ) - - // grant capabilities for the ibc and ibc-transfer modules - scopedIBCKeeper := app.CapabilityKeeper.ScopeToModule(ibcexported.ModuleName) - scopedICAControllerKeeper := app.CapabilityKeeper.ScopeToModule(icacontrollertypes.SubModuleName) - scopedTransferKeeper := app.CapabilityKeeper.ScopeToModule(ibctransfertypes.ModuleName) - scopedICAHostKeeper := app.CapabilityKeeper.ScopeToModule(icahosttypes.SubModuleName) - // this line is used by starport scaffolding # stargate/app/scopedKeeper - - // CosmWasm - scopedWasmKeeper := app.CapabilityKeeper.ScopeToModule(wasmtypes.ModuleName) - - // add keepers - app.AccountKeeper = authkeeper.NewAccountKeeper( - appCodec, - runtime.NewKVStoreService(keys[authtypes.StoreKey]), - authtypes.ProtoBaseAccount, - maccPerms, - authcodec.NewBech32Codec(appparams.Bech32PrefixAccAddr), - appparams.Bech32PrefixAccAddr, - authtypes.NewModuleAddress(govtypes.ModuleName).String(), - ) - app.AuthzKeeper = authzkeeper.NewKeeper( - runtime.NewKVStoreService(keys[authzkeeper.StoreKey]), - appCodec, - app.MsgServiceRouter(), - app.AccountKeeper, - ) - - app.BankKeeper = bankkeeper.NewBaseKeeper( - appCodec, - runtime.NewKVStoreService(keys[banktypes.StoreKey]), - app.AccountKeeper, - app.BlockedModuleAccountAddrs(), - authtypes.NewModuleAddress(govtypes.ModuleName).String(), - logger, - ) - - app.StakingKeeper = stakingkeeper.NewKeeper( - appCodec, - runtime.NewKVStoreService(keys[stakingtypes.StoreKey]), - app.AccountKeeper, - app.BankKeeper, - authtypes.NewModuleAddress(govtypes.ModuleName).String(), - addresscodec.NewBech32Codec(sdk.GetConfig().GetBech32ValidatorAddrPrefix()), - addresscodec.NewBech32Codec(sdk.GetConfig().GetBech32ConsensusAddrPrefix()), - ) - - app.FeeGrantKeeper = feegrantkeeper.NewKeeper( - appCodec, - runtime.NewKVStoreService(keys[feegrant.StoreKey]), - app.AccountKeeper, - ) - - app.MintKeeper = mintkeeper.NewKeeper( - appCodec, - runtime.NewKVStoreService(keys[minttypes.StoreKey]), - app.StakingKeeper, - app.AccountKeeper, - app.BankKeeper, - authtypes.FeeCollectorName, - authtypes.NewModuleAddress(govtypes.ModuleName).String(), - ) - - app.DistrKeeper = distrkeeper.NewKeeper( - appCodec, - runtime.NewKVStoreService(keys[distrtypes.StoreKey]), - app.AccountKeeper, - app.BankKeeper, - app.StakingKeeper, - authtypes.FeeCollectorName, - authtypes.NewModuleAddress(govtypes.ModuleName).String(), - ) - - app.SlashingKeeper = slashingkeeper.NewKeeper( - appCodec, - legacyAmino, - runtime.NewKVStoreService(keys[slashingtypes.StoreKey]), - app.StakingKeeper, - authtypes.NewModuleAddress(govtypes.ModuleName).String(), - ) - - app.CrisisKeeper = crisiskeeper.NewKeeper( - appCodec, - runtime.NewKVStoreService(keys[crisistypes.StoreKey]), - invCheckPeriod, - app.BankKeeper, - authtypes.FeeCollectorName, - authtypes.NewModuleAddress(govtypes.ModuleName).String(), - addresscodec.NewBech32Codec(sdk.GetConfig().GetBech32AccountAddrPrefix()), - ) - - groupConfig := group.DefaultConfig() - /* - Example of setting group params: - groupConfig.MaxMetadataLen = 1000 - */ - app.GroupKeeper = groupkeeper.NewKeeper( - keys[group.StoreKey], - appCodec, - app.MsgServiceRouter(), - app.AccountKeeper, - groupConfig, - ) - - app.UpgradeKeeper = upgradekeeper.NewKeeper( - skipUpgradeHeights, - runtime.NewKVStoreService(keys[upgradetypes.StoreKey]), - appCodec, - homePath, - app.BaseApp, - authtypes.NewModuleAddress(govtypes.ModuleName).String(), - ) - - // ... other modules keepers - - // Create IBC Keeper - app.IBCKeeper = ibckeeper.NewKeeper( - appCodec, keys[ibcexported.StoreKey], - app.GetSubspace(ibcexported.ModuleName), - app.StakingKeeper, - app.UpgradeKeeper, - scopedIBCKeeper, - authtypes.NewModuleAddress(govtypes.ModuleName).String(), - ) - - // Create Transfer Keepers - app.TransferKeeper = ibctransferkeeper.NewKeeper( - appCodec, - keys[ibctransfertypes.StoreKey], - app.GetSubspace(ibctransfertypes.ModuleName), - app.IBCKeeper.ChannelKeeper, - app.IBCKeeper.ChannelKeeper, - app.IBCKeeper.PortKeeper, - app.AccountKeeper, - app.BankKeeper, - scopedTransferKeeper, - authtypes.NewModuleAddress(govtypes.ModuleName).String(), - ) - transferModule := transfer.NewAppModule(app.TransferKeeper) - transferIBCModule := transfer.NewIBCModule(app.TransferKeeper) - - app.ICAHostKeeper = icahostkeeper.NewKeeper( - appCodec, keys[icahosttypes.StoreKey], - app.GetSubspace(icahosttypes.SubModuleName), - app.IBCKeeper.ChannelKeeper, - app.IBCKeeper.ChannelKeeper, - app.IBCKeeper.PortKeeper, - app.AccountKeeper, - scopedICAHostKeeper, - app.MsgServiceRouter(), - authtypes.NewModuleAddress(govtypes.ModuleName).String(), - ) - icaControllerKeeper := icacontrollerkeeper.NewKeeper( - appCodec, keys[icacontrollertypes.StoreKey], - app.GetSubspace(icacontrollertypes.SubModuleName), - app.IBCKeeper.ChannelKeeper, // may be replaced with middleware such as ics29 fee - app.IBCKeeper.ChannelKeeper, - app.IBCKeeper.PortKeeper, - scopedICAControllerKeeper, app.MsgServiceRouter(), - authtypes.NewModuleAddress(govtypes.ModuleName).String(), - ) - icaModule := ica.NewAppModule(&icaControllerKeeper, &app.ICAHostKeeper) - icaHostIBCModule := icahost.NewIBCModule(app.ICAHostKeeper) - - // Create evidence Keeper for to register the IBC light client misbehaviour evidence route - evidenceKeeper := evidencekeeper.NewKeeper( - appCodec, - runtime.NewKVStoreService(keys[evidencetypes.StoreKey]), - app.StakingKeeper, - app.SlashingKeeper, - addresscodec.NewBech32Codec(sdk.Bech32PrefixAccAddr), - runtime.ProvideCometInfoService(), - ) - // If evidence needs to be handled for the app, set routes in router here and seal - app.EvidenceKeeper = *evidenceKeeper - - govConfig := govtypes.DefaultConfig() - govKeeper := govkeeper.NewKeeper( - appCodec, - runtime.NewKVStoreService(keys[govtypes.StoreKey]), - app.AccountKeeper, - app.BankKeeper, - app.StakingKeeper, - app.DistrKeeper, - app.MsgServiceRouter(), - govConfig, - authtypes.NewModuleAddress(govtypes.ModuleName).String(), - ) - - govRouter := govv1beta1.NewRouter() - govRouter. - AddRoute(govtypes.RouterKey, govv1beta1.ProposalHandler). - AddRoute(paramproposal.RouterKey, params.NewParamChangeProposalHandler(app.ParamsKeeper)) - - // CosmWasm - wasmDir := filepath.Join(homePath, "wasm") - wasmConfig, err := wasm.ReadWasmConfig(appOpts) +func init() { + userHomeDir, err := os.UserHomeDir() if err != nil { - panic(fmt.Sprintf("error while reading wasm config: %s", err)) + panic(err) } - // The last arguments can contain custom message handlers, and custom query handlers, - // if we want to allow any custom callbacks - availableCapabilities := strings.Join(AllCapabilities(), ",") - app.WasmKeeper = wasmkeeper.NewKeeper( - appCodec, - runtime.NewKVStoreService(keys[wasmtypes.StoreKey]), - app.AccountKeeper, - app.BankKeeper, - app.StakingKeeper, - distrkeeper.NewQuerier(app.DistrKeeper), - app.IBCKeeper.ChannelKeeper, - app.IBCKeeper.ChannelKeeper, - app.IBCKeeper.PortKeeper, - scopedWasmKeeper, - app.TransferKeeper, - app.MsgServiceRouter(), - app.GRPCQueryRouter(), - wasmDir, - wasmConfig, - availableCapabilities, - authtypes.NewModuleAddress(govtypes.ModuleName).String(), - wasmOpts..., - ) - govKeeper.SetLegacyRouter(govRouter) - - app.GovKeeper = *govKeeper.SetHooks( - govtypes.NewMultiGovHooks( - // register the governance hooks - ), - ) - - // My module's keepers - app.EpochsKeeper = *epochsmodulekeeper.NewKeeper( - appCodec, - keys[epochsmoduletypes.StoreKey], - keys[epochsmoduletypes.MemStoreKey], - app.GetSubspace(epochsmoduletypes.ModuleName), - ) - - app.FurnaceKeeper = *furnacemodulekeeper.NewKeeper( - appCodec, - keys[furnacemoduletypes.StoreKey], - keys[furnacemoduletypes.MemStoreKey], - app.GetSubspace(furnacemoduletypes.ModuleName), - - app.BankKeeper, - app.EpochsKeeper, - ) - - app.RegistryKeeper = *registrymodulekeeper.NewKeeper( - appCodec, - keys[registrymoduletypes.StoreKey], - keys[registrymoduletypes.MemStoreKey], - app.GetSubspace(registrymoduletypes.ModuleName), - - app.BankKeeper, - app.DistrKeeper, - app.MintKeeper, - app.MintKeeper.Minter, - app.FurnaceKeeper, - ) - - app.ResolverKeeper = *resolvermodulekeeper.NewKeeper( - appCodec, - keys[resolvermoduletypes.StoreKey], - keys[resolvermoduletypes.MemStoreKey], - app.GetSubspace(resolvermoduletypes.ModuleName), - - app.RegistryKeeper, - ) - - app.EpochsKeeper.SetHooks( - epochsmoduletypes.NewMultiEpochHooks( - // insert hooks here - app.FurnaceKeeper.Hooks(), - )) - - epochsModule := epochsmodule.NewAppModule(appCodec, app.EpochsKeeper, app.AccountKeeper, app.BankKeeper) - registryModule := registrymodule.NewAppModule(appCodec, app.RegistryKeeper, app.AccountKeeper, app.BankKeeper) - resolverModule := resolvermodule.NewAppModule(appCodec, app.ResolverKeeper, app.AccountKeeper, app.BankKeeper) - furnaceModule := furnacemodule.NewAppModule(appCodec, app.FurnaceKeeper, app.AccountKeeper, app.BankKeeper) - - // this line is used by starport scaffolding # stargate/app/keeperDefinition - - /**** IBC Routing ****/ - - // Sealing prevents other modules from creating scoped sub-keepers - app.CapabilityKeeper.Seal() - - // Create static IBC router, add transfer route, then set and seal it - ibcRouter := ibcporttypes.NewRouter() - ibcRouter.AddRoute(icahosttypes.SubModuleName, icaHostIBCModule). - AddRoute(ibctransfertypes.ModuleName, transferIBCModule) - // this line is used by starport scaffolding # ibc/app/router - app.IBCKeeper.SetRouter(ibcRouter) - - /**** Module Hooks ****/ + DefaultNodeHome = filepath.Join(userHomeDir, "."+Name) +} - // register hooks after all modules have been initialized +// getGovProposalHandlers return the chain proposal handlers. +func getGovProposalHandlers() []govclient.ProposalHandler { + var govProposalHandlers []govclient.ProposalHandler + // this line is used by starport scaffolding # stargate/app/govProposalHandlers - app.StakingKeeper.SetHooks( - stakingtypes.NewMultiStakingHooks( - // insert staking hooks receivers here - app.DistrKeeper.Hooks(), - app.SlashingKeeper.Hooks(), - ), + govProposalHandlers = append(govProposalHandlers, + paramsclient.ProposalHandler, + // this line is used by starport scaffolding # stargate/app/govProposalHandler ) - /**** Module Options ****/ - - // NOTE: we may consider parsing `appOpts` inside module constructors. For the moment - // we prefer to be more strict in what arguments the modules expect. - skipGenesisInvariants := cast.ToBool(appOpts.Get(crisis.FlagSkipGenesisInvariants)) - - // NOTE: Any module instantiated in the module manager that is later modified - // must be passed by reference here. + return govProposalHandlers +} - app.mm = module.NewManager( - genutil.NewAppModule( - app.AccountKeeper, - app.StakingKeeper, - app.BaseApp, - encodingConfig.TxConfig, +func AppConfig() depinject.Config { + return depinject.Configs( + appConfig, + // Loads the ao config from a YAML file. + // appconfig.LoadYAML(AppConfigYAML), + depinject.Supply( + // supply custom module basics + map[string]module.AppModuleBasic{ + genutiltypes.ModuleName: genutil.NewAppModuleBasic(genutiltypes.DefaultMessageValidator), + govtypes.ModuleName: gov.NewAppModuleBasic(getGovProposalHandlers()), + // this line is used by starport scaffolding # stargate/appConfig/moduleBasic + }, ), - auth.NewAppModule(appCodec, app.AccountKeeper, authsims.RandomGenesisAccounts, app.GetSubspace(authtypes.ModuleName)), - authzmodule.NewAppModule(appCodec, app.AuthzKeeper, app.AccountKeeper, app.BankKeeper, app.interfaceRegistry), - vesting.NewAppModule(app.AccountKeeper, app.BankKeeper), - bank.NewAppModule(appCodec, app.BankKeeper, app.AccountKeeper, app.GetSubspace(banktypes.ModuleName)), - capability.NewAppModule(appCodec, *app.CapabilityKeeper, false), - feegrantmodule.NewAppModule(appCodec, app.AccountKeeper, app.BankKeeper, app.FeeGrantKeeper, app.interfaceRegistry), - groupmodule.NewAppModule(appCodec, app.GroupKeeper, app.AccountKeeper, app.BankKeeper, app.interfaceRegistry), - gov.NewAppModule(appCodec, &app.GovKeeper, app.AccountKeeper, app.BankKeeper, app.GetSubspace(govtypes.ModuleName)), - mint.NewAppModule(appCodec, app.MintKeeper, app.AccountKeeper, nil, app.GetSubspace(minttypes.ModuleName)), - slashing.NewAppModule(appCodec, app.SlashingKeeper, app.AccountKeeper, app.BankKeeper, app.StakingKeeper, app.GetSubspace(slashingtypes.ModuleName), app.interfaceRegistry), - distr.NewAppModule(appCodec, app.DistrKeeper, app.AccountKeeper, app.BankKeeper, app.StakingKeeper, app.GetSubspace(distrtypes.ModuleName)), - staking.NewAppModule(appCodec, app.StakingKeeper, app.AccountKeeper, app.BankKeeper, app.GetSubspace(stakingtypes.ModuleName)), - upgrade.NewAppModule(app.UpgradeKeeper, addresscodec.NewBech32Codec(sdk.Bech32PrefixAccAddr)), - evidence.NewAppModule(app.EvidenceKeeper), - consensus.NewAppModule(appCodec, app.ConsensusParamsKeeper), - ibc.NewAppModule(app.IBCKeeper), - params.NewAppModule(app.ParamsKeeper), - transferModule, - icaModule, - // CosmWasm - wasm.NewAppModule(appCodec, &app.WasmKeeper, app.StakingKeeper, app.AccountKeeper, app.BankKeeper, app.MsgServiceRouter(), app.GetSubspace(wasmtypes.ModuleName)), - // mycel modules - registryModule, - epochsModule, - resolverModule, - furnaceModule, - // this line is used by starport scaffolding # stargate/app/appModule - - crisis.NewAppModule(app.CrisisKeeper, skipGenesisInvariants, app.GetSubspace(crisistypes.ModuleName)), // always be last to make sure that it checks for all invariants and not only part of them - ) - - app.mm.SetOrderPreBlockers( - upgradetypes.ModuleName, - ) - - // During begin block slashing happens after distr.BeginBlocker so that - // there is nothing left over in the validator fee pool, so as to keep the - // CanWithdrawInvariant invariant. - // NOTE: staking module is required if HistoricalEntries param > 0 - app.mm.SetOrderBeginBlockers( - // upgrades should be run first - capabilitytypes.ModuleName, - minttypes.ModuleName, - distrtypes.ModuleName, - slashingtypes.ModuleName, - evidencetypes.ModuleName, - stakingtypes.ModuleName, - authtypes.ModuleName, - banktypes.ModuleName, - govtypes.ModuleName, - crisistypes.ModuleName, - ibctransfertypes.ModuleName, - ibcexported.ModuleName, - icatypes.ModuleName, - genutiltypes.ModuleName, - authz.ModuleName, - feegrant.ModuleName, - group.ModuleName, - paramstypes.ModuleName, - vestingtypes.ModuleName, - consensusparamtypes.ModuleName, - // CosmWasm - wasmtypes.ModuleName, - // my modules - registrymoduletypes.ModuleName, - epochsmoduletypes.ModuleName, - resolvermoduletypes.ModuleName, - furnacemoduletypes.ModuleName, - // this line is used by starport scaffolding # stargate/app/beginBlockers ) +} - app.mm.SetOrderEndBlockers( - crisistypes.ModuleName, - govtypes.ModuleName, - stakingtypes.ModuleName, - ibctransfertypes.ModuleName, - ibcexported.ModuleName, - icatypes.ModuleName, - capabilitytypes.ModuleName, - authtypes.ModuleName, - banktypes.ModuleName, - distrtypes.ModuleName, - slashingtypes.ModuleName, - minttypes.ModuleName, - genutiltypes.ModuleName, - evidencetypes.ModuleName, - authz.ModuleName, - feegrant.ModuleName, - group.ModuleName, - paramstypes.ModuleName, - upgradetypes.ModuleName, - vestingtypes.ModuleName, - consensusparamtypes.ModuleName, - // CosmWasm - wasmtypes.ModuleName, - // my modules - registrymoduletypes.ModuleName, - epochsmoduletypes.ModuleName, - resolvermoduletypes.ModuleName, - furnacemoduletypes.ModuleName, - // this line is used by starport scaffolding # stargate/app/endBlockers +// New returns a reference to an initialized App. +func New( + logger log.Logger, + db dbm.DB, + traceStore io.Writer, + loadLatest bool, + appOpts servertypes.AppOptions, + baseAppOptions ...func(*baseapp.BaseApp), +) (*App, error) { + var ( + app = &App{} + appBuilder *runtime.AppBuilder + + // merge the AppConfig and other configuration in one config + appConfig = depinject.Configs( + AppConfig(), + depinject.Supply( + // Supply the application options + appOpts, + // Supply with IBC keeper getter for the IBC modules with App Wiring. + // The IBC Keeper cannot be passed because it has not been initiated yet. + // Passing the getter, the app IBC Keeper will always be accessible. + // This needs to be removed after IBC supports App Wiring. + app.GetIBCKeeper, + app.GetCapabilityScopedKeeper, + // Supply the logger + logger, + + // ADVANCED CONFIGURATION + // + // AUTH + // + // For providing a custom function required in auth to generate custom account types + // add it below. By default the auth module uses simulation.RandomGenesisAccounts. + // + // authtypes.RandomGenesisAccountsFn(simulation.RandomGenesisAccounts), + // + // For providing a custom a base account type add it below. + // By default the auth module uses authtypes.ProtoBaseAccount(). + // + // func() sdk.AccountI { return authtypes.ProtoBaseAccount() }, + // + // For providing a different address codec, add it below. + // By default the auth module uses a Bech32 address codec, + // with the prefix defined in the auth module configuration. + // + // func() address.Codec { return <- custom address codec type -> } + + // + // STAKING + // + // For provinding a different validator and consensus address codec, add it below. + // By default the staking module uses the bech32 prefix provided in the auth config, + // and appends "valoper" and "valcons" for validator and consensus addresses respectively. + // When providing a custom address codec in auth, custom address codecs must be provided here as well. + // + // func() runtime.ValidatorAddressCodec { return <- custom validator address codec type -> } + // func() runtime.ConsensusAddressCodec { return <- custom consensus address codec type -> } + + // + // MINT + // + + // For providing a custom inflation function for x/mint add here your + // custom function that implements the minttypes.InflationCalculationFn + // interface. + ), + ) ) - // NOTE: The genutils module must occur after staking so that pools are - // properly initialized with tokens from genesis accounts. - // NOTE: Capability module must occur first so that it can initialize any capabilities - // so that other modules that want to create or claim capabilities afterwards in InitChain - // can do so safely. - - genesisModuleOrder := []string{ - capabilitytypes.ModuleName, - authtypes.ModuleName, - banktypes.ModuleName, - distrtypes.ModuleName, - stakingtypes.ModuleName, - slashingtypes.ModuleName, - govtypes.ModuleName, - minttypes.ModuleName, - crisistypes.ModuleName, - genutiltypes.ModuleName, - ibctransfertypes.ModuleName, - ibcexported.ModuleName, - icatypes.ModuleName, - evidencetypes.ModuleName, - authz.ModuleName, - feegrant.ModuleName, - group.ModuleName, - paramstypes.ModuleName, - upgradetypes.ModuleName, - vestingtypes.ModuleName, - consensusparamtypes.ModuleName, - // CosmWasm - wasmtypes.ModuleName, - // my modules - registrymoduletypes.ModuleName, - epochsmoduletypes.ModuleName, - resolvermoduletypes.ModuleName, - furnacemoduletypes.ModuleName, - // this line is used by starport scaffolding # stargate/app/initGenesis - } - app.mm.SetOrderInitGenesis(genesisModuleOrder...) - app.mm.SetOrderExportGenesis(genesisModuleOrder...) - - // Uncomment if you want to set a custom migration order here. - // app.mm.SetOrderMigrations(custom order) - - app.BasicModuleManager = module.NewBasicManagerFromManager( - app.mm, - map[string]module.AppModuleBasic{ - genutiltypes.ModuleName: genutil.NewAppModuleBasic(genutiltypes.DefaultMessageValidator), - govtypes.ModuleName: gov.NewAppModuleBasic( - []govclient.ProposalHandler{}, - ), - }) - app.BasicModuleManager.RegisterLegacyAminoCodec(legacyAmino) - app.BasicModuleManager.RegisterInterfaces(interfaceRegistry) - app.mm.RegisterInvariants(app.CrisisKeeper) - app.configurator = module.NewConfigurator(app.appCodec, app.MsgServiceRouter(), app.GRPCQueryRouter()) - err = app.mm.RegisterServices(app.configurator) - if err != nil { + if err := depinject.Inject(appConfig, + &appBuilder, + &app.appCodec, + &app.legacyAmino, + &app.txConfig, + &app.interfaceRegistry, + &app.AccountKeeper, + &app.BankKeeper, + &app.StakingKeeper, + &app.DistrKeeper, + &app.ConsensusParamsKeeper, + &app.SlashingKeeper, + &app.MintKeeper, + &app.GovKeeper, + &app.CrisisKeeper, + &app.UpgradeKeeper, + &app.ParamsKeeper, + &app.AuthzKeeper, + &app.EvidenceKeeper, + &app.FeeGrantKeeper, + &app.NFTKeeper, + &app.GroupKeeper, + &app.CircuitBreakerKeeper, + // CosmosWasm + // &app.WasmKeeper, + // Mycel Keepers + &app.EpochsKeeper, + &app.FurnaceKeeper, + &app.RegistryKeeper, + // this line is used by starport scaffolding # stargate/app/keeperDefinition + ); err != nil { panic(err) } - autocliv1.RegisterQueryServer(app.GRPCQueryRouter(), runtimeservices.NewAutoCLIQueryService(app.mm.Modules)) - reflectionSvc, err := runtimeservices.NewReflectionService() - if err != nil { - panic(err) + // Below we could construct and set an application specific mempool and + // ABCI 1.0 PrepareProposal and ProcessProposal handlers. These defaults are + // already set in the SDK's BaseApp, this shows an example of how to override + // them. + // + // Example: + // + // app.App = appBuilder.Build(...) + // nonceMempool := mempool.NewSenderNonceMempool() + // abciPropHandler := NewDefaultProposalHandler(nonceMempool, app.App.BaseApp) + // + // app.App.BaseApp.SetMempool(nonceMempool) + // app.App.BaseApp.SetPrepareProposal(abciPropHandler.PrepareProposalHandler()) + // app.App.BaseApp.SetProcessProposal(abciPropHandler.ProcessProposalHandler()) + // + // Alternatively, you can construct BaseApp options, append those to + // baseAppOptions and pass them to the appBuilder. + // + // Example: + // + // prepareOpt = func(app *baseapp.BaseApp) { + // abciPropHandler := baseapp.NewDefaultProposalHandler(nonceMempool, app) + // app.SetPrepareProposal(abciPropHandler.PrepareProposalHandler()) + // } + // baseAppOptions = append(baseAppOptions, prepareOpt) + // + // create and set vote extension handler + // voteExtOp := func(bApp *baseapp.BaseApp) { + // voteExtHandler := NewVoteExtensionHandler() + // voteExtHandler.SetHandlers(bApp) + // } + + app.App = appBuilder.Build(db, traceStore, baseAppOptions...) + + // Register legacy modules + app.registerIBCModules() + + // register streaming services + if err := app.RegisterStreamingServices(appOpts, app.kvStoreKeys()); err != nil { + return nil, err } - reflectionv1.RegisterReflectionServiceServer(app.GRPCQueryRouter(), reflectionSvc) + + /**** Module Options ****/ + + app.ModuleManager.RegisterInvariants(app.CrisisKeeper) // create the simulation manager and define the order of the modules for deterministic simulations + // + // NOTE: this is not required apps that don't use the simulator for fuzz testing transactions overrideModules := map[string]module.AppModuleSimulation{ authtypes.ModuleName: auth.NewAppModule(app.appCodec, app.AccountKeeper, authsims.RandomGenesisAccounts, app.GetSubspace(authtypes.ModuleName)), } - app.sm = module.NewSimulationManagerFromAppModules(app.mm.Modules, overrideModules) + app.sm = module.NewSimulationManagerFromAppModules(app.ModuleManager.Modules, overrideModules) app.sm.RegisterStoreDecoders() - // initialize stores - app.MountKVStores(keys) - app.MountTransientStores(tkeys) - app.MountMemoryStores(memKeys) - - app.setAnteHandler(encodingConfig.TxConfig, wasmConfig, keys[wasmtypes.StoreKey]) - app.SetInitChainer(app.InitChainer) - app.SetPreBlocker(app.PreBlocker) - app.SetBeginBlocker(app.BeginBlocker) - app.SetEndBlocker(app.EndBlocker) - - // must be before Loading version - // requires the snapshot store to be created and registered as a BaseAppOption - // see cmd/wasmd/root.go: 206 - 214 approx - if manager := app.SnapshotManager(); manager != nil { - err := manager.RegisterExtensions( - wasmkeeper.NewWasmSnapshotter(app.CommitMultiStore(), &app.WasmKeeper), - ) - if err != nil { - panic(fmt.Errorf("failed to register snapshot extension: %s", err)) - } - } - - if loadLatest { - if err := app.LoadLatestVersion(); err != nil { - tmos.Exit(err.Error()) - } - } - - app.ScopedIBCKeeper = scopedIBCKeeper - app.ScopedTransferKeeper = scopedTransferKeeper - // this line is used by starport scaffolding # stargate/app/beforeInitReturn - - return app -} - -func (app *App) setAnteHandler(txConfig client.TxConfig, wasmConfig wasmtypes.WasmConfig, txCounterStoreKey *storetypes.KVStoreKey) { - anteHandler, err := NewAnteHandler( - HandlerOptions{ - HandlerOptions: ante.HandlerOptions{ - AccountKeeper: app.AccountKeeper, - BankKeeper: app.BankKeeper, - SignModeHandler: txConfig.SignModeHandler(), - FeegrantKeeper: app.FeeGrantKeeper, - SigGasConsumer: ante.DefaultSigVerificationGasConsumer, - }, - IBCKeeper: app.IBCKeeper, - WasmConfig: &wasmConfig, - TXCounterStoreService: runtime.NewKVStoreService(txCounterStoreKey), - }, - ) - if err != nil { - panic(fmt.Errorf("failed to create AnteHandler: %s", err)) + // A custom InitChainer can be set if extra pre-init-genesis logic is required. + // By default, when using app wiring enabled module, this is not required. + // For instance, the upgrade module will set automatically the module version map in its init genesis thanks to app wiring. + // However, when registering a module manually (i.e. that does not support app wiring), the module version map + // must be set manually as follow. The upgrade module will de-duplicate the module version map. + // + // app.SetInitChainer(func(ctx sdk.Context, req *abci.RequestInitChain) (*abci.ResponseInitChain, error) { + // app.UpgradeKeeper.SetModuleVersionMap(ctx, app.ModuleManager.GetVersionMap()) + // return app.App.InitChainer(ctx, req) + // }) + + if err := app.Load(loadLatest); err != nil { + return nil, err } - app.SetAnteHandler(anteHandler) -} - -// Name returns the name of the App -func (app *App) Name() string { return app.BaseApp.Name() } -func (app *App) PreBlocker(ctx sdk.Context, req *abci.RequestFinalizeBlock) (*sdk.ResponsePreBlock, error) { - return app.mm.PreBlock(ctx) -} - -// BeginBlocker application updates every begin block -func (app *App) BeginBlocker(ctx sdk.Context) (sdk.BeginBlock, error) { - return app.mm.BeginBlock(ctx) -} - -// EndBlocker application updates every end block -func (app *App) EndBlocker(ctx sdk.Context) (sdk.EndBlock, error) { - return app.mm.EndBlock(ctx) -} - -// InitChainer application update at chain initialization -func (app *App) InitChainer(ctx sdk.Context, req *abci.RequestInitChain) (*abci.ResponseInitChain, error) { - var genesisState GenesisState - if err := json.Unmarshal(req.AppStateBytes, &genesisState); err != nil { - panic(err) - } - app.UpgradeKeeper.SetModuleVersionMap(ctx, app.mm.GetVersionMap()) - return app.mm.InitGenesis(ctx, app.appCodec, genesisState) + return app, nil } -// Configurator get app configurator -func (app *App) Configurator() module.Configurator { - return app.configurator -} - -// LoadHeight loads a particular height -func (app *App) LoadHeight(height int64) error { - return app.LoadVersion(height) -} - -// ModuleAccountAddrs returns all the app's module account addresses. -func (app *App) ModuleAccountAddrs() map[string]bool { - modAccAddrs := make(map[string]bool) - for acc := range maccPerms { - modAccAddrs[authtypes.NewModuleAddress(acc).String()] = true - } - - return modAccAddrs -} - -// BlockedModuleAccountAddrs returns all the app's blocked module account -// addresses. -func (app *App) BlockedModuleAccountAddrs() map[string]bool { - modAccAddrs := app.ModuleAccountAddrs() - delete(modAccAddrs, authtypes.NewModuleAddress(govtypes.ModuleName).String()) - - return modAccAddrs -} - -// LegacyAmino returns SimApp's amino codec. +// LegacyAmino returns App's amino codec. // // NOTE: This is solely to be used for testing purposes as it may be desirable // for modules to register their own custom testing types. @@ -996,7 +380,7 @@ func (app *App) LegacyAmino() *codec.LegacyAmino { return app.legacyAmino } -// AppCodec returns an app codec. +// AppCodec returns App's app codec. // // NOTE: This is solely to be used for testing purposes as it may be desirable // for modules to register their own custom testing types. @@ -1004,152 +388,93 @@ func (app *App) AppCodec() codec.Codec { return app.appCodec } -// InterfaceRegistry returns an InterfaceRegistry -func (app *App) InterfaceRegistry() types.InterfaceRegistry { - return app.interfaceRegistry +// GetKey returns the KVStoreKey for the provided store key. +func (app *App) GetKey(storeKey string) *storetypes.KVStoreKey { + kvStoreKey, ok := app.UnsafeFindStoreKey(storeKey).(*storetypes.KVStoreKey) + if !ok { + return nil + } + return kvStoreKey } -// TxConfig returns SimApp's TxConfig -func (app *App) TxConfig() client.TxConfig { - return app.txConfig +// GetMemKey returns the MemoryStoreKey for the provided store key. +func (app *App) GetMemKey(storeKey string) *storetypes.MemoryStoreKey { + key, ok := app.UnsafeFindStoreKey(storeKey).(*storetypes.MemoryStoreKey) + if !ok { + return nil + } + + return key } -// AutoCliOpts returns the autocli options for the app. -func (app *App) AutoCliOpts() autocli.AppOptions { - modules := make(map[string]appmodule.AppModule, 0) - for _, m := range app.mm.Modules { - if moduleWithName, ok := m.(module.HasName); ok { - moduleName := moduleWithName.Name() - if appModule, ok := moduleWithName.(appmodule.AppModule); ok { - modules[moduleName] = appModule - } +// kvStoreKeys returns all the kv store keys registered inside App. +func (app *App) kvStoreKeys() map[string]*storetypes.KVStoreKey { + keys := make(map[string]*storetypes.KVStoreKey) + for _, k := range app.GetStoreKeys() { + if kv, ok := k.(*storetypes.KVStoreKey); ok { + keys[kv.Name()] = kv } } - return autocli.AppOptions{ - Modules: modules, - ModuleOptions: runtimeservices.ExtractAutoCLIOptions(app.mm.Modules), - AddressCodec: authcodec.NewBech32Codec(sdk.GetConfig().GetBech32AccountAddrPrefix()), - ValidatorAddressCodec: authcodec.NewBech32Codec(sdk.GetConfig().GetBech32ValidatorAddrPrefix()), - ConsensusAddressCodec: authcodec.NewBech32Codec(sdk.GetConfig().GetBech32ConsensusAddrPrefix()), - } -} - -// DefaultGenesis returns a default genesis from the registered AppModuleBasic's. -func (app *App) DefaultGenesis() map[string]json.RawMessage { - return app.BasicModuleManager.DefaultGenesis(app.appCodec) + return keys } -// GetKey returns the KVStoreKey for the provided store key. -// -// NOTE: This is solely to be used for testing purposes. -func (app *App) GetKey(storeKey string) *storetypes.KVStoreKey { - return app.keys[storeKey] +// GetSubspace returns a param subspace for a given module name. +func (app *App) GetSubspace(moduleName string) paramstypes.Subspace { + subspace, _ := app.ParamsKeeper.GetSubspace(moduleName) + return subspace } -// GetTKey returns the TransientStoreKey for the provided store key. -// -// NOTE: This is solely to be used for testing purposes. -func (app *App) GetTKey(storeKey string) *storetypes.TransientStoreKey { - return app.tkeys[storeKey] +// GetIBCKeeper returns the IBC keeper. +func (app *App) GetIBCKeeper() *ibckeeper.Keeper { + return app.IBCKeeper } -// GetMemKey returns the MemStoreKey for the provided mem key. -// -// NOTE: This is solely used for testing purposes. -func (app *App) GetMemKey(storeKey string) *storetypes.MemoryStoreKey { - return app.memKeys[storeKey] +// GetCapabilityScopedKeeper returns the capability scoped keeper. +func (app *App) GetCapabilityScopedKeeper(moduleName string) capabilitykeeper.ScopedKeeper { + return app.CapabilityKeeper.ScopeToModule(moduleName) } -// GetSubspace returns a param subspace for a given module name. -// -// NOTE: This is solely to be used for testing purposes. -func (app *App) GetSubspace(moduleName string) paramstypes.Subspace { - subspace, _ := app.ParamsKeeper.GetSubspace(moduleName) - return subspace +// SimulationManager implements the SimulationApp interface. +func (app *App) SimulationManager() *module.SimulationManager { + return app.sm } // RegisterAPIRoutes registers all application module routes with the provided // API server. func (app *App) RegisterAPIRoutes(apiSvr *api.Server, apiConfig config.APIConfig) { - clientCtx := apiSvr.ClientCtx - // Register new tx routes from grpc-gateway. - authtx.RegisterGRPCGatewayRoutes(clientCtx, apiSvr.GRPCGatewayRouter) - // Register new tendermint queries routes from grpc-gateway. - cmtservice.RegisterGRPCGatewayRoutes(clientCtx, apiSvr.GRPCGatewayRouter) - // Register node gRPC service for grpc-gateway. - nodeservice.RegisterGRPCGatewayRoutes(clientCtx, apiSvr.GRPCGatewayRouter) - - // Register grpc-gateway routes for all modules. - app.BasicModuleManager.RegisterGRPCGatewayRoutes(clientCtx, apiSvr.GRPCGatewayRouter) + app.App.RegisterAPIRoutes(apiSvr, apiConfig) + // register swagger API in app.go so that other applications can override easily + if err := server.RegisterSwaggerAPI(apiSvr.ClientCtx, apiSvr.Router, apiConfig.Swagger); err != nil { + panic(err) + } // register app's OpenAPI routes. docs.RegisterOpenAPIService(Name, apiSvr.Router) } -// RegisterTxService implements the Application.RegisterTxService method. -func (app *App) RegisterTxService(clientCtx client.Context) { - authtx.RegisterTxService(app.BaseApp.GRPCQueryRouter(), clientCtx, app.BaseApp.Simulate, app.interfaceRegistry) -} - -// RegisterTendermintService implements the Application.RegisterTendermintService method. -func (app *App) RegisterTendermintService(clientCtx client.Context) { - cmtservice.RegisterTendermintService( - clientCtx, - app.BaseApp.GRPCQueryRouter(), - app.interfaceRegistry, - app.Query, - ) -} - -// RegisterNodeService implements the Application.RegisterNodeService method. -func (app *App) RegisterNodeService(clientCtx client.Context, cfg config.Config) { - nodeservice.RegisterNodeService(clientCtx, app.GRPCQueryRouter(), cfg) -} - // GetMaccPerms returns a copy of the module account permissions +// +// NOTE: This is solely to be used for testing purposes. func GetMaccPerms() map[string][]string { - dupMaccPerms := make(map[string][]string) - for k, v := range maccPerms { - dupMaccPerms[k] = v + dup := make(map[string][]string) + for _, perms := range moduleAccPerms { + dup[perms.Account] = perms.Permissions } - return dupMaccPerms -} - -// initParamsKeeper init params keeper and its subspaces -func initParamsKeeper(appCodec codec.BinaryCodec, legacyAmino *codec.LegacyAmino, key, tkey storetypes.StoreKey) paramskeeper.Keeper { - paramsKeeper := paramskeeper.NewKeeper(appCodec, legacyAmino, key, tkey) - - paramsKeeper.Subspace(authtypes.ModuleName) - paramsKeeper.Subspace(banktypes.ModuleName) - paramsKeeper.Subspace(stakingtypes.ModuleName) - paramsKeeper.Subspace(minttypes.ModuleName) - paramsKeeper.Subspace(distrtypes.ModuleName) - paramsKeeper.Subspace(slashingtypes.ModuleName) - paramsKeeper.Subspace(govtypes.ModuleName).WithKeyTable(govv1.ParamKeyTable()) //nolint:staticcheck - paramsKeeper.Subspace(crisistypes.ModuleName) - paramsKeeper.Subspace(ibctransfertypes.ModuleName) - paramsKeeper.Subspace(ibcexported.ModuleName) - paramsKeeper.Subspace(icacontrollertypes.SubModuleName) - paramsKeeper.Subspace(icahosttypes.SubModuleName) - // CosmWasm - paramsKeeper.Subspace(wasmtypes.ModuleName) - // my modules - paramsKeeper.Subspace(registrymoduletypes.ModuleName) - paramsKeeper.Subspace(epochsmoduletypes.ModuleName) - paramsKeeper.Subspace(resolvermoduletypes.ModuleName) - paramsKeeper.Subspace(furnacemoduletypes.ModuleName) - // this line is used by starport scaffolding # stargate/app/paramSubspace - - return paramsKeeper -} - -// SimulationManager implements the SimulationApp interface -func (app *App) SimulationManager() *module.SimulationManager { - return app.sm + return dup } -// ModuleManager returns the app ModuleManager -func (app *App) ModuleManager() *module.Manager { - return app.mm +// BlockedAddresses returns all the app's blocked account addresses. +func BlockedAddresses() map[string]bool { + result := make(map[string]bool) + if len(blockAccAddrs) > 0 { + for _, addr := range blockAccAddrs { + result[addr] = true + } + } else { + for addr := range GetMaccPerms() { + result[addr] = true + } + } + return result } diff --git a/app/app_config.go b/app/app_config.go new file mode 100644 index 00000000..e2485f0f --- /dev/null +++ b/app/app_config.go @@ -0,0 +1,352 @@ +package app + +import ( + "time" + + "google.golang.org/protobuf/types/known/durationpb" + + 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" + authzmodulev1 "cosmossdk.io/api/cosmos/authz/module/v1" + bankmodulev1 "cosmossdk.io/api/cosmos/bank/module/v1" + circuitmodulev1 "cosmossdk.io/api/cosmos/circuit/module/v1" + consensusmodulev1 "cosmossdk.io/api/cosmos/consensus/module/v1" + crisismodulev1 "cosmossdk.io/api/cosmos/crisis/module/v1" + distrmodulev1 "cosmossdk.io/api/cosmos/distribution/module/v1" + evidencemodulev1 "cosmossdk.io/api/cosmos/evidence/module/v1" + feegrantmodulev1 "cosmossdk.io/api/cosmos/feegrant/module/v1" + genutilmodulev1 "cosmossdk.io/api/cosmos/genutil/module/v1" + govmodulev1 "cosmossdk.io/api/cosmos/gov/module/v1" + groupmodulev1 "cosmossdk.io/api/cosmos/group/module/v1" + mintmodulev1 "cosmossdk.io/api/cosmos/mint/module/v1" + nftmodulev1 "cosmossdk.io/api/cosmos/nft/module/v1" + paramsmodulev1 "cosmossdk.io/api/cosmos/params/module/v1" + slashingmodulev1 "cosmossdk.io/api/cosmos/slashing/module/v1" + stakingmodulev1 "cosmossdk.io/api/cosmos/staking/module/v1" + txconfigv1 "cosmossdk.io/api/cosmos/tx/config/v1" + upgrademodulev1 "cosmossdk.io/api/cosmos/upgrade/module/v1" + vestingmodulev1 "cosmossdk.io/api/cosmos/vesting/module/v1" + "cosmossdk.io/core/appconfig" + circuittypes "cosmossdk.io/x/circuit/types" + evidencetypes "cosmossdk.io/x/evidence/types" + "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" + "github.com/cosmos/cosmos-sdk/x/authz" + banktypes "github.com/cosmos/cosmos-sdk/x/bank/types" + consensustypes "github.com/cosmos/cosmos-sdk/x/consensus/types" + crisistypes "github.com/cosmos/cosmos-sdk/x/crisis/types" + distrtypes "github.com/cosmos/cosmos-sdk/x/distribution/types" + genutiltypes "github.com/cosmos/cosmos-sdk/x/genutil/types" + govtypes "github.com/cosmos/cosmos-sdk/x/gov/types" + "github.com/cosmos/cosmos-sdk/x/group" + minttypes "github.com/cosmos/cosmos-sdk/x/mint/types" + 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" + + appparams "github.com/mycel-domain/mycel/app/params" + + // Mycel modules + // Epochs + epochsmodulev1 "github.com/mycel-domain/mycel/api/mycel/epochs/module/v1" + _ "github.com/mycel-domain/mycel/x/epochs/module" // import for side-effects + epochsmoduletypes "github.com/mycel-domain/mycel/x/epochs/types" + + // Furnace + furnacemodulev1 "github.com/mycel-domain/mycel/api/mycel/furnace/module/v1" + _ "github.com/mycel-domain/mycel/x/furnace/module" // import for side-effects + furnacemoduletypes "github.com/mycel-domain/mycel/x/furnace/types" + + // Registry + registrymodulev1 "github.com/mycel-domain/mycel/api/mycel/registry/module/v1" + _ "github.com/mycel-domain/mycel/x/registry/module" // import for side-effects + registrymoduletypes "github.com/mycel-domain/mycel/x/registry/types" +) + +var ( + // NOTE: The genutils module must occur after staking so that pools are + // properly initialized with tokens from genesis accounts. + // NOTE: The genutils module must also occur after auth so that it can access the params from auth. + // NOTE: Capability module must occur first so that it can initialize any capabilities + // so that other modules that want to create or claim capabilities afterwards in InitChain + // can do so safely. + genesisModuleOrder = []string{ + // cosmos-sdk/ibc modules + capabilitytypes.ModuleName, + authtypes.ModuleName, + banktypes.ModuleName, + distrtypes.ModuleName, + stakingtypes.ModuleName, + slashingtypes.ModuleName, + govtypes.ModuleName, + minttypes.ModuleName, + crisistypes.ModuleName, + ibcexported.ModuleName, + genutiltypes.ModuleName, + evidencetypes.ModuleName, + authz.ModuleName, + ibctransfertypes.ModuleName, + icatypes.ModuleName, + ibcfeetypes.ModuleName, + feegrant.ModuleName, + paramstypes.ModuleName, + upgradetypes.ModuleName, + vestingtypes.ModuleName, + circuittypes.ModuleName, + nft.ModuleName, + group.ModuleName, + consensustypes.ModuleName, + circuittypes.ModuleName, + // CosmWasm + // wasmtypes.ModuleName, + + // Mycel modules + epochsmoduletypes.ModuleName, + furnacemoduletypes.ModuleName, + registrymoduletypes.ModuleName, + // this line is used by starport scaffolding # stargate/app/initGenesis + } + + // During begin block slashing happens after distr.BeginBlocker so that + // there is nothing left over in the validator fee pool, so as to keep the + // CanWithdrawInvariant invariant. + // NOTE: staking module is required if HistoricalEntries param > 0 + // NOTE: capability module's beginblocker must come before any modules using capabilities (e.g. IBC) + beginBlockers = []string{ + // cosmos sdk modules + minttypes.ModuleName, + distrtypes.ModuleName, + slashingtypes.ModuleName, + evidencetypes.ModuleName, + stakingtypes.ModuleName, + authz.ModuleName, + genutiltypes.ModuleName, + // ibc modules + capabilitytypes.ModuleName, + ibcexported.ModuleName, + ibctransfertypes.ModuleName, + icatypes.ModuleName, + ibcfeetypes.ModuleName, + // CosmWasm + // wasmtypes.ModuleName, + // Mycel modules + epochsmoduletypes.ModuleName, + furnacemoduletypes.ModuleName, + registrymoduletypes.ModuleName, + + // this line is used by starport scaffolding # stargate/app/beginBlockers + } + + endBlockers = []string{ + // cosmos sdk modules + crisistypes.ModuleName, + govtypes.ModuleName, + stakingtypes.ModuleName, + feegrant.ModuleName, + group.ModuleName, + genutiltypes.ModuleName, + // ibc modules + ibcexported.ModuleName, + ibctransfertypes.ModuleName, + capabilitytypes.ModuleName, + icatypes.ModuleName, + ibcfeetypes.ModuleName, + // CosmWasm + // wasmtypes.ModuleName, + // Mycel modules + epochsmoduletypes.ModuleName, + furnacemoduletypes.ModuleName, + registrymoduletypes.ModuleName, + // this line is used by starport scaffolding # stargate/app/endBlockers + } + + preBlockers = []string{ + upgradetypes.ModuleName, + // this line is used by starport scaffolding # stargate/app/preBlockers + } + + // module account permissions + moduleAccPerms = []*authmodulev1.ModuleAccountPermission{ + {Account: authtypes.FeeCollectorName}, + {Account: distrtypes.ModuleName}, + {Account: minttypes.ModuleName, Permissions: []string{authtypes.Minter}}, + {Account: stakingtypes.BondedPoolName, Permissions: []string{authtypes.Burner, stakingtypes.ModuleName}}, + {Account: stakingtypes.NotBondedPoolName, Permissions: []string{authtypes.Burner, stakingtypes.ModuleName}}, + {Account: govtypes.ModuleName, Permissions: []string{authtypes.Burner}}, + {Account: nft.ModuleName}, + {Account: ibctransfertypes.ModuleName, Permissions: []string{authtypes.Minter, authtypes.Burner}}, + {Account: ibcfeetypes.ModuleName}, + {Account: icatypes.ModuleName}, + // Mycel modules + {Account: furnacemoduletypes.ModuleName}, + {Account: registrymoduletypes.ModuleName}, + // this line is used by starport scaffolding # stargate/app/maccPerms + + } + + // blocked account addresses + blockAccAddrs = []string{ + authtypes.FeeCollectorName, + distrtypes.ModuleName, + minttypes.ModuleName, + stakingtypes.BondedPoolName, + stakingtypes.NotBondedPoolName, + nft.ModuleName, + // We allow the following module accounts to receive funds: + // govtypes.ModuleName + } + + // appConfig application configuration (used by depinject) + appConfig = appconfig.Compose(&appv1alpha1.Config{ + Modules: []*appv1alpha1.ModuleConfig{ + { + Name: runtime.ModuleName, + Config: appconfig.WrapAny(&runtimev1alpha1.Module{ + AppName: Name, + PreBlockers: preBlockers, + BeginBlockers: beginBlockers, + EndBlockers: endBlockers, + InitGenesis: genesisModuleOrder, + OverrideStoreKeys: []*runtimev1alpha1.StoreKeyConfig{ + { + ModuleName: authtypes.ModuleName, + KvStoreKey: "acc", + }, + }, + // When ExportGenesis is not specified, the export genesis module order + // is equal to the init genesis order + // ExportGenesis: genesisModuleOrder, + // Uncomment if you want to set a custom migration order here. + // OrderMigrations: nil, + }), + }, + { + Name: authtypes.ModuleName, + Config: appconfig.WrapAny(&authmodulev1.Module{ + Bech32Prefix: appparams.Bech32PrefixAccAddr, + ModuleAccountPermissions: moduleAccPerms, + // By default modules authority is the governance module. This is configurable with the following: + // Authority: "group", // A custom module authority can be set using a module name + // Authority: "cosmos1cwwv22j5ca08ggdv9c2uky355k908694z577tv", // or a specific address + }), + }, + { + Name: nft.ModuleName, + Config: appconfig.WrapAny(&nftmodulev1.Module{}), + }, + { + Name: vestingtypes.ModuleName, + Config: appconfig.WrapAny(&vestingmodulev1.Module{}), + }, + { + Name: banktypes.ModuleName, + Config: appconfig.WrapAny(&bankmodulev1.Module{ + BlockedModuleAccountsOverride: blockAccAddrs, + }), + }, + { + Name: stakingtypes.ModuleName, + Config: appconfig.WrapAny(&stakingmodulev1.Module{ + // NOTE: specifying a prefix is only necessary when using bech32 addresses + // If not specfied, the auth Bech32Prefix appended with "valoper" and "valcons" is used by default + Bech32PrefixValidator: appparams.Bech32PrefixAccAddr + "valoper", + Bech32PrefixConsensus: appparams.Bech32PrefixAccAddr + "valcons", + }), + }, + { + Name: slashingtypes.ModuleName, + Config: appconfig.WrapAny(&slashingmodulev1.Module{}), + }, + { + Name: paramstypes.ModuleName, + Config: appconfig.WrapAny(¶msmodulev1.Module{}), + }, + { + Name: "tx", + Config: appconfig.WrapAny(&txconfigv1.Config{}), + }, + { + Name: genutiltypes.ModuleName, + Config: appconfig.WrapAny(&genutilmodulev1.Module{}), + }, + { + Name: authz.ModuleName, + Config: appconfig.WrapAny(&authzmodulev1.Module{}), + }, + { + Name: upgradetypes.ModuleName, + Config: appconfig.WrapAny(&upgrademodulev1.Module{}), + }, + { + Name: distrtypes.ModuleName, + Config: appconfig.WrapAny(&distrmodulev1.Module{}), + }, + { + Name: evidencetypes.ModuleName, + Config: appconfig.WrapAny(&evidencemodulev1.Module{}), + }, + { + Name: minttypes.ModuleName, + Config: appconfig.WrapAny(&mintmodulev1.Module{}), + }, + { + Name: group.ModuleName, + Config: appconfig.WrapAny(&groupmodulev1.Module{ + MaxExecutionPeriod: durationpb.New(time.Second * 1209600), + MaxMetadataLen: 255, + }), + }, + { + Name: feegrant.ModuleName, + Config: appconfig.WrapAny(&feegrantmodulev1.Module{}), + }, + { + Name: govtypes.ModuleName, + Config: appconfig.WrapAny(&govmodulev1.Module{}), + }, + { + Name: crisistypes.ModuleName, + Config: appconfig.WrapAny(&crisismodulev1.Module{}), + }, + { + Name: consensustypes.ModuleName, + Config: appconfig.WrapAny(&consensusmodulev1.Module{}), + }, + { + Name: circuittypes.ModuleName, + Config: appconfig.WrapAny(&circuitmodulev1.Module{}), + }, + // CosmWasm + { + Name: epochsmoduletypes.ModuleName, + Config: appconfig.WrapAny(&epochsmodulev1.Module{ + HooksOrder: []string{ + furnacemoduletypes.ModuleName, + registrymoduletypes.ModuleName, + }, + }), + }, + { + 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 35400133..67fa8e68 100644 --- a/app/export.go +++ b/app/export.go @@ -5,6 +5,8 @@ import ( "fmt" "log" + cmtproto "github.com/cometbft/cometbft/proto/tendermint/types" + storetypes "cosmossdk.io/store/types" servertypes "github.com/cosmos/cosmos-sdk/server/types" @@ -16,26 +18,23 @@ import ( // ExportAppStateAndValidators exports the state of the application for a genesis // file. -func (app *App) ExportAppStateAndValidators( - forZeroHeight bool, - jailAllowedAddrs []string, - modulesToExport []string, -) (servertypes.ExportedApp, error) { +func (app *App) ExportAppStateAndValidators(forZeroHeight bool, jailAllowedAddrs, modulesToExport []string) (servertypes.ExportedApp, error) { // as if they could withdraw from the start of the next block - ctx := app.NewContext(true) + ctx := app.NewContextLegacy(true, cmtproto.Header{Height: app.LastBlockHeight()}) // We export at last height + 1, because that's the height at which - // Tendermint will start InitChain. + // CometBFT will start InitChain. height := app.LastBlockHeight() + 1 if forZeroHeight { height = 0 app.prepForZeroHeightGenesis(ctx, jailAllowedAddrs) } - genState, err := app.mm.ExportGenesisForModules(ctx, app.appCodec, modulesToExport) + genState, err := app.ModuleManager.ExportGenesisForModules(ctx, app.appCodec, modulesToExport) if err != nil { return servertypes.ExportedApp{}, err } + appState, err := json.MarshalIndent(genState, "", " ") if err != nil { return servertypes.ExportedApp{}, err @@ -50,10 +49,10 @@ func (app *App) ExportAppStateAndValidators( }, err } -// prepForZeroHeightGenesis prepares for a fresh genesis -// +// prepare for fresh start at zero height // NOTE zero height genesis is a temporary feature which will be deprecated -// in favour of export at a block height +// +// in favor of export at a block height func (app *App) prepForZeroHeightGenesis(ctx sdk.Context, jailAllowedAddrs []string) { applyAllowedAddrs := false @@ -78,17 +77,24 @@ func (app *App) prepForZeroHeightGenesis(ctx sdk.Context, jailAllowedAddrs []str /* Handle fee distribution state. */ // withdraw all validator commission - app.StakingKeeper.IterateValidators(ctx, func(_ int64, val stakingtypes.ValidatorI) (stop bool) { - valAddr := sdk.ValAddress(val.GetOperator()) - _, _ = app.DistrKeeper.WithdrawValidatorCommission(ctx, valAddr) + err := app.StakingKeeper.IterateValidators(ctx, func(_ int64, val stakingtypes.ValidatorI) (stop bool) { + valBz, err := app.StakingKeeper.ValidatorAddressCodec().StringToBytes(val.GetOperator()) + if err != nil { + panic(err) + } + _, _ = app.DistrKeeper.WithdrawValidatorCommission(ctx, valBz) return false }) + if err != nil { + panic(err) + } // withdraw all delegator rewards dels, err := app.StakingKeeper.GetAllDelegations(ctx) if err != nil { panic(err) } + for _, delegation := range dels { valAddr, err := sdk.ValAddressFromBech32(delegation.ValidatorAddress) if err != nil { @@ -111,13 +117,13 @@ func (app *App) prepForZeroHeightGenesis(ctx sdk.Context, jailAllowedAddrs []str ctx = ctx.WithBlockHeight(0) // reinitialize all validators - app.StakingKeeper.IterateValidators(ctx, func(_ int64, val stakingtypes.ValidatorI) (stop bool) { - // donate any unwithdrawn outstanding reward fraction tokens to the community pool - valAddr, err := sdk.ValAddressFromBech32(val.GetOperator()) + err = app.StakingKeeper.IterateValidators(ctx, func(_ int64, val stakingtypes.ValidatorI) (stop bool) { + valBz, err := app.StakingKeeper.ValidatorAddressCodec().StringToBytes(val.GetOperator()) if err != nil { panic(err) } - scraps, err := app.DistrKeeper.GetValidatorOutstandingRewardsCoins(ctx, valAddr) + // donate any unwithdrawn outstanding reward fraction tokens to the community pool + scraps, err := app.DistrKeeper.GetValidatorOutstandingRewardsCoins(ctx, valBz) if err != nil { panic(err) } @@ -126,9 +132,11 @@ func (app *App) prepForZeroHeightGenesis(ctx sdk.Context, jailAllowedAddrs []str panic(err) } feePool.CommunityPool = feePool.CommunityPool.Add(scraps...) - app.DistrKeeper.FeePool.Set(ctx, feePool) + if err := app.DistrKeeper.FeePool.Set(ctx, feePool); err != nil { + panic(err) + } - if err := app.DistrKeeper.Hooks().AfterValidatorCreated(ctx, valAddr); err != nil { + if err := app.DistrKeeper.Hooks().AfterValidatorCreated(ctx, valBz); err != nil { panic(err) } return false @@ -163,7 +171,10 @@ func (app *App) prepForZeroHeightGenesis(ctx sdk.Context, jailAllowedAddrs []str for i := range red.Entries { red.Entries[i].CreationHeight = 0 } - app.StakingKeeper.SetRedelegation(ctx, red) + err = app.StakingKeeper.SetRedelegation(ctx, red) + if err != nil { + panic(err) + } return false }) @@ -172,7 +183,10 @@ func (app *App) prepForZeroHeightGenesis(ctx sdk.Context, jailAllowedAddrs []str for i := range ubd.Entries { ubd.Entries[i].CreationHeight = 0 } - app.StakingKeeper.SetUnbondingDelegation(ctx, ubd) + err = app.StakingKeeper.SetUnbondingDelegation(ctx, ubd) + if err != nil { + panic(err) + } return false }) diff --git a/app/genesis_account.go b/app/genesis_account.go new file mode 100644 index 00000000..91ff4dfc --- /dev/null +++ b/app/genesis_account.go @@ -0,0 +1,47 @@ +package app + +import ( + "errors" + + sdk "github.com/cosmos/cosmos-sdk/types" + authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" +) + +var _ authtypes.GenesisAccount = (*GenesisAccount)(nil) + +// GenesisAccount defines a type that implements the GenesisAccount interface +// to be used for simulation accounts in the genesis state. +type GenesisAccount struct { + *authtypes.BaseAccount + + // vesting account fields + OriginalVesting sdk.Coins `json:"original_vesting" yaml:"original_vesting"` // total vesting coins upon initialization + DelegatedFree sdk.Coins `json:"delegated_free" yaml:"delegated_free"` // delegated vested coins at time of delegation + DelegatedVesting sdk.Coins `json:"delegated_vesting" yaml:"delegated_vesting"` // delegated vesting coins at time of delegation + StartTime int64 `json:"start_time" yaml:"start_time"` // vesting start time (UNIX Epoch time) + EndTime int64 `json:"end_time" yaml:"end_time"` // vesting end time (UNIX Epoch time) + + // module account fields + ModuleName string `json:"module_name" yaml:"module_name"` // name of the module account + ModulePermissions []string `json:"module_permissions" yaml:"module_permissions"` // permissions of module account +} + +// Validate checks for errors on the vesting and module account parameters +func (sga GenesisAccount) Validate() error { + if !sga.OriginalVesting.IsZero() { + if sga.StartTime >= sga.EndTime { + return errors.New("vesting start-time cannot be before end-time") + } + } + + if sga.ModuleName != "" { + ma := authtypes.ModuleAccount{ + BaseAccount: sga.BaseAccount, Name: sga.ModuleName, Permissions: sga.ModulePermissions, + } + if err := ma.Validate(); err != nil { + return err + } + } + + return sga.BaseAccount.Validate() +} diff --git a/app/ibc.go b/app/ibc.go new file mode 100644 index 00000000..7a01091e --- /dev/null +++ b/app/ibc.go @@ -0,0 +1,206 @@ +package app + +import ( + "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" + icamodule "github.com/cosmos/ibc-go/v8/modules/apps/27-interchain-accounts" + icacontroller "github.com/cosmos/ibc-go/v8/modules/apps/27-interchain-accounts/controller" + icacontrollerkeeper "github.com/cosmos/ibc-go/v8/modules/apps/27-interchain-accounts/controller/keeper" + icacontrollertypes "github.com/cosmos/ibc-go/v8/modules/apps/27-interchain-accounts/controller/types" + icahost "github.com/cosmos/ibc-go/v8/modules/apps/27-interchain-accounts/host" + icahostkeeper "github.com/cosmos/ibc-go/v8/modules/apps/27-interchain-accounts/host/keeper" + icahosttypes "github.com/cosmos/ibc-go/v8/modules/apps/27-interchain-accounts/host/types" + icatypes "github.com/cosmos/ibc-go/v8/modules/apps/27-interchain-accounts/types" + ibcfee "github.com/cosmos/ibc-go/v8/modules/apps/29-fee" + ibcfeekeeper "github.com/cosmos/ibc-go/v8/modules/apps/29-fee/keeper" + ibcfeetypes "github.com/cosmos/ibc-go/v8/modules/apps/29-fee/types" + ibctransfer "github.com/cosmos/ibc-go/v8/modules/apps/transfer" + ibctransferkeeper "github.com/cosmos/ibc-go/v8/modules/apps/transfer/keeper" + ibctransfertypes "github.com/cosmos/ibc-go/v8/modules/apps/transfer/types" + ibc "github.com/cosmos/ibc-go/v8/modules/core" + ibcclienttypes "github.com/cosmos/ibc-go/v8/modules/core/02-client/types" + ibcconnectiontypes "github.com/cosmos/ibc-go/v8/modules/core/03-connection/types" + porttypes "github.com/cosmos/ibc-go/v8/modules/core/05-port/types" + ibcexported "github.com/cosmos/ibc-go/v8/modules/core/exported" + 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" + + "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. +func (app *App) registerIBCModules() { + // set up non depinject support modules store keys + if err := app.RegisterStores( + storetypes.NewKVStoreKey(capabilitytypes.StoreKey), + storetypes.NewKVStoreKey(ibcexported.StoreKey), + storetypes.NewKVStoreKey(ibctransfertypes.StoreKey), + storetypes.NewKVStoreKey(ibcfeetypes.StoreKey), + storetypes.NewKVStoreKey(icahosttypes.StoreKey), + storetypes.NewKVStoreKey(icacontrollertypes.StoreKey), + storetypes.NewMemoryStoreKey(capabilitytypes.MemStoreKey), + storetypes.NewTransientStoreKey(paramstypes.TStoreKey), + ); err != nil { + panic(err) + } + + // register the key tables for legacy param subspaces + keyTable := ibcclienttypes.ParamKeyTable() + keyTable.RegisterParamSet(&ibcconnectiontypes.Params{}) + app.ParamsKeeper.Subspace(ibcexported.ModuleName).WithKeyTable(keyTable) + app.ParamsKeeper.Subspace(ibctransfertypes.ModuleName).WithKeyTable(ibctransfertypes.ParamKeyTable()) + app.ParamsKeeper.Subspace(icacontrollertypes.SubModuleName).WithKeyTable(icacontrollertypes.ParamKeyTable()) + app.ParamsKeeper.Subspace(icahosttypes.SubModuleName).WithKeyTable(icahosttypes.ParamKeyTable()) + + // add capability keeper and ScopeToModule for ibc module + app.CapabilityKeeper = capabilitykeeper.NewKeeper( + app.AppCodec(), + app.GetKey(capabilitytypes.StoreKey), + app.GetMemKey(capabilitytypes.MemStoreKey), + ) + + // add capability keeper and ScopeToModule for ibc module + scopedIBCKeeper := app.CapabilityKeeper.ScopeToModule(ibcexported.ModuleName) + scopedIBCTransferKeeper := app.CapabilityKeeper.ScopeToModule(ibctransfertypes.ModuleName) + scopedICAControllerKeeper := app.CapabilityKeeper.ScopeToModule(icacontrollertypes.SubModuleName) + scopedICAHostKeeper := app.CapabilityKeeper.ScopeToModule(icahosttypes.SubModuleName) + + // Create IBC keeper + app.IBCKeeper = ibckeeper.NewKeeper( + app.appCodec, + app.GetKey(ibcexported.StoreKey), + app.GetSubspace(ibcexported.ModuleName), + app.StakingKeeper, + app.UpgradeKeeper, + scopedIBCKeeper, + authtypes.NewModuleAddress(govtypes.ModuleName).String(), + ) + + // Register the proposal types + // Deprecated: Avoid adding new handlers, instead use the new proposal flow + // by granting the governance module the right to execute the message. + // See: https://docs.cosmos.network/main/modules/gov#proposal-messages + govRouter := govv1beta1.NewRouter() + govRouter.AddRoute(govtypes.RouterKey, govv1beta1.ProposalHandler) + + app.IBCFeeKeeper = ibcfeekeeper.NewKeeper( + app.appCodec, app.GetKey(ibcfeetypes.StoreKey), + app.IBCKeeper.ChannelKeeper, // may be replaced with IBC middleware + app.IBCKeeper.ChannelKeeper, + app.IBCKeeper.PortKeeper, app.AccountKeeper, app.BankKeeper, + ) + + // Create IBC transfer keeper + app.TransferKeeper = ibctransferkeeper.NewKeeper( + app.appCodec, + app.GetKey(ibctransfertypes.StoreKey), + app.GetSubspace(ibctransfertypes.ModuleName), + app.IBCFeeKeeper, + app.IBCKeeper.ChannelKeeper, + app.IBCKeeper.PortKeeper, + app.AccountKeeper, + app.BankKeeper, + scopedIBCTransferKeeper, + authtypes.NewModuleAddress(govtypes.ModuleName).String(), + ) + + // Create interchain account keepers + app.ICAHostKeeper = icahostkeeper.NewKeeper( + app.appCodec, + app.GetKey(icahosttypes.StoreKey), + app.GetSubspace(icahosttypes.SubModuleName), + app.IBCFeeKeeper, // use ics29 fee as ics4Wrapper in middleware stack + app.IBCKeeper.ChannelKeeper, + app.IBCKeeper.PortKeeper, + app.AccountKeeper, + scopedICAHostKeeper, + app.MsgServiceRouter(), + authtypes.NewModuleAddress(govtypes.ModuleName).String(), + ) + app.ICAControllerKeeper = icacontrollerkeeper.NewKeeper( + app.appCodec, + app.GetKey(icacontrollertypes.StoreKey), + app.GetSubspace(icacontrollertypes.SubModuleName), + app.IBCFeeKeeper, // use ics29 fee as ics4Wrapper in middleware stack + app.IBCKeeper.ChannelKeeper, + app.IBCKeeper.PortKeeper, + scopedICAControllerKeeper, + app.MsgServiceRouter(), + authtypes.NewModuleAddress(govtypes.ModuleName).String(), + ) + app.GovKeeper.SetLegacyRouter(govRouter) + + // Create IBC modules with ibcfee middleware + transferIBCModule := ibcfee.NewIBCMiddleware(ibctransfer.NewIBCModule(app.TransferKeeper), app.IBCFeeKeeper) + + // integration point for custom authentication modules + var noAuthzModule porttypes.IBCModule + icaControllerIBCModule := ibcfee.NewIBCMiddleware( + icacontroller.NewIBCMiddleware(noAuthzModule, app.ICAControllerKeeper), + app.IBCFeeKeeper, + ) + + icaHostIBCModule := ibcfee.NewIBCMiddleware(icahost.NewIBCModule(app.ICAHostKeeper), app.IBCFeeKeeper) + + // Create static IBC router, add transfer route, then set and seal it + ibcRouter := porttypes.NewRouter(). + AddRoute(ibctransfertypes.ModuleName, transferIBCModule). + AddRoute(icacontrollertypes.SubModuleName, icaControllerIBCModule). + AddRoute(icahosttypes.SubModuleName, icaHostIBCModule) + + // this line is used by starport scaffolding # ibc/app/module + + app.IBCKeeper.SetRouter(ibcRouter) + + app.ScopedIBCKeeper = scopedIBCKeeper + app.ScopedIBCTransferKeeper = scopedIBCTransferKeeper + app.ScopedICAHostKeeper = scopedICAHostKeeper + app.ScopedICAControllerKeeper = scopedICAControllerKeeper + + // register IBC modules + if err := app.RegisterModules( + ibc.NewAppModule(app.IBCKeeper), + ibctransfer.NewAppModule(app.TransferKeeper), + ibcfee.NewAppModule(app.IBCFeeKeeper), + icamodule.NewAppModule(&app.ICAControllerKeeper, &app.ICAHostKeeper), + capability.NewAppModule(app.appCodec, *app.CapabilityKeeper, false), + ibctm.AppModule{}, + solomachine.AppModule{}, + ); err != nil { + panic(err) + } +} + +// Since the IBC modules don't support dependency injection, we need to +// manually register the modules on the client side. +// This needs to be removed after IBC supports App Wiring. +func RegisterIBC(registry cdctypes.InterfaceRegistry) map[string]appmodule.AppModule { + modules := map[string]appmodule.AppModule{ + ibcexported.ModuleName: ibc.AppModule{}, + ibctransfertypes.ModuleName: ibctransfer.AppModule{}, + ibcfeetypes.ModuleName: ibcfee.AppModule{}, + icatypes.ModuleName: icamodule.AppModule{}, + capabilitytypes.ModuleName: capability.AppModule{}, + ibctm.ModuleName: ibctm.AppModule{}, + solomachine.ModuleName: solomachine.AppModule{}, + } + + for _, module := range modules { + if mod, ok := module.(interface { + RegisterInterfaces(registry cdctypes.InterfaceRegistry) + }); ok { + mod.RegisterInterfaces(registry) + } + } + + return modules +} diff --git a/app/test_helpers.go b/app/test_helpers.go index d46ed22c..28096afc 100644 --- a/app/test_helpers.go +++ b/app/test_helpers.go @@ -41,8 +41,10 @@ func setup(withGenesis bool, invCheckPeriod uint, wasmOpt ...wasmkeeper.Option) appOptions[flags.FlagHome] = DefaultNodeHome appOptions[server.FlagInvCheckPeriod] = invCheckPeriod - encCdc := MakeEncodingConfig() - app := NewApp(log.NewNopLogger(), db, nil, true, map[int64]bool{}, DefaultNodeHome, invCheckPeriod, encCdc, EmptyAppOptions{}, wasmOpt) + app, err := New(log.NewNopLogger(), db, nil, true, appOptions) + 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 new file mode 100644 index 00000000..ab1efec3 --- /dev/null +++ b/cmd/myceld/cmd/commands.go @@ -0,0 +1,194 @@ +package cmd + +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" + + "github.com/cosmos/cosmos-sdk/client" + "github.com/cosmos/cosmos-sdk/client/debug" + "github.com/cosmos/cosmos-sdk/client/flags" + "github.com/cosmos/cosmos-sdk/client/keys" + "github.com/cosmos/cosmos-sdk/client/pruning" + "github.com/cosmos/cosmos-sdk/client/rpc" + "github.com/cosmos/cosmos-sdk/client/snapshot" + "github.com/cosmos/cosmos-sdk/codec" + codectypes "github.com/cosmos/cosmos-sdk/codec/types" + "github.com/cosmos/cosmos-sdk/server" + servertypes "github.com/cosmos/cosmos-sdk/server/types" + "github.com/cosmos/cosmos-sdk/types/module" + 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/mycel-domain/mycel/app" +) + +func initRootCmd( + rootCmd *cobra.Command, + txConfig client.TxConfig, + interfaceRegistry codectypes.InterfaceRegistry, + appCodec codec.Codec, + basicManager module.BasicManager, +) { + rootCmd.AddCommand( + genutilcli.InitCmd(basicManager, app.DefaultNodeHome), + debug.Cmd(), + confixcmd.ConfigCommand(), + pruning.Cmd(newApp, app.DefaultNodeHome), + snapshot.Cmd(newApp), + ) + + server.AddCommands(rootCmd, app.DefaultNodeHome, newApp, appExport, addModuleInitFlags) + + // add keybase, auxiliary RPC, query, genesis, and tx child commands + rootCmd.AddCommand( + server.StatusCommand(), + genesisCommand(txConfig, basicManager), + queryCommand(), + txCommand(), + keys.Commands(), + ) +} + +func addModuleInitFlags(startCmd *cobra.Command) { + crisis.AddModuleInitFlags(startCmd) +} + +// genesisCommand builds genesis-related `marsd genesis` command. Users may provide application specific commands as a parameter +func genesisCommand(txConfig client.TxConfig, basicManager module.BasicManager, cmds ...*cobra.Command) *cobra.Command { + cmd := genutilcli.Commands(txConfig, basicManager, app.DefaultNodeHome) + + for _, subCmd := range cmds { + cmd.AddCommand(subCmd) + } + return cmd +} + +func queryCommand() *cobra.Command { + cmd := &cobra.Command{ + Use: "query", + Aliases: []string{"q"}, + Short: "Querying subcommands", + DisableFlagParsing: false, + SuggestionsMinimumDistance: 2, + RunE: client.ValidateCmd, + } + + cmd.AddCommand( + rpc.QueryEventForTxCmd(), + rpc.ValidatorCommand(), + server.QueryBlockCmd(), + authcmd.QueryTxsByEventsCmd(), + server.QueryBlocksCmd(), + authcmd.QueryTxCmd(), + server.QueryBlockResultsCmd(), + ) + cmd.PersistentFlags().String(flags.FlagChainID, "", "The network chain ID") + + return cmd +} + +func txCommand() *cobra.Command { + cmd := &cobra.Command{ + Use: "tx", + Short: "Transactions subcommands", + DisableFlagParsing: false, + SuggestionsMinimumDistance: 2, + RunE: client.ValidateCmd, + } + + cmd.AddCommand( + authcmd.GetSignCommand(), + authcmd.GetSignBatchCommand(), + authcmd.GetMultiSignCommand(), + authcmd.GetMultiSignBatchCmd(), + authcmd.GetValidateSignaturesCommand(), + flags.LineBreak, + authcmd.GetBroadcastCommand(), + authcmd.GetEncodeCommand(), + authcmd.GetDecodeCommand(), + authcmd.GetSimulateCmd(), + ) + cmd.PersistentFlags().String(flags.FlagChainID, "", "The network chain ID") + + return cmd +} + +// newApp creates the application +func newApp( + logger log.Logger, + db dbm.DB, + traceStore io.Writer, + appOpts servertypes.AppOptions, +) servertypes.Application { + baseappOptions := server.DefaultBaseappOptions(appOpts) + + app, err := app.New( + logger, db, traceStore, true, + appOpts, + baseappOptions..., + ) + if err != nil { + panic(err) + } + return app +} + +// appExport creates a new app (optionally at a given height) and exports state. +func appExport( + logger log.Logger, + db dbm.DB, + traceStore io.Writer, + height int64, + forZeroHeight bool, + jailAllowedAddrs []string, + appOpts servertypes.AppOptions, + modulesToExport []string, +) (servertypes.ExportedApp, error) { + var ( + bApp *app.App + err error + ) + + // this check is necessary as we use the flag in x/upgrade. + // we can exit more gracefully by checking the flag here. + homePath, ok := appOpts.Get(flags.FlagHome).(string) + if !ok || homePath == "" { + return servertypes.ExportedApp{}, errors.New("application home not set") + } + + viperAppOpts, ok := appOpts.(*viper.Viper) + if !ok { + return servertypes.ExportedApp{}, errors.New("appOpts is not viper.Viper") + } + + // overwrite the FlagInvCheckPeriod + viperAppOpts.Set(server.FlagInvCheckPeriod, 1) + appOpts = viperAppOpts + + if height != -1 { + bApp, err = app.New(logger, db, traceStore, false, appOpts) + if err != nil { + return servertypes.ExportedApp{}, err + } + + if err := bApp.LoadHeight(height); err != nil { + return servertypes.ExportedApp{}, err + } + } else { + bApp, err = app.New(logger, db, traceStore, true, appOpts) + if err != nil { + return servertypes.ExportedApp{}, err + } + } + + return bApp.ExportAppStateAndValidators(forZeroHeight, jailAllowedAddrs, modulesToExport) +} diff --git a/cmd/myceld/cmd/config.go b/cmd/myceld/cmd/config.go index efcca5c2..a276a08e 100644 --- a/cmd/myceld/cmd/config.go +++ b/cmd/myceld/cmd/config.go @@ -1,44 +1,25 @@ package cmd import ( - wasmtypes "github.com/CosmWasm/wasmd/x/wasm/types" - cmtcfg "github.com/cometbft/cometbft/config" - "cosmossdk.io/math" - serverconfig "github.com/cosmos/cosmos-sdk/server/config" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/mycel-domain/mycel/app/params" + "github.com/mycel-domain/mycel/app" ) -// RegisterDenoms registers token denoms. -func RegisterDenoms() { - err := sdk.RegisterDenom(params.HumanCoinUnit, math.LegacyOneDec()) - if err != nil { - panic(err) - } - err = sdk.RegisterDenom(params.BaseCoinUnit, math.LegacyNewDecWithPrec(1, params.MycelExponent)) - if err != nil { - panic(err) - } -} - func initSDKConfig() { // Set prefixes - accountPubKeyPrefix := params.Bech32PrefixAccAddr + "pub" - validatorAddressPrefix := params.Bech32PrefixAccAddr + "valoper" - validatorPubKeyPrefix := params.Bech32PrefixAccAddr + "valoperpub" - consNodeAddressPrefix := params.Bech32PrefixAccAddr + "valcons" - consNodePubKeyPrefix := params.Bech32PrefixAccAddr + "valconspub" - - // Set Denom - RegisterDenoms() + accountPubKeyPrefix := app.AccountAddressPrefix + "pub" + validatorAddressPrefix := app.AccountAddressPrefix + "valoper" + validatorPubKeyPrefix := app.AccountAddressPrefix + "valoperpub" + consNodeAddressPrefix := app.AccountAddressPrefix + "valcons" + consNodePubKeyPrefix := app.AccountAddressPrefix + "valconspub" // Set and seal config config := sdk.GetConfig() - config.SetBech32PrefixForAccount(params.Bech32PrefixAccAddr, accountPubKeyPrefix) + config.SetBech32PrefixForAccount(app.AccountAddressPrefix, accountPubKeyPrefix) config.SetBech32PrefixForValidator(validatorAddressPrefix, validatorPubKeyPrefix) config.SetBech32PrefixForConsensusNode(consNodeAddressPrefix, consNodePubKeyPrefix) config.Seal() @@ -62,7 +43,6 @@ func initAppConfig() (string, interface{}) { // The following code snippet is just for reference. type CustomAppConfig struct { serverconfig.Config `mapstructure:",squash"` - Wasm wasmtypes.WasmConfig `mapstructure:"wasm"` } // Optionally allow the chain developer to overwrite the SDK's default @@ -87,8 +67,6 @@ func initAppConfig() (string, interface{}) { Config: *srvCfg, } - customAppConfig.MinGasPrices = "0umycel" - customAppTemplate := serverconfig.DefaultConfigTemplate // Edit the default template file // diff --git a/cmd/myceld/cmd/genaccounts.go b/cmd/myceld/cmd/genaccounts.go deleted file mode 100644 index 118f8eb0..00000000 --- a/cmd/myceld/cmd/genaccounts.go +++ /dev/null @@ -1,200 +0,0 @@ -package cmd - -import ( - "bufio" - "encoding/json" - "errors" - "fmt" - - "github.com/spf13/cobra" - - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/client/flags" - "github.com/cosmos/cosmos-sdk/crypto/keyring" - "github.com/cosmos/cosmos-sdk/server" - sdk "github.com/cosmos/cosmos-sdk/types" - authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" - authvesting "github.com/cosmos/cosmos-sdk/x/auth/vesting/types" - banktypes "github.com/cosmos/cosmos-sdk/x/bank/types" - "github.com/cosmos/cosmos-sdk/x/genutil" - genutiltypes "github.com/cosmos/cosmos-sdk/x/genutil/types" - - "github.com/mycel-domain/mycel/app" -) - -const ( - flagVestingStart = "vesting-start-time" - flagVestingEnd = "vesting-end-time" - flagVestingAmt = "vesting-amount" - flagBlockGasLimit = "block-gas-limit" -) - -// AddGenesisAccountCmd returns add-genesis-account cobra Command. -func AddGenesisAccountCmd(defaultNodeHome string) *cobra.Command { - cmd := &cobra.Command{ - Use: "add-genesis-account [address_or_key_name] [coin][,[coin]]", - Short: "Add a genesis account to genesis.json", - Long: `Add a genesis account to genesis.json. The provided account must specify -the account address or key name and a list of initial coins. If a key name is given, -the address will be looked up in the local Keybase. The list of initial tokens must -contain valid denominations. Accounts may optionally be supplied with vesting parameters. -`, - Args: cobra.ExactArgs(2), - RunE: func(cmd *cobra.Command, args []string) error { - clientCtx := client.GetClientContextFromCmd(cmd) - cdc := clientCtx.Codec - - serverCtx := server.GetServerContextFromCmd(cmd) - config := serverCtx.Config - - config.SetRoot(clientCtx.HomeDir) - - coins, err := sdk.ParseCoinsNormalized(args[1]) - if err != nil { - return fmt.Errorf("failed to parse coins: %w", err) - } - - addr, err := sdk.AccAddressFromBech32(args[0]) - if err != nil { - inBuf := bufio.NewReader(cmd.InOrStdin()) - keyringBackend, err := cmd.Flags().GetString(flags.FlagKeyringBackend) - if err != nil { - return err - } - - // attempt to lookup address from Keybase if no address was provided - kb, err := keyring.New(sdk.KeyringServiceName(), keyringBackend, clientCtx.HomeDir, inBuf, cdc) - if err != nil { - return err - } - - info, err := kb.Key(args[0]) - if err != nil { - return fmt.Errorf("failed to get address from Keybase: %w", err) - } - - addr, err = info.GetAddress() - if err != nil { - return fmt.Errorf("failed to get address from Keybase: %w", err) - } - } - - vestingStart, err := cmd.Flags().GetInt64(flagVestingStart) - if err != nil { - return err - } - vestingEnd, err := cmd.Flags().GetInt64(flagVestingEnd) - if err != nil { - return err - } - vestingAmtStr, err := cmd.Flags().GetString(flagVestingAmt) - if err != nil { - return err - } - - vestingAmt, err := sdk.ParseCoinsNormalized(vestingAmtStr) - if err != nil { - return fmt.Errorf("failed to parse vesting amount: %w", err) - } - - // create concrete account type based on input parameters - var genAccount authtypes.GenesisAccount - - balances := banktypes.Balance{Address: addr.String(), Coins: coins.Sort()} - baseAccount := authtypes.NewBaseAccount(addr, nil, 0, 0) - - if !vestingAmt.IsZero() { - baseVestingAccount, err := authvesting.NewBaseVestingAccount(baseAccount, vestingAmt.Sort(), vestingEnd) - if err != nil { - return err - } - - if (balances.Coins.IsZero() && !baseVestingAccount.OriginalVesting.IsZero()) || - baseVestingAccount.OriginalVesting.IsAnyGT(balances.Coins) { - return errors.New("vesting amount cannot be greater than total amount") - } - - switch { - case vestingStart != 0 && vestingEnd != 0: - genAccount = authvesting.NewContinuousVestingAccountRaw(baseVestingAccount, vestingStart) - - case vestingEnd != 0: - genAccount = authvesting.NewDelayedVestingAccountRaw(baseVestingAccount) - - default: - return errors.New("invalid vesting parameters; must supply start and end time or end time") - } - } else { - genAccount = baseAccount - } - - if err := genAccount.Validate(); err != nil { - return fmt.Errorf("failed to validate new genesis account: %w", err) - } - - genFile := config.GenesisFile() - appState, genDoc, err := genutiltypes.GenesisStateFromGenFile(genFile) - if err != nil { - return fmt.Errorf("failed to unmarshal genesis state: %w", err) - } - - authGenState := authtypes.GetGenesisStateFromAppState(cdc, appState) - - accs, err := authtypes.UnpackAccounts(authGenState.Accounts) - if err != nil { - return fmt.Errorf("failed to get accounts from any: %w", err) - } - - if accs.Contains(addr) { - return fmt.Errorf("cannot add account at existing address %s", addr) - } - - // Add the new account to the set of genesis accounts and sanitize the - // accounts afterwards. - accs = append(accs, genAccount) - accs = authtypes.SanitizeGenesisAccounts(accs) - - genAccs, err := authtypes.PackAccounts(accs) - if err != nil { - return fmt.Errorf("failed to convert accounts into any's: %w", err) - } - authGenState.Accounts = genAccs - - authGenStateBz, err := cdc.MarshalJSON(&authGenState) - if err != nil { - return fmt.Errorf("failed to marshal auth genesis state: %w", err) - } - - appState[authtypes.ModuleName] = authGenStateBz - - bankGenState := banktypes.GetGenesisStateFromAppState(cdc, appState) - bankGenState.Balances = append(bankGenState.Balances, balances) - bankGenState.Balances = banktypes.SanitizeGenesisBalances(bankGenState.Balances) - - bankGenStateBz, err := cdc.MarshalJSON(bankGenState) - if err != nil { - return fmt.Errorf("failed to marshal bank genesis state: %w", err) - } - - appState[banktypes.ModuleName] = bankGenStateBz - - appStateJSON, err := json.Marshal(appState) - if err != nil { - return fmt.Errorf("failed to marshal application genesis state: %w", err) - } - - genDoc.AppState = appStateJSON - return genutil.ExportGenesisFile(genDoc, genFile) - }, - } - - cmd.Flags().String(flags.FlagKeyringBackend, flags.DefaultKeyringBackend, "Select keyring's backend (os|file|kwallet|pass|test)") - cmd.Flags().String(flags.FlagHome, defaultNodeHome, "The application home directory") - cmd.Flags().Int64(flagBlockGasLimit, app.DefaultGasLimit, "Block gas limit") - cmd.Flags().String(flagVestingAmt, "", "amount of coins for vesting accounts") - cmd.Flags().Int64(flagVestingStart, 0, "schedule start time (unix epoch) for vesting accounts") - cmd.Flags().Int64(flagVestingEnd, 0, "schedule end time (unix epoch) for vesting accounts") - flags.AddQueryFlagsToCmd(cmd) - - return cmd -} diff --git a/cmd/myceld/cmd/root.go b/cmd/myceld/cmd/root.go index 97c21a0e..f4b7f656 100644 --- a/cmd/myceld/cmd/root.go +++ b/cmd/myceld/cmd/root.go @@ -1,334 +1,139 @@ package cmd import ( - "errors" - "io" - "log" "os" - "path/filepath" + "strings" - "github.com/CosmWasm/wasmd/x/wasm" - // CosmWasm - "github.com/CosmWasm/wasmd/x/wasm" - wasmcli "github.com/CosmWasm/wasmd/x/wasm/client/cli" - wasmkeeper "github.com/CosmWasm/wasmd/x/wasm/keeper" - "github.com/prometheus/client_golang/prometheus" - "github.com/spf13/cast" "github.com/spf13/cobra" "github.com/spf13/pflag" - tmcfg "github.com/cometbft/cometbft/config" - tmcli "github.com/cometbft/cometbft/libs/cli" - tmtypes "github.com/cometbft/cometbft/types" + "cosmossdk.io/client/v2/autocli" + clientv2keyring "cosmossdk.io/client/v2/autocli/keyring" + "cosmossdk.io/core/address" + "cosmossdk.io/depinject" + "cosmossdk.io/log" - dbm "github.com/cosmos/cosmos-db" - - tmlog "cosmossdk.io/log" - "cosmossdk.io/store" - "cosmossdk.io/store/snapshots" - snapshottypes "cosmossdk.io/store/snapshots/types" - storetypes "cosmossdk.io/store/types" - confixcmd "cosmossdk.io/tools/confix/cmd" - - "github.com/cosmos/cosmos-sdk/baseapp" "github.com/cosmos/cosmos-sdk/client" "github.com/cosmos/cosmos-sdk/client/config" - "github.com/cosmos/cosmos-sdk/client/debug" "github.com/cosmos/cosmos-sdk/client/flags" - "github.com/cosmos/cosmos-sdk/client/keys" - "github.com/cosmos/cosmos-sdk/client/rpc" - "github.com/cosmos/cosmos-sdk/codec/address" + "github.com/cosmos/cosmos-sdk/codec" + codectypes "github.com/cosmos/cosmos-sdk/codec/types" "github.com/cosmos/cosmos-sdk/crypto/keyring" "github.com/cosmos/cosmos-sdk/server" - servertypes "github.com/cosmos/cosmos-sdk/server/types" - simtestutil "github.com/cosmos/cosmos-sdk/testutil/sims" - sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/module" "github.com/cosmos/cosmos-sdk/types/tx/signing" - authcmd "github.com/cosmos/cosmos-sdk/x/auth/client/cli" "github.com/cosmos/cosmos-sdk/x/auth/tx" - authtxconfig "github.com/cosmos/cosmos-sdk/x/auth/tx/config" + txmodule "github.com/cosmos/cosmos-sdk/x/auth/tx/config" "github.com/cosmos/cosmos-sdk/x/auth/types" - banktypes "github.com/cosmos/cosmos-sdk/x/bank/types" - "github.com/cosmos/cosmos-sdk/x/crisis" - "github.com/cosmos/cosmos-sdk/x/genutil" - genutilcli "github.com/cosmos/cosmos-sdk/x/genutil/client/cli" - genutiltypes "github.com/cosmos/cosmos-sdk/x/genutil/types" "github.com/mycel-domain/mycel/app" - "github.com/mycel-domain/mycel/app/params" - "github.com/mycel-domain/mycel/cmd/myceld/dns" - "github.com/mycel-domain/mycel/cmd/myceld/docs" ) -// NewRootCmd creates a new root command for a Cosmos SDK application -func NewRootCmd() (*cobra.Command, params.EncodingConfig) { - tempDir := func() string { - dir, err := os.MkdirTemp("", "mycel") - if err != nil { - panic("failed to create temp dir: " + err.Error()) - } - defer os.RemoveAll(dir) +// NewRootCmd creates a new root command for myceld. It is called once in the main function. +func NewRootCmd() *cobra.Command { + initSDKConfig() - return dir - } - // we "pre"-instantiate the application for getting the injected/configured encoding configuration - // note, this is not necessary when using app wiring, as depinject can be directly used - tempApp := app.NewApp( - tmlog.NewNopLogger(), - dbm.NewMemDB(), - os.Stdout, - true, - map[int64]bool{}, - tempDir(), - 0, - app.MakeEncodingConfig(), - simtestutil.NewAppOptionsWithFlagHome(tempDir()), - []wasmkeeper.Option{}, + var ( + txConfigOpts tx.ConfigOptions + autoCliOpts autocli.AppOptions + moduleBasicManager module.BasicManager + clientCtx client.Context ) - encodingConfig := params.EncodingConfig{ - InterfaceRegistry: tempApp.InterfaceRegistry(), - TxConfig: tempApp.TxConfig(), - Amino: tempApp.LegacyAmino(), + if err := depinject.Inject( + depinject.Configs(app.AppConfig(), + depinject.Supply( + log.NewNopLogger(), + ), + depinject.Provide( + ProvideClientContext, + ProvideKeyring, + ), + ), + &txConfigOpts, + &autoCliOpts, + &moduleBasicManager, + &clientCtx, + ); err != nil { + panic(err) } - initClientCtx := client.Context{}. - WithCodec(tempApp.AppCodec()). - WithInterfaceRegistry(tempApp.InterfaceRegistry()). - WithTxConfig(tempApp.TxConfig()). - WithLegacyAmino(tempApp.LegacyAmino()). - WithInput(os.Stdin). - WithAccountRetriever(types.AccountRetriever{}). - WithHomeDir(app.DefaultNodeHome). - WithViper("") - rootCmd := &cobra.Command{ - Use: app.Name + "d", - Short: "Start mycel node", + Use: app.Name + "d", + Short: "Start mycel node", + SilenceErrors: true, PersistentPreRunE: func(cmd *cobra.Command, _ []string) error { // set the default command outputs cmd.SetOut(cmd.OutOrStdout()) cmd.SetErr(cmd.ErrOrStderr()) - initClientCtx = initClientCtx.WithCmdContext(cmd.Context()) - initClientCtx, err := client.ReadPersistentCommandFlags(initClientCtx, cmd.Flags()) + clientCtx = clientCtx.WithCmdContext(cmd.Context()) + clientCtx, err := client.ReadPersistentCommandFlags(clientCtx, cmd.Flags()) if err != nil { return err } - initClientCtx, err = config.ReadFromClientConfig(initClientCtx) + + clientCtx, err = config.ReadFromClientConfig(clientCtx) if err != nil { return err } - if !initClientCtx.Offline { - enabledSignModes := append(tx.DefaultSignModes, signing.SignMode_SIGN_MODE_TEXTUAL) - txConfigOpts := tx.ConfigOptions{ - EnabledSignModes: enabledSignModes, - TextualCoinMetadataQueryFn: authtxconfig.NewGRPCCoinMetadataQueryFn(initClientCtx), - } - txConfig, err := tx.NewTxConfigWithOptions( - initClientCtx.Codec, - txConfigOpts, - ) - if err != nil { - return err - } - initClientCtx = initClientCtx.WithTxConfig(txConfig) + + // This needs to go after ReadFromClientConfig, as that function + // sets the RPC client needed for SIGN_MODE_TEXTUAL. + txConfigOpts.EnabledSignModes = append(txConfigOpts.EnabledSignModes, signing.SignMode_SIGN_MODE_TEXTUAL) + txConfigOpts.TextualCoinMetadataQueryFn = txmodule.NewGRPCCoinMetadataQueryFn(clientCtx) + txConfigWithTextual, err := tx.NewTxConfigWithOptions( + codec.NewProtoCodec(clientCtx.InterfaceRegistry), + txConfigOpts, + ) + if err != nil { + return err + } + + clientCtx = clientCtx.WithTxConfig(txConfigWithTextual) + if err := client.SetCmdClientContextHandler(clientCtx, cmd); err != nil { + return err } - if err := client.SetCmdClientContextHandler(initClientCtx, cmd); err != nil { + if err := client.SetCmdClientContextHandler(clientCtx, cmd); err != nil { return err } customAppTemplate, customAppConfig := initAppConfig() - customTMConfig := initTendermintConfig() - return server.InterceptConfigsPreRunHandler( - cmd, customAppTemplate, customAppConfig, customTMConfig, - ) + customCMTConfig := initCometBFTConfig() + + return server.InterceptConfigsPreRunHandler(cmd, customAppTemplate, customAppConfig, customCMTConfig) }, } - // overwriteFlagDefaults(rootCmd, map[string]string{ - // flags.FlagChainID: strings.ReplaceAll(app.Name, "-", ""), - // flags.FlagKeyringBackend: "test", - // }) + // Since the IBC modules don't support dependency injection, we need to + // manually register the modules on the client side. + // This needs to be removed after IBC supports App Wiring. + ibcModules := app.RegisterIBC(clientCtx.InterfaceRegistry) + for name, mod := range ibcModules { + moduleBasicManager[name] = module.CoreAppModuleBasicAdaptor(name, mod) + autoCliOpts.Modules[name] = mod + } - initRootCmd(tempApp, rootCmd, encodingConfig) - // autoCliOpts := tempApp.AutoCliOpts() - // initClientCtx, _ = config.ReadFromClientConfig(initClientCtx) - // autoCliOpts.ClientCtx = initClientCtx - // - // if err := autoCliOpts.EnhanceRootCommand(rootCmd); err != nil { - // panic(err) - // } + initRootCmd(rootCmd, clientCtx.TxConfig, clientCtx.InterfaceRegistry, clientCtx.Codec, moduleBasicManager) - // add keyring to autocli opts - autoCliOpts := tempApp.AutoCliOpts() - initClientCtx, _ = config.ReadFromClientConfig(initClientCtx) - autoCliOpts.Keyring, _ = keyring.NewAutoCLIKeyring(initClientCtx.Keyring) - autoCliOpts.ClientCtx = initClientCtx - autoCliOpts.TxConfigOpts = tx.ConfigOptions{ - EnabledSignModes: tx.DefaultSignModes, - TextualCoinMetadataQueryFn: authtxconfig.NewGRPCCoinMetadataQueryFn(initClientCtx), - } + overwriteFlagDefaults(rootCmd, map[string]string{ + flags.FlagChainID: strings.ReplaceAll(app.Name, "-", ""), + flags.FlagKeyringBackend: "test", + }) if err := autoCliOpts.EnhanceRootCommand(rootCmd); err != nil { panic(err) } - return rootCmd, encodingConfig -} - -// initTendermintConfig helps to override default Tendermint Config values. -// return tmcfg.DefaultConfig if no custom configuration is required for the application. -func initTendermintConfig() *tmcfg.Config { - cfg := tmcfg.DefaultConfig() - return cfg -} - -func initRootCmd( - tempApp *app.App, - rootCmd *cobra.Command, - encodingConfig params.EncodingConfig, -) { - // Set config - - cfg := sdk.GetConfig() - cfg.Seal() - - gentxModule := tempApp.BasicModuleManager[genutiltypes.ModuleName].(genutil.AppModuleBasic) - - // CosmWasm - wasmcli.ExtendUnsafeResetAllCmd(rootCmd) - - valOperAddressCodec := address.NewBech32Codec(sdk.GetConfig().GetBech32ValidatorAddrPrefix()) - rootCmd.AddCommand( - genutilcli.InitCmd(tempApp.BasicModuleManager, app.DefaultNodeHome), - genutilcli.CollectGenTxsCmd(banktypes.GenesisBalancesIterator{}, app.DefaultNodeHome, gentxModule.GenTxValidator, valOperAddressCodec), - genutilcli.MigrateGenesisCmd(genutilcli.MigrationMap), - genutilcli.GenTxCmd( - tempApp.BasicModuleManager, - encodingConfig.TxConfig, - banktypes.GenesisBalancesIterator{}, - app.DefaultNodeHome, - valOperAddressCodec, - ), - genutilcli.ValidateGenesisCmd(tempApp.BasicModuleManager), - AddGenesisAccountCmd(app.DefaultNodeHome), - tmcli.NewCompletionCmd(rootCmd, true), - debug.Cmd(), - confixcmd.ConfigCommand(), - // this line is used by starport scaffolding # root/commands - ) - - a := appCreator{ - encodingConfig, - } - - // add server commands - server.AddCommands( - rootCmd, - app.DefaultNodeHome, - a.newApp, - a.appExport, - addModuleInitFlags, - ) - - // add keybase, auxiliary RPC, query, and tx child commands - rootCmd.AddCommand( - server.StatusCommand(), - genesisCommand(tempApp.TxConfig(), tempApp.BasicModuleManager), - queryCommand(), - txCommand(), - keys.Commands(), - ) - - // add DNS command - rootCmd.AddCommand( - dns.Command(), - ) - - // add docs command - rootCmd.AddCommand( - docs.Command(rootCmd), - ) -} - -// genesisCommand builds genesis-related `mychaind genesis` command. Users may provide application specific commands as a parameter -func genesisCommand(txConfig client.TxConfig, basicManager module.BasicManager, cmds ...*cobra.Command) *cobra.Command { - cmd := genutilcli.Commands(txConfig, basicManager, app.DefaultNodeHome) - - for _, subCmd := range cmds { - cmd.AddCommand(subCmd) - } - return cmd -} - -// queryCommand returns the sub-command to send queries to the app -func queryCommand() *cobra.Command { - cmd := &cobra.Command{ - Use: "query", - Aliases: []string{"q"}, - Short: "Querying subcommands", - DisableFlagParsing: true, - SuggestionsMinimumDistance: 2, - RunE: client.ValidateCmd, - } - - cmd.AddCommand( - rpc.ValidatorCommand(), - server.QueryBlockCmd(), - authcmd.QueryTxsByEventsCmd(), - authcmd.QueryTxCmd(), - ) - - cmd.PersistentFlags().String(flags.FlagChainID, "", "The network chain ID") - - return cmd -} - -// txCommand returns the sub-command to send transactions to the app -func txCommand() *cobra.Command { - cmd := &cobra.Command{ - Use: "tx", - Short: "Transactions subcommands", - DisableFlagParsing: true, - SuggestionsMinimumDistance: 2, - RunE: client.ValidateCmd, - } - - cmd.AddCommand( - authcmd.GetSignCommand(), - authcmd.GetSignBatchCommand(), - authcmd.GetMultiSignCommand(), - authcmd.GetValidateSignaturesCommand(), - flags.LineBreak, - authcmd.GetBroadcastCommand(), - authcmd.GetEncodeCommand(), - authcmd.GetDecodeCommand(), - ) - - cmd.PersistentFlags().String(flags.FlagChainID, "", "The network chain ID") - - return cmd -} - -func addModuleInitFlags(startCmd *cobra.Command) { - crisis.AddModuleInitFlags(startCmd) - wasm.AddModuleInitFlags(startCmd) - - startCmd.Flags().String(flags.FlagKeyringBackend, flags.DefaultKeyringBackend, "Select keyring's backend (os|file|kwallet|pass|test)") - startCmd.Flags().String(flags.FlagChainID, "", "genesis file chain-id, if left blank will be randomly created") + return rootCmd } func overwriteFlagDefaults(c *cobra.Command, defaults map[string]string) { set := func(s *pflag.FlagSet, key, val string) { if f := s.Lookup(key); f != nil { f.DefValue = val - err := f.Value.Set(val) - if err != nil { - log.Printf("%v", err) - } + f.Value.Set(val) } } for key, val := range defaults { @@ -340,125 +145,33 @@ func overwriteFlagDefaults(c *cobra.Command, defaults map[string]string) { } } -type appCreator struct { - encodingConfig params.EncodingConfig -} - -// newApp creates a new Cosmos SDK app -func (a appCreator) newApp( - logger tmlog.Logger, - db dbm.DB, - traceStore io.Writer, - appOpts servertypes.AppOptions, -) servertypes.Application { - var cache storetypes.MultiStorePersistentCache - - if cast.ToBool(appOpts.Get(server.FlagInterBlockCache)) { - cache = store.NewCommitKVStoreCacheManager() - } - - skipUpgradeHeights := make(map[int64]bool) - for _, h := range cast.ToIntSlice(appOpts.Get(server.FlagUnsafeSkipUpgrades)) { - skipUpgradeHeights[int64(h)] = true - } - - pruningOpts, err := server.GetPruningOptionsFromFlags(appOpts) - if err != nil { - panic(err) - } - - homeDir := cast.ToString(appOpts.Get(flags.FlagHome)) - chainID := cast.ToString(appOpts.Get(flags.FlagChainID)) - if chainID == "" { - // fallback to genesis chain-id - appGenesis, err := tmtypes.GenesisDocFromFile(filepath.Join(homeDir, "config", "genesis.json")) - if err != nil { - panic(err) - } - - chainID = appGenesis.ChainID - } - - snapshotDir := filepath.Join(cast.ToString(appOpts.Get(flags.FlagHome)), "data", "snapshots") - snapshotDB, err := dbm.NewDB("metadata", dbm.GoLevelDBBackend, snapshotDir) - if err != nil { - panic(err) - } - snapshotStore, err := snapshots.NewStore(snapshotDB, snapshotDir) - if err != nil { - panic(err) - } - - snapshotOptions := snapshottypes.NewSnapshotOptions( - cast.ToUint64(appOpts.Get(server.FlagStateSyncSnapshotInterval)), - cast.ToUint32(appOpts.Get(server.FlagStateSyncSnapshotKeepRecent)), - ) +func ProvideClientContext( + appCodec codec.Codec, + interfaceRegistry codectypes.InterfaceRegistry, + txConfig client.TxConfig, + legacyAmino *codec.LegacyAmino, +) client.Context { + clientCtx := client.Context{}. + WithCodec(appCodec). + WithInterfaceRegistry(interfaceRegistry). + WithTxConfig(txConfig). + WithLegacyAmino(legacyAmino). + WithInput(os.Stdin). + WithAccountRetriever(types.AccountRetriever{}). + WithHomeDir(app.DefaultNodeHome). + WithViper(app.Name) // env variable prefix - var wasmOpts []wasmkeeper.Option - if cast.ToBool(appOpts.Get("telemetry.enabled")) { - wasmOpts = append(wasmOpts, wasmkeeper.WithVMCacheMetrics(prometheus.DefaultRegisterer)) - } + // Read the config again to overwrite the default values with the values from the config file + clientCtx, _ = config.ReadFromClientConfig(clientCtx) - return app.New( - logger, - db, - traceStore, - true, - skipUpgradeHeights, - cast.ToString(appOpts.Get(flags.FlagHome)), - cast.ToUint(appOpts.Get(server.FlagInvCheckPeriod)), - a.encodingConfig, - appOpts, - wasmOpts, - baseapp.SetPruning(pruningOpts), - baseapp.SetMinGasPrices(cast.ToString(appOpts.Get(server.FlagMinGasPrices))), - baseapp.SetHaltHeight(cast.ToUint64(appOpts.Get(server.FlagHaltHeight))), - baseapp.SetHaltTime(cast.ToUint64(appOpts.Get(server.FlagHaltTime))), - baseapp.SetMinRetainBlocks(cast.ToUint64(appOpts.Get(server.FlagMinRetainBlocks))), - baseapp.SetInterBlockCache(cache), - baseapp.SetTrace(cast.ToBool(appOpts.Get(server.FlagTrace))), - baseapp.SetIndexEvents(cast.ToStringSlice(appOpts.Get(server.FlagIndexEvents))), - baseapp.SetSnapshot(snapshotStore, snapshotOptions), - baseapp.SetIAVLCacheSize(cast.ToInt(appOpts.Get(server.FlagIAVLCacheSize))), - baseapp.SetIAVLDisableFastNode(cast.ToBool(appOpts.Get(server.FlagDisableIAVLFastNode))), - baseapp.SetChainID(chainID), - ) + return clientCtx } -// appExport creates a new simapp (optionally at a given height) -func (a appCreator) appExport( - logger tmlog.Logger, - db dbm.DB, - traceStore io.Writer, - height int64, - forZeroHeight bool, - jailAllowedAddrs []string, - appOpts servertypes.AppOptions, - modulesToExport []string, -) (servertypes.ExportedApp, error) { - homePath, ok := appOpts.Get(flags.FlagHome).(string) - if !ok || homePath == "" { - return servertypes.ExportedApp{}, errors.New("application home not set") - } - var emptyWasmOpts []wasmkeeper.Option - app := app.New( - logger, - db, - traceStore, - height == -1, // -1: no height provided - map[int64]bool{}, - homePath, - uint(1), - a.encodingConfig, - appOpts, - emptyWasmOpts, - ) - - if height != -1 { - if err := app.LoadHeight(height); err != nil { - return servertypes.ExportedApp{}, err - } +func ProvideKeyring(clientCtx client.Context, addressCodec address.Codec) (clientv2keyring.Keyring, error) { + kb, err := client.NewKeyringFromBackend(clientCtx, clientCtx.Keyring.Backend()) + if err != nil { + return nil, err } - return app.ExportAppStateAndValidators(forZeroHeight, jailAllowedAddrs, modulesToExport) + return keyring.NewAutoCLIKeyring(kb) } diff --git a/cmd/myceld/dns/dns.go b/cmd/myceld/dns/dns.go index 31366033..49794018 100644 --- a/cmd/myceld/dns/dns.go +++ b/cmd/myceld/dns/dns.go @@ -12,7 +12,7 @@ import ( "google.golang.org/grpc" "google.golang.org/grpc/credentials/insecure" - resolver "github.com/mycel-domain/mycel/x/resolver/types" + resolver "github.com/mycel-domain/mycel/x/registry/types" ) type grpcService struct { diff --git a/cmd/myceld/main.go b/cmd/myceld/main.go index 434ea499..db7d616b 100644 --- a/cmd/myceld/main.go +++ b/cmd/myceld/main.go @@ -7,14 +7,11 @@ import ( svrcmd "github.com/cosmos/cosmos-sdk/server/cmd" "github.com/mycel-domain/mycel/app" - "github.com/mycel-domain/mycel/app/params" - "github.com/mycel-domain/mycel/app/params" "github.com/mycel-domain/mycel/cmd/myceld/cmd" ) func main() { - params.SetAddressPrefixes() - rootCmd, _ := cmd.NewRootCmd() + rootCmd := cmd.NewRootCmd() if err := svrcmd.Execute(rootCmd, "", app.DefaultNodeHome); err != nil { fmt.Fprintln(rootCmd.OutOrStderr(), err) diff --git a/docs/static/openapi.yml b/docs/static/openapi.yml index 2f168c07..ea7320b3 100644 --- a/docs/static/openapi.yml +++ b/docs/static/openapi.yml @@ -261,212 +261,25 @@ paths: Since: cosmos-sdk 0.47 tags: - Msg - /cosmos/auth/v1beta1/account_info/{address}: - get: - summary: AccountInfo queries account info which is common to all account types. - description: 'Since: cosmos-sdk 0.47' - operationId: CosmosAuthV1Beta1Query_AccountInfo + /cosmos.authz.v1beta1.Msg/Exec: + post: + summary: |- + Exec attempts to execute the provided messages using + authorizations granted to the grantee. Each message should have only + one signer corresponding to the granter of the authorization. + operationId: CosmosAuthzV1Beta1Msg_Exec responses: '200': description: A successful response. schema: type: object properties: - info: - description: info is the account info which is represented by BaseAccount. - type: object - properties: - address: - type: string - pub_key: - 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. - - - 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" - } - account_number: - type: string - format: uint64 - sequence: - type: string - format: uint64 - description: |- - QueryAccountInfoResponse is the Query/AccountInfo response type. - - Since: cosmos-sdk 0.47 + results: + type: array + items: + type: string + format: byte + description: MsgExecResponse defines the Msg/MsgExecResponse response type. default: description: An unexpected error response. schema: @@ -659,32 +472,19 @@ paths: "value": "1.212s" } parameters: - - name: address - description: address is the account address string. - in: path + - name: body + description: |- + MsgExec attempts to execute the provided messages using + authorizations granted to the grantee. Each message should have only + one signer corresponding to the granter of the authorization. + in: body required: true - type: string - tags: - - Query - /cosmos/auth/v1beta1/accounts: - get: - summary: Accounts returns all the existing accounts. - description: >- - When called from another module, this query might consume a high amount - of - - gas if the pagination field is incorrectly set. - - - Since: cosmos-sdk 0.43 - operationId: CosmosAuthV1Beta1Query_Accounts - responses: - '200': - description: A successful response. schema: type: object properties: - accounts: + grantee: + type: string + msgs: type: array items: type: object @@ -865,32 +665,36 @@ paths: "@type": "type.googleapis.com/google.protobuf.Duration", "value": "1.212s" } - title: accounts are the existing accounts - pagination: - description: pagination defines the pagination in the response. - 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 + description: >- + Execute Msg. - was set, its value is undefined otherwise + The x/authz will try to find a grant matching (msg.signers[0], + grantee, MsgTypeURL(msg)) + + triple and validate it. description: >- - QueryAccountsResponse is the response type for the Query/Accounts - RPC method. + MsgExec attempts to execute the provided messages using + authorizations granted to the grantee. Each message should have + only - Since: cosmos-sdk 0.43 + one signer corresponding to the granter of the authorization. + tags: + - Msg + /cosmos.authz.v1beta1.Msg/Grant: + post: + summary: |- + Grant grants the provided authorization to the grantee on the granter's + account with the provided expiration time. If there is already a grant + for the given (granter, grantee, Authorization) triple, then the grant + will be overwritten. + operationId: CosmosAuthzV1Beta1Msg_Grant + responses: + '200': + description: A successful response. + schema: + type: object + description: MsgGrantResponse defines the Msg/MsgGrant response type. default: description: An unexpected error response. schema: @@ -1083,252 +887,238 @@ paths: "value": "1.212s" } 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 + - name: body description: >- - reverse is set to true if results are to be returned in the - descending order. - + MsgGrant is a request type for Grant method. It declares + authorization to the grantee - Since: cosmos-sdk 0.43 - in: query - required: false - type: boolean - tags: - - Query - /cosmos/auth/v1beta1/accounts/{address}: - get: - summary: Account returns account details based on address. - operationId: CosmosAuthV1Beta1Query_Account - responses: - '200': - description: A successful response. + on behalf of the granter with the provided expiration time. + in: body + required: true schema: type: object properties: - account: + granter: + type: string + grantee: + type: string + grant: type: object properties: - '@type': - type: string - description: >- - A URL/resource name that uniquely identifies the type of - the serialized + authorization: + 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 + protocol buffer message. This string must contain at + least - one "/" character. The last segment of the URL's path must - represent + one "/" character. The last segment of the URL's path + must represent - the fully qualified name of the type (as in + the fully qualified name of the type (as in - `path/google.protobuf.Duration`). The name should be in a - canonical form + `path/google.protobuf.Duration`). The name should be + in a canonical form - (e.g., leading "." is not accepted). + (e.g., leading "." is not accepted). - In practice, teams usually precompile into the binary all - types that they + 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 + 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 + scheme `http`, `https`, or no scheme, one can + optionally set up a type - server that maps type URLs to message definitions as - follows: + server that maps type URLs to message definitions as + follows: - * If no scheme is provided, `https` is assumed. + * 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.) + * 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 + Note: this functionality is not currently available in + the official - protobuf release, and it is not used for type URLs - beginning with + 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 + type.googleapis.com. As of May 2023, there are no + widely used type server - implementations and no plans to implement one. + implementations and no plans to implement one. - Schemes other than `http`, `https` (or the empty scheme) - might be + 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 + 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. + URL that describes the type of the serialized message. - Protobuf library provides support to pack/unpack Any values in - the form + Protobuf library provides support to pack/unpack Any + values in the form - of utility functions or additional generated methods of the - Any type. + of utility functions or additional generated methods of + the Any type. - Example 1: Pack and unpack a message in C++. + Example 1: Pack and unpack a message in C++. - Foo foo = ...; - Any any; - any.PackFrom(foo); - ... - if (any.UnpackTo(&foo)) { - ... - } + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } - Example 2: Pack and unpack a message in Java. + 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()); - } + 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. + Example 3: Pack and unpack a message in Python. - foo = Foo(...) - any = Any() - any.Pack(foo) - ... - if any.Is(Foo.DESCRIPTOR): - any.Unpack(foo) - ... + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... - Example 4: Pack and unpack a message in Go + 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 { - ... - } + 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 + The pack methods provided by protobuf library will by + default use - 'type.googleapis.com/full.type.name' as the type URL and the - unpack + 'type.googleapis.com/full.type.name' as the type URL and + the unpack - methods only use the fully qualified type name after the last - '/' + 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 + in the type URL, for example "foo.bar.com/x/y.z" will + yield type - name "y.z". + name "y.z". - JSON + JSON - ==== + ==== - The JSON representation of an `Any` value uses the regular + The JSON representation of an `Any` value uses the regular - representation of the deserialized, embedded message, with an + representation of the deserialized, embedded message, with + an - additional field `@type` which contains the type URL. Example: + additional field `@type` which contains the type URL. + Example: - package google.profile; - message Person { - string first_name = 1; - string last_name = 2; - } + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } - { - "@type": "type.googleapis.com/google.profile.Person", - "firstName": , - "lastName": - } + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } - If the embedded message type is well-known and has a custom - JSON + If the embedded message type is well-known and has a + custom JSON - representation, that representation will be embedded adding a - field + representation, that representation will be embedded + adding a field - `value` which holds the custom JSON in addition to the `@type` + `value` which holds the custom JSON in addition to the + `@type` - field. Example (for message [google.protobuf.Duration][]): + field. Example (for message [google.protobuf.Duration][]): - { - "@type": "type.googleapis.com/google.protobuf.Duration", - "value": "1.212s" - } + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + expiration: + type: string + format: date-time + title: >- + time when the grant will expire and will be pruned. If + null, then the grant + + doesn't have a time expiration (other conditions in + `authorization` + + may apply to invalidate the grant) + description: |- + Grant gives permissions to execute + the provide method with expiration time. description: >- - QueryAccountResponse is the response type for the Query/Account - RPC method. + MsgGrant is a request type for Grant method. It declares + authorization to the grantee + + on behalf of the granter with the provided expiration time. + tags: + - Msg + /cosmos.authz.v1beta1.Msg/Revoke: + post: + summary: >- + Revoke revokes any authorization corresponding to the provided method + name on the + + granter's account that has been granted to the grantee. + operationId: CosmosAuthzV1Beta1Msg_Revoke + responses: + '200': + description: A successful response. + schema: + type: object + description: MsgRevokeResponse defines the Msg/MsgRevokeResponse response type. default: description: An unexpected error response. schema: @@ -1521,30 +1311,42 @@ paths: "value": "1.212s" } parameters: - - name: address - description: address defines the address to query for. - in: path + - name: body + description: >- + MsgRevoke revokes any authorization with the provided sdk.Msg type + on the + + granter's account with that has been granted to the grantee. + in: body required: true - type: string + schema: + type: object + properties: + granter: + type: string + grantee: + type: string + msg_type_url: + type: string + description: >- + MsgRevoke revokes any authorization with the provided sdk.Msg type + on the + + granter's account with that has been granted to the grantee. tags: - - Query - /cosmos/auth/v1beta1/address_by_id/{id}: - get: - summary: AccountAddressByID returns account address based on account number. - description: 'Since: cosmos-sdk 0.46.2' - operationId: CosmosAuthV1Beta1Query_AccountAddressByID + - Msg + /cosmos.bank.v1beta1.Msg/MultiSend: + post: + summary: >- + MultiSend defines a method for sending coins from some accounts to other + accounts. + operationId: CosmosBankV1Beta1Msg_MultiSend responses: '200': description: A successful response. schema: type: object - properties: - account_address: - type: string - description: 'Since: cosmos-sdk 0.46.2' - title: >- - QueryAccountAddressByIDResponse is the response type for - AccountAddressByID rpc method + description: MsgMultiSendResponse defines the Msg/MultiSend response type. default: description: An unexpected error response. schema: @@ -1562,222 +1364,91 @@ paths: 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 + additionalProperties: {} + parameters: + - name: body + description: >- + MsgMultiSend represents an arbitrary multi-in, multi-out send + message. + in: body + required: true + schema: + type: object + properties: + inputs: + type: array + items: + type: object + properties: + address: + type: string + coins: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + description: >- + Coin defines a token with a denomination and an + amount. - implementations and no plans to implement one. + NOTE: The amount field is an Int which implements the + custom method - Schemes other than `http`, `https` (or the empty scheme) - might be + signatures required by gogoproto. + description: Input models transaction input. + description: >- + Inputs, despite being `repeated`, only allows one sender + input. This is - used with implementation specific semantics. - additionalProperties: {} - description: >- - `Any` contains an arbitrary serialized protocol buffer - message along with a + checked in MsgMultiSend's ValidateBasic. + outputs: + type: array + items: + type: object + properties: + address: + type: string + coins: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + description: >- + Coin defines a token with a denomination and an + amount. - URL that describes the type of the serialized message. + NOTE: The amount field is an Int which implements the + custom method - 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" - } - parameters: - - name: id - description: |- - Deprecated, use account_id instead - - id is the account number of the address to be queried. This field - should have been an uint64 (like all account numbers), and will be - updated to uint64 in a future version of the auth query. - in: path - required: true - type: string - format: int64 - - name: account_id - description: |- - account_id is the account number of the address to be queried. - - Since: cosmos-sdk 0.47 - in: query - required: false - type: string - format: uint64 + signatures required by gogoproto. + description: Output models transaction outputs. + description: >- + MsgMultiSend represents an arbitrary multi-in, multi-out send + message. tags: - - Query - /cosmos/auth/v1beta1/bech32: - get: - summary: Bech32Prefix queries bech32Prefix - description: 'Since: cosmos-sdk 0.46' - operationId: CosmosAuthV1Beta1Query_Bech32Prefix + - Msg + /cosmos.bank.v1beta1.Msg/Send: + post: + summary: >- + Send defines a method for sending coins from one account to another + account. + operationId: CosmosBankV1Beta1Msg_Send responses: '200': description: A successful response. schema: type: object - properties: - bech32_prefix: - type: string - description: >- - Bech32PrefixResponse is the response type for Bech32Prefix rpc - method. - - - Since: cosmos-sdk 0.46 + description: MsgSendResponse defines the Msg/Send response type. default: description: An unexpected error response. schema: @@ -1795,201 +1466,261 @@ paths: 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: {} + parameters: + - name: body + description: >- + MsgSend represents a message to send coins from one account to + another. + in: body + required: true + schema: + type: object + properties: + from_address: + type: string + to_address: + type: string + amount: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string 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 + Coin defines a token with a denomination and an amount. - of utility functions or additional generated methods of the - Any type. + NOTE: The amount field is an Int which implements the custom + method - Example 1: Pack and unpack a message in C++. + signatures required by gogoproto. + description: >- + MsgSend represents a message to send coins from one account to + another. + tags: + - Msg + /cosmos.bank.v1beta1.Msg/SetSendEnabled: + post: + summary: >- + SetSendEnabled is a governance operation for setting the SendEnabled + flag - Foo foo = ...; - Any any; - any.PackFrom(foo); - ... - if (any.UnpackTo(&foo)) { - ... - } + on any number of Denoms. Only the entries to add or update should be - Example 2: Pack and unpack a message in Java. + included. Entries that already exist in the store, but that aren't - 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()); - } + included in this message, will be left unchanged. + description: 'Since: cosmos-sdk 0.47' + operationId: CosmosBankV1Beta1Msg_SetSendEnabled + responses: + '200': + description: A successful response. + schema: + type: object + description: >- + MsgSetSendEnabledResponse defines the Msg/SetSendEnabled response + type. - Example 3: Pack and unpack a message in Python. - foo = Foo(...) - any = Any() - any.Pack(foo) - ... - if any.Is(Foo.DESCRIPTOR): - any.Unpack(foo) - ... + Since: cosmos-sdk 0.47 + 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 + description: |- + MsgSetSendEnabled is the Msg/SetSendEnabled request type. - Example 4: Pack and unpack a message in Go + Only entries to add/update/delete need to be included. + Existing SendEnabled entries that are not included in this + message are left unchanged. - foo := &pb.Foo{...} - any, err := anypb.New(foo) - if err != nil { - ... - } - ... - foo := &pb.Foo{} - if err := any.UnmarshalTo(foo); err != nil { - ... - } + Since: cosmos-sdk 0.47 + in: body + required: true + schema: + type: object + properties: + authority: + type: string + description: authority is the address that controls the module. + send_enabled: + type: array + items: + type: object + properties: + denom: + type: string + enabled: + type: boolean + description: >- + SendEnabled maps coin denom to a send_enabled status + (whether a denom is - The pack methods provided by protobuf library will by - default use + sendable). + description: send_enabled is the list of entries to add or update. + use_default_for: + type: array + items: + type: string + description: >- + use_default_for is a list of denoms that should use the + params.default_send_enabled value. - 'type.googleapis.com/full.type.name' as the type URL and the - unpack + Denoms listed here will have their SendEnabled entries + deleted. - methods only use the fully qualified type name after the - last '/' + If a denom is included that doesn't have a SendEnabled entry, - in the type URL, for example "foo.bar.com/x/y.z" will yield - type + it will be ignored. + description: |- + MsgSetSendEnabled is the Msg/SetSendEnabled request type. - name "y.z". + Only entries to add/update/delete need to be included. + Existing SendEnabled entries that are not included in this + message are left unchanged. + Since: cosmos-sdk 0.47 + tags: + - Msg + /cosmos.bank.v1beta1.Msg/UpdateParams: + post: + summary: >- + UpdateParams defines a governance operation for updating the x/bank + module parameters. - JSON + The authority is defined in the keeper. + description: 'Since: cosmos-sdk 0.47' + operationId: CosmosBankV1Beta1Msg_UpdateParams + responses: + '200': + description: A successful response. + schema: + type: object + description: >- + MsgUpdateParamsResponse defines the response structure for + executing a - ==== + MsgUpdateParams message. - The JSON representation of an `Any` value uses the regular - representation of the deserialized, embedded message, with - an + Since: cosmos-sdk 0.47 + 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 + description: |- + MsgUpdateParams is the Msg/UpdateParams request type. - additional field `@type` which contains the type URL. - Example: + Since: cosmos-sdk 0.47 + in: body + required: true + schema: + 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/bank parameters to update. - package google.profile; - message Person { - string first_name = 1; - string last_name = 2; - } + NOTE: All parameters must be supplied. + type: object + properties: + send_enabled: + type: array + items: + type: object + properties: + denom: + type: string + enabled: + type: boolean + description: >- + SendEnabled maps coin denom to a send_enabled status + (whether a denom is - { - "@type": "type.googleapis.com/google.profile.Person", - "firstName": , - "lastName": - } + sendable). + description: >- + Deprecated: Use of SendEnabled in params is deprecated. - If the embedded message type is well-known and has a custom - JSON + For genesis, use the newly added send_enabled field in the + genesis object. - representation, that representation will be embedded adding - a field + Storage, lookup, and manipulation of this information is + now in the keeper. - `value` which holds the custom JSON in addition to the - `@type` - field. Example (for message [google.protobuf.Duration][]): + As of cosmos-sdk 0.47, this only exists for backwards + compatibility of genesis files. + default_send_enabled: + type: boolean + description: |- + MsgUpdateParams is the Msg/UpdateParams request type. - { - "@type": "type.googleapis.com/google.protobuf.Duration", - "value": "1.212s" - } + Since: cosmos-sdk 0.47 tags: - - Query - /cosmos/auth/v1beta1/bech32/{address_bytes}: + - Msg + /cosmos/base/node/v1beta1/config: get: - summary: AddressBytesToString converts Account Address bytes to string - description: 'Since: cosmos-sdk 0.46' - operationId: CosmosAuthV1Beta1Query_AddressBytesToString + summary: Config queries for the operator configuration. + operationId: CosmosBaseNodeV1Beta1Service_Config responses: '200': description: A successful response. schema: type: object properties: - address_string: + minimum_gas_price: + type: string + pruning_keep_recent: + type: string + pruning_interval: + type: string + halt_height: type: string + format: uint64 description: >- - AddressBytesToStringResponse is the response type for - AddressString rpc method. - - - Since: cosmos-sdk 0.46 + ConfigResponse defines the response structure for the Config gRPC + query. default: description: An unexpected error response. schema: @@ -2007,208 +1738,375 @@ paths: 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. - - - Protobuf library provides support to pack/unpack Any values - in the form + tags: + - Service + /cosmos/base/node/v1beta1/status: + get: + summary: Status queries for the node status. + operationId: CosmosBaseNodeV1Beta1Service_Status + responses: + '200': + description: A successful response. + schema: + type: object + properties: + earliest_store_height: + type: string + format: uint64 + title: earliest block height available in the store + height: + type: string + format: uint64 + title: current block height + timestamp: + type: string + format: date-time + title: block height timestamp + app_hash: + type: string + format: byte + title: app hash of the current block + validator_hash: + type: string + format: byte + title: validator hash provided by the consensus header + description: >- + StateResponse defines the response structure for the status of a + node. + 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: + - Service + /cosmos.consensus.v1.Msg/UpdateParams: + post: + summary: >- + UpdateParams defines a governance operation for updating the x/consensus + module parameters. - of utility functions or additional generated methods of the - Any type. + The authority is defined in the keeper. + description: 'Since: cosmos-sdk 0.47' + operationId: CosmosConsensusV1Msg_UpdateParams + responses: + '200': + description: A successful response. + schema: + type: object + description: >- + MsgUpdateParamsResponse defines the response structure for + executing a + MsgUpdateParams message. + 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 + description: MsgUpdateParams is the Msg/UpdateParams request type. + in: body + required: true + schema: + type: object + properties: + authority: + type: string + description: >- + authority is the address that controls the module (defaults to + x/gov unless overwritten). + block: + description: >- + params defines the x/consensus parameters to update. - Example 1: Pack and unpack a message in C++. + VersionsParams is not included in this Msg because it is + tracked - Foo foo = ...; - Any any; - any.PackFrom(foo); - ... - if (any.UnpackTo(&foo)) { - ... - } + separarately in x/upgrade. - 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()); - } + NOTE: All parameters must be supplied. + type: object + properties: + max_bytes: + type: string + format: int64 + title: |- + Max block size, in bytes. + Note: must be greater than 0 + max_gas: + type: string + format: int64 + title: |- + Max gas per block. + Note: must be greater or equal to -1 + evidence: + type: object + properties: + max_age_num_blocks: + type: string + format: int64 + description: >- + Max age of evidence, in blocks. - Example 3: Pack and unpack a message in Python. - foo = Foo(...) - any = Any() - any.Pack(foo) - ... - if any.Is(Foo.DESCRIPTOR): - any.Unpack(foo) - ... + The basic formula for calculating this is: MaxAgeDuration + / {average block - Example 4: Pack and unpack a message in Go + time}. + max_age_duration: + type: string + description: >- + Max age of evidence, in time. - 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 + It should correspond with an app's "unbonding period" or + other similar - 'type.googleapis.com/full.type.name' as the type URL and the - unpack + mechanism for handling [Nothing-At-Stake - methods only use the fully qualified type name after the - last '/' + attacks](https://github.com/ethereum/wiki/wiki/Proof-of-Stake-FAQ#what-is-the-nothing-at-stake-problem-and-how-can-it-be-fixed). + max_bytes: + type: string + format: int64 + title: >- + This sets the maximum size of total evidence in bytes that + can be committed in a single block. - in the type URL, for example "foo.bar.com/x/y.z" will yield - type + and should fall comfortably under the max block bytes. - name "y.z". + Default is 1048576 or 1MB + description: >- + EvidenceParams determine how we handle evidence of + malfeasance. + validator: + type: object + properties: + pub_key_types: + type: array + items: + type: string + description: >- + ValidatorParams restrict the public key types validators can + use. + NOTE: uses ABCI pubkey naming, not Amino names. + abci: + title: 'Since: cosmos-sdk 0.50' + type: object + properties: + vote_extensions_enable_height: + type: string + format: int64 + description: >- + vote_extensions_enable_height configures the first height + during which - JSON + vote extensions will be enabled. During this specified + height, and for all - ==== + subsequent heights, precommit messages that do not contain + valid extension data - The JSON representation of an `Any` value uses the regular + will be considered invalid. Prior to this height, vote + extensions will not - representation of the deserialized, embedded message, with - an + be used or accepted by validators on the network. - additional field `@type` which contains the type URL. - Example: - package google.profile; - message Person { - string first_name = 1; - string last_name = 2; - } + Once enabled, vote extensions will be created by the + application in ExtendVote, - { - "@type": "type.googleapis.com/google.profile.Person", - "firstName": , - "lastName": - } + passed to the application for validation in + VerifyVoteExtension and given - If the embedded message type is well-known and has a custom - JSON + to the application to use when proposing a block during + PrepareProposal. + description: >- + ABCIParams configure functionality specific to the Application + Blockchain Interface. + description: MsgUpdateParams is the Msg/UpdateParams request type. + tags: + - Msg + /cosmos.crisis.v1beta1.Msg/UpdateParams: + post: + summary: >- + UpdateParams defines a governance operation for updating the x/crisis + module - representation, that representation will be embedded adding - a field + parameters. The authority is defined in the keeper. + description: 'Since: cosmos-sdk 0.47' + operationId: CosmosCrisisV1Beta1Msg_UpdateParams + responses: + '200': + description: A successful response. + schema: + type: object + description: >- + MsgUpdateParamsResponse defines the response structure for + executing a - `value` which holds the custom JSON in addition to the - `@type` + MsgUpdateParams message. - field. Example (for message [google.protobuf.Duration][]): - { - "@type": "type.googleapis.com/google.protobuf.Duration", - "value": "1.212s" - } + Since: cosmos-sdk 0.47 + 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: address_bytes - in: path + - name: body + description: |- + MsgUpdateParams is the Msg/UpdateParams request type. + + Since: cosmos-sdk 0.47 + in: body required: true - type: string - format: byte + schema: + type: object + properties: + authority: + type: string + description: >- + authority is the address that controls the module (defaults to + x/gov unless overwritten). + constant_fee: + description: constant_fee defines the x/crisis parameter. + type: object + properties: + denom: + type: string + amount: + type: string + description: |- + MsgUpdateParams is the Msg/UpdateParams request type. + + Since: cosmos-sdk 0.47 tags: - - Query - /cosmos/auth/v1beta1/bech32/{address_string}: - get: - summary: AddressStringToBytes converts Address string to bytes - description: 'Since: cosmos-sdk 0.46' - operationId: CosmosAuthV1Beta1Query_AddressStringToBytes + - Msg + /cosmos.crisis.v1beta1.Msg/VerifyInvariant: + post: + summary: VerifyInvariant defines a method to verify a particular invariant. + operationId: CosmosCrisisV1Beta1Msg_VerifyInvariant responses: '200': description: A successful response. + schema: + type: object + description: >- + MsgVerifyInvariantResponse defines the Msg/VerifyInvariant + response type. + default: + description: An unexpected error response. schema: type: object properties: - address_bytes: + code: + type: integer + format: int32 + message: type: string - format: byte + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + parameters: + - name: body + description: >- + MsgVerifyInvariant represents a message to verify a particular + invariance. + in: body + required: true + schema: + type: object + properties: + sender: + type: string + description: >- + sender is the account address of private key to send coins to + fee collector account. + invariant_module_name: + type: string + description: name of the invariant module. + invariant_route: + type: string + description: invariant_route is the msg's invariant route. description: >- - AddressStringToBytesResponse is the response type for AddressBytes - rpc method. + MsgVerifyInvariant represents a message to verify a particular + invariance. + tags: + - Msg + /cosmos.distribution.v1beta1.Msg/CommunityPoolSpend: + post: + summary: >- + CommunityPoolSpend defines a governance operation for sending tokens + from + + the community pool in the x/distribution module to another account, + which + could be the governance module itself. The authority is defined in the - Since: cosmos-sdk 0.46 + keeper. + description: 'Since: cosmos-sdk 0.47' + operationId: CosmosDistributionV1Beta1Msg_CommunityPoolSpend + responses: + '200': + description: A successful response. + schema: + type: object + description: |- + MsgCommunityPoolSpendResponse defines the response to executing a + MsgCommunityPoolSpend message. + + Since: cosmos-sdk 0.47 default: description: An unexpected error response. schema: @@ -2226,32 +2124,565 @@ paths: properties: '@type': type: string - description: >- - A URL/resource name that uniquely identifies the type of - the serialized + additionalProperties: {} + parameters: + - name: body + description: >- + MsgCommunityPoolSpend defines a message for sending tokens from the + community - protocol buffer message. This string must contain at - least + pool to another account. This message is typically executed via a + governance - one "/" character. The last segment of the URL's path - must represent + proposal with the governance module being the executing authority. - the fully qualified name of the type (as in - `path/google.protobuf.Duration`). The name should be in - a canonical form + Since: cosmos-sdk 0.47 + in: body + required: true + schema: + type: object + properties: + authority: + type: string + description: >- + authority is the address that controls the module (defaults to + x/gov unless overwritten). + recipient: + type: string + amount: + 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. + description: >- + MsgCommunityPoolSpend defines a message for sending tokens from + the community - expect it to use in the context of Any. However, for - URLs which use the + pool to another account. This message is typically executed via a + governance - scheme `http`, `https`, or no scheme, one can optionally - set up a type + proposal with the governance module being the executing authority. + + + Since: cosmos-sdk 0.47 + tags: + - Msg + /cosmos.distribution.v1beta1.Msg/DepositValidatorRewardsPool: + post: + summary: >- + DepositValidatorRewardsPool defines a method to provide additional + rewards + + to delegators to a specific validator. + description: 'Since: cosmos-sdk 0.50' + operationId: CosmosDistributionV1Beta1Msg_DepositValidatorRewardsPool + responses: + '200': + description: A successful response. + schema: + type: object + description: >- + MsgDepositValidatorRewardsPoolResponse defines the response to + executing a + + MsgDepositValidatorRewardsPool message. + + + Since: cosmos-sdk 0.50 + 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 + description: |- + DepositValidatorRewardsPool defines the request structure to provide + additional rewards to delegators from a specific validator. + + Since: cosmos-sdk 0.50 + in: body + required: true + schema: + type: object + properties: + depositor: + type: string + validator_address: + type: string + 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. + description: >- + DepositValidatorRewardsPool defines the request structure to + provide + + additional rewards to delegators from a specific validator. + + + Since: cosmos-sdk 0.50 + tags: + - Msg + /cosmos.distribution.v1beta1.Msg/FundCommunityPool: + post: + summary: |- + FundCommunityPool defines a method to allow an account to directly + fund the community pool. + operationId: CosmosDistributionV1Beta1Msg_FundCommunityPool + responses: + '200': + description: A successful response. + schema: + type: object + description: >- + MsgFundCommunityPoolResponse defines the Msg/FundCommunityPool + response type. + 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 + description: |- + MsgFundCommunityPool allows an account to directly + fund the community pool. + in: body + required: true + schema: + type: object + properties: + 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. + depositor: + type: string + description: |- + MsgFundCommunityPool allows an account to directly + fund the community pool. + tags: + - Msg + /cosmos.distribution.v1beta1.Msg/SetWithdrawAddress: + post: + summary: |- + SetWithdrawAddress defines a method to change the withdraw address + for a delegator (or validator self-delegation). + operationId: CosmosDistributionV1Beta1Msg_SetWithdrawAddress + responses: + '200': + description: A successful response. + schema: + type: object + description: >- + MsgSetWithdrawAddressResponse defines the Msg/SetWithdrawAddress + response + + type. + 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 + description: |- + MsgSetWithdrawAddress sets the withdraw address for + a delegator (or validator self-delegation). + in: body + required: true + schema: + type: object + properties: + delegator_address: + type: string + withdraw_address: + type: string + description: |- + MsgSetWithdrawAddress sets the withdraw address for + a delegator (or validator self-delegation). + tags: + - Msg + /cosmos.distribution.v1beta1.Msg/UpdateParams: + post: + summary: >- + UpdateParams defines a governance operation for updating the + x/distribution + + module parameters. The authority is defined in the keeper. + description: 'Since: cosmos-sdk 0.47' + operationId: CosmosDistributionV1Beta1Msg_UpdateParams + responses: + '200': + description: A successful response. + schema: + type: object + description: >- + MsgUpdateParamsResponse defines the response structure for + executing a + + MsgUpdateParams message. + + + Since: cosmos-sdk 0.47 + 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 + description: |- + MsgUpdateParams is the Msg/UpdateParams request type. + + Since: cosmos-sdk 0.47 + in: body + required: true + schema: + 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/distribution parameters to update. + + NOTE: All parameters must be supplied. + type: object + properties: + community_tax: + type: string + base_proposer_reward: + type: string + description: >- + Deprecated: The base_proposer_reward field is deprecated + and is no longer used + + in the x/distribution module's reward mechanism. + bonus_proposer_reward: + type: string + description: >- + Deprecated: The bonus_proposer_reward field is deprecated + and is no longer used + + in the x/distribution module's reward mechanism. + withdraw_addr_enabled: + type: boolean + description: |- + MsgUpdateParams is the Msg/UpdateParams request type. + + Since: cosmos-sdk 0.47 + tags: + - Msg + /cosmos.distribution.v1beta1.Msg/WithdrawDelegatorReward: + post: + summary: >- + WithdrawDelegatorReward defines a method to withdraw rewards of + delegator + + from a single validator. + operationId: CosmosDistributionV1Beta1Msg_WithdrawDelegatorReward + responses: + '200': + description: A successful response. + schema: + type: object + properties: + 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. + title: 'Since: cosmos-sdk 0.46' + description: >- + MsgWithdrawDelegatorRewardResponse defines the + Msg/WithdrawDelegatorReward + + response type. + 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 + description: >- + MsgWithdrawDelegatorReward represents delegation withdrawal to a + delegator + + from a single validator. + in: body + required: true + schema: + type: object + properties: + delegator_address: + type: string + validator_address: + type: string + description: >- + MsgWithdrawDelegatorReward represents delegation withdrawal to a + delegator + + from a single validator. + tags: + - Msg + /cosmos.distribution.v1beta1.Msg/WithdrawValidatorCommission: + post: + summary: |- + WithdrawValidatorCommission defines a method to withdraw the + full commission to the validator address. + operationId: CosmosDistributionV1Beta1Msg_WithdrawValidatorCommission + responses: + '200': + description: A successful response. + schema: + type: object + properties: + 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. + title: 'Since: cosmos-sdk 0.46' + description: |- + MsgWithdrawValidatorCommissionResponse defines the + Msg/WithdrawValidatorCommission response type. + 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 + description: >- + MsgWithdrawValidatorCommission withdraws the full commission to the + validator + + address. + in: body + required: true + schema: + type: object + properties: + validator_address: + type: string + description: >- + MsgWithdrawValidatorCommission withdraws the full commission to + the validator + + address. + tags: + - Msg + /cosmos.evidence.v1beta1.Msg/SubmitEvidence: + post: + summary: >- + SubmitEvidence submits an arbitrary Evidence of misbehavior such as + equivocation or + + counterfactual signing. + operationId: CosmosEvidenceV1Beta1Msg_SubmitEvidence + responses: + '200': + description: A successful response. + schema: + type: object + properties: + hash: + type: string + format: byte + description: hash defines the hash of the evidence. + description: >- + MsgSubmitEvidenceResponse defines the Msg/SubmitEvidence response + type. + 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 + 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: @@ -2401,24 +2832,119 @@ paths: "value": "1.212s" } parameters: - - name: address_string - in: path - required: true - type: string - tags: - - Query - /cosmos/auth/v1beta1/module_accounts: - get: - summary: ModuleAccounts returns all the existing module accounts. - description: 'Since: cosmos-sdk 0.46' - operationId: CosmosAuthV1Beta1Query_ModuleAccounts + - name: body + description: >- + MsgSubmitEvidence represents a message that supports submitting + arbitrary + + Evidence of misbehavior such as equivocation or counterfactual + signing. + in: body + required: true + schema: + type: object + properties: + submitter: + type: string + description: submitter is the signer account address of evidence. + evidence: + description: evidence defines the evidence of misbehavior. + 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: >- + MsgSubmitEvidence represents a message that supports submitting + arbitrary + + Evidence of misbehavior such as equivocation or counterfactual + signing. + tags: + - Msg + /cosmos.feegrant.v1beta1.Msg/GrantAllowance: + post: + summary: |- + GrantAllowance grants fee allowance to the grantee on the granter's + account with the provided expiration time. + operationId: CosmosFeegrantV1Beta1Msg_GrantAllowance responses: '200': description: A successful response. + schema: + type: object + description: >- + MsgGrantAllowanceResponse defines the Msg/GrantAllowanceResponse + response type. + default: + description: An unexpected error response. schema: type: object properties: - accounts: + code: + type: integer + format: int32 + message: + type: string + details: type: array items: type: object @@ -2599,12 +3125,120 @@ paths: "@type": "type.googleapis.com/google.protobuf.Duration", "value": "1.212s" } + parameters: + - name: body + description: >- + MsgGrantAllowance adds permission for Grantee to spend up to + Allowance + + of fees from the account of Granter. + in: body + required: true + schema: + type: object + properties: + granter: + type: string + description: >- + granter is the address of the user granting an allowance of + their funds. + grantee: + type: string + description: >- + grantee is the address of the user being granted an allowance + of another user's funds. + allowance: + description: >- + allowance can be any of basic, periodic, allowed fee + allowance. + 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: >- + MsgGrantAllowance adds permission for Grantee to spend up to + Allowance + + of fees from the account of Granter. + tags: + - Msg + /cosmos.feegrant.v1beta1.Msg/PruneAllowances: + post: + summary: >- + PruneAllowances prunes expired fee allowances, currently up to 75 at a + time. + description: Since cosmos-sdk 0.50 + operationId: CosmosFeegrantV1Beta1Msg_PruneAllowances + responses: + '200': + description: A successful response. + schema: + type: object description: >- - QueryModuleAccountsResponse is the response type for the - Query/ModuleAccounts RPC method. + MsgPruneAllowancesResponse defines the Msg/PruneAllowancesResponse + response type. - Since: cosmos-sdk 0.46 + Since cosmos-sdk 0.50 default: description: An unexpected error response. schema: @@ -2796,196 +3430,40 @@ paths: "@type": "type.googleapis.com/google.protobuf.Duration", "value": "1.212s" } + parameters: + - name: body + description: |- + MsgPruneAllowances prunes expired fee allowances. + + Since cosmos-sdk 0.50 + in: body + required: true + schema: + type: object + properties: + pruner: + type: string + description: pruner is the address of the user pruning expired allowances. + description: |- + MsgPruneAllowances prunes expired fee allowances. + + Since cosmos-sdk 0.50 tags: - - Query - /cosmos/auth/v1beta1/module_accounts/{name}: - get: - summary: ModuleAccountByName returns the module account info by module name - operationId: CosmosAuthV1Beta1Query_ModuleAccountByName + - Msg + /cosmos.feegrant.v1beta1.Msg/RevokeAllowance: + post: + summary: |- + RevokeAllowance revokes any fee allowance of granter's account that + has been granted to the grantee. + operationId: CosmosFeegrantV1Beta1Msg_RevokeAllowance responses: '200': description: A successful response. schema: type: object - properties: - account: - 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. - - - 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" - } description: >- - QueryModuleAccountByNameResponse is the response type for the - Query/ModuleAccountByName RPC method. + MsgRevokeAllowanceResponse defines the Msg/RevokeAllowanceResponse + response type. default: description: An unexpected error response. schema: @@ -3178,44 +3656,63 @@ paths: "value": "1.212s" } parameters: - - name: name - in: path + - name: body + description: >- + MsgRevokeAllowance removes any existing Allowance from Granter to + Grantee. + in: body required: true - type: string + schema: + type: object + properties: + granter: + type: string + description: >- + granter is the address of the user granting an allowance of + their funds. + grantee: + type: string + description: >- + grantee is the address of the user being granted an allowance + of another user's funds. + description: >- + MsgRevokeAllowance removes any existing Allowance from Granter to + Grantee. tags: - - Query - /cosmos/auth/v1beta1/params: - get: - summary: Params queries all parameters. - operationId: CosmosAuthV1Beta1Query_Params + - Msg + /cosmos.gov.v1.Msg/CancelProposal: + post: + summary: CancelProposal defines a method to cancel governance proposal + description: 'Since: cosmos-sdk 0.50' + operationId: CosmosGovV1Msg_CancelProposal responses: '200': description: A successful response. schema: type: object properties: - params: - description: params defines the parameters of the module. - 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 + proposal_id: + type: string + format: uint64 + description: proposal_id defines the unique id of the proposal. + canceled_time: + type: string + format: date-time + description: canceled_time is the time when proposal is canceled. + canceled_height: + type: string + format: uint64 + description: >- + canceled_height defines the block height at which the proposal + is canceled. description: >- - QueryParamsResponse is the response type for the Query/Params RPC - method. + MsgCancelProposalResponse defines the response structure for + executing a + + MsgCancelProposal message. + + + Since: cosmos-sdk 0.50 default: description: An unexpected error response. schema: @@ -3407,243 +3904,40 @@ paths: "@type": "type.googleapis.com/google.protobuf.Duration", "value": "1.212s" } - tags: - - Query - /cosmos/authz/v1beta1/grants: - get: - summary: Returns list of `Authorization`, granted to the grantee by the granter. - operationId: CosmosAuthzV1Beta1Query_Grants - responses: - '200': - description: A successful response. + parameters: + - name: body + description: |- + MsgCancelProposal is the Msg/CancelProposal request type. + + Since: cosmos-sdk 0.50 + in: body + required: true schema: type: object properties: - grants: - type: array - items: - type: object - properties: - authorization: - 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. - - - 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" - } - expiration: - type: string - format: date-time - title: >- - time when the grant will expire and will be pruned. If - null, then the grant - - doesn't have a time expiration (other conditions in - `authorization` - - may apply to invalidate the grant) - description: |- - Grant gives permissions to execute - the provide method with expiration time. - description: >- - authorizations is a list of grants granted for grantee by - granter. - pagination: - description: pagination defines an pagination for the response. - 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 + proposal_id: + type: string + format: uint64 + description: proposal_id defines the unique id of the proposal. + proposer: + type: string + description: proposer is the account address of the proposer. + description: |- + MsgCancelProposal is the Msg/CancelProposal request type. - was set, its value is undefined otherwise - description: >- - QueryGrantsResponse is the response type for the - Query/Authorizations RPC method. + Since: cosmos-sdk 0.50 + tags: + - Msg + /cosmos.gov.v1.Msg/Deposit: + post: + summary: Deposit defines a method to add deposit on a specific proposal. + operationId: CosmosGovV1Msg_Deposit + responses: + '200': + description: A successful response. + schema: + type: object + description: MsgDepositResponse defines the Msg/Deposit response type. default: description: An unexpected error response. schema: @@ -3836,311 +4130,59 @@ paths: "value": "1.212s" } parameters: - - name: granter - in: query - required: false - type: string - - name: grantee - in: query - required: false - type: string - - name: msg_type_url - description: >- - Optional, msg_type_url, when set, will query only grants matching - given msg type. - in: query - required: false - type: string - - 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 + - name: body 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 - /cosmos/authz/v1beta1/grants/grantee/{grantee}: - get: - summary: GranteeGrants returns a list of `GrantAuthorization` by grantee. - description: 'Since: cosmos-sdk 0.46' - operationId: CosmosAuthzV1Beta1Query_GranteeGrants - responses: - '200': - description: A successful response. + MsgDeposit defines a message to submit a deposit to an existing + proposal. + in: body + required: true schema: type: object properties: - grants: + proposal_id: + type: string + format: uint64 + description: proposal_id defines the unique id of the proposal. + depositor: + type: string + description: depositor defines the deposit addresses from the proposals. + amount: type: array items: type: object properties: - granter: + denom: type: string - grantee: + amount: type: string - authorization: - 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. - - - 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][]): + description: >- + Coin defines a token with a denomination and an amount. - { - "@type": "type.googleapis.com/google.protobuf.Duration", - "value": "1.212s" - } - expiration: - type: string - format: date-time - title: >- - GrantAuthorization extends a grant with both the addresses - of the grantee and granter. - It is used in genesis.proto and query.proto - description: grants is a list of grants granted to the grantee. - pagination: - description: pagination defines an pagination for the response. - 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 + NOTE: The amount field is an Int which implements the custom + method - was set, its value is undefined otherwise + signatures required by gogoproto. + description: amount to be deposited by depositor. + description: >- + MsgDeposit defines a message to submit a deposit to an existing + proposal. + tags: + - Msg + /cosmos.gov.v1.Msg/ExecLegacyContent: + post: + summary: |- + ExecLegacyContent defines a Msg to be in included in a MsgSubmitProposal + to execute a legacy content-based proposal. + operationId: CosmosGovV1Msg_ExecLegacyContent + responses: + '200': + description: A successful response. + schema: + type: object description: >- - QueryGranteeGrantsResponse is the response type for the - Query/GranteeGrants RPC method. + MsgExecLegacyContentResponse defines the Msg/ExecLegacyContent + response type. default: description: An unexpected error response. schema: @@ -4333,300 +4375,112 @@ paths: "value": "1.212s" } parameters: - - name: grantee - in: path - required: true - type: string - - 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 + - name: body description: >- - reverse is set to true if results are to be returned in the - descending order. - + MsgExecLegacyContent is used to wrap the legacy content field into a + message. - Since: cosmos-sdk 0.43 - in: query - required: false - type: boolean - tags: - - Query - /cosmos/authz/v1beta1/grants/granter/{granter}: - get: - summary: GranterGrants returns list of `GrantAuthorization`, granted by granter. - description: 'Since: cosmos-sdk 0.46' - operationId: CosmosAuthzV1Beta1Query_GranterGrants - responses: - '200': - description: A successful response. + This ensures backwards compatibility with v1beta1.MsgSubmitProposal. + in: body + required: true schema: type: object properties: - grants: - type: array - items: - type: object - properties: - granter: - type: string - grantee: - type: string - authorization: - 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. - - - 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 + content: + description: content is the proposal's content. + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type of + the serialized - foo := &pb.Foo{...} - any, err := anypb.New(foo) - if err != nil { - ... - } - ... - foo := &pb.Foo{} - if err := any.UnmarshalTo(foo); err != nil { - ... - } + protocol buffer message. This string must contain at least - The pack methods provided by protobuf library will by - default use + one "/" character. The last segment of the URL's path must + represent - 'type.googleapis.com/full.type.name' as the type URL and - the unpack + the fully qualified name of the type (as in - methods only use the fully qualified type name after the - last '/' + `path/google.protobuf.Duration`). The name should be in a + canonical form - in the type URL, for example "foo.bar.com/x/y.z" will - yield type + (e.g., leading "." is not accepted). - name "y.z". + In practice, teams usually precompile into the binary all + types that they - JSON + 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 - The JSON representation of an `Any` value uses the - regular + server that maps type URLs to message definitions as + follows: - representation of the deserialized, embedded message, - with an - additional field `@type` which contains the type URL. - Example: + * If no scheme is provided, `https` is assumed. - package google.profile; - message Person { - string first_name = 1; - string last_name = 2; - } + * 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.) - { - "@type": "type.googleapis.com/google.profile.Person", - "firstName": , - "lastName": - } + Note: this functionality is not currently available in the + official - If the embedded message type is well-known and has a - custom JSON + protobuf release, and it is not used for type URLs + beginning with - representation, that representation will be embedded - adding a field + type.googleapis.com. As of May 2023, there are no widely + used type server - `value` which holds the custom JSON in addition to the - `@type` + implementations and no plans to implement one. - field. Example (for message - [google.protobuf.Duration][]): - { - "@type": "type.googleapis.com/google.protobuf.Duration", - "value": "1.212s" - } - expiration: - type: string - format: date-time - title: >- - GrantAuthorization extends a grant with both the addresses - of the grantee and granter. + Schemes other than `http`, `https` (or the empty scheme) + might be - It is used in genesis.proto and query.proto - description: grants is a list of grants granted by the granter. - pagination: - description: pagination defines an pagination for the response. - 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 + used with implementation specific semantics. + additionalProperties: {} + authority: + type: string + description: authority must be the gov module address. + description: >- + MsgExecLegacyContent is used to wrap the legacy content field into + a message. - was set, its value is undefined otherwise + This ensures backwards compatibility with + v1beta1.MsgSubmitProposal. + tags: + - Msg + /cosmos.gov.v1.Msg/SubmitProposal: + post: + summary: >- + SubmitProposal defines a method to create new proposal given the + messages. + operationId: CosmosGovV1Msg_SubmitProposal + responses: + '200': + description: A successful response. + schema: + type: object + properties: + proposal_id: + type: string + format: uint64 + description: proposal_id defines the unique id of the proposal. description: >- - QueryGranterGrantsResponse is the response type for the - Query/GranterGrants RPC method. + MsgSubmitProposalResponse defines the Msg/SubmitProposal response + type. default: description: An unexpected error response. schema: @@ -4819,98 +4673,18 @@ paths: "value": "1.212s" } parameters: - - name: granter - in: path + - name: body + description: >- + MsgSubmitProposal defines an sdk.Msg type that supports submitting + arbitrary + + proposal Content. + in: body required: true - type: string - - 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 - /cosmos.authz.v1beta1.Msg/Exec: - post: - summary: |- - Exec attempts to execute the provided messages using - authorizations granted to the grantee. Each message should have only - one signer corresponding to the granter of the authorization. - operationId: CosmosAuthzV1Beta1Msg_Exec - responses: - '200': - description: A successful response. - schema: - type: object - properties: - results: - type: array - items: - type: string - format: byte - description: MsgExecResponse defines the Msg/MsgExecResponse response type. - default: - description: An unexpected error response. schema: type: object properties: - code: - type: integer - format: int32 - message: - type: string - details: + messages: type: array items: type: object @@ -5091,20 +4865,89 @@ paths: "@type": "type.googleapis.com/google.protobuf.Duration", "value": "1.212s" } - parameters: - - name: body - description: |- - MsgExec attempts to execute the provided messages using - authorizations granted to the grantee. Each message should have only - one signer corresponding to the granter of the authorization. - in: body - required: true + description: >- + messages are the arbitrary messages to be executed if proposal + passes. + initial_deposit: + 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. + description: >- + initial_deposit is the deposit value that must be paid at + proposal submission. + proposer: + type: string + description: proposer is the account address of the proposer. + metadata: + type: string + description: metadata is any arbitrary metadata attached to the proposal. + title: + type: string + description: |- + title is the title of the proposal. + + Since: cosmos-sdk 0.47 + summary: + type: string + description: 'Since: cosmos-sdk 0.47' + title: summary is the summary of the proposal + expedited: + type: boolean + description: 'Since: cosmos-sdk 0.50' + title: expedited defines if the proposal is expedited or not + description: >- + MsgSubmitProposal defines an sdk.Msg type that supports submitting + arbitrary + + proposal Content. + tags: + - Msg + /cosmos.gov.v1.Msg/UpdateParams: + post: + summary: >- + UpdateParams defines a governance operation for updating the x/gov + module + + parameters. The authority is defined in the keeper. + description: 'Since: cosmos-sdk 0.47' + operationId: CosmosGovV1Msg_UpdateParams + responses: + '200': + description: A successful response. + schema: + type: object + description: >- + MsgUpdateParamsResponse defines the response structure for + executing a + + MsgUpdateParams message. + + + Since: cosmos-sdk 0.47 + default: + description: An unexpected error response. schema: type: object properties: - grantee: + code: + type: integer + format: int32 + message: type: string - msgs: + details: type: array items: type: object @@ -5285,36 +5128,170 @@ paths: "@type": "type.googleapis.com/google.protobuf.Duration", "value": "1.212s" } + parameters: + - name: body + description: |- + MsgUpdateParams is the Msg/UpdateParams request type. + + Since: cosmos-sdk 0.47 + in: body + required: true + schema: + type: object + properties: + authority: + type: string description: >- - Execute Msg. + authority is the address that controls the module (defaults to + x/gov unless overwritten). + params: + description: |- + params defines the x/gov parameters to update. - The x/authz will try to find a grant matching (msg.signers[0], - grantee, MsgTypeURL(msg)) + NOTE: All parameters must be supplied. + type: object + properties: + min_deposit: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + description: >- + Coin defines a token with a denomination and an amount. - triple and validate it. - description: >- - MsgExec attempts to execute the provided messages using - authorizations granted to the grantee. Each message should have - only + NOTE: The amount field is an Int which implements the + custom method - one signer corresponding to the granter of the authorization. + signatures required by gogoproto. + description: Minimum deposit for a proposal to enter voting period. + max_deposit_period: + type: string + description: >- + Maximum period for Atom holders to deposit on a proposal. + Initial value: 2 + + months. + voting_period: + type: string + description: Duration of the voting period. + quorum: + type: string + description: >- + Minimum percentage of total stake needed to vote for a + result to be + considered valid. + threshold: + type: string + description: >- + Minimum proportion of Yes votes for proposal to pass. + Default value: 0.5. + veto_threshold: + type: string + description: >- + Minimum value of Veto votes to Total votes ratio for + proposal to be + vetoed. Default value: 1/3. + min_initial_deposit_ratio: + type: string + description: >- + The ratio representing the proportion of the deposit value + that must be paid at proposal submission. + proposal_cancel_ratio: + type: string + description: >- + The cancel ratio which will not be returned back to the + depositors when a proposal is cancelled. + + + Since: cosmos-sdk 0.50 + proposal_cancel_dest: + type: string + description: >- + The address which will receive (proposal_cancel_ratio * + deposit) proposal deposits. + + If empty, the (proposal_cancel_ratio * deposit) proposal + deposits will be burned. + + + Since: cosmos-sdk 0.50 + expedited_voting_period: + type: string + description: |- + Duration of the voting period of an expedited proposal. + + Since: cosmos-sdk 0.50 + expedited_threshold: + type: string + description: >- + Minimum proportion of Yes votes for proposal to pass. + Default value: 0.67. + + + Since: cosmos-sdk 0.50 + expedited_min_deposit: + 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. + description: >- + Minimum expedited deposit for a proposal to enter voting + period. + burn_vote_quorum: + type: boolean + title: burn deposits if a proposal does not meet quorum + burn_proposal_deposit_prevote: + type: boolean + title: burn deposits if the proposal does not enter voting period + burn_vote_veto: + type: boolean + title: burn deposits if quorum with vote type no_veto is met + min_deposit_ratio: + type: string + description: >- + The ratio representing the proportion of the deposit value + minimum that must be met when making a deposit. + + Default value: 0.01. Meaning that for a chain with a + min_deposit of 100stake, a deposit of 1stake would be + + required. + + + Since: cosmos-sdk 0.50 + description: |- + MsgUpdateParams is the Msg/UpdateParams request type. + + Since: cosmos-sdk 0.47 tags: - Msg - /cosmos.authz.v1beta1.Msg/Grant: + /cosmos.gov.v1.Msg/Vote: post: - summary: |- - Grant grants the provided authorization to the grantee on the granter's - account with the provided expiration time. If there is already a grant - for the given (granter, grantee, Authorization) triple, then the grant - will be overwritten. - operationId: CosmosAuthzV1Beta1Msg_Grant + summary: Vote defines a method to add a vote on a specific proposal. + operationId: CosmosGovV1Msg_Vote responses: '200': description: A successful response. schema: type: object - description: MsgGrantResponse defines the Msg/MsgGrant response type. + description: MsgVoteResponse defines the Msg/Vote response type. default: description: An unexpected error response. schema: @@ -5508,237 +5485,297 @@ paths: } parameters: - name: body - description: >- - MsgGrant is a request type for Grant method. It declares - authorization to the grantee - - on behalf of the granter with the provided expiration time. + description: MsgVote defines a message to cast a vote. in: body required: true schema: type: object properties: - granter: + proposal_id: type: string - grantee: + format: uint64 + description: proposal_id defines the unique id of the proposal. + voter: type: string - grant: - type: object - properties: - authorization: - type: object - properties: - '@type': - type: string - description: >- - A URL/resource name that uniquely identifies the type - of the serialized + description: voter is the voter address for the proposal. + option: + description: option defines the vote option. + type: string + enum: + - VOTE_OPTION_UNSPECIFIED + - VOTE_OPTION_YES + - VOTE_OPTION_ABSTAIN + - VOTE_OPTION_NO + - VOTE_OPTION_NO_WITH_VETO + default: VOTE_OPTION_UNSPECIFIED + metadata: + type: string + description: metadata is any arbitrary metadata attached to the Vote. + description: MsgVote defines a message to cast a vote. + tags: + - Msg + /cosmos.gov.v1.Msg/VoteWeighted: + post: + summary: >- + VoteWeighted defines a method to add a weighted vote on a specific + proposal. + operationId: CosmosGovV1Msg_VoteWeighted + responses: + '200': + description: A successful response. + schema: + type: object + description: >- + MsgVoteWeightedResponse defines the Msg/VoteWeighted response + type. + 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 + description: >- + A URL/resource name that uniquely identifies the type of + the serialized - protocol buffer message. This string must contain at - least + protocol buffer message. This string must contain at + least - one "/" character. The last segment of the URL's path - must represent + one "/" character. The last segment of the URL's path + must represent - the fully qualified name of the type (as in + the fully qualified name of the type (as in - `path/google.protobuf.Duration`). The name should be - in a canonical form + `path/google.protobuf.Duration`). The name should be in + a canonical form - (e.g., leading "." is not accepted). + (e.g., leading "." is not accepted). - In practice, teams usually precompile into the binary - all types that they + 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 + 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 + scheme `http`, `https`, or no scheme, one can optionally + set up a type - server that maps type URLs to message definitions as - follows: + server that maps type URLs to message definitions as + follows: - * If no scheme is provided, `https` is assumed. + * 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.) + * 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 + Note: this functionality is not currently available in + the official - protobuf release, and it is not used for type URLs - beginning with + 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 + type.googleapis.com. As of May 2023, there are no widely + used type server - implementations and no plans to implement one. + implementations and no plans to implement one. - Schemes other than `http`, `https` (or the empty - scheme) might be + 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 + 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. + URL that describes the type of the serialized message. - Protobuf library provides support to pack/unpack Any - values in the form + Protobuf library provides support to pack/unpack Any values + in the form - of utility functions or additional generated methods of - the Any type. + of utility functions or additional generated methods of the + Any type. - Example 1: Pack and unpack a message in C++. + Example 1: Pack and unpack a message in C++. - Foo foo = ...; - Any any; - any.PackFrom(foo); + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { ... - if (any.UnpackTo(&foo)) { - ... - } + } - Example 2: Pack and unpack a message in Java. + 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()); - } + 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. + Example 3: Pack and unpack a message in Python. - foo = Foo(...) - any = Any() - any.Pack(foo) + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) ... - if any.Is(Foo.DESCRIPTOR): - any.Unpack(foo) - ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go - foo := &pb.Foo{...} - any, err := anypb.New(foo) - if err != nil { - ... - } + 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 '/' + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } - in the type URL, for example "foo.bar.com/x/y.z" will - yield type + The pack methods provided by protobuf library will by + default use - name "y.z". + 'type.googleapis.com/full.type.name' as the type URL and the + unpack + methods only use the fully qualified type name after the + last '/' - JSON + in the type URL, for example "foo.bar.com/x/y.z" will yield + type - ==== + name "y.z". - The JSON representation of an `Any` value uses the regular - representation of the deserialized, embedded message, with - an + JSON - additional field `@type` which contains the type URL. - Example: + ==== - package google.profile; - message Person { - string first_name = 1; - string last_name = 2; - } + The JSON representation of an `Any` value uses the regular - { - "@type": "type.googleapis.com/google.profile.Person", - "firstName": , - "lastName": - } + representation of the deserialized, embedded message, with + an - If the embedded message type is well-known and has a - custom JSON + additional field `@type` which contains the type URL. + Example: - representation, that representation will be embedded - adding a field + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } - `value` which holds the custom JSON in addition to the - `@type` + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } - field. Example (for message [google.protobuf.Duration][]): + If the embedded message type is well-known and has a custom + JSON - { - "@type": "type.googleapis.com/google.protobuf.Duration", - "value": "1.212s" - } - expiration: - type: string - format: date-time - title: >- - time when the grant will expire and will be pruned. If - null, then the grant + representation, that representation will be embedded adding + a field - doesn't have a time expiration (other conditions in - `authorization` + `value` which holds the custom JSON in addition to the + `@type` - may apply to invalidate the grant) - description: |- - Grant gives permissions to execute - the provide method with expiration time. - description: >- - MsgGrant is a request type for Grant method. It declares - authorization to the grantee + field. Example (for message [google.protobuf.Duration][]): - on behalf of the granter with the provided expiration time. + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + parameters: + - name: body + description: MsgVoteWeighted defines a message to cast a vote. + in: body + required: true + schema: + type: object + properties: + proposal_id: + type: string + format: uint64 + description: proposal_id defines the unique id of the proposal. + voter: + type: string + description: voter is the voter address for the proposal. + options: + type: array + items: + type: object + properties: + option: + description: >- + option defines the valid vote options, it must not + contain duplicate vote options. + type: string + enum: + - VOTE_OPTION_UNSPECIFIED + - VOTE_OPTION_YES + - VOTE_OPTION_ABSTAIN + - VOTE_OPTION_NO + - VOTE_OPTION_NO_WITH_VETO + default: VOTE_OPTION_UNSPECIFIED + weight: + type: string + description: >- + weight is the vote weight associated with the vote + option. + description: WeightedVoteOption defines a unit of vote for vote split. + description: options defines the weighted vote options. + metadata: + type: string + description: >- + metadata is any arbitrary metadata attached to the + VoteWeighted. + description: MsgVoteWeighted defines a message to cast a vote. tags: - Msg - /cosmos.authz.v1beta1.Msg/Revoke: + /cosmos.gov.v1beta1.Msg/Deposit: post: - summary: >- - Revoke revokes any authorization corresponding to the provided method - name on the - - granter's account that has been granted to the grantee. - operationId: CosmosAuthzV1Beta1Msg_Revoke + summary: Deposit defines a method to add deposit on a specific proposal. + operationId: CosmosGovV1Beta1Msg_Deposit responses: '200': description: A successful response. schema: type: object - description: MsgRevokeResponse defines the Msg/MsgRevokeResponse response type. + description: MsgDepositResponse defines the Msg/Deposit response type. default: description: An unexpected error response. schema: @@ -5933,44 +5970,21 @@ paths: parameters: - name: body description: >- - MsgRevoke revokes any authorization with the provided sdk.Msg type - on the - - granter's account with that has been granted to the grantee. + MsgDeposit defines a message to submit a deposit to an existing + proposal. in: body required: true schema: type: object properties: - granter: - type: string - grantee: + proposal_id: type: string - msg_type_url: + format: uint64 + description: proposal_id defines the unique id of the proposal. + depositor: type: string - description: >- - MsgRevoke revokes any authorization with the provided sdk.Msg type - on the - - granter's account with that has been granted to the grantee. - tags: - - Msg - /cosmos/bank/v1beta1/balances/{address}: - get: - summary: AllBalances queries the balance of all coins for a single account. - description: >- - When called from another module, this query might consume a high amount - of - - gas if the pagination field is incorrectly set. - operationId: CosmosBankV1Beta1Query_AllBalances - responses: - '200': - description: A successful response. - schema: - type: object - properties: - balances: + description: depositor defines the deposit addresses from the proposals. + amount: type: array items: type: object @@ -5987,144 +6001,29 @@ paths: method signatures required by gogoproto. - description: balances is the balances of all the coins. - pagination: - description: pagination defines the pagination in the response. - 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: amount to be deposited by depositor. description: >- - QueryAllBalancesResponse is the response type for the - Query/AllBalances 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: {} - parameters: - - name: address - description: address is the address to query balances for. - in: path - required: true - type: string - - 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 - - name: resolve_denom - description: >- - resolve_denom is the flag to resolve the denom into a human-readable - form from the metadata. - - - Since: cosmos-sdk 0.50 - in: query - required: false - type: boolean + MsgDeposit defines a message to submit a deposit to an existing + proposal. tags: - - Query - /cosmos/bank/v1beta1/balances/{address}/by_denom: - get: - summary: Balance queries the balance of a single coin for a single account. - operationId: CosmosBankV1Beta1Query_Balance + - Msg + /cosmos.gov.v1beta1.Msg/SubmitProposal: + post: + summary: SubmitProposal defines a method to create new proposal given a content. + operationId: CosmosGovV1Beta1Msg_SubmitProposal responses: '200': description: A successful response. schema: type: object properties: - balance: - description: balance is the balance of the coin. - type: object - properties: - denom: - type: string - amount: - type: string + proposal_id: + type: string + format: uint64 + description: proposal_id defines the unique id of the proposal. description: >- - QueryBalanceResponse is the response type for the Query/Balance - RPC method. + MsgSubmitProposalResponse defines the Msg/SubmitProposal response + type. default: description: An unexpected error response. schema: @@ -6142,648 +6041,297 @@ paths: properties: '@type': type: string - additionalProperties: {} - parameters: - - name: address - description: address is the address to query balances for. - in: path - required: true - type: string - - name: denom - description: denom is the coin denom to query balances for. - in: query - required: false - type: string - tags: - - Query - /cosmos/bank/v1beta1/denom_owners/{denom}: - get: - summary: >- - DenomOwners queries for all account addresses that own a particular - token - - denomination. - description: >- - When called from another module, this query might consume a high amount - of - - gas if the pagination field is incorrectly set. - - - Since: cosmos-sdk 0.46 - operationId: CosmosBankV1Beta1Query_DenomOwners - responses: - '200': - description: A successful response. - schema: - type: object - properties: - denom_owners: - type: array - items: - type: object - properties: - address: - type: string - description: >- - address defines the address that owns a particular - denomination. - balance: description: >- - balance is the balance of the denominated coin for an - account. - type: object - properties: - denom: - type: string - amount: - type: string - description: >- - DenomOwner defines structure representing an account that - owns or holds a + A URL/resource name that uniquely identifies the type of + the serialized - particular denominated token. It contains the account - address and account + protocol buffer message. This string must contain at + least - balance of the denominated token. + one "/" character. The last segment of the URL's path + must represent + the fully qualified name of the type (as in - Since: cosmos-sdk 0.46 - pagination: - description: pagination defines the pagination in the response. - 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 + `path/google.protobuf.Duration`). The name should be in + a canonical form - was set, its value is undefined otherwise - description: >- - QueryDenomOwnersResponse defines the RPC response of a DenomOwners - RPC query. + (e.g., leading "." is not accepted). - Since: cosmos-sdk 0.46 - 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: denom - description: >- - denom defines the coin denomination to query all account holders - for. - in: path - required: true - type: string - - 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. + In practice, teams usually precompile into the binary + all types that they - It is less efficient than using key. Only one of offset or key - should + expect it to use in the context of Any. However, for + URLs which use the - 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. + scheme `http`, `https`, or no scheme, one can optionally + set up a type - 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 + server that maps type URLs to message definitions as + follows: - 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 + * If no scheme is provided, `https` is assumed. - 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. + * 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 - Since: cosmos-sdk 0.43 - in: query - required: false - type: boolean - tags: - - Query - /cosmos/bank/v1beta1/denom_owners_by_query: - get: - summary: >- - DenomOwnersByQuery queries for all account addresses that own a - particular token + protobuf release, and it is not used for type URLs + beginning with - denomination. - description: 'Since: cosmos-sdk 0.50.3' - operationId: CosmosBankV1Beta1Query_DenomOwnersByQuery - responses: - '200': - description: A successful response. - schema: - type: object - properties: - denom_owners: - type: array - items: - type: object - properties: - address: - type: string - description: >- - address defines the address that owns a particular - denomination. - balance: - description: >- - balance is the balance of the denominated coin for an - account. - type: object - properties: - denom: - type: string - amount: - type: string - description: >- - DenomOwner defines structure representing an account that - owns or holds a + type.googleapis.com. As of May 2023, there are no widely + used type server - particular denominated token. It contains the account - address and account + implementations and no plans to implement one. - balance of the denominated token. + Schemes other than `http`, `https` (or the empty scheme) + might be - Since: cosmos-sdk 0.46 - pagination: - description: pagination defines the pagination in the response. - 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 + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer + message along with a - was set, its value is undefined otherwise - description: >- - QueryDenomOwnersByQueryResponse defines the RPC response of a - DenomOwnersByQuery RPC query. + URL that describes the type of the serialized message. - Since: cosmos-sdk 0.50.3 - 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: denom - description: >- - denom defines the coin denomination to query all account holders - for. - in: query - required: false - type: string - - 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. + Protobuf library provides support to pack/unpack Any values + in the form - It is less efficient than using key. Only one of offset or key - should + of utility functions or additional generated methods of the + Any type. - 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 + Example 1: Pack and unpack a message in C++. - a count of the total number of items available for pagination in - UIs. + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } - count_total is only respected when offset is used. It is ignored - when key + Example 2: Pack and unpack a message in Java. - 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. + 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. - Since: cosmos-sdk 0.43 - in: query - required: false - type: boolean - tags: - - Query - /cosmos/bank/v1beta1/denoms_metadata: - get: - summary: |- - DenomsMetadata queries the client metadata for all registered coin - denominations. - operationId: CosmosBankV1Beta1Query_DenomsMetadata - responses: - '200': - description: A successful response. - schema: - type: object - properties: - metadatas: - type: array - items: - type: object - properties: - description: - type: string - denom_units: - type: array - items: - type: object - properties: - denom: - type: string - description: >- - denom represents the string name of the given - denom unit (e.g uatom). - exponent: - type: integer - format: int64 - description: >- - exponent represents power of 10 exponent that one - must + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... - raise the base_denom to in order to equal the - given DenomUnit's denom + Example 4: Pack and unpack a message in Go - 1 denom = 10^exponent base_denom + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } - (e.g. with a base_denom of uatom, one can create a - DenomUnit of 'atom' with + The pack methods provided by protobuf library will by + default use - exponent = 6, thus: 1 atom = 10^6 uatom). - aliases: - type: array - items: - type: string - title: >- - aliases is a list of string aliases for the given - denom - description: |- - DenomUnit represents a struct that describes a given - denomination unit of the basic token. - title: >- - denom_units represents the list of DenomUnit's for a - given coin - base: - type: string - description: >- - base represents the base denom (should be the DenomUnit - with exponent = 0). - display: - type: string - description: |- - display indicates the suggested denom that should be - displayed in clients. - name: - type: string - description: 'Since: cosmos-sdk 0.43' - title: 'name defines the name of the token (eg: Cosmos Atom)' - symbol: - type: string - description: >- - symbol is the token symbol usually shown on exchanges - (eg: ATOM). This can + 'type.googleapis.com/full.type.name' as the type URL and the + unpack - be the same as the display. + 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 - Since: cosmos-sdk 0.43 - uri: - type: string - description: >- - URI to a document (on or off-chain) that contains - additional information. Optional. + name "y.z". - Since: cosmos-sdk 0.46 - uri_hash: - type: string - description: >- - URIHash is a sha256 hash of a document pointed by URI. - It's used to verify that + JSON - the document didn't change. Optional. + ==== + The JSON representation of an `Any` value uses the regular - Since: cosmos-sdk 0.46 - description: |- - Metadata represents a struct that describes - a basic token. - description: >- - metadata provides the client information for all the - registered tokens. - pagination: - description: pagination defines the pagination in the response. - 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: >- - QueryDenomsMetadataResponse is the response type for the - Query/DenomsMetadata RPC + additional field `@type` which contains the type URL. + Example: - 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: {} - 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. + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } - It is less efficient than using key. Only one of offset or key - should + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } - 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 the embedded message type is well-known and has a custom + JSON - 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 + representation, that representation will be embedded adding + a field - a count of the total number of items available for pagination in - UIs. + `value` which holds the custom JSON in addition to the + `@type` - count_total is only respected when offset is used. It is ignored - when key + field. Example (for message [google.protobuf.Duration][]): - is set. - in: query - required: false - type: boolean - - name: pagination.reverse + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + parameters: + - name: body description: >- - reverse is set to true if results are to be returned in the - descending order. - + MsgSubmitProposal defines an sdk.Msg type that supports submitting + arbitrary - Since: cosmos-sdk 0.43 - in: query - required: false - type: boolean - tags: - - Query - /cosmos/bank/v1beta1/denoms_metadata/{denom}: - get: - summary: DenomMetadata queries the client metadata of a given coin denomination. - operationId: CosmosBankV1Beta1Query_DenomMetadata - responses: - '200': - description: A successful response. + proposal Content. + in: body + required: true schema: type: object properties: - metadata: - description: >- - metadata describes and provides all the client information for - the requested token. + content: + description: content is the proposal's content. type: object properties: - description: + '@type': type: string - denom_units: - type: array - items: - type: object - properties: - denom: - type: string - description: >- - denom represents the string name of the given denom - unit (e.g uatom). - exponent: - type: integer - format: int64 - description: >- - exponent represents power of 10 exponent that one - must + description: >- + A URL/resource name that uniquely identifies the type of + the serialized - raise the base_denom to in order to equal the given - DenomUnit's denom + protocol buffer message. This string must contain at least - 1 denom = 10^exponent base_denom + one "/" character. The last segment of the URL's path must + represent - (e.g. with a base_denom of uatom, one can create a - DenomUnit of 'atom' with + the fully qualified name of the type (as in - exponent = 6, thus: 1 atom = 10^6 uatom). - aliases: - type: array - items: - type: string - title: >- - aliases is a list of string aliases for the given - denom - description: |- - DenomUnit represents a struct that describes a given - denomination unit of the basic token. - title: >- - denom_units represents the list of DenomUnit's for a given - coin - base: - type: string - description: >- - base represents the base denom (should be the DenomUnit - with exponent = 0). - display: - type: string - description: |- - display indicates the suggested denom that should be - displayed in clients. - name: - type: string - description: 'Since: cosmos-sdk 0.43' - title: 'name defines the name of the token (eg: Cosmos Atom)' - symbol: - type: string - description: >- - symbol is the token symbol usually shown on exchanges (eg: - ATOM). This can + `path/google.protobuf.Duration`). The name should be in a + canonical form - be the same as the display. + (e.g., leading "." is not accepted). - Since: cosmos-sdk 0.43 - uri: - type: string - description: >- - URI to a document (on or off-chain) that contains - additional information. Optional. + 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 - Since: cosmos-sdk 0.46 - uri_hash: - type: string - description: >- - URIHash is a sha256 hash of a document pointed by URI. - It's used to verify that + 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: {} + initial_deposit: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + description: >- + Coin defines a token with a denomination and an amount. - the document didn't change. Optional. + NOTE: The amount field is an Int which implements the custom + method - Since: cosmos-sdk 0.46 + signatures required by gogoproto. + description: >- + initial_deposit is the deposit value that must be paid at + proposal submission. + proposer: + type: string + description: proposer is the account address of the proposer. description: >- - QueryDenomMetadataResponse is the response type for the - Query/DenomMetadata RPC + MsgSubmitProposal defines an sdk.Msg type that supports submitting + arbitrary - method. + proposal Content. + tags: + - Msg + /cosmos.gov.v1beta1.Msg/Vote: + post: + summary: Vote defines a method to add a vote on a specific proposal. + operationId: CosmosGovV1Beta1Msg_Vote + responses: + '200': + description: A successful response. + schema: + type: object + description: MsgVoteResponse defines the Msg/Vote response type. default: description: An unexpected error response. schema: @@ -6801,551 +6349,226 @@ paths: properties: '@type': type: string - additionalProperties: {} - parameters: - - name: denom - description: denom is the coin denom to query the metadata for. - in: path - required: true - type: string - tags: - - Query - /cosmos/bank/v1beta1/denoms_metadata_by_query_string: - get: - summary: >- - DenomMetadataByQueryString queries the client metadata of a given coin - denomination. - operationId: CosmosBankV1Beta1Query_DenomMetadataByQueryString - responses: - '200': - description: A successful response. - schema: - type: object - properties: - metadata: - description: >- - metadata describes and provides all the client information for - the requested token. - type: object - properties: - description: - type: string - denom_units: - type: array - items: - type: object - properties: - denom: - type: string - description: >- - denom represents the string name of the given denom - unit (e.g uatom). - exponent: - type: integer - format: int64 - description: >- - exponent represents power of 10 exponent that one - must - - raise the base_denom to in order to equal the given - DenomUnit's denom - - 1 denom = 10^exponent base_denom + description: >- + A URL/resource name that uniquely identifies the type of + the serialized - (e.g. with a base_denom of uatom, one can create a - DenomUnit of 'atom' with + protocol buffer message. This string must contain at + least - exponent = 6, thus: 1 atom = 10^6 uatom). - aliases: - type: array - items: - type: string - title: >- - aliases is a list of string aliases for the given - denom - description: |- - DenomUnit represents a struct that describes a given - denomination unit of the basic token. - title: >- - denom_units represents the list of DenomUnit's for a given - coin - base: - type: string - description: >- - base represents the base denom (should be the DenomUnit - with exponent = 0). - display: - type: string - description: |- - display indicates the suggested denom that should be - displayed in clients. - name: - type: string - description: 'Since: cosmos-sdk 0.43' - title: 'name defines the name of the token (eg: Cosmos Atom)' - symbol: - type: string - description: >- - symbol is the token symbol usually shown on exchanges (eg: - ATOM). This can + one "/" character. The last segment of the URL's path + must represent - be the same as the display. + the fully qualified name of the type (as in + `path/google.protobuf.Duration`). The name should be in + a canonical form - Since: cosmos-sdk 0.43 - uri: - type: string - description: >- - URI to a document (on or off-chain) that contains - additional information. Optional. + (e.g., leading "." is not accepted). - Since: cosmos-sdk 0.46 - uri_hash: - type: string - description: >- - URIHash is a sha256 hash of a document pointed by URI. - It's used to verify that + In practice, teams usually precompile into the binary + all types that they - the document didn't change. Optional. + 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 - Since: cosmos-sdk 0.46 - description: >- - QueryDenomMetadataByQueryStringResponse is the response type for - the Query/DenomMetadata RPC + server that maps type URLs to message definitions as + follows: - method. Identical with QueryDenomMetadataResponse but receives - denom as query string in request. - 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: denom - description: denom is the coin denom to query the metadata for. - in: query - required: false - type: string - tags: - - Query - /cosmos/bank/v1beta1/params: - get: - summary: Params queries the parameters of x/bank module. - operationId: CosmosBankV1Beta1Query_Params - responses: - '200': - description: A successful response. - schema: - type: object - properties: - params: - description: params provides the parameters of the bank module. - type: object - properties: - send_enabled: - type: array - items: - type: object - properties: - denom: - type: string - enabled: - type: boolean - description: >- - SendEnabled maps coin denom to a send_enabled status - (whether a denom is - sendable). - description: >- - Deprecated: Use of SendEnabled in params is deprecated. + * If no scheme is provided, `https` is assumed. - For genesis, use the newly added send_enabled field in the - genesis object. + * 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.) - Storage, lookup, and manipulation of this information is - now in the keeper. + Note: this functionality is not currently available in + the official + protobuf release, and it is not used for type URLs + beginning with - As of cosmos-sdk 0.47, this only exists for backwards - compatibility of genesis files. - default_send_enabled: - type: boolean - description: >- - QueryParamsResponse defines the response type for querying x/bank - parameters. - 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 - /cosmos/bank/v1beta1/send_enabled: - get: - summary: SendEnabled queries for SendEnabled entries. - description: >- - This query only returns denominations that have specific SendEnabled - settings. + type.googleapis.com. As of May 2023, there are no widely + used type server - Any denomination that does not have a specific setting will use the - default + implementations and no plans to implement one. - params.default_send_enabled, and will not be returned by this query. + Schemes other than `http`, `https` (or the empty scheme) + might be - Since: cosmos-sdk 0.47 - operationId: CosmosBankV1Beta1Query_SendEnabled - responses: - '200': - description: A successful response. - schema: - type: object - properties: - send_enabled: - type: array - items: - type: object - properties: - denom: - type: string - enabled: - type: boolean + used with implementation specific semantics. + additionalProperties: {} description: >- - SendEnabled maps coin denom to a send_enabled status - (whether a denom is - - sendable). - pagination: - description: >- - pagination defines the pagination in the response. This field - is only + `Any` contains an arbitrary serialized protocol buffer + message along with a - populated if the denoms field in the request is empty. - 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 + URL that describes the type of the serialized message. - was set, its value is undefined otherwise - description: >- - QuerySendEnabledResponse defines the RPC response of a SendEnable - query. + Protobuf library provides support to pack/unpack Any values + in the form - Since: cosmos-sdk 0.47 - 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: denoms - description: >- - denoms is the specific denoms you want look up. Leave empty to get - all entries. - in: query - required: false - type: array - items: - type: string - collectionFormat: multi - - 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. + of utility functions or additional generated methods of the + Any type. - 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. + Example 1: Pack and unpack a message in C++. - 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 + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } - a count of the total number of items available for pagination in - UIs. + Example 2: Pack and unpack a message in Java. - count_total is only respected when offset is used. It is ignored - when key + 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()); + } - 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. + Example 3: Pack and unpack a message in Python. + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... - Since: cosmos-sdk 0.43 - in: query - required: false - type: boolean - tags: - - Query - /cosmos/bank/v1beta1/spendable_balances/{address}: - get: - summary: >- - SpendableBalances queries the spendable balance of all coins for a - single + Example 4: Pack and unpack a message in Go - account. - description: >- - When called from another module, this query might consume a high amount - of + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } - gas if the pagination field is incorrectly set. + The pack methods provided by protobuf library will by + default use + 'type.googleapis.com/full.type.name' as the type URL and the + unpack - Since: cosmos-sdk 0.46 - operationId: CosmosBankV1Beta1Query_SpendableBalances - responses: - '200': - description: A successful response. - schema: - type: object - properties: - balances: - 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. - description: balances is the spendable balances of all the coins. - pagination: - description: pagination defines the pagination in the response. - 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: >- - QuerySpendableBalancesResponse defines the gRPC response structure - for querying + JSON - an account's spendable balances. + ==== + The JSON representation of an `Any` value uses the regular - Since: cosmos-sdk 0.46 - 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: address - description: address is the address to query spendable balances for. - in: path - required: true - type: string - - 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. + representation of the deserialized, embedded message, with + an - It is less efficient than using key. Only one of offset or key - should + additional field `@type` which contains the type URL. + Example: - 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. + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } - 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 + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } - a count of the total number of items available for pagination in - UIs. + If the embedded message type is well-known and has a custom + JSON - count_total is only respected when offset is used. It is ignored - when key + representation, that representation will be embedded adding + a field - 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. + `value` which holds the custom JSON in addition to the + `@type` + field. Example (for message [google.protobuf.Duration][]): - Since: cosmos-sdk 0.43 - in: query - required: false - type: boolean + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + parameters: + - name: body + description: MsgVote defines a message to cast a vote. + in: body + required: true + schema: + type: object + properties: + proposal_id: + type: string + format: uint64 + description: proposal_id defines the unique id of the proposal. + voter: + type: string + description: voter is the voter address for the proposal. + option: + description: option defines the vote option. + type: string + enum: + - VOTE_OPTION_UNSPECIFIED + - VOTE_OPTION_YES + - VOTE_OPTION_ABSTAIN + - VOTE_OPTION_NO + - VOTE_OPTION_NO_WITH_VETO + default: VOTE_OPTION_UNSPECIFIED + description: MsgVote defines a message to cast a vote. tags: - - Query - /cosmos/bank/v1beta1/spendable_balances/{address}/by_denom: - get: + - Msg + /cosmos.gov.v1beta1.Msg/VoteWeighted: + post: summary: >- - SpendableBalanceByDenom queries the spendable balance of a single denom - for - - a single account. - description: >- - When called from another module, this query might consume a high amount - of - - gas if the pagination field is incorrectly set. - - - Since: cosmos-sdk 0.47 - operationId: CosmosBankV1Beta1Query_SpendableBalanceByDenom + VoteWeighted defines a method to add a weighted vote on a specific + proposal. + description: 'Since: cosmos-sdk 0.43' + operationId: CosmosGovV1Beta1Msg_VoteWeighted responses: '200': description: A successful response. schema: type: object - properties: - balance: - description: balance is the balance of the coin. - type: object - properties: - denom: - type: string - amount: - type: string description: >- - QuerySpendableBalanceByDenomResponse defines the gRPC response - structure for - - querying an account's spendable balance for a specific denom. + MsgVoteWeightedResponse defines the Msg/VoteWeighted response + type. - Since: cosmos-sdk 0.47 + Since: cosmos-sdk 0.43 default: description: An unexpected error response. schema: @@ -7363,80 +6586,329 @@ paths: properties: '@type': type: string - additionalProperties: {} - parameters: - - name: address - description: address is the address to query balances for. - in: path - required: true - type: string - - name: denom - description: denom is the coin denom to query balances for. - in: query - required: false - type: string - tags: - - Query - /cosmos/bank/v1beta1/supply: - get: - summary: TotalSupply queries the total supply of all coins. - description: >- - When called from another module, this query might consume a high amount - of - - gas if the pagination field is incorrectly set. - operationId: CosmosBankV1Beta1Query_TotalSupply - responses: - '200': - description: A successful response. + 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 + + 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" + } + parameters: + - name: body + description: |- + MsgVoteWeighted defines a message to cast a vote. + + Since: cosmos-sdk 0.43 + in: body + required: true schema: type: object properties: - supply: + proposal_id: + type: string + format: uint64 + description: proposal_id defines the unique id of the proposal. + voter: + type: string + description: voter is the voter address for the proposal. + options: type: array items: type: object properties: - denom: + option: + description: >- + option defines the valid vote options, it must not + contain duplicate vote options. type: string - amount: + enum: + - VOTE_OPTION_UNSPECIFIED + - VOTE_OPTION_YES + - VOTE_OPTION_ABSTAIN + - VOTE_OPTION_NO + - VOTE_OPTION_NO_WITH_VETO + default: VOTE_OPTION_UNSPECIFIED + weight: type: string - description: >- - Coin defines a token with a denomination and an amount. + description: >- + weight is the vote weight associated with the vote + option. + description: |- + WeightedVoteOption defines a unit of vote for vote split. + Since: cosmos-sdk 0.43 + description: options defines the weighted vote options. + description: |- + MsgVoteWeighted defines a message to cast a vote. - NOTE: The amount field is an Int which implements the custom - method + Since: cosmos-sdk 0.43 + tags: + - Msg + /cosmos.mint.v1beta1.Msg/UpdateParams: + post: + summary: >- + UpdateParams defines a governance operation for updating the x/mint + module - signatures required by gogoproto. - title: supply is the supply of the coins - pagination: + parameters. The authority is defaults to the x/gov module account. + description: 'Since: cosmos-sdk 0.47' + operationId: CosmosMintV1Beta1Msg_UpdateParams + responses: + '200': + description: A successful response. + schema: + type: object + description: >- + MsgUpdateParamsResponse defines the response structure for + executing a + + MsgUpdateParams message. + + + Since: cosmos-sdk 0.47 + 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 + description: |- + MsgUpdateParams is the Msg/UpdateParams request type. + + Since: cosmos-sdk 0.47 + in: body + required: true + schema: + type: object + properties: + authority: + type: string + description: >- + authority is the address that controls the module (defaults to + x/gov unless overwritten). + params: description: |- - pagination defines the pagination in the response. + params defines the x/mint parameters to update. - Since: cosmos-sdk 0.43 + NOTE: All parameters must be supplied. type: object properties: - next_key: + mint_denom: 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: + title: type of coin to mint + inflation_rate_change: + type: string + title: maximum annual change in inflation rate + inflation_max: + type: string + title: maximum inflation rate + inflation_min: + type: string + title: minimum inflation rate + goal_bonded: + type: string + title: goal of percent bonded atoms + blocks_per_year: type: string format: uint64 - title: >- - total is total number of results available if - PageRequest.count_total - - was set, its value is undefined otherwise - title: >- - QueryTotalSupplyResponse is the response type for the - Query/TotalSupply RPC + title: expected blocks per year + description: |- + MsgUpdateParams is the Msg/UpdateParams request type. - method + Since: cosmos-sdk 0.47 + tags: + - Msg + /cosmos.nft.v1beta1.Msg/Send: + post: + summary: Send defines a method to send a nft from one account to another account. + operationId: CosmosNftV1Beta1Msg_Send + responses: + '200': + description: A successful response. + schema: + type: object + description: MsgSendResponse defines the Msg/Send response type. default: description: An unexpected error response. schema: @@ -7456,90 +6928,59 @@ paths: 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 + - name: body 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 + MsgSend represents a message to send a nft from one account to + another account. + in: body + required: true + schema: + 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. tags: - - Query - /cosmos/bank/v1beta1/supply/by_denom: + - Msg + /cosmos/params/v1beta1/params: get: - summary: SupplyOf queries the supply of a single coin. - description: >- - When called from another module, this query might consume a high amount - of - - gas if the pagination field is incorrectly set. - operationId: CosmosBankV1Beta1Query_SupplyOf + summary: |- + Params queries a specific parameter of a module, given its subspace and + key. + operationId: CosmosParamsV1Beta1Query_Params responses: '200': description: A successful response. schema: type: object properties: - amount: - description: amount is the supply of the coin. + param: + description: param defines the queried parameter. type: object properties: - denom: + subspace: type: string - amount: + key: + type: string + value: type: string description: >- - QuerySupplyOfResponse is the response type for the Query/SupplyOf - RPC method. + QueryParamsResponse is response type for the Query/Params RPC + method. default: description: An unexpected error response. schema: @@ -7559,25 +7000,58 @@ paths: type: string additionalProperties: {} parameters: - - name: denom - description: denom is the coin denom to query balances for. + - name: subspace + description: subspace defines the module to query the parameter for. + in: query + required: false + type: string + - name: key + description: key defines the key of the parameter in the subspace. in: query required: false type: string tags: - Query - /cosmos.bank.v1beta1.Msg/MultiSend: - post: + /cosmos/params/v1beta1/subspaces: + get: summary: >- - MultiSend defines a method for sending coins from some accounts to other - accounts. - operationId: CosmosBankV1Beta1Msg_MultiSend + Subspaces queries for all registered subspaces and all keys for a + subspace. + description: 'Since: cosmos-sdk 0.46' + operationId: CosmosParamsV1Beta1Query_Subspaces responses: '200': description: A successful response. schema: type: object - description: MsgMultiSendResponse defines the Msg/MultiSend response type. + 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 default: description: An unexpected error response. schema: @@ -7596,252 +7070,63 @@ paths: '@type': type: string additionalProperties: {} - parameters: - - name: body - description: >- - MsgMultiSend represents an arbitrary multi-in, multi-out send - message. - in: body - required: true + tags: + - Query + /cosmos.slashing.v1beta1.Msg/Unjail: + post: + summary: >- + Unjail defines a method for unjailing a jailed validator, thus returning + + them into the bonded validator set, so they can begin receiving + provisions + + and rewards again. + operationId: CosmosSlashingV1Beta1Msg_Unjail + responses: + '200': + description: A successful response. + schema: + type: object + title: MsgUnjailResponse defines the Msg/Unjail response type + default: + description: An unexpected error response. schema: type: object properties: - inputs: + code: + type: integer + format: int32 + message: + type: string + details: type: array items: type: object properties: - address: - type: string - coins: - 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. - description: Input models transaction input. - description: >- - Inputs, despite being `repeated`, only allows one sender - input. This is - - checked in MsgMultiSend's ValidateBasic. - outputs: - type: array - items: - type: object - properties: - address: - type: string - coins: - 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. - description: Output models transaction outputs. - description: >- - MsgMultiSend represents an arbitrary multi-in, multi-out send - message. - tags: - - Msg - /cosmos.bank.v1beta1.Msg/Send: - post: - summary: >- - Send defines a method for sending coins from one account to another - account. - operationId: CosmosBankV1Beta1Msg_Send - responses: - '200': - description: A successful response. - schema: - type: object - description: MsgSendResponse defines the Msg/Send response type. - 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 - description: >- - MsgSend represents a message to send coins from one account to - another. - in: body - required: true - schema: - type: object - properties: - from_address: - type: string - to_address: - type: string - 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. - description: >- - MsgSend represents a message to send coins from one account to - another. - tags: - - Msg - /cosmos.bank.v1beta1.Msg/SetSendEnabled: - post: - summary: >- - SetSendEnabled is a governance operation for setting the SendEnabled - flag - - on any number of Denoms. Only the entries to add or update should be - - included. Entries that already exist in the store, but that aren't - - included in this message, will be left unchanged. - description: 'Since: cosmos-sdk 0.47' - operationId: CosmosBankV1Beta1Msg_SetSendEnabled - responses: - '200': - description: A successful response. - schema: - type: object - description: >- - MsgSetSendEnabledResponse defines the Msg/SetSendEnabled response - type. - - - Since: cosmos-sdk 0.47 - 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': type: string additionalProperties: {} parameters: - name: body - description: |- - MsgSetSendEnabled is the Msg/SetSendEnabled request type. - - Only entries to add/update/delete need to be included. - Existing SendEnabled entries that are not included in this - message are left unchanged. - - Since: cosmos-sdk 0.47 in: body required: true schema: type: object properties: - authority: + validator_addr: type: string - description: authority is the address that controls the module. - send_enabled: - type: array - items: - type: object - properties: - denom: - type: string - enabled: - type: boolean - description: >- - SendEnabled maps coin denom to a send_enabled status - (whether a denom is - - sendable). - description: send_enabled is the list of entries to add or update. - use_default_for: - type: array - items: - type: string - description: >- - use_default_for is a list of denoms that should use the - params.default_send_enabled value. - - Denoms listed here will have their SendEnabled entries - deleted. - - If a denom is included that doesn't have a SendEnabled entry, - - it will be ignored. - description: |- - MsgSetSendEnabled is the Msg/SetSendEnabled request type. - - Only entries to add/update/delete need to be included. - Existing SendEnabled entries that are not included in this - message are left unchanged. - - Since: cosmos-sdk 0.47 + title: MsgUnjail defines the Msg/Unjail request type tags: - Msg - /cosmos.bank.v1beta1.Msg/UpdateParams: + /cosmos.slashing.v1beta1.Msg/UpdateParams: post: summary: >- - UpdateParams defines a governance operation for updating the x/bank - module parameters. + UpdateParams defines a governance operation for updating the x/slashing + module - The authority is defined in the keeper. + parameters. The authority defaults to the x/gov module account. description: 'Since: cosmos-sdk 0.47' - operationId: CosmosBankV1Beta1Msg_UpdateParams + operationId: CosmosSlashingV1Beta1Msg_UpdateParams responses: '200': description: A successful response. @@ -7891,64 +7176,51 @@ paths: x/gov unless overwritten). params: description: |- - params defines the x/bank parameters to update. + params defines the x/slashing parameters to update. NOTE: All parameters must be supplied. type: object properties: - send_enabled: - type: array - items: - type: object - properties: - denom: - type: string - enabled: - type: boolean - description: >- - SendEnabled maps coin denom to a send_enabled status - (whether a denom is - - sendable). - description: >- - Deprecated: Use of SendEnabled in params is deprecated. - - For genesis, use the newly added send_enabled field in the - genesis object. - - Storage, lookup, and manipulation of this information is - now in the keeper. - - - As of cosmos-sdk 0.47, this only exists for backwards - compatibility of genesis files. - default_send_enabled: - type: boolean + 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 tags: - Msg - /cosmos.consensus.v1.Msg/UpdateParams: + /cosmos.staking.v1beta1.Msg/BeginRedelegate: post: summary: >- - UpdateParams defines a governance operation for updating the x/consensus - module parameters. + BeginRedelegate defines a method for performing a redelegation - The authority is defined in the keeper. - description: 'Since: cosmos-sdk 0.47' - operationId: CosmosConsensusV1Msg_UpdateParams + of coins from a delegator and source validator to a destination + validator. + operationId: CosmosStakingV1Beta1Msg_BeginRedelegate responses: '200': description: A successful response. schema: type: object + properties: + completion_time: + type: string + format: date-time description: >- - MsgUpdateParamsResponse defines the response structure for - executing a - - MsgUpdateParams message. + MsgBeginRedelegateResponse defines the Msg/BeginRedelegate + response type. default: description: An unexpected error response. schema: @@ -7966,366 +7238,238 @@ paths: properties: '@type': type: string - additionalProperties: {} - parameters: - - name: body - description: MsgUpdateParams is the Msg/UpdateParams request type. - in: body - required: true - schema: - type: object - properties: - authority: - type: string - description: >- - authority is the address that controls the module (defaults to - x/gov unless overwritten). - block: - description: >- - params defines the x/consensus parameters to update. + description: >- + A URL/resource name that uniquely identifies the type of + the serialized - VersionsParams is not included in this Msg because it is - tracked + protocol buffer message. This string must contain at + least - separarately in x/upgrade. + one "/" character. The last segment of the URL's path + must represent + the fully qualified name of the type (as in - NOTE: All parameters must be supplied. - type: object - properties: - max_bytes: - type: string - format: int64 - title: |- - Max block size, in bytes. - Note: must be greater than 0 - max_gas: - type: string - format: int64 - title: |- - Max gas per block. - Note: must be greater or equal to -1 - evidence: - type: object - properties: - max_age_num_blocks: - type: string - format: int64 - description: >- - Max age of evidence, in blocks. + `path/google.protobuf.Duration`). The name should be in + a canonical form + (e.g., leading "." is not accepted). - The basic formula for calculating this is: MaxAgeDuration - / {average block - time}. - max_age_duration: - type: string - description: >- - Max age of evidence, in time. + 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 - It should correspond with an app's "unbonding period" or - other similar + scheme `http`, `https`, or no scheme, one can optionally + set up a type - mechanism for handling [Nothing-At-Stake + server that maps type URLs to message definitions as + follows: - attacks](https://github.com/ethereum/wiki/wiki/Proof-of-Stake-FAQ#what-is-the-nothing-at-stake-problem-and-how-can-it-be-fixed). - max_bytes: - type: string - format: int64 - title: >- - This sets the maximum size of total evidence in bytes that - can be committed in a single block. - and should fall comfortably under the max block bytes. + * If no scheme is provided, `https` is assumed. - Default is 1048576 or 1MB - description: >- - EvidenceParams determine how we handle evidence of - malfeasance. - validator: - type: object - properties: - pub_key_types: - type: array - items: - type: string - description: >- - ValidatorParams restrict the public key types validators can - use. + * 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: uses ABCI pubkey naming, not Amino names. - abci: - title: 'Since: cosmos-sdk 0.50' - type: object - properties: - vote_extensions_enable_height: - type: string - format: int64 - description: >- - vote_extensions_enable_height configures the first height - during which + Note: this functionality is not currently available in + the official - vote extensions will be enabled. During this specified - height, and for all + protobuf release, and it is not used for type URLs + beginning with - subsequent heights, precommit messages that do not contain - valid extension data + type.googleapis.com. As of May 2023, there are no widely + used type server - will be considered invalid. Prior to this height, vote - extensions will not + implementations and no plans to implement one. - be used or accepted by validators on the network. + Schemes other than `http`, `https` (or the empty scheme) + might be - Once enabled, vote extensions will be created by the - application in ExtendVote, + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer + message along with a - passed to the application for validation in - VerifyVoteExtension and given + URL that describes the type of the serialized message. - to the application to use when proposing a block during - PrepareProposal. - description: >- - ABCIParams configure functionality specific to the Application - Blockchain Interface. - description: MsgUpdateParams is the Msg/UpdateParams request type. - tags: - - Msg - /cosmos/consensus/v1/params: - get: - summary: Params queries the parameters of x/consensus module. - operationId: CosmosConsensusV1Query_Params - responses: - '200': - description: A successful response. - schema: - type: object - properties: - params: - description: >- - params are the tendermint consensus params stored in the - consensus module. - Please note that `params.version` is not populated in this - response, it is + Protobuf library provides support to pack/unpack Any values + in the form - tracked separately in the x/upgrade module. - type: object - properties: - block: - type: object - properties: - max_bytes: - type: string - format: int64 - title: |- - Max block size, in bytes. - Note: must be greater than 0 - max_gas: - type: string - format: int64 - title: |- - Max gas per block. - Note: must be greater or equal to -1 - description: BlockParams contains limits on the block size. - evidence: - type: object - properties: - max_age_num_blocks: - type: string - format: int64 - description: >- - Max age of evidence, in blocks. + of utility functions or additional generated methods of the + Any type. - The basic formula for calculating this is: - MaxAgeDuration / {average block + Example 1: Pack and unpack a message in C++. - time}. - max_age_duration: - type: string - description: >- - Max age of evidence, in time. + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } + Example 2: Pack and unpack a message in Java. - It should correspond with an app's "unbonding period" - or other similar + 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()); + } - mechanism for handling [Nothing-At-Stake + Example 3: Pack and unpack a message in Python. - attacks](https://github.com/ethereum/wiki/wiki/Proof-of-Stake-FAQ#what-is-the-nothing-at-stake-problem-and-how-can-it-be-fixed). - max_bytes: - type: string - format: int64 - title: >- - This sets the maximum size of total evidence in bytes - that can be committed in a single block. + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... - and should fall comfortably under the max block bytes. + Example 4: Pack and unpack a message in Go - Default is 1048576 or 1MB - description: >- - EvidenceParams determine how we handle evidence of - malfeasance. - validator: - type: object - properties: - pub_key_types: - type: array - items: - type: string - description: >- - ValidatorParams restrict the public key types validators - can use. + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } - NOTE: uses ABCI pubkey naming, not Amino names. - version: - type: object - properties: - app: - type: string - format: uint64 - description: VersionParams contains the ABCI application version. - abci: - type: object - properties: - vote_extensions_enable_height: - type: string - format: int64 - description: >- - vote_extensions_enable_height configures the first - height during which + The pack methods provided by protobuf library will by + default use - vote extensions will be enabled. During this specified - height, and for all + 'type.googleapis.com/full.type.name' as the type URL and the + unpack - subsequent heights, precommit messages that do not - contain valid extension data + methods only use the fully qualified type name after the + last '/' - will be considered invalid. Prior to this height, vote - extensions will not + in the type URL, for example "foo.bar.com/x/y.z" will yield + type - be used or accepted by validators on the network. + name "y.z". - Once enabled, vote extensions will be created by the - application in ExtendVote, + JSON - passed to the application for validation in - VerifyVoteExtension and given + ==== - to the application to use when proposing a block - during PrepareProposal. - description: >- - ABCIParams configure functionality specific to the - Application Blockchain Interface. - description: >- - QueryParamsResponse defines the response type for querying - x/consensus parameters. - 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 - /cosmos.crisis.v1beta1.Msg/UpdateParams: - post: - summary: >- - UpdateParams defines a governance operation for updating the x/crisis - module + The JSON representation of an `Any` value uses the regular - parameters. The authority is defined in the keeper. - description: 'Since: cosmos-sdk 0.47' - operationId: CosmosCrisisV1Beta1Msg_UpdateParams - responses: - '200': - description: A successful response. - schema: - type: object - description: >- - MsgUpdateParamsResponse defines the response structure for - executing a + representation of the deserialized, embedded message, with + an - MsgUpdateParams message. + 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.47 - 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: {} + { + "@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" + } parameters: - name: body - description: |- - MsgUpdateParams is the Msg/UpdateParams request type. + description: >- + MsgBeginRedelegate defines a SDK message for performing a + redelegation - Since: cosmos-sdk 0.47 + of coins from a delegator and source validator to a destination + validator. in: body required: true schema: type: object properties: - authority: + delegator_address: type: string - description: >- - authority is the address that controls the module (defaults to - x/gov unless overwritten). - constant_fee: - description: constant_fee defines the x/crisis parameter. + validator_src_address: + type: string + validator_dst_address: + type: string + amount: type: object properties: denom: type: string amount: type: string - description: |- - MsgUpdateParams is the Msg/UpdateParams request type. + description: >- + Coin defines a token with a denomination and an amount. - Since: cosmos-sdk 0.47 + + 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. tags: - Msg - /cosmos.crisis.v1beta1.Msg/VerifyInvariant: + /cosmos.staking.v1beta1.Msg/CancelUnbondingDelegation: post: - summary: VerifyInvariant defines a method to verify a particular invariant. - operationId: CosmosCrisisV1Beta1Msg_VerifyInvariant + summary: >- + CancelUnbondingDelegation defines a method for performing canceling the + unbonding delegation + + and delegate back to previous validator. + description: 'Since: cosmos-sdk 0.46' + operationId: CosmosStakingV1Beta1Msg_CancelUnbondingDelegation responses: '200': description: A successful response. schema: type: object - description: >- - MsgVerifyInvariantResponse defines the Msg/VerifyInvariant - response type. + description: 'Since: cosmos-sdk 0.46' + title: MsgCancelUnbondingDelegationResponse default: description: An unexpected error response. schema: @@ -8343,226 +7487,231 @@ paths: properties: '@type': type: string - additionalProperties: {} - parameters: - - name: body - description: >- - MsgVerifyInvariant represents a message to verify a particular - invariance. - in: body - required: true - schema: - type: object - properties: - sender: - type: string - description: >- - sender is the account address of private key to send coins to - fee collector account. - invariant_module_name: - type: string - description: name of the invariant module. - invariant_route: - type: string - description: invariant_route is the msg's invariant route. - description: >- - MsgVerifyInvariant represents a message to verify a particular - invariance. - tags: - - Msg - /cosmos.distribution.v1beta1.Msg/CommunityPoolSpend: - post: - summary: >- - CommunityPoolSpend defines a governance operation for sending tokens - from + description: >- + A URL/resource name that uniquely identifies the type of + the serialized - the community pool in the x/distribution module to another account, - which + protocol buffer message. This string must contain at + least - could be the governance module itself. The authority is defined in the + one "/" character. The last segment of the URL's path + must represent - keeper. - description: 'Since: cosmos-sdk 0.47' - operationId: CosmosDistributionV1Beta1Msg_CommunityPoolSpend - responses: - '200': - description: A successful response. - schema: - type: object - description: |- - MsgCommunityPoolSpendResponse defines the response to executing a - MsgCommunityPoolSpend message. + the fully qualified name of the type (as in - Since: cosmos-sdk 0.47 - 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 - description: >- - MsgCommunityPoolSpend defines a message for sending tokens from the - community + `path/google.protobuf.Duration`). The name should be in + a canonical form - pool to another account. This message is typically executed via a - governance + (e.g., leading "." is not accepted). - proposal with the governance module being the executing authority. + In practice, teams usually precompile into the binary + all types that they - Since: cosmos-sdk 0.47 - in: body - required: true - schema: - type: object - properties: - authority: - type: string - description: >- - authority is the address that controls the module (defaults to - x/gov unless overwritten). - recipient: - type: string - amount: - 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. - description: >- - MsgCommunityPoolSpend defines a message for sending tokens from - the community - pool to another account. This message is typically executed via a - governance + * If no scheme is provided, `https` is assumed. - proposal with the governance module being the executing authority. + * 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 - Since: cosmos-sdk 0.47 - tags: - - Msg - /cosmos.distribution.v1beta1.Msg/DepositValidatorRewardsPool: - post: - summary: >- - DepositValidatorRewardsPool defines a method to provide additional - rewards + protobuf release, and it is not used for type URLs + beginning with - to delegators to a specific validator. - description: 'Since: cosmos-sdk 0.50' - operationId: CosmosDistributionV1Beta1Msg_DepositValidatorRewardsPool - responses: - '200': - description: A successful response. - schema: - type: object - description: >- - MsgDepositValidatorRewardsPoolResponse defines the response to - executing a + type.googleapis.com. As of May 2023, there are no widely + used type server - MsgDepositValidatorRewardsPool message. + implementations and no plans to implement one. - Since: cosmos-sdk 0.50 - 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 + 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 + + 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" + } parameters: - name: body - description: |- - DepositValidatorRewardsPool defines the request structure to provide - additional rewards to delegators from a specific validator. - - Since: cosmos-sdk 0.50 + description: 'Since: cosmos-sdk 0.46' in: body required: true schema: type: object properties: - depositor: + delegator_address: type: string validator_address: type: string 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. - description: >- - DepositValidatorRewardsPool defines the request structure to - provide + type: object + properties: + denom: + type: string + amount: + type: string + description: >- + Coin defines a token with a denomination and an amount. - additional rewards to delegators from a specific validator. + NOTE: The amount field is an Int which implements the custom + method - Since: cosmos-sdk 0.50 + signatures required by gogoproto. + 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 tags: - Msg - /cosmos.distribution.v1beta1.Msg/FundCommunityPool: + /cosmos.staking.v1beta1.Msg/CreateValidator: post: - summary: |- - FundCommunityPool defines a method to allow an account to directly - fund the community pool. - operationId: CosmosDistributionV1Beta1Msg_FundCommunityPool + summary: CreateValidator defines a method for creating a new validator. + operationId: CosmosStakingV1Beta1Msg_CreateValidator responses: '200': description: A successful response. schema: type: object description: >- - MsgFundCommunityPoolResponse defines the Msg/FundCommunityPool + MsgCreateValidatorResponse defines the Msg/CreateValidator response type. default: description: An unexpected error response. @@ -8581,116 +7730,457 @@ paths: properties: '@type': type: string - additionalProperties: {} - parameters: - - name: body - description: |- - MsgFundCommunityPool allows an account to directly - fund the community pool. - in: body - required: true - schema: - type: object - properties: - amount: - type: array - items: - 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. - depositor: - type: string - description: |- - MsgFundCommunityPool allows an account to directly - fund the community pool. - tags: - - Msg - /cosmos.distribution.v1beta1.Msg/SetWithdrawAddress: - post: - summary: |- - SetWithdrawAddress defines a method to change the withdraw address - for a delegator (or validator self-delegation). - operationId: CosmosDistributionV1Beta1Msg_SetWithdrawAddress - responses: - '200': - description: A successful response. - schema: - type: object - description: >- - MsgSetWithdrawAddressResponse defines the Msg/SetWithdrawAddress - response + the fully qualified name of the type (as in - type. - 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 + `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 + + 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" + } parameters: - name: body - description: |- - MsgSetWithdrawAddress sets the withdraw address for - a delegator (or validator self-delegation). + description: >- + MsgCreateValidator defines a SDK message for creating a new + validator. in: body required: true schema: 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: + type: string delegator_address: type: string - withdraw_address: + 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: type: string - description: |- - MsgSetWithdrawAddress sets the withdraw address for - a delegator (or validator self-delegation). + pubkey: + 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. + + + 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" + } + value: + 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: >- + MsgCreateValidator defines a SDK message for creating a new + validator. tags: - Msg - /cosmos.distribution.v1beta1.Msg/UpdateParams: + /cosmos.staking.v1beta1.Msg/Delegate: post: - summary: >- - UpdateParams defines a governance operation for updating the - x/distribution - - module parameters. The authority is defined in the keeper. - description: 'Since: cosmos-sdk 0.47' - operationId: CosmosDistributionV1Beta1Msg_UpdateParams + summary: |- + Delegate defines a method for performing a delegation of coins + from a delegator to a validator. + operationId: CosmosStakingV1Beta1Msg_Delegate responses: '200': description: A successful response. schema: type: object - description: >- - MsgUpdateParamsResponse defines the response structure for - executing a - - MsgUpdateParams message. - - - Since: cosmos-sdk 0.47 + description: MsgDelegateResponse defines the Msg/Delegate response type. default: description: An unexpected error response. schema: @@ -8708,116 +8198,187 @@ paths: properties: '@type': type: string - additionalProperties: {} - parameters: - - name: body - description: |- - MsgUpdateParams is the Msg/UpdateParams request type. + description: >- + A URL/resource name that uniquely identifies the type of + the serialized - Since: cosmos-sdk 0.47 - in: body - required: true - schema: - 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/distribution parameters to update. + protocol buffer message. This string must contain at + least - NOTE: All parameters must be supplied. - type: object - properties: - community_tax: - type: string - base_proposer_reward: - type: string - description: >- - Deprecated: The base_proposer_reward field is deprecated - and is no longer used + one "/" character. The last segment of the URL's path + must represent - in the x/distribution module's reward mechanism. - bonus_proposer_reward: - type: string - description: >- - Deprecated: The bonus_proposer_reward field is deprecated - and is no longer used + the fully qualified name of the type (as in - in the x/distribution module's reward mechanism. - withdraw_addr_enabled: - type: boolean - description: |- - MsgUpdateParams is the Msg/UpdateParams request type. + `path/google.protobuf.Duration`). The name should be in + a canonical form - Since: cosmos-sdk 0.47 - tags: - - Msg - /cosmos.distribution.v1beta1.Msg/WithdrawDelegatorReward: - post: - summary: >- - WithdrawDelegatorReward defines a method to withdraw rewards of - delegator + (e.g., leading "." is not accepted). - from a single validator. - operationId: CosmosDistributionV1Beta1Msg_WithdrawDelegatorReward - responses: - '200': - description: A successful response. - schema: - type: object - properties: - amount: - type: array - items: - 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. - title: 'Since: cosmos-sdk 0.46' - description: >- - MsgWithdrawDelegatorRewardResponse defines the - Msg/WithdrawDelegatorReward + scheme `http`, `https`, or no scheme, one can optionally + set up a type - response type. - 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 + 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 + + 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" + } parameters: - name: body description: >- - MsgWithdrawDelegatorReward represents delegation withdrawal to a - delegator + MsgDelegate defines a SDK message for performing a delegation of + coins - from a single validator. + from a delegator to a validator. in: body required: true schema: @@ -8827,46 +8388,40 @@ paths: type: string validator_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: >- - MsgWithdrawDelegatorReward represents delegation withdrawal to a - delegator + MsgDelegate defines a SDK message for performing a delegation of + coins - from a single validator. + from a delegator to a validator. tags: - Msg - /cosmos.distribution.v1beta1.Msg/WithdrawValidatorCommission: + /cosmos.staking.v1beta1.Msg/EditValidator: post: - summary: |- - WithdrawValidatorCommission defines a method to withdraw the - full commission to the validator address. - operationId: CosmosDistributionV1Beta1Msg_WithdrawValidatorCommission + summary: EditValidator defines a method for editing an existing validator. + operationId: CosmosStakingV1Beta1Msg_EditValidator responses: '200': description: A successful response. schema: type: object - properties: - 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. - title: 'Since: cosmos-sdk 0.46' - description: |- - MsgWithdrawValidatorCommissionResponse defines the - Msg/WithdrawValidatorCommission response type. + description: >- + MsgEditValidatorResponse defines the Msg/EditValidator response + type. default: description: An unexpected error response. schema: @@ -8884,296 +8439,266 @@ paths: properties: '@type': type: string - additionalProperties: {} - parameters: - - name: body - description: >- - MsgWithdrawValidatorCommission withdraws the full commission to the - validator + description: >- + A URL/resource name that uniquely identifies the type of + the serialized - address. - in: body - required: true - schema: - type: object - properties: - validator_address: - type: string - description: >- - MsgWithdrawValidatorCommission withdraws the full commission to - the validator + protocol buffer message. This string must contain at + least - address. - tags: - - Msg - /cosmos/distribution/v1beta1/community_pool: - get: - summary: CommunityPool queries the community pool coins. - operationId: CosmosDistributionV1Beta1Query_CommunityPool - responses: - '200': - description: A successful response. - schema: - type: object - properties: - pool: - type: array - items: - type: object - properties: - denom: - type: string - amount: - type: string - description: >- - DecCoin defines a token with a denomination and a decimal - amount. + one "/" character. The last segment of the URL's path + must represent + the fully qualified name of the type (as in - NOTE: The amount field is an Dec which implements the custom - method + `path/google.protobuf.Duration`). The name should be in + a canonical form - signatures required by gogoproto. - description: pool defines community pool's coins. - description: >- - QueryCommunityPoolResponse is the response type for the - Query/CommunityPool + (e.g., leading "." is not accepted). - 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 - /cosmos/distribution/v1beta1/delegators/{delegator_address}/rewards: - get: - summary: |- - DelegationTotalRewards queries the total rewards accrued by each - validator. - operationId: CosmosDistributionV1Beta1Query_DelegationTotalRewards - responses: - '200': - description: A successful response. - schema: - type: object - properties: - rewards: - type: array - items: - type: object - properties: - validator_address: - type: string - reward: - type: array - items: - type: object - properties: - denom: - type: string - amount: - type: string - description: >- - DecCoin defines a token with a denomination and a - decimal amount. + In practice, teams usually precompile into the binary + all types that they - NOTE: The amount field is an Dec which implements the - custom method + expect it to use in the context of Any. However, for + URLs which use the - signatures required by gogoproto. - description: |- - DelegationDelegatorReward represents the properties - of a delegator's delegation reward. - description: rewards defines all the rewards accrued by a delegator. - total: - type: array - items: - type: object - properties: - denom: - type: string - amount: - type: string - description: >- - DecCoin defines a token with a denomination and a decimal - amount. + scheme `http`, `https`, or no scheme, one can optionally + set up a type + + server that maps type URLs to message definitions as + follows: - NOTE: The amount field is an Dec which implements the custom - method + * If no scheme is provided, `https` is assumed. - signatures required by gogoproto. - description: total defines the sum of all the rewards. - description: |- - QueryDelegationTotalRewardsResponse is the response type for the - Query/DelegationTotalRewards 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 + * 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: {} - parameters: - - name: delegator_address - description: delegator_address defines the delegator address to query for. - in: path - required: true - type: string - tags: - - Query - /cosmos/distribution/v1beta1/delegators/{delegator_address}/rewards/{validator_address}: - get: - summary: DelegationRewards queries the total rewards accrued by a delegation. - operationId: CosmosDistributionV1Beta1Query_DelegationRewards - responses: - '200': - description: A successful response. - schema: - type: object - properties: - rewards: - type: array - items: - type: object - properties: - denom: - type: string - amount: - type: string description: >- - DecCoin defines a token with a denomination and a decimal - amount. + `Any` contains an arbitrary serialized protocol buffer + message along with a + URL that describes the type of the serialized message. - NOTE: The amount field is an Dec which implements the custom - method - signatures required by gogoproto. - description: rewards defines the rewards accrued by a delegation. - description: |- - QueryDelegationRewardsResponse is the response type for the - Query/DelegationRewards 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: {} - parameters: - - name: delegator_address - description: delegator_address defines the delegator address to query for. - in: path - required: true - type: string - - name: validator_address - description: validator_address defines the validator address to query for. - in: path + 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" + } + parameters: + - name: body + description: >- + MsgEditValidator defines a SDK message for editing an existing + validator. + in: body required: true - type: string - tags: - - Query - /cosmos/distribution/v1beta1/delegators/{delegator_address}/validators: - get: - summary: DelegatorValidators queries the validators of a delegator. - operationId: CosmosDistributionV1Beta1Query_DelegatorValidators - responses: - '200': - description: A successful response. - schema: - type: object - properties: - validators: - type: array - items: - type: string - description: >- - validators defines the validators a delegator is delegating - for. - description: |- - QueryDelegatorValidatorsResponse is the response type for the - Query/DelegatorValidators RPC method. - default: - description: An unexpected error response. schema: type: object properties: - code: - type: integer - format: int32 - message: + 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. + validator_address: type: string - details: - type: array - items: - type: object - properties: - '@type': - type: string - additionalProperties: {} - parameters: - - name: delegator_address - description: delegator_address defines the delegator address to query for. - in: path - required: true - 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. tags: - - Query - /cosmos/distribution/v1beta1/delegators/{delegator_address}/withdraw_address: - get: - summary: DelegatorWithdrawAddress queries withdraw address of a delegator. - operationId: CosmosDistributionV1Beta1Query_DelegatorWithdrawAddress + - Msg + /cosmos.staking.v1beta1.Msg/Undelegate: + post: + summary: |- + Undelegate defines a method for performing an undelegation from a + delegate and a validator. + operationId: CosmosStakingV1Beta1Msg_Undelegate responses: '200': description: A successful response. schema: type: object properties: - withdraw_address: + completion_time: type: string - description: withdraw_address defines the delegator address to query for. - description: |- - QueryDelegatorWithdrawAddressResponse is the response type for the - Query/DelegatorWithdrawAddress RPC method. + format: date-time + 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 returns the amount of undelegated coins + description: MsgUndelegateResponse defines the Msg/Undelegate response type. default: description: An unexpected error response. schema: @@ -9191,453 +8716,238 @@ paths: 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. + + + 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" + } parameters: - - name: delegator_address - description: delegator_address defines the delegator address to query for. - in: path + - name: body + description: >- + MsgUndelegate defines a SDK message for performing an undelegation + from a + + delegate and a validator. + in: body required: true - type: string - tags: - - Query - /cosmos/distribution/v1beta1/params: - get: - summary: Params queries params of the distribution module. - operationId: CosmosDistributionV1Beta1Query_Params - responses: - '200': - description: A successful response. schema: type: object properties: - params: - description: params defines the parameters of the module. + delegator_address: + type: string + validator_address: + type: string + amount: type: object properties: - community_tax: + denom: type: string - base_proposer_reward: + amount: type: string - description: >- - Deprecated: The base_proposer_reward field is deprecated - and is no longer used + description: >- + Coin defines a token with a denomination and an amount. - in the x/distribution module's reward mechanism. - bonus_proposer_reward: - type: string - description: >- - Deprecated: The bonus_proposer_reward field is deprecated - and is no longer used - in the x/distribution module's reward mechanism. - withdraw_addr_enabled: - type: boolean + NOTE: The amount field is an Int which implements the custom + method + + signatures required by gogoproto. description: >- - QueryParamsResponse is the 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: {} + MsgUndelegate defines a SDK message for performing an undelegation + from a + + delegate and a validator. tags: - - Query - /cosmos/distribution/v1beta1/validators/{validator_address}: - get: - summary: >- - ValidatorDistributionInfo queries validator commission and - self-delegation rewards for validator - operationId: CosmosDistributionV1Beta1Query_ValidatorDistributionInfo + - Msg + /cosmos.staking.v1beta1.Msg/UpdateParams: + post: + summary: |- + UpdateParams defines an operation for updating the x/staking module + parameters. + Since: cosmos-sdk 0.47 + operationId: CosmosStakingV1Beta1Msg_UpdateParams responses: '200': description: A successful response. schema: type: object - properties: - operator_address: - type: string - description: operator_address defines the validator operator address. - self_bond_rewards: - type: array - items: - type: object - properties: - denom: - type: string - amount: - type: string - description: >- - DecCoin defines a token with a denomination and a decimal - amount. - - - NOTE: The amount field is an Dec which implements the custom - method - - signatures required by gogoproto. - description: self_bond_rewards defines the self delegations rewards. - commission: - type: array - items: - type: object - properties: - denom: - type: string - amount: - type: string - description: >- - DecCoin defines a token with a denomination and a decimal - amount. + description: >- + MsgUpdateParamsResponse defines the response structure for + executing a + MsgUpdateParams message. - NOTE: The amount field is an Dec which implements the custom - method - signatures required by gogoproto. - description: commission defines the commission the validator received. - description: >- - QueryValidatorDistributionInfoResponse is the response type for - the Query/ValidatorDistributionInfo 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: {} - parameters: - - name: validator_address - description: validator_address defines the validator address to query for. - in: path - required: true - type: string - tags: - - Query - /cosmos/distribution/v1beta1/validators/{validator_address}/commission: - get: - summary: ValidatorCommission queries accumulated commission for a validator. - operationId: CosmosDistributionV1Beta1Query_ValidatorCommission - responses: - '200': - description: A successful response. - schema: - type: object - properties: - commission: - description: commission defines the commission the validator received. - type: object - properties: - commission: - type: array - items: - type: object - properties: - denom: - type: string - amount: - type: string - description: >- - DecCoin defines a token with a denomination and a - decimal amount. - - - NOTE: The amount field is an Dec which implements the - custom method - - signatures required by gogoproto. - title: |- - QueryValidatorCommissionResponse is the response type for the - Query/ValidatorCommission 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: {} - parameters: - - name: validator_address - description: validator_address defines the validator address to query for. - in: path - required: true - type: string - tags: - - Query - /cosmos/distribution/v1beta1/validators/{validator_address}/outstanding_rewards: - get: - summary: ValidatorOutstandingRewards queries rewards of a validator address. - operationId: CosmosDistributionV1Beta1Query_ValidatorOutstandingRewards - responses: - '200': - description: A successful response. - schema: - type: object - properties: - rewards: - type: object - properties: - rewards: - type: array - items: - type: object - properties: - denom: - type: string - amount: - type: string - description: >- - DecCoin defines a token with a denomination and a - decimal amount. - - - NOTE: The amount field is an Dec which implements the - custom method - - signatures required by gogoproto. - description: >- - ValidatorOutstandingRewards represents outstanding - (un-withdrawn) rewards - - for a validator inexpensive to track, allows simple sanity - checks. - description: >- - QueryValidatorOutstandingRewardsResponse is the response type for - the - - Query/ValidatorOutstandingRewards 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: {} - parameters: - - name: validator_address - description: validator_address defines the validator address to query for. - in: path - required: true - type: string - tags: - - Query - /cosmos/distribution/v1beta1/validators/{validator_address}/slashes: - get: - summary: ValidatorSlashes queries slash events of a validator. - operationId: CosmosDistributionV1Beta1Query_ValidatorSlashes - responses: - '200': - description: A successful response. - schema: - type: object - properties: - slashes: - type: array - items: - type: object - properties: - validator_period: - type: string - format: uint64 - fraction: - type: string - description: >- - ValidatorSlashEvent represents a validator slash event. - - Height is implicit within the store key. - - This is needed to calculate appropriate amount of staking - tokens - - for delegations which are withdrawn after a slash has - occurred. - description: slashes defines the slashes the validator received. - pagination: - description: pagination defines the pagination in the response. - 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: |- - QueryValidatorSlashesResponse is the response type for the - Query/ValidatorSlashes 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: {} - parameters: - - name: validator_address - description: validator_address defines the validator address to query for. - in: path - required: true - type: string - - name: starting_height - description: >- - starting_height defines the optional starting height to query the - slashes. - in: query - required: false - type: string - format: uint64 - - name: ending_height - description: >- - starting_height defines the optional ending height to query the - slashes. - in: query - required: false - type: string - format: uint64 - - 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 - /cosmos.evidence.v1beta1.Msg/SubmitEvidence: - post: - summary: >- - SubmitEvidence submits an arbitrary Evidence of misbehavior such as - equivocation or - - counterfactual signing. - operationId: CosmosEvidenceV1Beta1Msg_SubmitEvidence - responses: - '200': - description: A successful response. - schema: - type: object - properties: - hash: - type: string - format: byte - description: hash defines the hash of the evidence. - description: >- - MsgSubmitEvidenceResponse defines the Msg/SubmitEvidence response - type. + Since: cosmos-sdk 0.47 default: description: An unexpected error response. schema: @@ -9831,104 +9141,94 @@ paths: } parameters: - name: body - description: >- - MsgSubmitEvidence represents a message that supports submitting - arbitrary + description: |- + MsgUpdateParams is the Msg/UpdateParams request type. - Evidence of misbehavior such as equivocation or counterfactual - signing. + Since: cosmos-sdk 0.47 in: body required: true schema: type: object properties: - submitter: + authority: type: string - description: submitter is the signer account address of evidence. - evidence: - description: evidence defines the evidence of misbehavior. + 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. + + NOTE: All parameters must be supplied. type: object properties: - '@type': + 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: >- - 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 + 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. - implementations and no plans to implement one. + Since: cosmos-sdk 0.47 + tags: + - Msg + /ibc.applications.fee.v1.Msg/PayPacketFee: + post: + summary: >- + PayPacketFee defines a rpc handler method for MsgPayPacketFee + PayPacketFee is an open callback that may be called by any module/user + that wishes to escrow funds in order to - Schemes other than `http`, `https` (or the empty scheme) - might be + incentivize the relaying of the packet at the next sequence - used with implementation specific semantics. - additionalProperties: {} - description: >- - MsgSubmitEvidence represents a message that supports submitting - arbitrary + NOTE: This method is intended to be used within a multi msg transaction, + where the subsequent msg that follows - Evidence of misbehavior such as equivocation or counterfactual - signing. - tags: - - Msg - /cosmos/evidence/v1beta1/evidence: - get: - summary: AllEvidence queries all evidence. - operationId: CosmosEvidenceV1Beta1Query_AllEvidence + initiates the lifecycle of the incentivized packet + operationId: IbcApplicationsFeeV1Msg_PayPacketFee responses: '200': description: A successful response. + schema: + type: object + title: >- + MsgPayPacketFeeResponse defines the response type for the + PayPacketFee rpc + default: + description: An unexpected error response. schema: type: object properties: - evidence: + code: + type: integer + format: int32 + message: + type: string + details: type: array items: type: object @@ -10109,31 +9409,115 @@ paths: "@type": "type.googleapis.com/google.protobuf.Duration", "value": "1.212s" } - description: evidence returns all evidences. - pagination: - description: pagination defines the pagination in the response. + parameters: + - name: body + in: body + required: true + schema: + type: object + properties: + fee: + title: >- + fee encapsulates the recv, ack and timeout fees associated + with an IBC packet 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 + 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. - was set, its value is undefined otherwise - description: >- - QueryAllEvidenceResponse is the response type for the - Query/AllEvidence RPC - method. + 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 + 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 + + 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 + tags: + - Msg + /ibc.applications.fee.v1.Msg/PayPacketFeeAsync: + post: + summary: >- + PayPacketFeeAsync defines a rpc handler method for MsgPayPacketFeeAsync + + PayPacketFeeAsync is an open callback that may be called by any + module/user that wishes to escrow funds in order to + + incentivize the relaying of a known packet (i.e. at a particular + sequence) + operationId: IbcApplicationsFeeV1Msg_PayPacketFeeAsync + responses: + '200': + description: A successful response. + schema: + type: object + title: >- + MsgPayPacketFeeAsyncResponse defines the response type for the + PayPacketFeeAsync rpc default: description: An unexpected error response. schema: @@ -10326,142 +9710,137 @@ paths: "value": "1.212s" } 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 - /cosmos/evidence/v1beta1/evidence/{hash}: - get: - summary: Evidence queries evidence based on evidence hash. - operationId: CosmosEvidenceV1Beta1Query_Evidence - responses: - '200': - description: A successful response. + - name: body + in: body + required: true schema: type: object properties: - evidence: - description: evidence returns the requested evidence. + packet_id: + title: >- + unique packet identifier comprised of the channel ID, port ID + and sequence type: object properties: - '@type': + port_id: 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). - + 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. - 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 + NOTE: The amount field is an Int which implements + the custom method - scheme `http`, `https`, or no scheme, one can optionally - set up a type + 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. - 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. + 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. - * 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 + NOTE: The amount field is an Int which implements + the custom method - protobuf release, and it is not used for type URLs - beginning with + 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 - type.googleapis.com. As of May 2023, there are no widely - used type server + This Msg can be used to pay for a packet at a specified sequence + (instead of the next sequence send) + tags: + - Msg + /ibc.applications.fee.v1.Msg/RegisterCounterpartyPayee: + post: + summary: >- + RegisterCounterpartyPayee defines a rpc handler method for + MsgRegisterCounterpartyPayee - implementations and no plans to implement one. + RegisterCounterpartyPayee is called by the relayer on each channelEnd + and allows them to specify the counterparty + payee address before relaying. This ensures they will be properly + compensated for forward relaying since - Schemes other than `http`, `https` (or the empty scheme) - might be + the destination chain must include the registered counterparty payee + address in the acknowledgement. This function - used with implementation specific semantics. - additionalProperties: {} - description: >- - QueryEvidenceResponse is the response type for the Query/Evidence - RPC method. + may be called more than once by a relayer, in which case, the latest + counterparty payee address is always used. + operationId: IbcApplicationsFeeV1Msg_RegisterCounterpartyPayee + responses: + '200': + description: A successful response. + schema: + type: object + title: >- + MsgRegisterCounterpartyPayeeResponse defines the response type for + the RegisterCounterpartyPayee rpc default: description: An unexpected error response. schema: @@ -10654,122 +10033,54 @@ paths: "value": "1.212s" } parameters: - - name: hash - description: |- - hash defines the evidence hash of the requested evidence. - - Since: cosmos-sdk 0.47 - in: path + - name: body + in: body required: true - type: string - - name: evidence_hash - description: |- - evidence_hash defines the hash of the requested evidence. - Deprecated: Use hash, a HEX encoded string, instead. - in: query - required: false - type: string - format: byte - tags: - - Query - /cosmos/feegrant/v1beta1/allowance/{granter}/{grantee}: - get: - summary: Allowance returns granted allwance to the grantee by the granter. - operationId: CosmosFeegrantV1Beta1Query_Allowance - responses: - '200': - description: A successful response. schema: type: object properties: - allowance: - description: allowance is a allowance granted for grantee by granter. - type: object - properties: - granter: - type: string - description: >- - granter is the address of the user granting an allowance - of their funds. - grantee: - type: string - description: >- - grantee is the address of the user being granted an - allowance of another user's funds. - allowance: - description: >- - allowance can be any of basic, periodic, allowed fee - allowance. - 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 + 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 + tags: + - Msg + /ibc.applications.fee.v1.Msg/RegisterPayee: + post: + summary: >- + RegisterPayee defines a rpc handler method for MsgRegisterPayee - implementations and no plans to implement one. + RegisterPayee is called by the relayer on each channelEnd and allows + them to set an optional + payee to which reverse and timeout relayer packet fees will be paid out. + The payee should be registered on - Schemes other than `http`, `https` (or the empty - scheme) might be + the source chain from which packets originate as this is where fee + distribution takes place. This function may be - used with implementation specific semantics. - additionalProperties: {} - title: >- - Grant is stored in the KVStore to record a grant with full - context - description: >- - QueryAllowanceResponse is the response type for the - Query/Allowance RPC method. + called more than once by a relayer, in which case, the latest payee is + always used. + operationId: IbcApplicationsFeeV1Msg_RegisterPayee + responses: + '200': + description: A successful response. + schema: + type: object + title: >- + MsgRegisterPayeeResponse defines the response type for the + RegisterPayee rpc default: description: An unexpected error response. schema: @@ -10962,141 +10273,49 @@ paths: "value": "1.212s" } parameters: - - name: granter - description: >- - granter is the address of the user granting an allowance of their - funds. - in: path - required: true - type: string - - name: grantee - description: >- - grantee is the address of the user being granted an allowance of - another user's funds. - in: path + - name: body + in: body required: true - type: string + schema: + 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 tags: - - Query - /cosmos/feegrant/v1beta1/allowances/{grantee}: - get: - summary: Allowances returns all the grants for the given grantee address. - operationId: CosmosFeegrantV1Beta1Query_Allowances + - Msg + /ibc.applications.interchain_accounts.controller.v1.Msg/RegisterInterchainAccount: + post: + summary: >- + RegisterInterchainAccount defines a rpc handler for + MsgRegisterInterchainAccount. + operationId: >- + IbcApplicationsInterchainAccountsControllerV1Msg_RegisterInterchainAccount responses: '200': description: A successful response. schema: type: object properties: - allowances: - type: array - items: - type: object - properties: - granter: - type: string - description: >- - granter is the address of the user granting an allowance - of their funds. - grantee: - type: string - description: >- - grantee is the address of the user being granted an - allowance of another user's funds. - allowance: - description: >- - allowance can be any of basic, periodic, allowed fee - allowance. - 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: {} - title: >- - Grant is stored in the KVStore to record a grant with full - context - description: allowances are allowance's granted for grantee by granter. - pagination: - description: pagination defines an pagination for the response. - 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: >- - QueryAllowancesResponse is the response type for the - Query/Allowances RPC method. + channel_id: + type: string + port_id: + type: string + title: >- + MsgRegisterInterchainAccountResponse defines the response for + Msg/RegisterAccount default: description: An unexpected error response. schema: @@ -11289,191 +10508,37 @@ paths: "value": "1.212s" } parameters: - - name: grantee - in: path + - name: body + in: body required: true - type: string - - 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 + schema: + type: object + properties: + owner: + type: string + connection_id: + type: string + version: + type: string + title: >- + MsgRegisterInterchainAccount defines the payload for + Msg/RegisterAccount tags: - - Query - /cosmos/feegrant/v1beta1/issued/{granter}: - get: - summary: AllowancesByGranter returns all the grants given by an address - description: 'Since: cosmos-sdk 0.46' - operationId: CosmosFeegrantV1Beta1Query_AllowancesByGranter + - Msg + /ibc.applications.interchain_accounts.controller.v1.Msg/SendTx: + post: + summary: SendTx defines a rpc handler for MsgSendTx. + operationId: IbcApplicationsInterchainAccountsControllerV1Msg_SendTx responses: '200': description: A successful response. schema: type: object properties: - allowances: - type: array - items: - type: object - properties: - granter: - type: string - description: >- - granter is the address of the user granting an allowance - of their funds. - grantee: - type: string - description: >- - grantee is the address of the user being granted an - allowance of another user's funds. - allowance: - description: >- - allowance can be any of basic, periodic, allowed fee - allowance. - 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: {} - title: >- - Grant is stored in the KVStore to record a grant with full - context - description: allowances that have been issued by the granter. - pagination: - description: pagination defines an pagination for the response. - 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: >- - QueryAllowancesByGranterResponse is the response type for the - Query/AllowancesByGranter RPC method. - - - Since: cosmos-sdk 0.46 + sequence: + type: string + format: uint64 + title: MsgSendTxResponse defines the response for MsgSendTx default: description: An unexpected error response. schema: @@ -11666,82 +10731,62 @@ paths: "value": "1.212s" } parameters: - - name: granter - in: path + - name: body + in: body required: true - type: string - - 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. + schema: + type: object + properties: + owner: + type: string + connection_id: + type: string + packet_data: + 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: + type: string + format: byte + memo: + 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. - Since: cosmos-sdk 0.43 - in: query - required: false - type: boolean + The timeout timestamp must be non-zero. + title: MsgSendTx defines the payload for Msg/SendTx tags: - - Query - /cosmos.feegrant.v1beta1.Msg/GrantAllowance: + - Msg + /ibc.applications.interchain_accounts.controller.v1.Msg/UpdateParams: post: - summary: |- - GrantAllowance grants fee allowance to the grantee on the granter's - account with the provided expiration time. - operationId: CosmosFeegrantV1Beta1Msg_GrantAllowance + summary: UpdateParams defines a rpc handler for MsgUpdateParams. + operationId: IbcApplicationsInterchainAccountsControllerV1Msg_UpdateParams responses: '200': description: A successful response. schema: type: object - description: >- - MsgGrantAllowanceResponse defines the Msg/GrantAllowanceResponse - response type. + title: MsgUpdateParamsResponse defines the response for Msg/UpdateParams default: description: An unexpected error response. schema: @@ -11935,118 +10980,106 @@ paths: } parameters: - name: body - description: >- - MsgGrantAllowance adds permission for Grantee to spend up to - Allowance - - of fees from the account of Granter. in: body required: true schema: type: object properties: - granter: - type: string - description: >- - granter is the address of the user granting an allowance of - their funds. - grantee: + signer: type: string + title: signer address + params: description: >- - grantee is the address of the user being granted an allowance - of another user's funds. - allowance: - description: >- - allowance can be any of basic, periodic, allowed fee - allowance. + params defines the 27-interchain-accounts/controller + parameters to update. + + + NOTE: All parameters must be supplied. type: object properties: - '@type': - type: string + controller_enabled: + type: boolean 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: >- - MsgGrantAllowance adds permission for Grantee to spend up to - Allowance - - of fees from the account of Granter. + controller_enabled enables or disables the controller + submodule. + title: MsgUpdateParams defines the payload for Msg/UpdateParams tags: - Msg - /cosmos.feegrant.v1beta1.Msg/PruneAllowances: + /ibc.applications.interchain_accounts.host.v1.Msg/UpdateParams: post: - summary: >- - PruneAllowances prunes expired fee allowances, currently up to 75 at a - time. - description: Since cosmos-sdk 0.50 - operationId: CosmosFeegrantV1Beta1Msg_PruneAllowances + summary: UpdateParams defines a rpc handler for MsgUpdateParams. + operationId: IbcApplicationsInterchainAccountsHostV1Msg_UpdateParams responses: '200': description: A successful response. schema: type: object - description: >- - MsgPruneAllowancesResponse defines the Msg/PruneAllowancesResponse - response type. + title: MsgUpdateParamsResponse defines the response for Msg/UpdateParams + 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: + signer: + type: string + title: signer address + params: + description: >- + params defines the 27-interchain-accounts/host parameters to + update. - Since cosmos-sdk 0.50 + 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 + tags: + - Msg + /ibc.applications.transfer.v1.Msg/Transfer: + post: + summary: Transfer defines a rpc handler method for MsgTransfer. + operationId: IbcApplicationsTransferV1Msg_Transfer + responses: + '200': + description: A successful response. + schema: + type: object + properties: + sequence: + type: string + format: uint64 + title: sequence number of the transfer packet sent + description: MsgTransferResponse defines the Msg/Transfer response type. default: description: An unexpected error response. schema: @@ -12240,38 +11273,92 @@ paths: } parameters: - name: body - description: |- - MsgPruneAllowances prunes expired fee allowances. - - Since cosmos-sdk 0.50 in: body required: true schema: type: object properties: - pruner: + source_port: type: string - description: pruner is the address of the user pruning expired allowances. - description: |- - MsgPruneAllowances prunes expired fee allowances. + title: the port on which the packet will be sent + source_channel: + type: string + 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. - Since cosmos-sdk 0.50 + + NOTE: The amount field is an Int which implements the custom + method + + signatures required by gogoproto. + sender: + type: string + 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: + 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 + 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: + + https://github.com/cosmos/ibc/tree/master/spec/app/ics-020-fungible-token-transfer#data-structures tags: - Msg - /cosmos.feegrant.v1beta1.Msg/RevokeAllowance: + /ibc.applications.transfer.v1.Msg/UpdateParams: post: - summary: |- - RevokeAllowance revokes any fee allowance of granter's account that - has been granted to the grantee. - operationId: CosmosFeegrantV1Beta1Msg_RevokeAllowance + summary: UpdateParams defines a rpc handler for MsgUpdateParams. + operationId: IbcApplicationsTransferV1Msg_UpdateParams responses: '200': description: A successful response. schema: type: object description: >- - MsgRevokeAllowanceResponse defines the Msg/RevokeAllowanceResponse - response type. + MsgUpdateParamsResponse defines the response structure for + executing a + + MsgUpdateParams message. default: description: An unexpected error response. schema: @@ -12465,62 +11552,67 @@ paths: } parameters: - name: body - description: >- - MsgRevokeAllowance removes any existing Allowance from Granter to - Grantee. + description: MsgUpdateParams is the Msg/UpdateParams request type. in: body required: true schema: type: object properties: - granter: - type: string - description: >- - granter is the address of the user granting an allowance of - their funds. - grantee: + signer: type: string - description: >- - grantee is the address of the user being granted an allowance - of another user's funds. - description: >- - MsgRevokeAllowance removes any existing Allowance from Granter to - Grantee. + title: signer address + params: + description: |- + params defines the transfer 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. tags: - Msg - /cosmos.gov.v1.Msg/CancelProposal: + /ibc.core.channel.v1.Msg/Acknowledgement: post: - summary: CancelProposal defines a method to cancel governance proposal - description: 'Since: cosmos-sdk 0.50' - operationId: CosmosGovV1Msg_CancelProposal + summary: Acknowledgement defines a rpc handler method for MsgAcknowledgement. + operationId: IbcCoreChannelV1Msg_Acknowledgement responses: '200': description: A successful response. schema: type: object properties: - proposal_id: - type: string - format: uint64 - description: proposal_id defines the unique id of the proposal. - canceled_time: - type: string - format: date-time - description: canceled_time is the time when proposal is canceled. - canceled_height: + result: type: string - format: uint64 + enum: + - RESPONSE_RESULT_TYPE_UNSPECIFIED + - RESPONSE_RESULT_TYPE_NOOP + - RESPONSE_RESULT_TYPE_SUCCESS + default: RESPONSE_RESULT_TYPE_UNSPECIFIED description: >- - canceled_height defines the block height at which the proposal - is canceled. + - 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: >- - MsgCancelProposalResponse defines the response structure for - executing a - - MsgCancelProposal message. - - - Since: cosmos-sdk 0.50 + MsgAcknowledgementResponse defines the Msg/Acknowledgement + response type. default: description: An unexpected error response. schema: @@ -12714,38 +11806,143 @@ paths: } parameters: - name: body - description: |- - MsgCancelProposal is the Msg/CancelProposal request type. - - Since: cosmos-sdk 0.50 in: body required: true schema: type: object properties: - proposal_id: + 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 + acknowledgement: type: string - format: uint64 - description: proposal_id defines the unique id of the proposal. - proposer: + format: byte + proof_acked: type: string - description: proposer is the account address of the proposer. - description: |- - MsgCancelProposal is the Msg/CancelProposal request type. + 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 - Since: cosmos-sdk 0.50 + 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 + title: MsgAcknowledgement receives incoming IBC acknowledgement tags: - Msg - /cosmos.gov.v1.Msg/Deposit: + /ibc.core.channel.v1.Msg/ChannelCloseConfirm: post: - summary: Deposit defines a method to add deposit on a specific proposal. - operationId: CosmosGovV1Msg_Deposit + summary: |- + ChannelCloseConfirm defines a rpc handler method for + MsgChannelCloseConfirm. + operationId: IbcCoreChannelV1Msg_ChannelCloseConfirm responses: '200': description: A successful response. schema: type: object - description: MsgDepositResponse defines the Msg/Deposit response type. + description: >- + MsgChannelCloseConfirmResponse defines the Msg/ChannelCloseConfirm + response + + type. default: description: An unexpected error response. schema: @@ -12939,57 +12136,74 @@ paths: } parameters: - name: body - description: >- - MsgDeposit defines a message to submit a deposit to an existing - proposal. + description: |- + MsgChannelCloseConfirm defines a msg sent by a Relayer to Chain B + to acknowledge the change of channel state to CLOSED on Chain A. in: body required: true schema: type: object properties: - proposal_id: + port_id: type: string - format: uint64 - description: proposal_id defines the unique id of the proposal. - depositor: + channel_id: type: string - description: depositor defines the deposit addresses from the proposals. - amount: - type: array - items: - type: object - properties: - denom: - type: string - amount: - type: string - description: >- - Coin defines a token with a denomination and an amount. + proof_init: + 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 - 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. - description: amount to be deposited by depositor. - description: >- - MsgDeposit defines a message to submit a deposit to an existing - proposal. + 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: |- + MsgChannelCloseConfirm defines a msg sent by a Relayer to Chain B + to acknowledge the change of channel state to CLOSED on Chain A. tags: - Msg - /cosmos.gov.v1.Msg/ExecLegacyContent: + /ibc.core.channel.v1.Msg/ChannelCloseInit: post: - summary: |- - ExecLegacyContent defines a Msg to be in included in a MsgSubmitProposal - to execute a legacy content-based proposal. - operationId: CosmosGovV1Msg_ExecLegacyContent + summary: ChannelCloseInit defines a rpc handler method for MsgChannelCloseInit. + operationId: IbcCoreChannelV1Msg_ChannelCloseInit responses: '200': description: A successful response. schema: type: object description: >- - MsgExecLegacyContentResponse defines the Msg/ExecLegacyContent + MsgChannelCloseInitResponse defines the Msg/ChannelCloseInit response type. default: description: An unexpected error response. @@ -13184,110 +12398,36 @@ paths: } parameters: - name: body - description: >- - MsgExecLegacyContent is used to wrap the legacy content field into a - message. - - This ensures backwards compatibility with v1beta1.MsgSubmitProposal. + description: |- + MsgChannelCloseInit defines a msg sent by a Relayer to Chain A + to close a channel with Chain B. in: body required: true schema: type: object properties: - content: - description: content is the proposal's content. - 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: {} - authority: + port_id: type: string - description: authority must be the gov module address. - description: >- - MsgExecLegacyContent is used to wrap the legacy content field into - a message. - - This ensures backwards compatibility with - v1beta1.MsgSubmitProposal. + channel_id: + type: string + signer: + type: string + description: |- + MsgChannelCloseInit defines a msg sent by a Relayer to Chain A + to close a channel with Chain B. tags: - Msg - /cosmos.gov.v1.Msg/SubmitProposal: + /ibc.core.channel.v1.Msg/ChannelOpenAck: post: - summary: >- - SubmitProposal defines a method to create new proposal given the - messages. - operationId: CosmosGovV1Msg_SubmitProposal + summary: ChannelOpenAck defines a rpc handler method for MsgChannelOpenAck. + operationId: IbcCoreChannelV1Msg_ChannelOpenAck responses: '200': description: A successful response. schema: type: object - properties: - proposal_id: - type: string - format: uint64 - description: proposal_id defines the unique id of the proposal. description: >- - MsgSubmitProposalResponse defines the Msg/SubmitProposal response + MsgChannelOpenAckResponse defines the Msg/ChannelOpenAck response type. default: description: An unexpected error response. @@ -13483,16 +12623,97 @@ paths: parameters: - name: body description: >- - MsgSubmitProposal defines an sdk.Msg type that supports submitting - arbitrary + MsgChannelOpenAck defines a msg sent by a Relayer to Chain A to + acknowledge - proposal Content. + the change of channel state to TRYOPEN on Chain B. in: body required: true schema: type: object properties: - messages: + 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: + 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: >- + MsgChannelOpenAck defines a msg sent by a Relayer to Chain A to + acknowledge + + the change of channel state to TRYOPEN on Chain B. + tags: + - Msg + /ibc.core.channel.v1.Msg/ChannelOpenConfirm: + post: + summary: >- + ChannelOpenConfirm defines a rpc handler method for + MsgChannelOpenConfirm. + operationId: IbcCoreChannelV1Msg_ChannelOpenConfirm + responses: + '200': + description: A successful response. + schema: + type: object + description: >- + MsgChannelOpenConfirmResponse defines the Msg/ChannelOpenConfirm + response + + type. + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: type: array items: type: object @@ -13673,78 +12894,84 @@ paths: "@type": "type.googleapis.com/google.protobuf.Duration", "value": "1.212s" } + parameters: + - name: body + description: |- + MsgChannelOpenConfirm defines a msg sent by a Relayer to Chain B to + acknowledge the change of channel state to OPEN on Chain A. + in: body + required: true + schema: + type: object + properties: + port_id: + type: string + channel_id: + type: string + proof_ack: + 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: >- - messages are the arbitrary messages to be executed if proposal - passes. - initial_deposit: - type: array - items: - type: object - properties: - denom: - type: string - amount: - type: string - description: >- - Coin defines a token with a denomination and an amount. + 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. - description: >- - initial_deposit is the deposit value that must be paid at - proposal submission. - proposer: - type: string - description: proposer is the account address of the proposer. - metadata: - type: string - description: metadata is any arbitrary metadata attached to the proposal. - title: - type: string - description: |- - title is the title of the proposal. + breaking changes In these cases, the RevisionNumber is + incremented so that - Since: cosmos-sdk 0.47 - summary: + 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: 'Since: cosmos-sdk 0.47' - title: summary is the summary of the proposal - expedited: - type: boolean - description: 'Since: cosmos-sdk 0.50' - title: expedited defines if the proposal is expedited or not description: >- - MsgSubmitProposal defines an sdk.Msg type that supports submitting - arbitrary + MsgChannelOpenConfirm defines a msg sent by a Relayer to Chain B + to - proposal Content. + acknowledge the change of channel state to OPEN on Chain A. tags: - Msg - /cosmos.gov.v1.Msg/UpdateParams: + /ibc.core.channel.v1.Msg/ChannelOpenInit: post: - summary: >- - UpdateParams defines a governance operation for updating the x/gov - module - - parameters. The authority is defined in the keeper. - description: 'Since: cosmos-sdk 0.47' - operationId: CosmosGovV1Msg_UpdateParams + summary: ChannelOpenInit defines a rpc handler method for MsgChannelOpenInit. + operationId: IbcCoreChannelV1Msg_ChannelOpenInit responses: '200': description: A successful response. schema: type: object + properties: + channel_id: + type: string + version: + type: string description: >- - MsgUpdateParamsResponse defines the response structure for - executing a - - MsgUpdateParams message. - - - Since: cosmos-sdk 0.47 + MsgChannelOpenInitResponse defines the Msg/ChannelOpenInit + response type. default: description: An unexpected error response. schema: @@ -13938,168 +13165,117 @@ paths: } parameters: - name: body - description: |- - MsgUpdateParams is the Msg/UpdateParams request type. + description: >- + MsgChannelOpenInit defines an sdk.Msg to initialize a channel + handshake. It - Since: cosmos-sdk 0.47 + is called by a relayer on Chain A. in: body required: true schema: type: object properties: - authority: + port_id: type: string - description: >- - authority is the address that controls the module (defaults to - x/gov unless overwritten). - params: - description: |- - params defines the x/gov parameters to update. - - NOTE: All parameters must be supplied. + channel: type: object properties: - min_deposit: - 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. - description: Minimum deposit for a proposal to enter voting period. - max_deposit_period: - type: string - description: >- - Maximum period for Atom holders to deposit on a proposal. - Initial value: 2 - - months. - voting_period: - type: string - description: Duration of the voting period. - quorum: - type: string - description: >- - Minimum percentage of total stake needed to vote for a - result to be - considered valid. - threshold: - type: string - description: >- - Minimum proportion of Yes votes for proposal to pass. - Default value: 0.5. - veto_threshold: - type: string - description: >- - Minimum value of Veto votes to Total votes ratio for - proposal to be - vetoed. Default value: 1/3. - min_initial_deposit_ratio: - type: string - description: >- - The ratio representing the proportion of the deposit value - that must be paid at proposal submission. - proposal_cancel_ratio: - type: string - description: >- - The cancel ratio which will not be returned back to the - depositors when a proposal is cancelled. - - - Since: cosmos-sdk 0.50 - proposal_cancel_dest: + 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: >- - The address which will receive (proposal_cancel_ratio * - deposit) proposal deposits. - - If empty, the (proposal_cancel_ratio * deposit) proposal - deposits will be burned. + State defines if a channel is in one of the following + states: + CLOSED, INIT, TRYOPEN, OPEN or UNINITIALIZED. - Since: cosmos-sdk 0.50 - expedited_voting_period: + - 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: |- - Duration of the voting period of an expedited proposal. - - Since: cosmos-sdk 0.50 - expedited_threshold: - type: string - description: >- - Minimum proportion of Yes votes for proposal to pass. - Default value: 0.67. - - - Since: cosmos-sdk 0.50 - expedited_min_deposit: + - 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: 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 + type: string + title: >- + list of connection identifiers, in order, along which + packets sent on - signatures required by gogoproto. - description: >- - Minimum expedited deposit for a proposal to enter voting - period. - burn_vote_quorum: - type: boolean - title: burn deposits if a proposal does not meet quorum - burn_proposal_deposit_prevote: - type: boolean - title: burn deposits if the proposal does not enter voting period - burn_vote_veto: - type: boolean - title: burn deposits if quorum with vote type no_veto is met - min_deposit_ratio: + this channel will travel + version: type: string - description: >- - The ratio representing the proportion of the deposit value - minimum that must be met when making a deposit. - - Default value: 0.01. Meaning that for a chain with a - min_deposit of 100stake, a deposit of 1stake would be - - required. + 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 - Since: cosmos-sdk 0.50 - description: |- - MsgUpdateParams is the Msg/UpdateParams request type. + sending packets and one end capable of receiving packets. + signer: + type: string + description: >- + MsgChannelOpenInit defines an sdk.Msg to initialize a channel + handshake. It - Since: cosmos-sdk 0.47 + is called by a relayer on Chain A. tags: - Msg - /cosmos.gov.v1.Msg/Vote: + /ibc.core.channel.v1.Msg/ChannelOpenTry: post: - summary: Vote defines a method to add a vote on a specific proposal. - operationId: CosmosGovV1Msg_Vote + summary: ChannelOpenTry defines a rpc handler method for MsgChannelOpenTry. + operationId: IbcCoreChannelV1Msg_ChannelOpenTry responses: '200': description: A successful response. schema: type: object - description: MsgVoteResponse defines the Msg/Vote response type. + properties: + version: + type: string + channel_id: + type: string + description: >- + MsgChannelOpenTryResponse defines the Msg/ChannelOpenTry response + type. default: description: An unexpected error response. schema: @@ -14293,49 +13469,177 @@ paths: } parameters: - name: body - description: MsgVote defines a message to cast a vote. + 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. in: body required: true schema: type: object properties: - proposal_id: + port_id: type: string - format: uint64 - description: proposal_id defines the unique id of the proposal. - voter: + previous_channel_id: type: string - description: voter is the voter address for the proposal. - option: - description: option defines the vote option. + 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 + + sending packets and one end capable of receiving packets. + counterparty_version: type: string - enum: - - VOTE_OPTION_UNSPECIFIED - - VOTE_OPTION_YES - - VOTE_OPTION_ABSTAIN - - VOTE_OPTION_NO - - VOTE_OPTION_NO_WITH_VETO - default: VOTE_OPTION_UNSPECIFIED - metadata: + proof_init: type: string - description: metadata is any arbitrary metadata attached to the Vote. - description: MsgVote defines a message to cast a vote. + 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 + + 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: >- + 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. tags: - Msg - /cosmos.gov.v1.Msg/VoteWeighted: + /ibc.core.channel.v1.Msg/RecvPacket: post: - summary: >- - VoteWeighted defines a method to add a weighted vote on a specific - proposal. - operationId: CosmosGovV1Msg_VoteWeighted + summary: RecvPacket defines a rpc handler method for MsgRecvPacket. + operationId: IbcCoreChannelV1Msg_RecvPacket responses: '200': description: A successful response. schema: type: object - description: >- - MsgVoteWeightedResponse defines the Msg/VoteWeighted response - type. + 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. default: description: An unexpected error response. schema: @@ -14529,94 +13833,178 @@ paths: } parameters: - name: body - description: MsgVoteWeighted defines a message to cast a vote. in: body required: true schema: type: object properties: - proposal_id: - type: string - format: uint64 - description: proposal_id defines the unique id of the proposal. - voter: - type: string - description: voter is the voter address for the proposal. - options: - type: array - items: - type: object - properties: - option: - description: >- - option defines the valid vote options, it must not - contain duplicate vote options. - type: string - enum: - - VOTE_OPTION_UNSPECIFIED - - VOTE_OPTION_YES - - VOTE_OPTION_ABSTAIN - - VOTE_OPTION_NO - - VOTE_OPTION_NO_WITH_VETO - default: VOTE_OPTION_UNSPECIFIED - weight: - type: string - description: >- - weight is the vote weight associated with the vote - option. - description: WeightedVoteOption defines a unit of vote for vote split. - description: options defines the weighted vote options. - metadata: - type: string - description: >- - metadata is any arbitrary metadata attached to the - VoteWeighted. - description: MsgVoteWeighted defines a message to cast a vote. - tags: - - Msg - /cosmos/gov/v1/constitution: - get: - summary: Constitution queries the chain's constitution. - operationId: CosmosGovV1Query_Constitution - responses: - '200': - description: A successful response. - schema: - type: object - properties: - constitution: - type: string - title: >- - QueryConstitutionResponse is the response type for the - Query/Constitution 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 - description: >- - A URL/resource name that uniquely identifies the type of - the serialized + packet: + type: object + properties: + sequence: + type: string + format: uint64 + description: >- + number corresponds to the order of sends and receives, + where a Packet - protocol buffer message. This string must contain at - least + with an earlier sequence number must be sent and received + before a Packet - one "/" character. The last segment of the URL's path - must represent + 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 - the fully qualified name of the type (as in + 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_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 + + 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 + title: MsgRecvPacket receives incoming IBC packet + tags: + - Msg + /ibc.core.channel.v1.Msg/Timeout: + post: + summary: Timeout defines a rpc handler method for MsgTimeout. + operationId: IbcCoreChannelV1Msg_Timeout + responses: + '200': + description: A successful response. + schema: + 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: MsgTimeoutResponse defines the Msg/Timeout response type. + 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 + 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 @@ -14780,218 +14168,157 @@ paths: "@type": "type.googleapis.com/google.protobuf.Duration", "value": "1.212s" } - tags: - - Query - /cosmos/gov/v1/params/{params_type}: - get: - summary: Params queries all parameters of the gov module. - operationId: CosmosGovV1Query_Params - responses: - '200': - description: A successful response. + parameters: + - name: body + in: body + required: true schema: type: object properties: - voting_params: - description: |- - Deprecated: Prefer to use `params` instead. - voting_params defines the parameters related to voting. - type: object - properties: - voting_period: - type: string - description: Duration of the voting period. - deposit_params: - description: |- - Deprecated: Prefer to use `params` instead. - deposit_params defines the parameters related to deposit. - type: object - properties: - min_deposit: - 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. - description: Minimum deposit for a proposal to enter voting period. - max_deposit_period: - type: string - description: >- - Maximum period for Atom holders to deposit on a proposal. - Initial value: 2 - - months. - tally_params: - description: |- - Deprecated: Prefer to use `params` instead. - tally_params defines the parameters related to tally. + packet: type: object properties: - quorum: - type: string - description: >- - Minimum percentage of total stake needed to vote for a - result to be - - considered valid. - threshold: - type: string - description: >- - Minimum proportion of Yes votes for proposal to pass. - Default value: 0.5. - veto_threshold: + sequence: type: string + format: uint64 description: >- - Minimum value of Veto votes to Total votes ratio for - proposal to be - - vetoed. Default value: 1/3. - params: - description: |- - params defines all the paramaters of x/gov module. - - Since: cosmos-sdk 0.47 - type: object - properties: - min_deposit: - 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 + number corresponds to the order of sends and receives, + where a Packet - signatures required by gogoproto. - description: Minimum deposit for a proposal to enter voting period. - max_deposit_period: - type: string - description: >- - Maximum period for Atom holders to deposit on a proposal. - Initial value: 2 + with an earlier sequence number must be sent and received + before a Packet - months. - voting_period: - type: string - description: Duration of the voting period. - quorum: + with a later sequence number. + source_port: type: string - description: >- - Minimum percentage of total stake needed to vote for a - result to be - considered valid. - threshold: + description: identifies the port on the sending chain. + source_channel: type: string - description: >- - Minimum proportion of Yes votes for proposal to pass. - Default value: 0.5. - veto_threshold: + description: identifies the channel end on the sending chain. + destination_port: type: string - description: >- - Minimum value of Veto votes to Total votes ratio for - proposal to be - vetoed. Default value: 1/3. - min_initial_deposit_ratio: + description: identifies the port on the receiving chain. + destination_channel: type: string - description: >- - The ratio representing the proportion of the deposit value - that must be paid at proposal submission. - proposal_cancel_ratio: + 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: >- - The cancel ratio which will not be returned back to the - depositors when a proposal is cancelled. + Normally the RevisionHeight is incremented at each height + while keeping + RevisionNumber the same. However some consensus algorithms + may choose to - Since: cosmos-sdk 0.50 - proposal_cancel_dest: - type: string - description: >- - The address which will receive (proposal_cancel_ratio * - deposit) proposal deposits. + reset the height in certain conditions e.g. hard forks, + state-machine - If empty, the (proposal_cancel_ratio * deposit) proposal - deposits will be burned. + breaking changes In these cases, the RevisionNumber is + incremented so that + height continues to be monitonically increasing even as + the RevisionHeight - Since: cosmos-sdk 0.50 - expedited_voting_period: + gets reset + timeout_timestamp: type: string - description: |- - Duration of the voting period of an expedited proposal. - - Since: cosmos-sdk 0.50 - expedited_threshold: + 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 - description: >- - Minimum proportion of Yes votes for proposal to pass. - Default value: 0.67. - - - Since: cosmos-sdk 0.50 - expedited_min_deposit: - type: array - items: - 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. - description: >- - Minimum expedited deposit for a proposal to enter voting - period. - burn_vote_quorum: - type: boolean - title: burn deposits if a proposal does not meet quorum - burn_proposal_deposit_prevote: - type: boolean - title: burn deposits if the proposal does not enter voting period - burn_vote_veto: - type: boolean - title: burn deposits if quorum with vote type no_veto is met - min_deposit_ratio: - type: string - description: >- - The ratio representing the proportion of the deposit value - minimum that must be met when making a deposit. + breaking changes In these cases, the RevisionNumber is + incremented so that - Default value: 0.01. Meaning that for a chain with a - min_deposit of 100stake, a deposit of 1stake would be + height continues to be monitonically increasing even as the + RevisionHeight - required. + gets reset + title: >- + Height is a monotonically increasing data type + that can be compared against another Height for the purposes + of updating and - Since: cosmos-sdk 0.50 + freezing clients + next_sequence_recv: + type: string + format: uint64 + signer: + type: string + title: MsgTimeout receives timed-out packet + tags: + - Msg + /ibc.core.channel.v1.Msg/TimeoutOnClose: + post: + summary: TimeoutOnClose defines a rpc handler method for MsgTimeoutOnClose. + operationId: IbcCoreChannelV1Msg_TimeoutOnClose + responses: + '200': + description: A successful response. + schema: + 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: >- - QueryParamsResponse is the response type for the Query/Params RPC - method. + MsgTimeoutOnCloseResponse defines the Msg/TimeoutOnClose response + type. default: description: An unexpected error response. schema: @@ -15184,355 +14511,148 @@ paths: "value": "1.212s" } parameters: - - name: params_type + - name: body description: >- - params_type defines which parameters to query for, can be one of - "voting", - - "tallying" or "deposit". - in: path + MsgTimeoutOnClose timed-out packet upon counterparty channel + closure. + in: body required: true - type: string - tags: - - Query - /cosmos/gov/v1/proposals: - get: - summary: Proposals queries all proposals based on given status. - operationId: CosmosGovV1Query_Proposals - responses: - '200': - description: A successful response. schema: type: object properties: - proposals: - type: array - items: - type: object - properties: - id: - type: string - format: uint64 - description: id defines the unique id of the proposal. - messages: - type: array - items: - 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. - - - 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)) { - ... - } + packet: + type: object + properties: + sequence: + type: string + format: uint64 + description: >- + number corresponds to the order of sends and receives, + where a Packet - Example 2: Pack and unpack a message in Java. + with an earlier sequence number must be sent and received + before a Packet - 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()); - } + 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 - Example 3: Pack and unpack a message in Python. + RevisionNumber the same. However some consensus algorithms + may choose to - foo = Foo(...) - any = Any() - any.Pack(foo) - ... - if any.Is(Foo.DESCRIPTOR): - any.Unpack(foo) - ... + reset the height in certain conditions e.g. hard forks, + state-machine - Example 4: Pack and unpack a message in Go + breaking changes In these cases, the RevisionNumber is + incremented so that - foo := &pb.Foo{...} - any, err := anypb.New(foo) - if err != nil { - ... - } - ... - foo := &pb.Foo{} - if err := any.UnmarshalTo(foo); err != nil { - ... - } + height continues to be monitonically increasing even as + the RevisionHeight - 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" - } - description: >- - messages are the arbitrary messages to be executed if - the proposal passes. - status: - description: status defines the proposal status. - type: string - enum: - - PROPOSAL_STATUS_UNSPECIFIED - - PROPOSAL_STATUS_DEPOSIT_PERIOD - - PROPOSAL_STATUS_VOTING_PERIOD - - PROPOSAL_STATUS_PASSED - - PROPOSAL_STATUS_REJECTED - - PROPOSAL_STATUS_FAILED - default: PROPOSAL_STATUS_UNSPECIFIED - final_tally_result: - description: >- - final_tally_result is the final tally result of the - proposal. When - - querying a proposal via gRPC, this field is not - populated until the + 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 - proposal's voting period has ended. - type: object - properties: - yes_count: - type: string - description: yes_count is the number of yes votes on a proposal. - abstain_count: - type: string - description: >- - abstain_count is the number of abstain votes on a - proposal. - no_count: - type: string - description: no_count is the number of no votes on a proposal. - no_with_veto_count: - type: string - description: >- - no_with_veto_count is the number of no with veto - votes on a proposal. - submit_time: - type: string - format: date-time - description: submit_time is the time of proposal submission. - deposit_end_time: - type: string - format: date-time - description: deposit_end_time is the end time for deposition. - total_deposit: - 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. - description: total_deposit is the total deposit on the proposal. - voting_start_time: - type: string - format: date-time - description: >- - voting_start_time is the starting time to vote on a - proposal. - voting_end_time: - type: string - format: date-time - description: voting_end_time is the end time of voting on a proposal. - metadata: - type: string - title: >- - metadata is any arbitrary metadata attached to the - proposal. + height continues to be monitonically increasing even as the + RevisionHeight - the recommended format of the metadata is to be found - here: + gets reset + title: >- + Height is a monotonically increasing data type - https://docs.cosmos.network/v0.47/modules/gov#proposal-3 - title: - type: string - description: 'Since: cosmos-sdk 0.47' - title: title is the title of the proposal - summary: - type: string - description: 'Since: cosmos-sdk 0.47' - title: summary is a short summary of the proposal - proposer: - type: string - description: 'Since: cosmos-sdk 0.47' - title: proposer is the address of the proposal sumbitter - expedited: - type: boolean - description: 'Since: cosmos-sdk 0.50' - title: expedited defines if the proposal is expedited - failed_reason: - type: string - description: 'Since: cosmos-sdk 0.50' - title: failed_reason defines the reason why the proposal failed - description: >- - Proposal defines the core field members of a governance - proposal. - description: proposals defines all the requested governance proposals. - pagination: - description: pagination defines the pagination in the response. - 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 + that can be compared against another Height for the purposes + of updating and - was set, its value is undefined otherwise + freezing clients + next_sequence_recv: + type: string + format: uint64 + signer: + type: string description: >- - QueryProposalsResponse is the response type for the - Query/Proposals RPC - - method. + MsgTimeoutOnClose timed-out packet upon counterparty channel + closure. + tags: + - Msg + /ibc.core.client.v1.Msg/CreateClient: + post: + summary: CreateClient defines a rpc handler method for MsgCreateClient. + operationId: IbcCoreClientV1Msg_CreateClient + responses: + '200': + description: A successful response. + schema: + type: object + description: >- + MsgCreateClientResponse defines the Msg/CreateClient response + type. default: description: An unexpected error response. schema: @@ -15725,411 +14845,277 @@ paths: "value": "1.212s" } parameters: - - name: proposal_status - description: |- - proposal_status defines the status of the proposals. - - - PROPOSAL_STATUS_UNSPECIFIED: PROPOSAL_STATUS_UNSPECIFIED defines the default proposal status. - - PROPOSAL_STATUS_DEPOSIT_PERIOD: PROPOSAL_STATUS_DEPOSIT_PERIOD defines a proposal status during the deposit - period. - - PROPOSAL_STATUS_VOTING_PERIOD: PROPOSAL_STATUS_VOTING_PERIOD defines a proposal status during the voting - period. - - PROPOSAL_STATUS_PASSED: PROPOSAL_STATUS_PASSED defines a proposal status of a proposal that has - passed. - - PROPOSAL_STATUS_REJECTED: PROPOSAL_STATUS_REJECTED defines a proposal status of a proposal that has - been rejected. - - PROPOSAL_STATUS_FAILED: PROPOSAL_STATUS_FAILED defines a proposal status of a proposal that has - failed. - in: query - required: false - type: string - enum: - - PROPOSAL_STATUS_UNSPECIFIED - - PROPOSAL_STATUS_DEPOSIT_PERIOD - - PROPOSAL_STATUS_VOTING_PERIOD - - PROPOSAL_STATUS_PASSED - - PROPOSAL_STATUS_REJECTED - - PROPOSAL_STATUS_FAILED - default: PROPOSAL_STATUS_UNSPECIFIED - - name: voter - description: voter defines the voter address for the proposals. - in: query - required: false - type: string - - name: depositor - description: depositor defines the deposit addresses from the proposals. - in: query - required: false - type: string - - 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 - /cosmos/gov/v1/proposals/{proposal_id}: - get: - summary: Proposal queries proposal details based on ProposalID. - operationId: CosmosGovV1Query_Proposal - responses: - '200': - description: A successful response. + - name: body + in: body + required: true schema: type: object properties: - proposal: - description: proposal is the requested governance proposal. + client_state: + title: light client state type: object properties: - id: + '@type': type: string - format: uint64 - description: id defines the unique id of the proposal. - messages: - type: array - items: - type: object - properties: - '@type': - type: string - description: >- - A URL/resource name that uniquely identifies the - type of the serialized + 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 - protocol buffer message. This string must contain at - least + `path/google.protobuf.Duration`). The name should be in a + canonical form - one "/" character. The last segment of the URL's - path must represent + (e.g., leading "." is not accepted). - the fully qualified name of the type (as in - `path/google.protobuf.Duration`). The name should be - in a canonical form + In practice, teams usually precompile into the binary all + types that they - (e.g., leading "." is not accepted). + 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 - In practice, teams usually precompile into the - binary all types that they + server that maps type URLs to message definitions as + follows: - 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 + * If no scheme is provided, `https` is assumed. - server that maps type URLs to message definitions as - follows: + * 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 - * If no scheme is provided, `https` is assumed. + protobuf release, and it is not used for type URLs + beginning with - * 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.) + type.googleapis.com. As of May 2023, there are no widely + used type server - Note: this functionality is not currently available - in the official + implementations and no plans to implement one. - 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 + Schemes other than `http`, `https` (or the empty scheme) + might be - implementations and no plans to implement one. + 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. - 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 + Protobuf library provides support to pack/unpack Any values in + the form - URL that describes the type of the serialized message. + of utility functions or additional generated methods of the + Any type. - Protobuf library provides support to pack/unpack Any - values in the form + Example 1: Pack and unpack a message in C++. - of utility functions or additional generated methods of - the Any type. + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } + Example 2: Pack and unpack a message in Java. - Example 1: Pack and unpack a message in C++. + 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()); + } - Foo foo = ...; - Any any; - any.PackFrom(foo); - ... - if (any.UnpackTo(&foo)) { - ... - } + Example 3: Pack and unpack a message in Python. - Example 2: Pack and unpack a message in Java. + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... - 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 - 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 { + ... + } - 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 - The pack methods provided by protobuf library will by - default use + 'type.googleapis.com/full.type.name' as the type URL and the + unpack - 'type.googleapis.com/full.type.name' as the type URL and - the unpack + methods only use the fully qualified type name after the last + '/' - 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 - in the type URL, for example "foo.bar.com/x/y.z" will - yield type + name "y.z". - name "y.z". + JSON - JSON + ==== - ==== + The JSON representation of an `Any` value uses the regular - The JSON representation of an `Any` value uses the - regular + representation of the deserialized, embedded message, with an - representation of the deserialized, embedded message, - with an + additional field `@type` which contains the type URL. Example: - additional field `@type` which contains the type URL. - Example: + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } - package google.profile; - message Person { - string first_name = 1; - string last_name = 2; - } + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } - { - "@type": "type.googleapis.com/google.profile.Person", - "firstName": , - "lastName": - } + If the embedded message type is well-known and has a custom + JSON - If the embedded message type is well-known and has a - custom JSON + representation, that representation will be embedded adding a + field - representation, that representation will be embedded - adding a field + `value` which holds the custom JSON in addition to the `@type` - `value` which holds the custom JSON in addition to the - `@type` + field. Example (for message [google.protobuf.Duration][]): - field. Example (for message - [google.protobuf.Duration][]): + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + consensus_state: + description: >- + consensus state associated with the client that corresponds to + a given - { - "@type": "type.googleapis.com/google.protobuf.Duration", - "value": "1.212s" - } - description: >- - messages are the arbitrary messages to be executed if the - proposal passes. - status: - description: status defines the proposal status. + height. + type: object + properties: + '@type': type: string - enum: - - PROPOSAL_STATUS_UNSPECIFIED - - PROPOSAL_STATUS_DEPOSIT_PERIOD - - PROPOSAL_STATUS_VOTING_PERIOD - - PROPOSAL_STATUS_PASSED - - PROPOSAL_STATUS_REJECTED - - PROPOSAL_STATUS_FAILED - default: PROPOSAL_STATUS_UNSPECIFIED - final_tally_result: description: >- - final_tally_result is the final tally result of the - proposal. When + A URL/resource name that uniquely identifies the type of + the serialized - querying a proposal via gRPC, this field is not populated - until the + protocol buffer message. This string must contain at least - proposal's voting period has ended. - type: object - properties: - yes_count: - type: string - description: yes_count is the number of yes votes on a proposal. - abstain_count: - type: string - description: >- - abstain_count is the number of abstain votes on a - proposal. - no_count: - type: string - description: no_count is the number of no votes on a proposal. - no_with_veto_count: - type: string - description: >- - no_with_veto_count is the number of no with veto votes - on a proposal. - submit_time: - type: string - format: date-time - description: submit_time is the time of proposal submission. - deposit_end_time: - type: string - format: date-time - description: deposit_end_time is the end time for deposition. - total_deposit: - 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 + the fully qualified name of the type (as in - NOTE: The amount field is an Int which implements the - custom method + `path/google.protobuf.Duration`). The name should be in a + canonical form - signatures required by gogoproto. - description: total_deposit is the total deposit on the proposal. - voting_start_time: - type: string - format: date-time - description: >- - voting_start_time is the starting time to vote on a - proposal. - voting_end_time: - type: string - format: date-time - description: voting_end_time is the end time of voting on a proposal. - metadata: - type: string - title: >- - metadata is any arbitrary metadata attached to the - proposal. + (e.g., leading "." is not accepted). - the recommended format of the metadata is to be found - here: - https://docs.cosmos.network/v0.47/modules/gov#proposal-3 - title: - type: string - description: 'Since: cosmos-sdk 0.47' - title: title is the title of the proposal - summary: - type: string - description: 'Since: cosmos-sdk 0.47' - title: summary is a short summary of the proposal - proposer: - type: string - description: 'Since: cosmos-sdk 0.47' - title: proposer is the address of the proposal sumbitter - expedited: - type: boolean - description: 'Since: cosmos-sdk 0.50' - title: expedited defines if the proposal is expedited - failed_reason: - type: string - description: 'Since: cosmos-sdk 0.50' - title: failed_reason defines the reason why the proposal failed + 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: {} + signer: + type: string + title: signer address + title: MsgCreateClient defines a message to create an IBC client + tags: + - Msg + /ibc.core.client.v1.Msg/IBCSoftwareUpgrade: + post: + summary: >- + IBCSoftwareUpgrade defines a rpc handler method for + MsgIBCSoftwareUpgrade. + operationId: IbcCoreClientV1Msg_IBCSoftwareUpgrade + responses: + '200': + description: A successful response. + schema: + type: object description: >- - QueryProposalResponse is the response type for the Query/Proposal - RPC method. + MsgIBCSoftwareUpgradeResponse defines the Msg/IBCSoftwareUpgrade + response type. default: description: An unexpected error response. schema: @@ -16322,387 +15308,241 @@ paths: "value": "1.212s" } parameters: - - name: proposal_id - description: proposal_id defines the unique id of the proposal. - in: path + - name: body + in: body required: true - type: string - format: uint64 - tags: - - Query - /cosmos/gov/v1/proposals/{proposal_id}/deposits: - get: - summary: Deposits queries all deposits of a single proposal. - operationId: CosmosGovV1Query_Deposits - responses: - '200': - description: A successful response. schema: type: object properties: - deposits: - type: array - items: - type: object - properties: - proposal_id: - type: string - format: uint64 - description: proposal_id defines the unique id of the proposal. - depositor: - type: string - description: >- - depositor defines the deposit addresses from the - proposals. - 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. - description: amount to be deposited by depositor. - description: >- - Deposit defines an amount deposited by an account address to - an active - - proposal. - description: deposits defines the requested deposits. - pagination: - description: pagination defines the pagination in the response. + plan: 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: + name: type: string - format: uint64 - title: >- - total is total number of results available if - PageRequest.count_total - - was set, its value is undefined otherwise - description: >- - QueryDepositsResponse is the response type for the Query/Deposits - 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 - description: >- - A URL/resource name that uniquely identifies the type of - the serialized - - protocol buffer message. This string must contain at - least + description: >- + Sets the name for the upgrade. This name will be used by + the upgraded - one "/" character. The last segment of the URL's path - must represent + version of the software to apply any special "on-upgrade" + commands during - the fully qualified name of the type (as in + the first BeginBlock method after the upgrade is applied. + It is also used - `path/google.protobuf.Duration`). The name should be in - a canonical form + to detect whether a software version can handle a given + upgrade. If no - (e.g., leading "." is not accepted). + 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 - In practice, teams usually precompile into the binary - all types that they + reached and the software will exit. + time: + type: string + format: date-time + description: >- + Deprecated: Time based upgrades have been deprecated. Time + based upgrade logic - expect it to use in the context of Any. However, for - URLs which use the + has been removed from the SDK. - scheme `http`, `https`, or no scheme, one can optionally - set up a type + 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 - server that maps type URLs to message definitions as - follows: + 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 no scheme is provided, `https` is assumed. + 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 - * 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.) + protocol buffer message. This string must contain at + least - Note: this functionality is not currently available in - the official + one "/" character. The last segment of the URL's path + must represent - protobuf release, and it is not used for type URLs - beginning with + the fully qualified name of the type (as in - type.googleapis.com. As of May 2023, there are no widely - used type server + `path/google.protobuf.Duration`). The name should be + in a canonical form - implementations and no plans to implement one. + (e.g., leading "." is not accepted). - Schemes other than `http`, `https` (or the empty scheme) - might be + In practice, teams usually precompile into the binary + all types that they - used with implementation specific semantics. - additionalProperties: {} - description: >- - `Any` contains an arbitrary serialized protocol buffer - message along with a + expect it to use in the context of Any. However, for + URLs which use the - URL that describes the type of the serialized message. + scheme `http`, `https`, or no scheme, one can + optionally set up a type + server that maps type URLs to message definitions as + follows: - Protobuf library provides support to pack/unpack Any values - in the form - of utility functions or additional generated methods of the - Any type. + * 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.) - Example 1: Pack and unpack a message in C++. + Note: this functionality is not currently available in + the official - Foo foo = ...; - Any any; - any.PackFrom(foo); - ... - if (any.UnpackTo(&foo)) { - ... - } + protobuf release, and it is not used for type URLs + beginning with - Example 2: Pack and unpack a message in Java. + type.googleapis.com. As of May 2023, there are no + widely used type server - 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()); - } + implementations and no plans to implement one. - Example 3: Pack and unpack a message in Python. - foo = Foo(...) - any = Any() - any.Pack(foo) - ... - if any.Is(Foo.DESCRIPTOR): - any.Unpack(foo) - ... + Schemes other than `http`, `https` (or the empty + scheme) might be - Example 4: Pack and unpack a message in Go + 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. - foo := &pb.Foo{...} - any, err := anypb.New(foo) - if err != nil { - ... - } - ... - foo := &pb.Foo{} - if err := any.UnmarshalTo(foo); err != nil { - ... - } + This will make the chain commit to the correct upgraded (self) + client state - The pack methods provided by protobuf library will by - default use + before the upgrade occurs, so that connecting chains can + verify that the - 'type.googleapis.com/full.type.name' as the type URL and the - unpack + new upgraded client is valid by verifying a proof on the + previous version - methods only use the fully qualified type name after the - last '/' + of the chain. This will allow IBC connections to persist + smoothly across - in the type URL, for example "foo.bar.com/x/y.z" will yield - type + planned chain upgrades. Correspondingly, the + UpgradedClientState field has been - name "y.z". + deprecated in the Cosmos SDK to allow for this logic to exist + solely in + the 02-client module. + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type of + the serialized - JSON + protocol buffer message. This string must contain at least - ==== + one "/" character. The last segment of the URL's path must + represent - The JSON representation of an `Any` value uses the regular + the fully qualified name of the type (as in - representation of the deserialized, embedded message, with - an + `path/google.protobuf.Duration`). The name should be in a + canonical form - additional field `@type` which contains the type URL. - Example: + (e.g., leading "." is not accepted). - package google.profile; - message Person { - string first_name = 1; - string last_name = 2; - } - { - "@type": "type.googleapis.com/google.profile.Person", - "firstName": , - "lastName": - } + In practice, teams usually precompile into the binary all + types that they - If the embedded message type is well-known and has a custom - JSON + expect it to use in the context of Any. However, for URLs + which use the - representation, that representation will be embedded adding - a field + scheme `http`, `https`, or no scheme, one can optionally + set up a type - `value` which holds the custom JSON in addition to the - `@type` + server that maps type URLs to message definitions as + follows: - field. Example (for message [google.protobuf.Duration][]): - { - "@type": "type.googleapis.com/google.protobuf.Duration", - "value": "1.212s" - } - parameters: - - name: proposal_id - description: proposal_id defines the unique id of the proposal. - in: path - required: true - type: string - format: uint64 - - 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. + * If no scheme is provided, `https` is assumed. - It is less efficient than using key. Only one of offset or key - should + * 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.) - 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. + Note: this functionality is not currently available in the + official - 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 + protobuf release, and it is not used for type URLs + beginning with - a count of the total number of items available for pagination in - UIs. + type.googleapis.com. As of May 2023, there are no widely + used type server - count_total is only respected when offset is used. It is ignored - when key + implementations and no plans to implement one. - 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. + Schemes other than `http`, `https` (or the empty scheme) + might be - Since: cosmos-sdk 0.43 - in: query - required: false - type: boolean + 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 tags: - - Query - /cosmos/gov/v1/proposals/{proposal_id}/deposits/{depositor}: - get: - summary: >- - Deposit queries single deposit information based on proposalID, - depositAddr. - operationId: CosmosGovV1Query_Deposit + - Msg + /ibc.core.client.v1.Msg/RecoverClient: + post: + summary: RecoverClient defines a rpc handler method for MsgRecoverClient. + operationId: IbcCoreClientV1Msg_RecoverClient responses: '200': description: A successful response. schema: type: object - properties: - deposit: - description: deposit defines the requested deposit. - type: object - properties: - proposal_id: - type: string - format: uint64 - description: proposal_id defines the unique id of the proposal. - depositor: - type: string - description: >- - depositor defines the deposit addresses from the - proposals. - 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. - description: amount to be deposited by depositor. description: >- - QueryDepositResponse is the response type for the Query/Deposit - RPC method. + MsgRecoverClientResponse defines the Msg/RecoverClient response + type. default: description: An unexpected error response. schema: @@ -16895,52 +15735,51 @@ paths: "value": "1.212s" } parameters: - - name: proposal_id - description: proposal_id defines the unique id of the proposal. - in: path - required: true - type: string - format: uint64 - - name: depositor - description: depositor defines the deposit addresses from the proposals. - in: path + - name: body + description: >- + MsgRecoverClient defines the message used to recover a frozen or + expired client. + in: body required: true - type: string + schema: + 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. tags: - - Query - /cosmos/gov/v1/proposals/{proposal_id}/tally: - get: - summary: TallyResult queries the tally of a proposal vote. - operationId: CosmosGovV1Query_TallyResult + - Msg + /ibc.core.client.v1.Msg/SubmitMisbehaviour: + post: + summary: >- + SubmitMisbehaviour defines a rpc handler method for + MsgSubmitMisbehaviour. + operationId: IbcCoreClientV1Msg_SubmitMisbehaviour responses: '200': description: A successful response. schema: type: object - properties: - tally: - description: tally defines the requested tally. - type: object - properties: - yes_count: - type: string - description: yes_count is the number of yes votes on a proposal. - abstain_count: - type: string - description: >- - abstain_count is the number of abstain votes on a - proposal. - no_count: - type: string - description: no_count is the number of no votes on a proposal. - no_with_veto_count: - type: string - description: >- - no_with_veto_count is the number of no with veto votes on - a proposal. description: >- - QueryTallyResultResponse is the response type for the Query/Tally - RPC method. + MsgSubmitMisbehaviourResponse defines the Msg/SubmitMisbehaviour + response + + type. default: description: An unexpected error response. schema: @@ -17133,98 +15972,222 @@ paths: "value": "1.212s" } parameters: - - name: proposal_id - description: proposal_id defines the unique id of the proposal. - in: path + - name: body + description: >- + MsgSubmitMisbehaviour defines an sdk.Msg type that submits Evidence + for + + light client misbehaviour. + + This message has been deprecated. Use MsgUpdateClient instead. + in: body required: true - type: string - format: uint64 - tags: - - Query - /cosmos/gov/v1/proposals/{proposal_id}/votes: - get: - summary: Votes queries votes of a given proposal. - operationId: CosmosGovV1Query_Votes - responses: - '200': - description: A successful response. schema: type: object properties: - votes: - type: array - items: - type: object - properties: - proposal_id: - type: string - format: uint64 - description: proposal_id defines the unique id of the proposal. - voter: - type: string - description: voter is the voter address of the proposal. - options: - type: array - items: - type: object - properties: - option: - description: >- - option defines the valid vote options, it must not - contain duplicate vote options. - type: string - enum: - - VOTE_OPTION_UNSPECIFIED - - VOTE_OPTION_YES - - VOTE_OPTION_ABSTAIN - - VOTE_OPTION_NO - - VOTE_OPTION_NO_WITH_VETO - default: VOTE_OPTION_UNSPECIFIED - weight: - type: string - description: >- - weight is the vote weight associated with the vote - option. - description: >- - WeightedVoteOption defines a unit of vote for vote - split. - description: options is the weighted vote options. - metadata: - type: string - title: >- - metadata is any arbitrary metadata attached to the vote. - - the recommended format of the metadata is to be found - here: - https://docs.cosmos.network/v0.47/modules/gov#vote-5 - description: >- - Vote defines a vote on a governance proposal. - - A Vote consists of a proposal ID, the voter, and the vote - option. - description: votes defines the queried votes. - pagination: - description: pagination defines the pagination in the response. + client_id: + type: string + title: client unique identifier + misbehaviour: + title: misbehaviour used for freezing the light client 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 + 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 + + 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" + } + signer: + type: string + title: signer address description: >- - QueryVotesResponse is the response type for the Query/Votes RPC - method. + MsgSubmitMisbehaviour defines an sdk.Msg type that submits + Evidence for + + light client misbehaviour. + + This message has been deprecated. Use MsgUpdateClient instead. + tags: + - Msg + /ibc.core.client.v1.Msg/UpdateClient: + post: + summary: UpdateClient defines a rpc handler method for MsgUpdateClient. + operationId: IbcCoreClientV1Msg_UpdateClient + responses: + '200': + description: A successful response. + schema: + type: object + description: >- + MsgUpdateClientResponse defines the Msg/UpdateClient response + type. default: description: An unexpected error response. schema: @@ -17417,127 +16380,216 @@ paths: "value": "1.212s" } parameters: - - name: proposal_id - description: proposal_id defines the unique id of the proposal. - in: path - required: true - type: string - format: uint64 - - 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 + - name: body description: >- - offset is a numeric offset that can be used when key is unavailable. + MsgUpdateClient defines an sdk.Msg to update a IBC client state + using - It is less efficient than using key. Only one of offset or key - should + the given client message. + in: body + required: true + schema: + 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': + type: string + description: >- + A URL/resource name that uniquely identifies the type of + the serialized - 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. + protocol buffer message. This string must contain at least - 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 + one "/" character. The last segment of the URL's path must + represent - a count of the total number of items available for pagination in - UIs. + the fully qualified name of the type (as in - count_total is only respected when offset is used. It is ignored - when key + `path/google.protobuf.Duration`). The name should be in a + canonical form - 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. + (e.g., leading "." is not accepted). - Since: cosmos-sdk 0.43 - in: query - required: false - type: boolean + 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 + + 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" + } + signer: + type: string + title: signer address + description: >- + MsgUpdateClient defines an sdk.Msg to update a IBC client state + using + + the given client message. tags: - - Query - /cosmos/gov/v1/proposals/{proposal_id}/votes/{voter}: - get: - summary: Vote queries voted information based on proposalID, voterAddr. - operationId: CosmosGovV1Query_Vote + - Msg + /ibc.core.client.v1.Msg/UpdateClientParams: + post: + summary: UpdateClientParams defines a rpc handler method for MsgUpdateParams. + operationId: IbcCoreClientV1Msg_UpdateClientParams responses: '200': description: A successful response. schema: type: object - properties: - vote: - description: vote defines the queried vote. - type: object - properties: - proposal_id: - type: string - format: uint64 - description: proposal_id defines the unique id of the proposal. - voter: - type: string - description: voter is the voter address of the proposal. - options: - type: array - items: - type: object - properties: - option: - description: >- - option defines the valid vote options, it must not - contain duplicate vote options. - type: string - enum: - - VOTE_OPTION_UNSPECIFIED - - VOTE_OPTION_YES - - VOTE_OPTION_ABSTAIN - - VOTE_OPTION_NO - - VOTE_OPTION_NO_WITH_VETO - default: VOTE_OPTION_UNSPECIFIED - weight: - type: string - description: >- - weight is the vote weight associated with the vote - option. - description: >- - WeightedVoteOption defines a unit of vote for vote - split. - description: options is the weighted vote options. - metadata: - type: string - title: >- - metadata is any arbitrary metadata attached to the vote. - - the recommended format of the metadata is to be found - here: https://docs.cosmos.network/v0.47/modules/gov#vote-5 - description: >- - QueryVoteResponse is the response type for the Query/Vote RPC - method. + description: MsgUpdateParamsResponse defines the MsgUpdateParams response type. default: description: An unexpected error response. schema: @@ -17730,29 +16782,55 @@ paths: "value": "1.212s" } parameters: - - name: proposal_id - description: proposal_id defines the unique id of the proposal. - in: path - required: true - type: string - format: uint64 - - name: voter - description: voter defines the voter address for the proposals. - in: path + - name: body + description: >- + MsgUpdateParams defines the sdk.Msg type to update the client + parameters. + in: body required: true - type: string + schema: + type: object + properties: + signer: + type: string + title: signer address + params: + description: |- + params defines the client parameters to update. + + 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 + + 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. tags: - - Query - /cosmos.gov.v1beta1.Msg/Deposit: + - Msg + /ibc.core.client.v1.Msg/UpgradeClient: post: - summary: Deposit defines a method to add deposit on a specific proposal. - operationId: CosmosGovV1Beta1Msg_Deposit + summary: UpgradeClient defines a rpc handler method for MsgUpgradeClient. + operationId: IbcCoreClientV1Msg_UpgradeClient responses: '200': description: A successful response. schema: type: object - description: MsgDepositResponse defines the Msg/Deposit response type. + description: >- + MsgUpgradeClientResponse defines the Msg/UpgradeClient response + type. default: description: An unexpected error response. schema: @@ -17946,266 +17024,196 @@ paths: } parameters: - name: body - description: >- - MsgDeposit defines a message to submit a deposit to an existing - proposal. in: body required: true schema: type: object properties: - proposal_id: - type: string - format: uint64 - description: proposal_id defines the unique id of the proposal. - depositor: - type: string - description: depositor defines the deposit addresses from the proposals. - 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. - description: amount to be deposited by depositor. - description: >- - MsgDeposit defines a message to submit a deposit to an existing - proposal. - tags: - - Msg - /cosmos.gov.v1beta1.Msg/SubmitProposal: - post: - summary: SubmitProposal defines a method to create new proposal given a content. - operationId: CosmosGovV1Beta1Msg_SubmitProposal - responses: - '200': - description: A successful response. - schema: - type: object - properties: - proposal_id: - type: string - format: uint64 - description: proposal_id defines the unique id of the proposal. - description: >- - MsgSubmitProposalResponse defines the Msg/SubmitProposal response - type. - default: - description: An unexpected error response. - schema: - type: object - properties: - code: - type: integer - format: int32 - message: + client_id: type: string - details: - type: array - items: - type: object - properties: - '@type': - type: string - description: >- - A URL/resource name that uniquely identifies the type of - the serialized + title: client unique identifier + client_state: + title: upgraded 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 + protocol buffer message. This string must contain at least - one "/" character. The last segment of the URL's path - must represent + one "/" character. The last segment of the URL's path must + represent - the fully qualified name of the type (as in + the fully qualified name of the type (as in - `path/google.protobuf.Duration`). The name should be in - a canonical form + `path/google.protobuf.Duration`). The name should be in a + canonical form - (e.g., leading "." is not accepted). + (e.g., leading "." is not accepted). - In practice, teams usually precompile into the binary - all types that they + 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 + 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 + scheme `http`, `https`, or no scheme, one can optionally + set up a type - server that maps type URLs to message definitions as - follows: + server that maps type URLs to message definitions as + follows: - * If no scheme is provided, `https` is assumed. + * 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.) + * 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 + Note: this functionality is not currently available in the + official - protobuf release, and it is not used for type URLs - beginning with + 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 + type.googleapis.com. As of May 2023, there are no widely + used type server - implementations and no plans to implement one. + implementations and no plans to implement one. - Schemes other than `http`, `https` (or the empty scheme) - might be + 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 + 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. + URL that describes the type of the serialized message. - Protobuf library provides support to pack/unpack Any values - in the form + Protobuf library provides support to pack/unpack Any values in + the form - of utility functions or additional generated methods of the - Any type. + of utility functions or additional generated methods of the + Any type. - Example 1: Pack and unpack a message in C++. + Example 1: Pack and unpack a message in C++. - Foo foo = ...; - Any any; - any.PackFrom(foo); + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { ... - if (any.UnpackTo(&foo)) { - ... - } + } - Example 2: Pack and unpack a message in Java. + 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()); - } + 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. + Example 3: Pack and unpack a message in Python. - foo = Foo(...) - any = Any() - any.Pack(foo) + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) ... - if any.Is(Foo.DESCRIPTOR): - any.Unpack(foo) - ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go - foo := &pb.Foo{...} - any, err := anypb.New(foo) - if err != nil { - ... - } + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { ... - foo := &pb.Foo{} - if err := any.UnmarshalTo(foo); err != nil { - ... - } + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } - The pack methods provided by protobuf library will by - default use + The pack methods provided by protobuf library will by default + use - 'type.googleapis.com/full.type.name' as the type URL and the - unpack + 'type.googleapis.com/full.type.name' as the type URL and the + unpack - methods only use the fully qualified type name after the - last '/' + 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 + in the type URL, for example "foo.bar.com/x/y.z" will yield + type - name "y.z". + name "y.z". - JSON + JSON - ==== + ==== - The JSON representation of an `Any` value uses the regular + The JSON representation of an `Any` value uses the regular - representation of the deserialized, embedded message, with - an + representation of the deserialized, embedded message, with an - additional field `@type` which contains the type URL. - Example: + additional field `@type` which contains the type URL. Example: - package google.profile; - message Person { - string first_name = 1; - string last_name = 2; - } + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } - { - "@type": "type.googleapis.com/google.profile.Person", - "firstName": , - "lastName": - } + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } - If the embedded message type is well-known and has a custom - JSON + If the embedded message type is well-known and has a custom + JSON - representation, that representation will be embedded adding - a field + representation, that representation will be embedded adding a + field - `value` which holds the custom JSON in addition to the - `@type` + `value` which holds the custom JSON in addition to the `@type` - field. Example (for message [google.protobuf.Duration][]): + field. Example (for message [google.protobuf.Duration][]): - { - "@type": "type.googleapis.com/google.protobuf.Duration", - "value": "1.212s" - } - parameters: - - name: body - description: >- - MsgSubmitProposal defines an sdk.Msg type that supports submitting - arbitrary + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + consensus_state: + title: >- + upgraded consensus state, only contains enough information to + serve as a - proposal Content. - in: body - required: true - schema: - type: object - properties: - content: - description: content is the proposal's content. + basis of trust in update logic type: object properties: '@type': @@ -18269,46 +17277,147 @@ paths: used with implementation specific semantics. additionalProperties: {} - initial_deposit: - type: array - items: - type: object - properties: - denom: - type: string - amount: - type: string - description: >- - Coin defines a token with a denomination and an amount. + description: >- + `Any` contains an arbitrary serialized protocol buffer message + along with a + URL that describes the type of the serialized message. - NOTE: The amount field is an Int which implements the custom - method - signatures required by gogoproto. - description: >- - initial_deposit is the deposit value that must be paid at - proposal submission. - proposer: + 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" + } + proof_upgrade_client: type: string - description: proposer is the account address of the proposer. - description: >- - MsgSubmitProposal defines an sdk.Msg type that supports submitting - arbitrary + 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 - proposal Content. + state tags: - Msg - /cosmos.gov.v1beta1.Msg/Vote: + /ibc.core.connection.v1.Msg/ConnectionOpenAck: post: - summary: Vote defines a method to add a vote on a specific proposal. - operationId: CosmosGovV1Beta1Msg_Vote + summary: ConnectionOpenAck defines a rpc handler method for MsgConnectionOpenAck. + operationId: IbcCoreConnectionV1Msg_ConnectionOpenAck responses: '200': description: A successful response. schema: type: object - description: MsgVoteResponse defines the Msg/Vote response type. + description: >- + MsgConnectionOpenAckResponse defines the Msg/ConnectionOpenAck + response type. default: description: An unexpected error response. schema: @@ -18502,50 +17611,324 @@ paths: } parameters: - name: body - description: MsgVote defines a message to cast a vote. + description: |- + MsgConnectionOpenAck defines a msg sent by a Relayer to Chain A to + acknowledge the change of connection state to TRYOPEN on Chain B. in: body required: true schema: type: object properties: - proposal_id: - type: string - format: uint64 - description: proposal_id defines the unique id of the proposal. - voter: + connection_id: type: string - description: voter is the voter address for the proposal. - option: - description: option defines the vote option. + counterparty_connection_id: type: string - enum: - - VOTE_OPTION_UNSPECIFIED - - VOTE_OPTION_YES - - VOTE_OPTION_ABSTAIN - - VOTE_OPTION_NO - - VOTE_OPTION_NO_WITH_VETO - default: VOTE_OPTION_UNSPECIFIED - description: MsgVote defines a message to cast a vote. - tags: - - Msg - /cosmos.gov.v1beta1.Msg/VoteWeighted: - post: - summary: >- - VoteWeighted defines a method to add a weighted vote on a specific - proposal. - description: 'Since: cosmos-sdk 0.43' - operationId: CosmosGovV1Beta1Msg_VoteWeighted + 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: + 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. + + + 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" + } + 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 + description: |- + MsgConnectionOpenAck defines a msg sent by a Relayer to Chain A to + acknowledge the change of connection state to TRYOPEN on Chain B. + tags: + - Msg + /ibc.core.connection.v1.Msg/ConnectionOpenConfirm: + post: + summary: |- + ConnectionOpenConfirm defines a rpc handler method for + MsgConnectionOpenConfirm. + operationId: IbcCoreConnectionV1Msg_ConnectionOpenConfirm responses: '200': description: A successful response. schema: type: object description: >- - MsgVoteWeightedResponse defines the Msg/VoteWeighted response - type. - + MsgConnectionOpenConfirmResponse defines the + Msg/ConnectionOpenConfirm - Since: cosmos-sdk 0.43 + response type. default: description: An unexpected error response. schema: @@ -18739,130 +18122,84 @@ paths: } parameters: - name: body - description: |- - MsgVoteWeighted defines a message to cast a vote. + description: >- + MsgConnectionOpenConfirm defines a msg sent by a Relayer to Chain B + to - Since: cosmos-sdk 0.43 + acknowledge the change of connection state to OPEN on Chain A. in: body required: true schema: type: object properties: - proposal_id: + connection_id: type: string - format: uint64 - description: proposal_id defines the unique id of the proposal. - voter: + proof_ack: type: string - description: voter is the voter address for the proposal. - options: - type: array - items: - type: object - properties: - option: - description: >- - option defines the valid vote options, it must not - contain duplicate vote options. - type: string - enum: - - VOTE_OPTION_UNSPECIFIED - - VOTE_OPTION_YES - - VOTE_OPTION_ABSTAIN - - VOTE_OPTION_NO - - VOTE_OPTION_NO_WITH_VETO - default: VOTE_OPTION_UNSPECIFIED - weight: - type: string - description: >- - weight is the vote weight associated with the vote - option. - description: |- - WeightedVoteOption defines a unit of vote for vote split. - - Since: cosmos-sdk 0.43 - description: options defines the weighted vote options. - description: |- - MsgVoteWeighted defines a message to cast a vote. - - Since: cosmos-sdk 0.43 - tags: - - Msg - /cosmos/gov/v1beta1/params/{params_type}: - get: - summary: Params queries all parameters of the gov module. - operationId: CosmosGovV1Beta1Query_Params - responses: - '200': - description: A successful response. - schema: - type: object - properties: - voting_params: - description: voting_params defines the parameters related to voting. + format: byte + title: >- + proof for the change of the connection state on Chain A: `INIT + -> OPEN` + proof_height: type: object properties: - voting_period: + revision_number: type: string - description: Duration of the voting period. - deposit_params: - description: deposit_params defines the parameters related to deposit. - type: object - properties: - min_deposit: - type: array - items: - 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. - description: Minimum deposit for a proposal to enter voting period. - max_deposit_period: - type: string - description: >- - Maximum period for Atom holders to deposit on a proposal. - Initial value: 2 + breaking changes In these cases, the RevisionNumber is + incremented so that - months. - tally_params: - description: tally_params defines the parameters related to tally. - type: object - properties: - quorum: - type: string - format: byte - description: >- - Minimum percentage of total stake needed to vote for a - result to be + height continues to be monitonically increasing even as the + RevisionHeight - considered valid. - threshold: - type: string - format: byte - description: >- - Minimum proportion of Yes votes for proposal to pass. - Default value: 0.5. - veto_threshold: - type: string - format: byte - description: >- - Minimum value of Veto votes to Total votes ratio for - proposal to be + gets reset + title: >- + Height is a monotonically increasing data type + + that can be compared against another Height for the purposes + of updating and - vetoed. Default value: 1/3. + freezing clients + signer: + type: string description: >- - QueryParamsResponse is the response type for the Query/Params RPC - method. + MsgConnectionOpenConfirm defines a msg sent by a Relayer to Chain + B to + + acknowledge the change of connection state to OPEN on Chain A. + tags: + - Msg + /ibc.core.connection.v1.Msg/ConnectionOpenInit: + post: + summary: >- + ConnectionOpenInit defines a rpc handler method for + MsgConnectionOpenInit. + operationId: IbcCoreConnectionV1Msg_ConnectionOpenInit + responses: + '200': + description: A successful response. + schema: + type: object + description: >- + MsgConnectionOpenInitResponse defines the Msg/ConnectionOpenInit + response + + type. default: description: An unexpected error response. schema: @@ -19055,205 +18392,93 @@ paths: "value": "1.212s" } parameters: - - name: params_type + - name: body description: >- - params_type defines which parameters to query for, can be one of - "voting", + MsgConnectionOpenInit defines the msg sent by an account on Chain A + to - "tallying" or "deposit". - in: path + initialize a connection with Chain B. + in: body required: true - type: string - tags: - - Query - /cosmos/gov/v1beta1/proposals: - get: - summary: Proposals queries all proposals based on given status. - operationId: CosmosGovV1Beta1Query_Proposals - responses: - '200': - description: A successful response. schema: type: object properties: - proposals: - type: array - items: - type: object - properties: - proposal_id: - type: string - format: uint64 - description: proposal_id defines the unique id of the proposal. - content: - description: content is the proposal's content. - 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 + client_id: + type: string + counterparty: + type: object + properties: + client_id: + type: string + description: >- + identifies the client on the counterparty chain associated + with a given - one "/" character. The last segment of the URL's - path must represent + connection. + connection_id: + type: string + description: >- + identifies the connection end on the counterparty chain + associated with a - the fully qualified name of the type (as in + 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. - `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: {} - status: - description: status defines the proposal status. - type: string - enum: - - PROPOSAL_STATUS_UNSPECIFIED - - PROPOSAL_STATUS_DEPOSIT_PERIOD - - PROPOSAL_STATUS_VOTING_PERIOD - - PROPOSAL_STATUS_PASSED - - PROPOSAL_STATUS_REJECTED - - PROPOSAL_STATUS_FAILED - default: PROPOSAL_STATUS_UNSPECIFIED - final_tally_result: - description: >- - final_tally_result is the final tally result of the - proposal. When - - querying a proposal via gRPC, this field is not - populated until the - - proposal's voting period has ended. - type: object - properties: - 'yes': - type: string - description: yes is the number of yes votes on a proposal. - abstain: - type: string - description: >- - abstain is the number of abstain votes on a - proposal. - 'no': - type: string - description: no is the number of no votes on a proposal. - no_with_veto: - type: string - description: >- - no_with_veto is the number of no with veto votes on - a proposal. - submit_time: - type: string - format: date-time - description: submit_time is the time of proposal submission. - deposit_end_time: - type: string - format: date-time - description: deposit_end_time is the end time for deposition. - total_deposit: - 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 + The constructed key from the Path and the key will be + append(Path.KeyPath, - signatures required by gogoproto. - description: total_deposit is the total deposit on the proposal. - voting_start_time: - type: string - format: date-time - description: >- - voting_start_time is the starting time to vote on a - proposal. - voting_end_time: - type: string - format: date-time - description: voting_end_time is the end time of voting on a proposal. - description: >- - Proposal defines the core field members of a governance - proposal. - description: proposals defines all the requested governance proposals. - pagination: - description: pagination defines the pagination in the response. + append(Path.KeyPrefix, key...)) + description: >- + Counterparty defines the counterparty chain associated with a + connection end. + version: 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 + 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 - was set, its value is undefined otherwise + the connection handshake. + delay_period: + type: string + format: uint64 + signer: + type: string description: >- - QueryProposalsResponse is the response type for the - Query/Proposals RPC + MsgConnectionOpenInit defines the msg sent by an account on Chain + A to - method. + initialize a connection with Chain B. + tags: + - Msg + /ibc.core.connection.v1.Msg/ConnectionOpenTry: + post: + summary: ConnectionOpenTry defines a rpc handler method for MsgConnectionOpenTry. + operationId: IbcCoreConnectionV1Msg_ConnectionOpenTry + responses: + '200': + description: A successful response. + schema: + type: object + description: >- + MsgConnectionOpenTryResponse defines the Msg/ConnectionOpenTry + response type. default: description: An unexpected error response. schema: @@ -19446,532 +18671,369 @@ paths: "value": "1.212s" } parameters: - - name: proposal_status - description: |- - proposal_status defines the status of the proposals. - - - PROPOSAL_STATUS_UNSPECIFIED: PROPOSAL_STATUS_UNSPECIFIED defines the default proposal status. - - PROPOSAL_STATUS_DEPOSIT_PERIOD: PROPOSAL_STATUS_DEPOSIT_PERIOD defines a proposal status during the deposit - period. - - PROPOSAL_STATUS_VOTING_PERIOD: PROPOSAL_STATUS_VOTING_PERIOD defines a proposal status during the voting - period. - - PROPOSAL_STATUS_PASSED: PROPOSAL_STATUS_PASSED defines a proposal status of a proposal that has - passed. - - PROPOSAL_STATUS_REJECTED: PROPOSAL_STATUS_REJECTED defines a proposal status of a proposal that has - been rejected. - - PROPOSAL_STATUS_FAILED: PROPOSAL_STATUS_FAILED defines a proposal status of a proposal that has - failed. - in: query - required: false - type: string - enum: - - PROPOSAL_STATUS_UNSPECIFIED - - PROPOSAL_STATUS_DEPOSIT_PERIOD - - PROPOSAL_STATUS_VOTING_PERIOD - - PROPOSAL_STATUS_PASSED - - PROPOSAL_STATUS_REJECTED - - PROPOSAL_STATUS_FAILED - default: PROPOSAL_STATUS_UNSPECIFIED - - name: voter - description: voter defines the voter address for the proposals. - in: query - required: false - type: string - - name: depositor - description: depositor defines the deposit addresses from the proposals. - in: query - required: false - type: string - - 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 + - name: body description: >- - reverse is set to true if results are to be returned in the - descending order. - + MsgConnectionOpenTry defines a msg sent by a Relayer to try to open + a - Since: cosmos-sdk 0.43 - in: query - required: false - type: boolean - tags: - - Query - /cosmos/gov/v1beta1/proposals/{proposal_id}: - get: - summary: Proposal queries proposal details based on ProposalID. - operationId: CosmosGovV1Beta1Query_Proposal - responses: - '200': - description: A successful response. + connection on Chain B. + in: body + required: true schema: type: object properties: - proposal: + client_id: + type: string + previous_connection_id: + type: string + description: >- + Deprecated: this field is unused. Crossing hellos are no + longer supported in core IBC. + client_state: type: object properties: - proposal_id: + '@type': type: string - format: uint64 - description: proposal_id defines the unique id of the proposal. - content: - description: content is the proposal's content. - 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 + description: >- + A URL/resource name that uniquely identifies the type of + the serialized - one "/" character. The last segment of the URL's path - must represent + protocol buffer message. This string must contain at least - the fully qualified name of the type (as in + one "/" character. The last segment of the URL's path must + represent - `path/google.protobuf.Duration`). The name should be - in a canonical form + the fully qualified name of the type (as in - (e.g., leading "." is not accepted). + `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 + In practice, teams usually precompile into the binary all + types that they - scheme `http`, `https`, or no scheme, one can - optionally set up a type + expect it to use in the context of Any. However, for URLs + which use the - server that maps type URLs to message definitions as - follows: + 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.) + * If no scheme is provided, `https` is assumed. - Note: this functionality is not currently available in - the official + * 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.) - protobuf release, and it is not used for type URLs - beginning with + Note: this functionality is not currently available in the + official - type.googleapis.com. As of May 2023, there are no - widely used type server + protobuf release, and it is not used for type URLs + beginning with - implementations and no plans to implement one. + 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: {} - status: - description: status defines the proposal status. - type: string - enum: - - PROPOSAL_STATUS_UNSPECIFIED - - PROPOSAL_STATUS_DEPOSIT_PERIOD - - PROPOSAL_STATUS_VOTING_PERIOD - - PROPOSAL_STATUS_PASSED - - PROPOSAL_STATUS_REJECTED - - PROPOSAL_STATUS_FAILED - default: PROPOSAL_STATUS_UNSPECIFIED - final_tally_result: - description: >- - final_tally_result is the final tally result of the - proposal. When + Schemes other than `http`, `https` (or the empty scheme) + might be - querying a proposal via gRPC, this field is not populated - until the + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer message + along with a - proposal's voting period has ended. - type: object - properties: - 'yes': - type: string - description: yes is the number of yes votes on a proposal. - abstain: - type: string - description: abstain is the number of abstain votes on a proposal. - 'no': - type: string - description: no is the number of no votes on a proposal. - no_with_veto: - type: string - description: >- - no_with_veto is the number of no with veto votes on a - proposal. - submit_time: - type: string - format: date-time - description: submit_time is the time of proposal submission. - deposit_end_time: - type: string - format: date-time - description: deposit_end_time is the end time for deposition. - total_deposit: - type: array - items: - type: object - properties: - denom: - type: string - amount: - type: string - description: >- - Coin defines a token with a denomination and an amount. + URL that describes the type of the serialized message. - NOTE: The amount field is an Int which implements the - custom method + Protobuf library provides support to pack/unpack Any values in + the form - signatures required by gogoproto. - description: total_deposit is the total deposit on the proposal. - voting_start_time: - type: string - format: date-time - description: >- - voting_start_time is the starting time to vote on a - proposal. - voting_end_time: - type: string - format: date-time - description: voting_end_time is the end time of voting on a proposal. - description: >- - Proposal defines the core field members of a governance - proposal. - description: >- - QueryProposalResponse is the response type for the Query/Proposal - 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 - description: >- - A URL/resource name that uniquely identifies the type of - the serialized + of utility functions or additional generated methods of the + Any type. - protocol buffer message. This string must contain at - least - one "/" character. The last segment of the URL's path - must represent + Example 1: Pack and unpack a message in C++. - the fully qualified name of the type (as in + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } - `path/google.protobuf.Duration`). The name should be in - a canonical form + Example 2: Pack and unpack a message in Java. - (e.g., leading "." is not accepted). + 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. - In practice, teams usually precompile into the binary - all types that they + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... - expect it to use in the context of Any. However, for - URLs which use the + Example 4: Pack and unpack a message in Go - scheme `http`, `https`, or no scheme, one can optionally - set up a type + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } - server that maps type URLs to message definitions as - follows: + The pack methods provided by protobuf library will by default + use + 'type.googleapis.com/full.type.name' as the type URL and the + unpack - * If no scheme is provided, `https` is assumed. + methods only use the fully qualified type name after the last + '/' - * 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.) + in the type URL, for example "foo.bar.com/x/y.z" will yield + type - Note: this functionality is not currently available in - the official + name "y.z". - 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 + JSON - implementations and no plans to implement one. + ==== + The JSON representation of an `Any` value uses the regular - Schemes other than `http`, `https` (or the empty scheme) - might be + representation of the deserialized, embedded message, with an - used with implementation specific semantics. - additionalProperties: {} - description: >- - `Any` contains an arbitrary serialized protocol buffer - message along with a + additional field `@type` which contains the type URL. Example: - URL that describes the type of the serialized message. + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } - Protobuf library provides support to pack/unpack Any values - in the form + If the embedded message type is well-known and has a custom + JSON - of utility functions or additional generated methods of the - Any type. + representation, that representation will be embedded adding a + field + `value` which holds the custom JSON in addition to the `@type` - Example 1: Pack and unpack a message in C++. + field. Example (for message [google.protobuf.Duration][]): - Foo foo = ...; - Any any; - any.PackFrom(foo); - ... - if (any.UnpackTo(&foo)) { - ... - } + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + counterparty: + type: object + properties: + client_id: + type: string + description: >- + identifies the client on the counterparty chain associated + with a given - Example 2: Pack and unpack a message in Java. + connection. + connection_id: + type: string + description: >- + identifies the connection end on the counterparty chain + associated with a - 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()); - } + 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. - Example 3: Pack and unpack a message in Python. + The constructed key from the Path and the key will be + append(Path.KeyPath, - 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 + 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 - 'type.googleapis.com/full.type.name' as the type URL and the - unpack + 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 - methods only use the fully qualified type name after the - last '/' + RevisionNumber the same. However some consensus algorithms may + choose to - in the type URL, for example "foo.bar.com/x/y.z" will yield - type + reset the height in certain conditions e.g. hard forks, + state-machine - name "y.z". + breaking changes In these cases, the RevisionNumber is + incremented so that + height continues to be monitonically increasing even as the + RevisionHeight - JSON + gets reset + title: >- + Height is a monotonically increasing data type - ==== + that can be compared against another Height for the purposes + of updating and - The JSON representation of an `Any` value uses the regular + freezing clients + proof_init: + type: string + format: byte + title: >- + proof of the initialization the connection on Chain A: + `UNITIALIZED -> - representation of the deserialized, embedded message, with - an + 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 - additional field `@type` which contains the type URL. - Example: + RevisionNumber the same. However some consensus algorithms may + choose to - package google.profile; - message Person { - string first_name = 1; - string last_name = 2; - } + reset the height in certain conditions e.g. hard forks, + state-machine - { - "@type": "type.googleapis.com/google.profile.Person", - "firstName": , - "lastName": - } + breaking changes In these cases, the RevisionNumber is + incremented so that - If the embedded message type is well-known and has a custom - JSON + height continues to be monitonically increasing even as the + RevisionHeight - representation, that representation will be embedded adding - a field + gets reset + title: >- + Height is a monotonically increasing data type - `value` which holds the custom JSON in addition to the - `@type` + that can be compared against another Height for the purposes + of updating and - field. Example (for message [google.protobuf.Duration][]): + 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 - { - "@type": "type.googleapis.com/google.protobuf.Duration", - "value": "1.212s" - } - parameters: - - name: proposal_id - description: proposal_id defines the unique id of the proposal. - in: path - required: true - type: string - format: uint64 + connection on Chain B. tags: - - Query - /cosmos/gov/v1beta1/proposals/{proposal_id}/deposits: - get: - summary: Deposits queries all deposits of a single proposal. - operationId: CosmosGovV1Beta1Query_Deposits + - Msg + /ibc.core.connection.v1.Msg/UpdateConnectionParams: + post: + summary: |- + UpdateConnectionParams defines a rpc handler method for + MsgUpdateParams. + operationId: IbcCoreConnectionV1Msg_UpdateConnectionParams responses: '200': description: A successful response. schema: type: object - properties: - deposits: - type: array - items: - type: object - properties: - proposal_id: - type: string - format: uint64 - description: proposal_id defines the unique id of the proposal. - depositor: - type: string - description: >- - depositor defines the deposit addresses from the - proposals. - 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. - description: amount to be deposited by depositor. - description: >- - Deposit defines an amount deposited by an account address to - an active - - proposal. - description: deposits defines the requested deposits. - pagination: - description: pagination defines the pagination in the response. - 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: >- - QueryDepositsResponse is the response type for the Query/Deposits - RPC method. + description: MsgUpdateParamsResponse defines the MsgUpdateParams response type. default: description: An unexpected error response. schema: @@ -20164,12 +19226,253 @@ paths: "value": "1.212s" } parameters: - - name: proposal_id - description: proposal_id defines the unique id of the proposal. - in: path + - name: body + description: >- + MsgUpdateParams defines the sdk.Msg type to update the connection + parameters. + in: body required: true + schema: + type: object + properties: + signer: + type: string + 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. + tags: + - Msg + /mycel/epochs/v1/current_epoch: + get: + summary: CurrentEpoch provide current epoch of specified identifier + operationId: MycelEpochsV1Query_CurrentEpoch + responses: + '200': + description: A successful response. + schema: + type: object + properties: + 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 + 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: identifier + in: query + required: false type: string - format: uint64 + tags: + - Query + /mycel/epochs/v1/epochs: + get: + summary: EpochInfos provide running epochInfos + operationId: MycelEpochsV1Query_EpochInfos + responses: + '200': + description: A successful response. + schema: + type: object + properties: + epochs: + type: array + items: + 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 + 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/furnace/v1/burn_amount: + get: + operationId: MycelFurnaceV1Query_BurnAmountAll + 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: + 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 @@ -20228,288 +19531,110 @@ paths: type: boolean tags: - Query - /cosmos/gov/v1beta1/proposals/{proposal_id}/deposits/{depositor}: + /mycel/furnace/v1/burn_amount/{index}: get: - summary: >- - Deposit queries single deposit information based on proposalID, - depositor address. - operationId: CosmosGovV1Beta1Query_Deposit + summary: Queries a list of BurnAmount items. + operationId: MycelFurnaceV1Query_BurnAmount responses: '200': description: A successful response. schema: type: object properties: - deposit: - description: deposit defines the requested deposit. + burn_amount: type: object properties: - proposal_id: + index: + type: string + format: uint64 + burn_started: + type: boolean + total_epochs: type: string format: uint64 - description: proposal_id defines the unique id of the proposal. - depositor: + current_epoch: type: string + format: uint64 + total_burn_amount: + type: object + properties: + denom: + type: string + amount: + type: string description: >- - depositor defines the deposit addresses from the - proposals. - amount: - type: array - items: - type: object - properties: - denom: - type: string - amount: - type: string - description: >- - Coin defines a token with a denomination and an amount. + Coin defines a token with a denomination and an amount. - NOTE: The amount field is an Int which implements the - custom method + NOTE: The amount field is an Int which implements the + custom method - signatures required by gogoproto. - description: amount to be deposited by depositor. - description: >- - QueryDepositResponse is the response type for the Query/Deposit - 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 - 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. + 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. - Schemes other than `http`, `https` (or the empty scheme) - might be + NOTE: The amount field is an Int which implements the + custom method - used with implementation specific semantics. + 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: {} - 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" - } parameters: - - name: proposal_id - description: proposal_id defines the unique id of the proposal. + - name: index in: path required: true type: string format: uint64 - - name: depositor - description: depositor defines the deposit addresses from the proposals. - in: path - required: true - type: string tags: - Query - /cosmos/gov/v1beta1/proposals/{proposal_id}/tally: + /mycel/furnace/v1/epoch_burn_config: get: - summary: TallyResult queries the tally of a proposal vote. - operationId: CosmosGovV1Beta1Query_TallyResult + summary: Queries a EpochBurnConfig by index. + operationId: MycelFurnaceV1Query_EpochBurnConfig responses: '200': description: A successful response. schema: type: object properties: - tally: - description: tally defines the requested tally. + epoch_burn_config: type: object properties: - 'yes': + epoch_identifier: type: string - description: yes is the number of yes votes on a proposal. - abstain: + current_burn_amount_index: type: string - description: abstain is the number of abstain votes on a proposal. - 'no': + format: uint64 + default_total_epochs: type: string - description: no is the number of no votes on a proposal. - no_with_veto: + format: uint64 + start_time: type: string - description: >- - no_with_veto is the number of no with veto votes on a - proposal. - description: >- - QueryTallyResultResponse is the response type for the Query/Tally - RPC method. + format: date-time default: description: An unexpected error response. schema: @@ -20527,269 +19652,71 @@ paths: 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. - - - 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" - } - parameters: - - name: proposal_id - description: proposal_id defines the unique id of the proposal. - in: path - required: true - type: string - format: uint64 tags: - Query - /cosmos/gov/v1beta1/proposals/{proposal_id}/votes: + /mycel/furnace/v1/params: get: - summary: Votes queries votes of a given proposal. - operationId: CosmosGovV1Beta1Query_Votes + summary: Parameters queries the parameters of the module. + operationId: MycelFurnaceV1Query_Params responses: '200': description: A successful response. schema: type: object properties: - votes: + params: + description: params holds all the parameters of this module. + type: object + 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: - proposal_id: - type: string - format: uint64 - description: proposal_id defines the unique id of the proposal. - voter: + '@type': type: string - description: voter is the voter address of the proposal. - option: - description: >- - Deprecated: Prefer to use `options` instead. This field - is set in queries - - if and only if `len(options) == 1` and that option has - weight 1. In all - - other cases, this field will default to - VOTE_OPTION_UNSPECIFIED. + additionalProperties: {} + tags: + - Query + /mycel/registry/v1/domain_ownership: + get: + operationId: MycelRegistryV1Query_DomainOwnershipAll + responses: + '200': + description: A successful response. + schema: + type: object + properties: + domain_ownership: + type: array + items: + type: object + properties: + owner: type: string - enum: - - VOTE_OPTION_UNSPECIFIED - - VOTE_OPTION_YES - - VOTE_OPTION_ABSTAIN - - VOTE_OPTION_NO - - VOTE_OPTION_NO_WITH_VETO - default: VOTE_OPTION_UNSPECIFIED - options: + domains: type: array items: type: object properties: - option: - description: >- - option defines the valid vote options, it must not - contain duplicate vote options. + name: type: string - enum: - - VOTE_OPTION_UNSPECIFIED - - VOTE_OPTION_YES - - VOTE_OPTION_ABSTAIN - - VOTE_OPTION_NO - - VOTE_OPTION_NO_WITH_VETO - default: VOTE_OPTION_UNSPECIFIED - weight: + parent: type: string - description: >- - weight is the vote weight associated with the vote - option. - description: >- - WeightedVoteOption defines a unit of vote for vote - split. - - - Since: cosmos-sdk 0.43 - description: |- - options is the weighted vote options. - - Since: cosmos-sdk 0.43 - description: >- - Vote defines a vote on a governance proposal. - - A Vote consists of a proposal ID, the voter, and the vote - option. - description: votes defines the queried votes. pagination: - description: pagination defines the pagination in the response. type: object properties: next_key: @@ -20807,9 +19734,16 @@ paths: PageRequest.count_total was set, its value is undefined otherwise - description: >- - QueryVotesResponse is the response type for the Query/Votes RPC - method. + 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: @@ -20827,187 +19761,342 @@ paths: 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 + 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. - one "/" character. The last segment of the URL's path - must represent + It is less efficient than using key. Only one of offset or key + should - the fully qualified name of the type (as in + 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. - `path/google.protobuf.Duration`). The name should be in - a canonical form + 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 - (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 + a count of the total number of items available for pagination in + UIs. - implementations and no plans to implement one. + 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. - Schemes other than `http`, `https` (or the empty scheme) - might be - used with implementation specific semantics. + Since: cosmos-sdk 0.43 + in: query + required: false + type: boolean + tags: + - Query + /mycel/registry/v1/domain_ownership/{owner}: + get: + summary: Queries a list of DomainOwnership items. + operationId: MycelRegistryV1Query_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/v1/domain_registration_fee/{name}/{parent}/{registerer}: + get: + summary: Queries a list of DomainRegistrationFee items. + operationId: MycelRegistryV1Query_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: >- - `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 + Coin defines a token with a denomination and an amount. - `value` which holds the custom JSON in addition to the - `@type` - field. Example (for message [google.protobuf.Duration][]): + NOTE: The amount field is an Int which implements the custom + method - { - "@type": "type.googleapis.com/google.protobuf.Duration", - "value": "1.212s" - } + 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: proposal_id - description: proposal_id defines the unique id of the proposal. + - 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/v1/params: + get: + summary: Parameters queries the parameters of the module. + operationId: MycelRegistryV1Query_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/v1/role/{domain_name}/{address}: + get: + summary: Queries a list of Role items. + operationId: MycelRegistryV1Query_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/v1/second_level_domain: + get: + operationId: MycelRegistryV1Query_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 @@ -21066,80 +20155,26 @@ paths: type: boolean tags: - Query - /cosmos/gov/v1beta1/proposals/{proposal_id}/votes/{voter}: + /mycel/registry/v1/second_level_domain/{name}/{parent}: get: - summary: Vote queries voted information based on proposalID, voterAddr. - operationId: CosmosGovV1Beta1Query_Vote + summary: Queries a list of SecondLevelDomain items. + operationId: MycelRegistryV1Query_SecondLevelDomain responses: '200': description: A successful response. schema: type: object properties: - vote: - description: vote defines the queried vote. + second_level_domain: type: object properties: - proposal_id: + name: type: string - format: uint64 - description: proposal_id defines the unique id of the proposal. - voter: + parent: type: string - description: voter is the voter address of the proposal. - option: - description: >- - Deprecated: Prefer to use `options` instead. This field is - set in queries - - if and only if `len(options) == 1` and that option has - weight 1. In all - - other cases, this field will default to - VOTE_OPTION_UNSPECIFIED. + expiration_date: type: string - enum: - - VOTE_OPTION_UNSPECIFIED - - VOTE_OPTION_YES - - VOTE_OPTION_ABSTAIN - - VOTE_OPTION_NO - - VOTE_OPTION_NO_WITH_VETO - default: VOTE_OPTION_UNSPECIFIED - options: - type: array - items: - type: object - properties: - option: - description: >- - option defines the valid vote options, it must not - contain duplicate vote options. - type: string - enum: - - VOTE_OPTION_UNSPECIFIED - - VOTE_OPTION_YES - - VOTE_OPTION_ABSTAIN - - VOTE_OPTION_NO - - VOTE_OPTION_NO_WITH_VETO - default: VOTE_OPTION_UNSPECIFIED - weight: - type: string - description: >- - weight is the vote weight associated with the vote - option. - description: >- - WeightedVoteOption defines a unit of vote for vote - split. - - - Since: cosmos-sdk 0.43 - description: |- - options is the weighted vote options. - - Since: cosmos-sdk 0.43 - description: >- - QueryVoteResponse is the response type for the Query/Vote RPC - method. + format: date-time default: description: An unexpected error response. schema: @@ -21157,497 +20192,166 @@ paths: 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. - - - 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" - } parameters: - - name: proposal_id - description: proposal_id defines the unique id of the proposal. + - name: name in: path required: true type: string - format: uint64 - - name: voter - description: voter defines the voter address for the proposals. + - name: parent in: path required: true type: string tags: - Query - /cosmos/group/v1/group_info/{group_id}: + /mycel/registry/v1/top_level_domain: get: - summary: GroupInfo queries group info based on group id. - operationId: CosmosGroupV1Query_GroupInfo + operationId: MycelRegistryV1Query_TopLevelDomainAll responses: '200': description: A successful response. schema: type: object properties: - info: - description: info is the GroupInfo of the group. - type: object - properties: - id: - type: string - format: uint64 - description: id is the unique ID of the group. - admin: - type: string - description: admin is the account address of the group's admin. - metadata: - type: string - title: >- - metadata is any arbitrary metadata to attached to the - group. - - the recommended format of the metadata is to be found - here: - https://docs.cosmos.network/v0.47/modules/group#group-1 - version: - type: string - format: uint64 - title: >- - version is used to track changes to a group's membership - structure that - - would break existing proposals. Whenever any members - weight is changed, - - or any member is added or removed this version is - incremented and will - - cause proposals based on older versions of this group to - fail - total_weight: - type: string - description: total_weight is the sum of the group members' weights. - created_at: - type: string - format: date-time - description: >- - created_at is a timestamp specifying when a group was - created. - description: QueryGroupInfoResponse is the Query/GroupInfo response type. - default: - description: An unexpected error response. - schema: - type: object - properties: - code: - type: integer - format: int32 - message: - type: string - details: + top_level_domain: type: array items: type: object properties: - '@type': + name: 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". - + 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 - The JSON representation of an `Any` value uses the regular + 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. - representation of the deserialized, embedded message, with - an - additional field `@type` which contains the type URL. - Example: + NOTE: The amount field is an Int which + implements the custom method - package google.profile; - message Person { - string first_name = 1; - string last_name = 2; - } + 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. - { - "@type": "type.googleapis.com/google.profile.Person", - "firstName": , - "lastName": - } - If the embedded message type is well-known and has a custom - JSON + NOTE: The amount field is an Int which + implements the custom method - representation, that representation will be embedded adding - a field + 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. - `value` which holds the custom JSON in addition to the - `@type` - field. Example (for message [google.protobuf.Duration][]): + NOTE: The amount field is an Int which implements the + custom method - { - "@type": "type.googleapis.com/google.protobuf.Duration", - "value": "1.212s" - } - parameters: - - name: group_id - description: group_id is the unique ID of the group. - in: path - required: true - type: string - format: uint64 - tags: - - Query - /cosmos/group/v1/group_members/{group_id}: - get: - summary: GroupMembers queries members of a group by group id. - operationId: CosmosGroupV1Query_GroupMembers - responses: - '200': - description: A successful response. - schema: - type: object - properties: - members: - type: array - items: - type: object - properties: - group_id: - type: string - format: uint64 - description: group_id is the unique ID of the group. - member: - description: member is the member data. - type: object - properties: - address: - type: string - description: address is the member's account address. - weight: - type: string - description: >- - weight is the member's voting weight that should be - greater than 0. - metadata: - type: string - description: >- - metadata is any arbitrary metadata attached to the - member. - added_at: - type: string - format: date-time - description: >- - added_at is a timestamp specifying when a member was - added. - description: >- - GroupMember represents the relationship between a group and - a member. - description: members are the members of the group with given group_id. + signatures required by gogoproto. pagination: - description: pagination defines the pagination in the response. type: object properties: next_key: @@ -21665,9 +20369,16 @@ paths: PageRequest.count_total was set, its value is undefined otherwise - description: >- - QueryGroupMembersResponse is the Query/GroupMembersResponse - response type. + 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: @@ -21685,212 +20396,33 @@ paths: 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 + 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. - (e.g., leading "." is not accepted). + It is less efficient than using key. Only one of offset or key + should - - 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 - - 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" - } - parameters: - - name: group_id - description: group_id is the unique ID of the group. - in: path - required: true - type: string - format: uint64 - - 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. + 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 @@ -21924,151 +20456,280 @@ paths: type: boolean tags: - Query - /cosmos/group/v1/group_policies_by_admin/{admin}: + /mycel/registry/v1/top_level_domain/{name}: get: - summary: GroupPoliciesByAdmin queries group policies by admin address. - operationId: CosmosGroupV1Query_GroupPoliciesByAdmin + summary: Queries a list of TopLevelDomain items. + operationId: MycelRegistryV1Query_TopLevelDomain responses: '200': description: A successful response. schema: type: object properties: - group_policies: - type: array - items: - type: object - properties: - address: - type: string - description: address is the account address of group policy. - group_id: - type: string - format: uint64 - description: group_id is the unique ID of the group. - admin: - type: string - description: admin is the account address of the group admin. - metadata: - type: string - title: >- - metadata is any arbitrary metadata attached to the group - policy. - - the recommended format of the metadata is to be found - here: - - https://docs.cosmos.network/v0.47/modules/group#decision-policy-1 - version: - type: string - format: uint64 - description: >- - version is used to track changes to a group's - GroupPolicyInfo structure that - - would create a different result on a running proposal. - decision_policy: - description: >- - decision_policy specifies the group policy's decision - policy. - 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 + 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. - scheme `http`, `https`, or no scheme, one can - optionally set up a type - server that maps type URLs to message definitions as - follows: + 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. - * 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: The amount field is an Int which + implements the custom method - Note: this functionality is not currently available - in the official + 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. - 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 + NOTE: The amount field is an Int which implements + the custom method - implementations and no plans to implement one. + 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. - Schemes other than `http`, `https` (or the empty - scheme) might be + NOTE: The amount field is an Int which implements the + custom method - used with implementation specific semantics. - additionalProperties: {} - created_at: + 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 - format: date-time - description: >- - created_at is a timestamp specifying when a group policy - was created. - description: >- - GroupPolicyInfo represents the high-level on-chain - information for a group policy. - description: >- - group_policies are the group policies info with provided - admin. - pagination: - description: pagination defines the pagination in the response. + additionalProperties: {} + parameters: + - name: name + in: path + required: true + type: string + tags: + - Query + /mycel/resolver/v1/all_records/{domain_name}/{domain_parent}: + get: + summary: Queries a list of AllRecord items. + operationId: MycelRegistryV1Query_AllRecords + responses: + '200': + description: A successful response. + schema: + type: object + properties: + values: 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: >- - QueryGroupPoliciesByAdminResponse is the - Query/GroupPoliciesByAdmin response type. + 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: @@ -22086,389 +20747,203 @@ paths: 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. - - - 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" - } parameters: - - name: admin - description: admin is the admin address of the group policy. + - name: domain_name in: path required: true type: string - - 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 + - name: domain_parent + in: path + required: true 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 + tags: + - Query + /mycel/resolver/v1/dns_record/{domain_name}/{domain_parent}/{dns_record_type}: + get: + summary: Queries a list of DnsRecord items. + operationId: MycelRegistryV1Query_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 - 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 + - name: domain_parent + in: path + required: true + type: string + - name: dns_record_type + in: path + required: true 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 - /cosmos/group/v1/group_policies_by_group/{group_id}: + /mycel/resolver/v1/text_record/{domain_name}/{domain_parent}/{key}: get: - summary: GroupPoliciesByGroup queries group policies by group id. - operationId: CosmosGroupV1Query_GroupPoliciesByGroup + summary: Queries a list of TextRecord items. + operationId: MycelRegistryV1Query_TextRecord responses: '200': description: A successful response. schema: type: object properties: - group_policies: + 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: - address: - type: string - description: address is the account address of group policy. - group_id: - type: string - format: uint64 - description: group_id is the unique ID of the group. - admin: - type: string - description: admin is the account address of the group admin. - metadata: - type: string - title: >- - metadata is any arbitrary metadata attached to the group - policy. - - the recommended format of the metadata is to be found - here: - - https://docs.cosmos.network/v0.47/modules/group#decision-policy-1 - version: - type: string - format: uint64 - description: >- - version is used to track changes to a group's - GroupPolicyInfo structure that - - would create a different result on a running proposal. - decision_policy: - description: >- - decision_policy specifies the group policy's decision - policy. - 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: {} - created_at: + '@type': type: string - format: date-time - description: >- - created_at is a timestamp specifying when a group policy - was created. - description: >- - GroupPolicyInfo represents the high-level on-chain - information for a group policy. - description: >- - group_policies are the group policies info associated with the - provided group. - pagination: - description: pagination defines the pagination in the response. + 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/v1/wallet_record/{domain_name}/{domain_parent}/{wallet_record_type}: + get: + summary: Queries a list of QueryWalletRecord items. + operationId: MycelRegistryV1Query_WalletRecord + responses: + '200': + description: A successful response. + schema: + type: object + properties: + value: type: object properties: - next_key: + wallet_record_type: type: string - format: byte + 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: |- - 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: + - 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 - format: uint64 - title: >- - total is total number of results available if - PageRequest.count_total - - was set, its value is undefined otherwise - description: >- - QueryGroupPoliciesByGroupResponse is the - Query/GroupPoliciesByGroup response type. default: description: An unexpected error response. schema: @@ -22486,366 +20961,260 @@ paths: properties: '@type': type: string - description: >- - A URL/resource name that uniquely identifies the type of - the serialized + 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.v1.Msg/ExtendTopLevelDomainExpirationDate: + post: + operationId: MycelRegistryV1Msg_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. - protocol buffer message. This string must contain at - least - one "/" character. The last segment of the URL's path - must represent + NOTE: The amount field is an Int which + implements the custom method - the fully qualified name of the type (as in + 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. - `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 + NOTE: The amount field is an Int which + implements the custom method - methods only use the fully qualified type name after the - last '/' + 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 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. + 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. - 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. + 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. - representation of the deserialized, embedded message, with - an - additional field `@type` which contains the type URL. - Example: + NOTE: The amount field is an Int which implements the + custom method - package google.profile; - message Person { - string first_name = 1; - string last_name = 2; - } + 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. - { - "@type": "type.googleapis.com/google.profile.Person", - "firstName": , - "lastName": - } - If the embedded message type is well-known and has a custom - JSON + NOTE: The amount field is an Int which implements the + custom method - representation, that representation will be embedded adding - a field + 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. - `value` which holds the custom JSON in addition to the - `@type` - field. Example (for message [google.protobuf.Duration][]): + NOTE: The amount field is an Int which implements the + custom method - { - "@type": "type.googleapis.com/google.protobuf.Duration", - "value": "1.212s" - } + 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: group_id - description: group_id is the unique ID of the group policy's group. - in: path + - name: body + in: body required: true - type: string - format: uint64 - - 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 + schema: + type: object + properties: + creator: + type: string + name: + type: string + extension_period_in_year: + type: string + format: uint64 tags: - - Query - /cosmos/group/v1/group_policy_info/{address}: - get: - summary: >- - GroupPolicyInfo queries group policy info based on account address of - group policy. - operationId: CosmosGroupV1Query_GroupPolicyInfo + - Msg + /mycel.registry.v1.Msg/RegisterSecondLevelDomain: + post: + operationId: MycelRegistryV1Msg_RegisterSecondLevelDomain responses: '200': description: A successful response. schema: type: object - properties: - info: - description: info is the GroupPolicyInfo of the group policy. - type: object - properties: - address: - type: string - description: address is the account address of group policy. - group_id: - type: string - format: uint64 - description: group_id is the unique ID of the group. - admin: - type: string - description: admin is the account address of the group admin. - metadata: - type: string - title: >- - metadata is any arbitrary metadata attached to the group - policy. - - the recommended format of the metadata is to be found - here: - - https://docs.cosmos.network/v0.47/modules/group#decision-policy-1 - version: - type: string - format: uint64 - description: >- - version is used to track changes to a group's - GroupPolicyInfo structure that - - would create a different result on a running proposal. - decision_policy: - description: >- - decision_policy specifies the group policy's decision - policy. - 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: {} - created_at: - type: string - format: date-time - description: >- - created_at is a timestamp specifying when a group policy - was created. - description: >- - QueryGroupPolicyInfoResponse is the Query/GroupPolicyInfo response - type. default: description: An unexpected error response. schema: @@ -22863,271 +21232,457 @@ paths: 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 + 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.v1.Msg/RegisterTopLevelDomain: + post: + operationId: MycelRegistryV1Msg_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. - `path/google.protobuf.Duration`). The name should be in - a canonical form - (e.g., leading "." is not accepted). + 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. - 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 + NOTE: The amount field is an Int which + implements the custom method - methods only use the fully qualified type name after the - last '/' + 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 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. + 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. - 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. + 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. - representation of the deserialized, embedded message, with - an - additional field `@type` which contains the type URL. - Example: + NOTE: The amount field is an Int which implements the + custom method - package google.profile; - message Person { - string first_name = 1; - string last_name = 2; - } + 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. - { - "@type": "type.googleapis.com/google.profile.Person", - "firstName": , - "lastName": - } - If the embedded message type is well-known and has a custom - JSON + NOTE: The amount field is an Int which implements the + custom method - representation, that representation will be embedded adding - a field + 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. - `value` which holds the custom JSON in addition to the - `@type` - field. Example (for message [google.protobuf.Duration][]): + NOTE: The amount field is an Int which implements the + custom method - { - "@type": "type.googleapis.com/google.protobuf.Duration", - "value": "1.212s" - } + 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: address - description: address is the account address of the group policy. - in: path + - name: body + in: body required: true - type: string + schema: + type: object + properties: + creator: + type: string + name: + type: string + registration_period_in_year: + type: string + format: uint64 tags: - - Query - /cosmos/group/v1/groups: - get: - summary: Groups queries all groups in state. - description: 'Since: cosmos-sdk 0.47.1' - operationId: CosmosGroupV1Query_Groups + - Msg + /mycel.registry.v1.Msg/UpdateDnsRecord: + post: + operationId: MycelRegistryV1Msg_UpdateDnsRecord responses: '200': description: A successful response. + schema: + type: object + default: + description: An unexpected error response. schema: type: object properties: - groups: + code: + type: integer + format: int32 + message: + type: string + details: type: array items: type: object properties: - id: + '@type': type: string - format: uint64 - description: id is the unique ID of the group. - admin: + 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.v1.Msg/UpdateTextRecord: + post: + operationId: MycelRegistryV1Msg_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 - description: admin is the account address of the group's admin. - metadata: + 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.v1.Msg/UpdateTopLevelDomainRegistrationPolicy: + post: + operationId: MycelRegistryV1Msg_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 - title: >- - metadata is any arbitrary metadata to attached to the - group. - - the recommended format of the metadata is to be found - here: - https://docs.cosmos.network/v0.47/modules/group#group-1 - version: + 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.v1.Msg/UpdateWalletRecord: + post: + operationId: MycelRegistryV1Msg_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 - format: uint64 - title: >- - version is used to track changes to a group's membership - structure that - - would break existing proposals. Whenever any members - weight is changed, - - or any member is added or removed this version is - incremented and will - - cause proposals based on older versions of this group to - fail - total_weight: + 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.v1.Msg/WithdrawRegistrationFee: + post: + operationId: MycelRegistryV1Msg_WithdrawRegistrationFee + responses: + '200': + description: A successful response. + schema: + type: object + properties: + registration_fee: + type: array + items: + type: object + properties: + denom: type: string - description: total_weight is the sum of the group members' weights. - created_at: + amount: type: string - format: date-time - description: >- - created_at is a timestamp specifying when a group was - created. description: >- - GroupInfo represents the high-level on-chain information for - a group. - description: '`groups` is all the groups present in state.' - pagination: - description: pagination defines the pagination in the response. - 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 + Coin defines a token with a denomination and an amount. - was set, its value is undefined otherwise - description: |- - QueryGroupsResponse is the Query/Groups response type. - Since: cosmos-sdk 0.47.1 + NOTE: The amount field is an Int which implements the custom + method + + signatures required by gogoproto. default: description: An unexpected error response. schema: @@ -23145,72416 +21700,420 @@ paths: 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 + 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. - the fully qualified name of the type (as in + 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. - `path/google.protobuf.Duration`). The name should be in - a canonical form + Since: cosmos-sdk 0.47 + cosmos.auth.v1beta1.MsgUpdateParamsResponse: + type: object + description: |- + MsgUpdateParamsResponse defines the response structure for executing a + MsgUpdateParams message. - (e.g., leading "." is not accepted). + Since: cosmos-sdk 0.47 + cosmos.auth.v1beta1.Params: + 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: Params defines the parameters for the auth module. + google.protobuf.Any: + 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 - In practice, teams usually precompile into the binary - all types that they + one "/" character. The last segment of the URL's path must represent - expect it to use in the context of Any. However, for - URLs which use the + the fully qualified name of the type (as in - scheme `http`, `https`, or no scheme, one can optionally - set up a type + `path/google.protobuf.Duration`). The name should be in a canonical + form - server that maps type URLs to message definitions as - follows: + (e.g., leading "." is not accepted). - * If no scheme is provided, `https` is assumed. + In practice, teams usually precompile into the binary all types that + they - * 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.) + expect it to use in the context of Any. However, for URLs which use + the - Note: this functionality is not currently available in - the official + scheme `http`, `https`, or no scheme, one can optionally set up a type - protobuf release, and it is not used for type URLs - beginning with + server that maps type URLs to message definitions as follows: - type.googleapis.com. As of May 2023, there are no widely - used type server - implementations and no plans to implement one. + * 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.) - Schemes other than `http`, `https` (or the empty scheme) - might be + Note: this functionality is not currently available in the official - used with implementation specific semantics. - additionalProperties: {} - description: >- - `Any` contains an arbitrary serialized protocol buffer - message along with a + protobuf release, and it is not used for type URLs beginning with - URL that describes the type of the serialized message. + type.googleapis.com. As of May 2023, there are no widely used type + server + implementations and no plans to implement one. - Protobuf library provides support to pack/unpack Any values - in the form - of utility functions or additional generated methods of the - Any type. + 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 - Example 1: Pack and unpack a message in C++. + URL that describes the type of the serialized message. - Foo foo = ...; - Any any; - any.PackFrom(foo); - ... - if (any.UnpackTo(&foo)) { - ... - } - Example 2: Pack and unpack a message in Java. + Protobuf library provides support to pack/unpack Any values in the form - 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()); - } + of utility functions or additional generated methods of the Any type. - 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 1: Pack and unpack a message in C++. - Example 4: Pack and unpack a message in Go + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } - foo := &pb.Foo{...} - any, err := anypb.New(foo) - if err != nil { - ... - } - ... - foo := &pb.Foo{} - if err := any.UnmarshalTo(foo); err != nil { - ... - } + Example 2: Pack and unpack a message in Java. - The pack methods provided by protobuf library will by - default use + 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()); + } - 'type.googleapis.com/full.type.name' as the type URL and the - unpack + Example 3: Pack and unpack a message in Python. - methods only use the fully qualified type name after the - last '/' + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... - in the type URL, for example "foo.bar.com/x/y.z" will yield - type + Example 4: Pack and unpack a message in Go - name "y.z". + 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 - JSON + 'type.googleapis.com/full.type.name' as the type URL and the unpack - ==== + methods only use the fully qualified type name after the last '/' - The JSON representation of an `Any` value uses the regular + in the type URL, for example "foo.bar.com/x/y.z" will yield type - representation of the deserialized, embedded message, with - an + name "y.z". - additional field `@type` which contains the type URL. - Example: - package google.profile; - message Person { - string first_name = 1; - string last_name = 2; - } + JSON - { - "@type": "type.googleapis.com/google.profile.Person", - "firstName": , - "lastName": - } + ==== - If the embedded message type is well-known and has a custom - JSON + The JSON representation of an `Any` value uses the regular - representation, that representation will be embedded adding - a field + representation of the deserialized, embedded message, with an - `value` which holds the custom JSON in addition to the - `@type` + additional field `@type` which contains the type URL. Example: - field. Example (for message [google.protobuf.Duration][]): + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } - { - "@type": "type.googleapis.com/google.protobuf.Duration", - "value": "1.212s" - } - 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. + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } - It is less efficient than using key. Only one of offset or key - should + If the embedded message type is well-known and has a custom JSON - 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. + representation, that representation will be embedded adding a field - 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 + `value` which holds the custom JSON in addition to the `@type` - a count of the total number of items available for pagination in - UIs. + field. Example (for message [google.protobuf.Duration][]): - count_total is only respected when offset is used. It is ignored - when key + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + google.rpc.Status: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type of the + serialized - 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. + protocol buffer message. This string must contain at least + one "/" character. The last segment of the URL's path must + represent - Since: cosmos-sdk 0.43 - in: query - required: false - type: boolean - tags: - - Query - /cosmos/group/v1/groups_by_admin/{admin}: - get: - summary: GroupsByAdmin queries groups by admin address. - operationId: CosmosGroupV1Query_GroupsByAdmin - responses: - '200': - description: A successful response. - schema: - type: object - properties: - groups: - type: array - items: - type: object - properties: - id: - type: string - format: uint64 - description: id is the unique ID of the group. - admin: - type: string - description: admin is the account address of the group's admin. - metadata: - type: string - title: >- - metadata is any arbitrary metadata to attached to the - group. + the fully qualified name of the type (as in - the recommended format of the metadata is to be found - here: - https://docs.cosmos.network/v0.47/modules/group#group-1 - version: - type: string - format: uint64 - title: >- - version is used to track changes to a group's membership - structure that + `path/google.protobuf.Duration`). The name should be in a + canonical form - would break existing proposals. Whenever any members - weight is changed, + (e.g., leading "." is not accepted). - or any member is added or removed this version is - incremented and will - cause proposals based on older versions of this group to - fail - total_weight: - type: string - description: total_weight is the sum of the group members' weights. - created_at: - type: string - format: date-time - description: >- - created_at is a timestamp specifying when a group was - created. - description: >- - GroupInfo represents the high-level on-chain information for - a group. - description: groups are the groups info with the provided admin. - pagination: - description: pagination defines the pagination in the response. - 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 + In practice, teams usually precompile into the binary all types + that they - was set, its value is undefined otherwise - description: >- - QueryGroupsByAdminResponse is the Query/GroupsByAdminResponse - response type. - 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 - description: >- - A URL/resource name that uniquely identifies the type of - the serialized + expect it to use in the context of Any. However, for URLs which + use the - protocol buffer message. This string must contain at - least + scheme `http`, `https`, or no scheme, one can optionally set up + a type - one "/" character. The last segment of the URL's path - must represent + server that maps type URLs to message definitions as follows: - the fully qualified name of the type (as in - `path/google.protobuf.Duration`). The name should be in - a canonical form + * If no scheme is provided, `https` is assumed. - (e.g., leading "." is not accepted). + * 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 - In practice, teams usually precompile into the binary - all types that they + protobuf release, and it is not used for type URLs beginning + with - expect it to use in the context of Any. However, for - URLs which use the + type.googleapis.com. As of May 2023, there are no widely used + type server - scheme `http`, `https`, or no scheme, one can optionally - set up a type + implementations and no plans to implement one. - server that maps type URLs to message definitions as - follows: + Schemes other than `http`, `https` (or the empty scheme) might + be - * If no scheme is provided, `https` is assumed. + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer message along + with a - * 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.) + URL that describes the type of the serialized message. - Note: this functionality is not currently available in - the official - protobuf release, and it is not used for type URLs - beginning with + Protobuf library provides support to pack/unpack Any values in the + form - type.googleapis.com. As of May 2023, there are no widely - used type server + of utility functions or additional generated methods of the Any + type. - implementations and no plans to implement one. + Example 1: Pack and unpack a message in C++. - Schemes other than `http`, `https` (or the empty scheme) - might be + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } - 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" - } - parameters: - - name: admin - description: admin is the account address of a group's admin. - in: path - required: true - type: string - - 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 - /cosmos/group/v1/groups_by_member/{address}: - get: - summary: GroupsByMember queries groups by member address. - operationId: CosmosGroupV1Query_GroupsByMember - responses: - '200': - description: A successful response. - schema: - type: object - properties: - groups: - type: array - items: - type: object - properties: - id: - type: string - format: uint64 - description: id is the unique ID of the group. - admin: - type: string - description: admin is the account address of the group's admin. - metadata: - type: string - title: >- - metadata is any arbitrary metadata to attached to the - group. - - the recommended format of the metadata is to be found - here: - https://docs.cosmos.network/v0.47/modules/group#group-1 - version: - type: string - format: uint64 - title: >- - version is used to track changes to a group's membership - structure that - - would break existing proposals. Whenever any members - weight is changed, - - or any member is added or removed this version is - incremented and will - - cause proposals based on older versions of this group to - fail - total_weight: - type: string - description: total_weight is the sum of the group members' weights. - created_at: - type: string - format: date-time - description: >- - created_at is a timestamp specifying when a group was - created. - description: >- - GroupInfo represents the high-level on-chain information for - a group. - description: groups are the groups info with the provided group member. - pagination: - description: pagination defines the pagination in the response. - 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: >- - QueryGroupsByMemberResponse is the Query/GroupsByMember response - type. - 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 - 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 - - 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" - } - parameters: - - name: address - description: address is the group member address. - in: path - required: true - type: string - - 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 - /cosmos/group/v1/proposal/{proposal_id}: - get: - summary: Proposal queries a proposal based on proposal id. - operationId: CosmosGroupV1Query_Proposal - responses: - '200': - description: A successful response. - schema: - type: object - properties: - proposal: - description: proposal is the proposal info. - type: object - properties: - id: - type: string - format: uint64 - description: id is the unique id of the proposal. - group_policy_address: - type: string - description: >- - group_policy_address is the account address of group - policy. - metadata: - type: string - title: >- - metadata is any arbitrary metadata attached to the - proposal. - - the recommended format of the metadata is to be found - here: - - https://docs.cosmos.network/v0.47/modules/group#proposal-4 - proposers: - type: array - items: - type: string - description: proposers are the account addresses of the proposers. - submit_time: - type: string - format: date-time - description: >- - submit_time is a timestamp specifying when a proposal was - submitted. - group_version: - type: string - format: uint64 - description: >- - group_version tracks the version of the group at proposal - submission. - - This field is here for informational purposes only. - group_policy_version: - type: string - format: uint64 - description: >- - group_policy_version tracks the version of the group - policy at proposal submission. - - When a decision policy is changed, existing proposals from - previous policy - - versions will become invalid with the `ABORTED` status. - - This field is here for informational purposes only. - status: - description: >- - status represents the high level position in the life - cycle of the proposal. Initial value is Submitted. - type: string - enum: - - PROPOSAL_STATUS_UNSPECIFIED - - PROPOSAL_STATUS_SUBMITTED - - PROPOSAL_STATUS_ACCEPTED - - PROPOSAL_STATUS_REJECTED - - PROPOSAL_STATUS_ABORTED - - PROPOSAL_STATUS_WITHDRAWN - default: PROPOSAL_STATUS_UNSPECIFIED - final_tally_result: - description: >- - final_tally_result contains the sums of all weighted votes - for this - - proposal for each vote option. It is empty at submission, - and only - - populated after tallying, at voting period end or at - proposal execution, - - whichever happens first. - type: object - properties: - yes_count: - type: string - description: yes_count is the weighted sum of yes votes. - abstain_count: - type: string - description: abstain_count is the weighted sum of abstainers. - no_count: - type: string - description: no_count is the weighted sum of no votes. - no_with_veto_count: - type: string - description: no_with_veto_count is the weighted sum of veto. - voting_period_end: - type: string - format: date-time - description: >- - voting_period_end is the timestamp before which voting - must be done. - - Unless a successful MsgExec is called before (to execute a - proposal whose - - tally is successful before the voting period ends), - tallying will be done - - at this point, and the `final_tally_result`and `status` - fields will be - - accordingly updated. - executor_result: - description: >- - executor_result is the final result of the proposal - execution. Initial value is NotRun. - type: string - enum: - - PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED - - PROPOSAL_EXECUTOR_RESULT_NOT_RUN - - PROPOSAL_EXECUTOR_RESULT_SUCCESS - - PROPOSAL_EXECUTOR_RESULT_FAILURE - default: PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED - messages: - type: array - items: - 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. - - - 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" - } - description: >- - messages is a list of `sdk.Msg`s that will be executed if - the proposal passes. - title: - type: string - description: 'Since: cosmos-sdk 0.47' - title: title is the title of the proposal - summary: - type: string - description: 'Since: cosmos-sdk 0.47' - title: summary is a short summary of the proposal - description: QueryProposalResponse is the Query/Proposal response type. - 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 - 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 - - 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" - } - parameters: - - name: proposal_id - description: proposal_id is the unique ID of a proposal. - in: path - required: true - type: string - format: uint64 - tags: - - Query - /cosmos/group/v1/proposals/{proposal_id}/tally: - get: - summary: >- - TallyResult returns the tally result of a proposal. If the proposal is - - still in voting period, then this query computes the current tally - state, - - which might not be final. On the other hand, if the proposal is final, - - then it simply returns the `final_tally_result` state stored in the - - proposal itself. - operationId: CosmosGroupV1Query_TallyResult - responses: - '200': - description: A successful response. - schema: - type: object - properties: - tally: - description: tally defines the requested tally. - type: object - properties: - yes_count: - type: string - description: yes_count is the weighted sum of yes votes. - abstain_count: - type: string - description: abstain_count is the weighted sum of abstainers. - no_count: - type: string - description: no_count is the weighted sum of no votes. - no_with_veto_count: - type: string - description: no_with_veto_count is the weighted sum of veto. - description: QueryTallyResultResponse is the Query/TallyResult response type. - 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 - 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 - - 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" - } - parameters: - - name: proposal_id - description: proposal_id is the unique id of a proposal. - in: path - required: true - type: string - format: uint64 - tags: - - Query - /cosmos/group/v1/proposals_by_group_policy/{address}: - get: - summary: >- - ProposalsByGroupPolicy queries proposals based on account address of - group policy. - operationId: CosmosGroupV1Query_ProposalsByGroupPolicy - responses: - '200': - description: A successful response. - schema: - type: object - properties: - proposals: - type: array - items: - type: object - properties: - id: - type: string - format: uint64 - description: id is the unique id of the proposal. - group_policy_address: - type: string - description: >- - group_policy_address is the account address of group - policy. - metadata: - type: string - title: >- - metadata is any arbitrary metadata attached to the - proposal. - - the recommended format of the metadata is to be found - here: - - https://docs.cosmos.network/v0.47/modules/group#proposal-4 - proposers: - type: array - items: - type: string - description: proposers are the account addresses of the proposers. - submit_time: - type: string - format: date-time - description: >- - submit_time is a timestamp specifying when a proposal - was submitted. - group_version: - type: string - format: uint64 - description: >- - group_version tracks the version of the group at - proposal submission. - - This field is here for informational purposes only. - group_policy_version: - type: string - format: uint64 - description: >- - group_policy_version tracks the version of the group - policy at proposal submission. - - When a decision policy is changed, existing proposals - from previous policy - - versions will become invalid with the `ABORTED` status. - - This field is here for informational purposes only. - status: - description: >- - status represents the high level position in the life - cycle of the proposal. Initial value is Submitted. - type: string - enum: - - PROPOSAL_STATUS_UNSPECIFIED - - PROPOSAL_STATUS_SUBMITTED - - PROPOSAL_STATUS_ACCEPTED - - PROPOSAL_STATUS_REJECTED - - PROPOSAL_STATUS_ABORTED - - PROPOSAL_STATUS_WITHDRAWN - default: PROPOSAL_STATUS_UNSPECIFIED - final_tally_result: - description: >- - final_tally_result contains the sums of all weighted - votes for this - - proposal for each vote option. It is empty at - submission, and only - - populated after tallying, at voting period end or at - proposal execution, - - whichever happens first. - type: object - properties: - yes_count: - type: string - description: yes_count is the weighted sum of yes votes. - abstain_count: - type: string - description: abstain_count is the weighted sum of abstainers. - no_count: - type: string - description: no_count is the weighted sum of no votes. - no_with_veto_count: - type: string - description: no_with_veto_count is the weighted sum of veto. - voting_period_end: - type: string - format: date-time - description: >- - voting_period_end is the timestamp before which voting - must be done. - - Unless a successful MsgExec is called before (to execute - a proposal whose - - tally is successful before the voting period ends), - tallying will be done - - at this point, and the `final_tally_result`and `status` - fields will be - - accordingly updated. - executor_result: - description: >- - executor_result is the final result of the proposal - execution. Initial value is NotRun. - type: string - enum: - - PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED - - PROPOSAL_EXECUTOR_RESULT_NOT_RUN - - PROPOSAL_EXECUTOR_RESULT_SUCCESS - - PROPOSAL_EXECUTOR_RESULT_FAILURE - default: PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED - messages: - type: array - items: - 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. - - - 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" - } - description: >- - messages is a list of `sdk.Msg`s that will be executed - if the proposal passes. - title: - type: string - description: 'Since: cosmos-sdk 0.47' - title: title is the title of the proposal - summary: - type: string - description: 'Since: cosmos-sdk 0.47' - title: summary is a short summary of the proposal - description: >- - Proposal defines a group proposal. Any member of a group can - submit a proposal - - for a group policy to decide upon. - - A proposal consists of a set of `sdk.Msg`s that will be - executed if the proposal - - passes as well as some optional metadata associated with the - proposal. - description: proposals are the proposals with given group policy. - pagination: - description: pagination defines the pagination in the response. - 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: >- - QueryProposalsByGroupPolicyResponse is the - Query/ProposalByGroupPolicy response type. - 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 - 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 - - 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" - } - parameters: - - name: address - description: >- - address is the account address of the group policy related to - proposals. - in: path - required: true - type: string - - 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 - /cosmos/group/v1/vote_by_proposal_voter/{proposal_id}/{voter}: - get: - summary: VoteByProposalVoter queries a vote by proposal id and voter. - operationId: CosmosGroupV1Query_VoteByProposalVoter - responses: - '200': - description: A successful response. - schema: - type: object - properties: - vote: - description: vote is the vote with given proposal_id and voter. - type: object - properties: - proposal_id: - type: string - format: uint64 - description: proposal is the unique ID of the proposal. - voter: - type: string - description: voter is the account address of the voter. - option: - description: option is the voter's choice on the proposal. - type: string - enum: - - VOTE_OPTION_UNSPECIFIED - - VOTE_OPTION_YES - - VOTE_OPTION_ABSTAIN - - VOTE_OPTION_NO - - VOTE_OPTION_NO_WITH_VETO - default: VOTE_OPTION_UNSPECIFIED - metadata: - type: string - title: >- - metadata is any arbitrary metadata attached to the vote. - - the recommended format of the metadata is to be found - here: - https://docs.cosmos.network/v0.47/modules/group#vote-2 - submit_time: - type: string - format: date-time - description: submit_time is the timestamp when the vote was submitted. - title: Vote represents a vote for a proposal.string metadata - description: >- - QueryVoteByProposalVoterResponse is the Query/VoteByProposalVoter - response type. - 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 - 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 - - 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" - } - parameters: - - name: proposal_id - description: proposal_id is the unique ID of a proposal. - in: path - required: true - type: string - format: uint64 - - name: voter - description: voter is a proposal voter account address. - in: path - required: true - type: string - tags: - - Query - /cosmos/group/v1/votes_by_proposal/{proposal_id}: - get: - summary: VotesByProposal queries a vote by proposal id. - operationId: CosmosGroupV1Query_VotesByProposal - responses: - '200': - description: A successful response. - schema: - type: object - properties: - votes: - type: array - items: - type: object - properties: - proposal_id: - type: string - format: uint64 - description: proposal is the unique ID of the proposal. - voter: - type: string - description: voter is the account address of the voter. - option: - description: option is the voter's choice on the proposal. - type: string - enum: - - VOTE_OPTION_UNSPECIFIED - - VOTE_OPTION_YES - - VOTE_OPTION_ABSTAIN - - VOTE_OPTION_NO - - VOTE_OPTION_NO_WITH_VETO - default: VOTE_OPTION_UNSPECIFIED - metadata: - type: string - title: >- - metadata is any arbitrary metadata attached to the vote. - - the recommended format of the metadata is to be found - here: - https://docs.cosmos.network/v0.47/modules/group#vote-2 - submit_time: - type: string - format: date-time - description: >- - submit_time is the timestamp when the vote was - submitted. - title: Vote represents a vote for a proposal.string metadata - description: votes are the list of votes for given proposal_id. - pagination: - description: pagination defines the pagination in the response. - 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: >- - QueryVotesByProposalResponse is the Query/VotesByProposal response - type. - 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 - 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 - - 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" - } - parameters: - - name: proposal_id - description: proposal_id is the unique ID of a proposal. - in: path - required: true - type: string - format: uint64 - - 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 - /cosmos/group/v1/votes_by_voter/{voter}: - get: - summary: VotesByVoter queries a vote by voter. - operationId: CosmosGroupV1Query_VotesByVoter - responses: - '200': - description: A successful response. - schema: - type: object - properties: - votes: - type: array - items: - type: object - properties: - proposal_id: - type: string - format: uint64 - description: proposal is the unique ID of the proposal. - voter: - type: string - description: voter is the account address of the voter. - option: - description: option is the voter's choice on the proposal. - type: string - enum: - - VOTE_OPTION_UNSPECIFIED - - VOTE_OPTION_YES - - VOTE_OPTION_ABSTAIN - - VOTE_OPTION_NO - - VOTE_OPTION_NO_WITH_VETO - default: VOTE_OPTION_UNSPECIFIED - metadata: - type: string - title: >- - metadata is any arbitrary metadata attached to the vote. - - the recommended format of the metadata is to be found - here: - https://docs.cosmos.network/v0.47/modules/group#vote-2 - submit_time: - type: string - format: date-time - description: >- - submit_time is the timestamp when the vote was - submitted. - title: Vote represents a vote for a proposal.string metadata - description: votes are the list of votes by given voter. - pagination: - description: pagination defines the pagination in the response. - 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: QueryVotesByVoterResponse is the Query/VotesByVoter response type. - 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 - 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 - - 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" - } - parameters: - - name: voter - description: voter is a proposal voter account address. - in: path - required: true - type: string - - 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 - /cosmos.group.v1.Msg/CreateGroup: - post: - summary: >- - CreateGroup creates a new group with an admin account address, a list of - members and some optional metadata. - operationId: CosmosGroupV1Msg_CreateGroup - responses: - '200': - description: A successful response. - schema: - type: object - properties: - group_id: - type: string - format: uint64 - description: group_id is the unique ID of the newly created group. - description: MsgCreateGroupResponse is the Msg/CreateGroup response type. - 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 - 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 - - 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" - } - parameters: - - name: body - description: MsgCreateGroup is the Msg/CreateGroup request type. - in: body - required: true - schema: - type: object - properties: - admin: - type: string - description: admin is the account address of the group admin. - members: - type: array - items: - type: object - properties: - address: - type: string - description: address is the member's account address. - weight: - type: string - description: >- - weight is the member's voting weight that should be - greater than 0. - metadata: - type: string - description: >- - metadata is any arbitrary metadata attached to the - member. - description: >- - MemberRequest represents a group member to be used in Msg - server requests. - - Contrary to `Member`, it doesn't have any `added_at` field - - since this field cannot be set as part of requests. - description: members defines the group members. - metadata: - type: string - description: metadata is any arbitrary metadata to attached to the group. - description: MsgCreateGroup is the Msg/CreateGroup request type. - tags: - - Msg - /cosmos.group.v1.Msg/CreateGroupPolicy: - post: - summary: CreateGroupPolicy creates a new group policy using given DecisionPolicy. - operationId: CosmosGroupV1Msg_CreateGroupPolicy - responses: - '200': - description: A successful response. - schema: - type: object - properties: - address: - type: string - description: >- - address is the account address of the newly created group - policy. - description: >- - MsgCreateGroupPolicyResponse is the Msg/CreateGroupPolicy response - type. - 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 - 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 - - 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" - } - parameters: - - name: body - description: MsgCreateGroupPolicy is the Msg/CreateGroupPolicy request type. - in: body - required: true - schema: - type: object - properties: - admin: - type: string - description: admin is the account address of the group admin. - group_id: - type: string - format: uint64 - description: group_id is the unique ID of the group. - metadata: - type: string - description: >- - metadata is any arbitrary metadata attached to the group - policy. - decision_policy: - description: decision_policy specifies the group policy's decision policy. - 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: MsgCreateGroupPolicy is the Msg/CreateGroupPolicy request type. - tags: - - Msg - /cosmos.group.v1.Msg/CreateGroupWithPolicy: - post: - summary: CreateGroupWithPolicy creates a new group with policy. - operationId: CosmosGroupV1Msg_CreateGroupWithPolicy - responses: - '200': - description: A successful response. - schema: - type: object - properties: - group_id: - type: string - format: uint64 - description: >- - group_id is the unique ID of the newly created group with - policy. - group_policy_address: - type: string - description: >- - group_policy_address is the account address of the newly - created group policy. - description: >- - MsgCreateGroupWithPolicyResponse is the Msg/CreateGroupWithPolicy - response type. - 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 - 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 - - 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" - } - parameters: - - name: body - description: >- - MsgCreateGroupWithPolicy is the Msg/CreateGroupWithPolicy request - type. - in: body - required: true - schema: - type: object - properties: - admin: - type: string - description: >- - admin is the account address of the group and group policy - admin. - members: - type: array - items: - type: object - properties: - address: - type: string - description: address is the member's account address. - weight: - type: string - description: >- - weight is the member's voting weight that should be - greater than 0. - metadata: - type: string - description: >- - metadata is any arbitrary metadata attached to the - member. - description: >- - MemberRequest represents a group member to be used in Msg - server requests. - - Contrary to `Member`, it doesn't have any `added_at` field - - since this field cannot be set as part of requests. - description: members defines the group members. - group_metadata: - type: string - description: >- - group_metadata is any arbitrary metadata attached to the - group. - group_policy_metadata: - type: string - description: >- - group_policy_metadata is any arbitrary metadata attached to - the group policy. - group_policy_as_admin: - type: boolean - description: >- - group_policy_as_admin is a boolean field, if set to true, the - group policy account address will be used as group - - and group policy admin. - decision_policy: - description: decision_policy specifies the group policy's decision policy. - 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: >- - MsgCreateGroupWithPolicy is the Msg/CreateGroupWithPolicy request - type. - tags: - - Msg - /cosmos.group.v1.Msg/Exec: - post: - summary: Exec executes a proposal. - operationId: CosmosGroupV1Msg_Exec - responses: - '200': - description: A successful response. - schema: - type: object - properties: - result: - description: result is the final result of the proposal execution. - type: string - enum: - - PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED - - PROPOSAL_EXECUTOR_RESULT_NOT_RUN - - PROPOSAL_EXECUTOR_RESULT_SUCCESS - - PROPOSAL_EXECUTOR_RESULT_FAILURE - default: PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED - description: MsgExecResponse is the Msg/Exec request type. - 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 - 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 - - 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" - } - parameters: - - name: body - description: MsgExec is the Msg/Exec request type. - in: body - required: true - schema: - type: object - properties: - proposal_id: - type: string - format: uint64 - description: proposal is the unique ID of the proposal. - executor: - type: string - description: executor is the account address used to execute the proposal. - description: MsgExec is the Msg/Exec request type. - tags: - - Msg - /cosmos.group.v1.Msg/LeaveGroup: - post: - summary: LeaveGroup allows a group member to leave the group. - operationId: CosmosGroupV1Msg_LeaveGroup - responses: - '200': - description: A successful response. - schema: - type: object - description: MsgLeaveGroupResponse is the Msg/LeaveGroup response type. - 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 - 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 - - 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" - } - parameters: - - name: body - description: MsgLeaveGroup is the Msg/LeaveGroup request type. - in: body - required: true - schema: - type: object - properties: - address: - type: string - description: address is the account address of the group member. - group_id: - type: string - format: uint64 - description: group_id is the unique ID of the group. - description: MsgLeaveGroup is the Msg/LeaveGroup request type. - tags: - - Msg - /cosmos.group.v1.Msg/SubmitProposal: - post: - summary: SubmitProposal submits a new proposal. - operationId: CosmosGroupV1Msg_SubmitProposal - responses: - '200': - description: A successful response. - schema: - type: object - properties: - proposal_id: - type: string - format: uint64 - description: proposal is the unique ID of the proposal. - description: MsgSubmitProposalResponse is the Msg/SubmitProposal response type. - 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 - 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 - - 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" - } - parameters: - - name: body - description: MsgSubmitProposal is the Msg/SubmitProposal request type. - in: body - required: true - schema: - type: object - properties: - group_policy_address: - type: string - description: group_policy_address is the account address of group policy. - proposers: - type: array - items: - type: string - description: |- - proposers are the account addresses of the proposers. - Proposers signatures will be counted as yes votes. - metadata: - type: string - description: metadata is any arbitrary metadata attached to the proposal. - messages: - type: array - items: - 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. - - - 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" - } - description: >- - messages is a list of `sdk.Msg`s that will be executed if the - proposal passes. - exec: - description: |- - exec defines the mode of execution of the proposal, - whether it should be executed immediately on creation or not. - If so, proposers signatures are considered as Yes votes. - type: string - enum: - - EXEC_UNSPECIFIED - - EXEC_TRY - default: EXEC_UNSPECIFIED - title: - type: string - description: |- - title is the title of the proposal. - - Since: cosmos-sdk 0.47 - summary: - type: string - description: |- - summary is the summary of the proposal. - - Since: cosmos-sdk 0.47 - description: MsgSubmitProposal is the Msg/SubmitProposal request type. - tags: - - Msg - /cosmos.group.v1.Msg/UpdateGroupAdmin: - post: - summary: >- - UpdateGroupAdmin updates the group admin with given group id and - previous admin address. - operationId: CosmosGroupV1Msg_UpdateGroupAdmin - responses: - '200': - description: A successful response. - schema: - type: object - description: >- - MsgUpdateGroupAdminResponse is the Msg/UpdateGroupAdmin response - type. - 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 - 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 - - 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" - } - parameters: - - name: body - description: MsgUpdateGroupAdmin is the Msg/UpdateGroupAdmin request type. - in: body - required: true - schema: - type: object - properties: - admin: - type: string - description: admin is the current account address of the group admin. - group_id: - type: string - format: uint64 - description: group_id is the unique ID of the group. - new_admin: - type: string - description: new_admin is the group new admin account address. - description: MsgUpdateGroupAdmin is the Msg/UpdateGroupAdmin request type. - tags: - - Msg - /cosmos.group.v1.Msg/UpdateGroupMembers: - post: - summary: >- - UpdateGroupMembers updates the group members with given group id and - admin address. - operationId: CosmosGroupV1Msg_UpdateGroupMembers - responses: - '200': - description: A successful response. - schema: - type: object - description: >- - MsgUpdateGroupMembersResponse is the Msg/UpdateGroupMembers - response type. - 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 - 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 - - 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" - } - parameters: - - name: body - description: MsgUpdateGroupMembers is the Msg/UpdateGroupMembers request type. - in: body - required: true - schema: - type: object - properties: - admin: - type: string - description: admin is the account address of the group admin. - group_id: - type: string - format: uint64 - description: group_id is the unique ID of the group. - member_updates: - type: array - items: - type: object - properties: - address: - type: string - description: address is the member's account address. - weight: - type: string - description: >- - weight is the member's voting weight that should be - greater than 0. - metadata: - type: string - description: >- - metadata is any arbitrary metadata attached to the - member. - description: >- - MemberRequest represents a group member to be used in Msg - server requests. - - Contrary to `Member`, it doesn't have any `added_at` field - - since this field cannot be set as part of requests. - description: |- - member_updates is the list of members to update, - set weight to 0 to remove a member. - description: MsgUpdateGroupMembers is the Msg/UpdateGroupMembers request type. - tags: - - Msg - /cosmos.group.v1.Msg/UpdateGroupMetadata: - post: - summary: >- - UpdateGroupMetadata updates the group metadata with given group id and - admin address. - operationId: CosmosGroupV1Msg_UpdateGroupMetadata - responses: - '200': - description: A successful response. - schema: - type: object - description: >- - MsgUpdateGroupMetadataResponse is the Msg/UpdateGroupMetadata - response type. - 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 - 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 - - 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" - } - parameters: - - name: body - description: MsgUpdateGroupMetadata is the Msg/UpdateGroupMetadata request type. - in: body - required: true - schema: - type: object - properties: - admin: - type: string - description: admin is the account address of the group admin. - group_id: - type: string - format: uint64 - description: group_id is the unique ID of the group. - metadata: - type: string - description: metadata is the updated group's metadata. - description: >- - MsgUpdateGroupMetadata is the Msg/UpdateGroupMetadata request - type. - tags: - - Msg - /cosmos.group.v1.Msg/UpdateGroupPolicyAdmin: - post: - summary: UpdateGroupPolicyAdmin updates a group policy admin. - operationId: CosmosGroupV1Msg_UpdateGroupPolicyAdmin - responses: - '200': - description: A successful response. - schema: - type: object - description: >- - MsgUpdateGroupPolicyAdminResponse is the - Msg/UpdateGroupPolicyAdmin response type. - 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 - 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 - - 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" - } - parameters: - - name: body - description: >- - MsgUpdateGroupPolicyAdmin is the Msg/UpdateGroupPolicyAdmin request - type. - in: body - required: true - schema: - type: object - properties: - admin: - type: string - description: admin is the account address of the group admin. - group_policy_address: - type: string - description: >- - group_policy_address is the account address of the group - policy. - new_admin: - type: string - description: new_admin is the new group policy admin. - description: >- - MsgUpdateGroupPolicyAdmin is the Msg/UpdateGroupPolicyAdmin - request type. - tags: - - Msg - /cosmos.group.v1.Msg/UpdateGroupPolicyDecisionPolicy: - post: - summary: >- - UpdateGroupPolicyDecisionPolicy allows a group policy's decision policy - to be updated. - operationId: CosmosGroupV1Msg_UpdateGroupPolicyDecisionPolicy - responses: - '200': - description: A successful response. - schema: - type: object - description: >- - MsgUpdateGroupPolicyDecisionPolicyResponse is the - Msg/UpdateGroupPolicyDecisionPolicy response type. - 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 - 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 - - 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" - } - parameters: - - name: body - description: >- - MsgUpdateGroupPolicyDecisionPolicy is the - Msg/UpdateGroupPolicyDecisionPolicy request type. - in: body - required: true - schema: - type: object - properties: - admin: - type: string - description: admin is the account address of the group admin. - group_policy_address: - type: string - description: group_policy_address is the account address of group policy. - decision_policy: - description: decision_policy is the updated group policy's decision policy. - 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: >- - MsgUpdateGroupPolicyDecisionPolicy is the - Msg/UpdateGroupPolicyDecisionPolicy request type. - tags: - - Msg - /cosmos.group.v1.Msg/UpdateGroupPolicyMetadata: - post: - summary: UpdateGroupPolicyMetadata updates a group policy metadata. - operationId: CosmosGroupV1Msg_UpdateGroupPolicyMetadata - responses: - '200': - description: A successful response. - schema: - type: object - description: >- - MsgUpdateGroupPolicyMetadataResponse is the - Msg/UpdateGroupPolicyMetadata response type. - 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 - 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 - - 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" - } - parameters: - - name: body - description: >- - MsgUpdateGroupPolicyMetadata is the Msg/UpdateGroupPolicyMetadata - request type. - in: body - required: true - schema: - type: object - properties: - admin: - type: string - description: admin is the account address of the group admin. - group_policy_address: - type: string - description: group_policy_address is the account address of group policy. - metadata: - type: string - description: metadata is the group policy metadata to be updated. - description: >- - MsgUpdateGroupPolicyMetadata is the Msg/UpdateGroupPolicyMetadata - request type. - tags: - - Msg - /cosmos.group.v1.Msg/Vote: - post: - summary: Vote allows a voter to vote on a proposal. - operationId: CosmosGroupV1Msg_Vote - responses: - '200': - description: A successful response. - schema: - type: object - description: MsgVoteResponse is the Msg/Vote response type. - 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 - 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 - - 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" - } - parameters: - - name: body - description: MsgVote is the Msg/Vote request type. - in: body - required: true - schema: - type: object - properties: - proposal_id: - type: string - format: uint64 - description: proposal is the unique ID of the proposal. - voter: - type: string - description: voter is the voter account address. - option: - description: option is the voter's choice on the proposal. - type: string - enum: - - VOTE_OPTION_UNSPECIFIED - - VOTE_OPTION_YES - - VOTE_OPTION_ABSTAIN - - VOTE_OPTION_NO - - VOTE_OPTION_NO_WITH_VETO - default: VOTE_OPTION_UNSPECIFIED - metadata: - type: string - description: metadata is any arbitrary metadata attached to the vote. - exec: - description: |- - exec defines whether the proposal should be executed - immediately after voting or not. - type: string - enum: - - EXEC_UNSPECIFIED - - EXEC_TRY - default: EXEC_UNSPECIFIED - description: MsgVote is the Msg/Vote request type. - tags: - - Msg - /cosmos.group.v1.Msg/WithdrawProposal: - post: - summary: WithdrawProposal withdraws a proposal. - operationId: CosmosGroupV1Msg_WithdrawProposal - responses: - '200': - description: A successful response. - schema: - type: object - description: >- - MsgWithdrawProposalResponse is the Msg/WithdrawProposal response - type. - 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 - 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 - - 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" - } - parameters: - - name: body - description: MsgWithdrawProposal is the Msg/WithdrawProposal request type. - in: body - required: true - schema: - type: object - properties: - proposal_id: - type: string - format: uint64 - description: proposal is the unique ID of the proposal. - address: - type: string - description: >- - address is the admin of the group policy or one of the - proposer of the proposal. - description: MsgWithdrawProposal is the Msg/WithdrawProposal request type. - tags: - - Msg - /cosmos/mint/v1beta1/annual_provisions: - get: - summary: AnnualProvisions current minting annual provisions value. - operationId: CosmosMintV1Beta1Query_AnnualProvisions - responses: - '200': - description: A successful response. - schema: - type: object - properties: - annual_provisions: - type: string - format: byte - description: >- - annual_provisions is the current minting annual provisions - value. - description: |- - QueryAnnualProvisionsResponse is the response type for the - Query/AnnualProvisions 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 - /cosmos/mint/v1beta1/inflation: - get: - summary: Inflation returns the current minting inflation value. - operationId: CosmosMintV1Beta1Query_Inflation - responses: - '200': - description: A successful response. - schema: - type: object - properties: - inflation: - type: string - format: byte - description: inflation is the current minting inflation value. - description: >- - QueryInflationResponse is the response type for the - Query/Inflation 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 - /cosmos/mint/v1beta1/params: - get: - summary: Params returns the total set of minting parameters. - operationId: CosmosMintV1Beta1Query_Params - responses: - '200': - description: A successful response. - schema: - type: object - properties: - params: - description: params defines the parameters of the module. - type: object - properties: - mint_denom: - type: string - title: type of coin to mint - inflation_rate_change: - type: string - title: maximum annual change in inflation rate - inflation_max: - type: string - title: maximum inflation rate - inflation_min: - type: string - title: minimum inflation rate - goal_bonded: - type: string - title: goal of percent bonded atoms - blocks_per_year: - type: string - format: uint64 - title: expected blocks per year - description: >- - QueryParamsResponse is the 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 - /cosmos.mint.v1beta1.Msg/UpdateParams: - post: - summary: >- - UpdateParams defines a governance operation for updating the x/mint - module - - parameters. The authority is defaults to the x/gov module account. - description: 'Since: cosmos-sdk 0.47' - operationId: CosmosMintV1Beta1Msg_UpdateParams - responses: - '200': - description: A successful response. - schema: - type: object - description: >- - MsgUpdateParamsResponse defines the response structure for - executing a - - MsgUpdateParams message. - - - Since: cosmos-sdk 0.47 - 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 - description: |- - MsgUpdateParams is the Msg/UpdateParams request type. - - Since: cosmos-sdk 0.47 - in: body - required: true - schema: - 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/mint parameters to update. - - NOTE: All parameters must be supplied. - type: object - properties: - mint_denom: - type: string - title: type of coin to mint - inflation_rate_change: - type: string - title: maximum annual change in inflation rate - inflation_max: - type: string - title: maximum inflation rate - inflation_min: - type: string - title: minimum inflation rate - goal_bonded: - type: string - title: goal of percent bonded atoms - blocks_per_year: - type: string - format: uint64 - title: expected blocks per year - description: |- - MsgUpdateParams is the Msg/UpdateParams request type. - - Since: cosmos-sdk 0.47 - tags: - - Msg - /cosmos/params/v1beta1/params: - get: - summary: |- - Params queries a specific parameter of a module, given its subspace and - key. - operationId: CosmosParamsV1Beta1Query_Params - responses: - '200': - description: A successful response. - schema: - 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. - 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: subspace - description: subspace defines the module to query the parameter for. - in: query - required: false - type: string - - name: key - description: key defines the key of the parameter in the subspace. - in: query - required: false - type: string - tags: - - Query - /cosmos/params/v1beta1/subspaces: - get: - summary: >- - Subspaces queries for all registered subspaces and all keys for a - subspace. - description: 'Since: cosmos-sdk 0.46' - operationId: CosmosParamsV1Beta1Query_Subspaces - responses: - '200': - description: A successful response. - schema: - 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 - 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 - /cosmos/slashing/v1beta1/params: - get: - summary: Params queries the parameters of slashing module - operationId: CosmosSlashingV1Beta1Query_Params - responses: - '200': - description: A successful response. - schema: - type: object - properties: - 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. - title: >- - QueryParamsResponse is the 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 - /cosmos/slashing/v1beta1/signing_infos: - get: - summary: SigningInfos queries signing info of all validators - operationId: CosmosSlashingV1Beta1Query_SigningInfos - responses: - '200': - description: A successful response. - schema: - type: object - properties: - info: - type: array - items: - type: object - properties: - address: - type: string - start_height: - type: string - format: int64 - title: >- - Height at which validator was first a candidate OR was - un-jailed - index_offset: - type: string - format: int64 - description: >- - Index which is incremented every time a validator is - bonded in a block and - - _may_ have signed a pre-commit or not. This in - conjunction with the - - signed_blocks_window param determines the index in the - missed block bitmap. - jailed_until: - type: string - format: date-time - description: >- - Timestamp until which the validator is jailed due to - liveness downtime. - tombstoned: - type: boolean - description: >- - Whether or not a validator has been tombstoned (killed - out of validator - - set). It is set once the validator commits an - equivocation or for any other - - configured misbehavior. - missed_blocks_counter: - type: string - format: int64 - description: >- - A counter of missed (unsigned) blocks. It is used to - avoid unnecessary - - reads in the missed block bitmap. - description: >- - ValidatorSigningInfo defines a validator's signing info for - monitoring their - - liveness activity. - title: info is the signing info of all validators - 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; - } - title: >- - QuerySigningInfosResponse is the response type for the - Query/SigningInfos 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: {} - 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 - /cosmos/slashing/v1beta1/signing_infos/{cons_address}: - get: - summary: SigningInfo queries the signing info of given cons address - operationId: CosmosSlashingV1Beta1Query_SigningInfo - responses: - '200': - description: A successful response. - schema: - type: object - properties: - val_signing_info: - title: >- - val_signing_info is the signing info of requested val cons - address - type: object - properties: - address: - type: string - start_height: - type: string - format: int64 - title: >- - Height at which validator was first a candidate OR was - un-jailed - index_offset: - type: string - format: int64 - description: >- - Index which is incremented every time a validator is - bonded in a block and - - _may_ have signed a pre-commit or not. This in conjunction - with the - - signed_blocks_window param determines the index in the - missed block bitmap. - jailed_until: - type: string - format: date-time - description: >- - Timestamp until which the validator is jailed due to - liveness downtime. - tombstoned: - type: boolean - description: >- - Whether or not a validator has been tombstoned (killed out - of validator - - set). It is set once the validator commits an equivocation - or for any other - - configured misbehavior. - missed_blocks_counter: - type: string - format: int64 - description: >- - A counter of missed (unsigned) blocks. It is used to avoid - unnecessary - - reads in the missed block bitmap. - description: >- - ValidatorSigningInfo defines a validator's signing info for - monitoring their - - liveness activity. - title: >- - QuerySigningInfoResponse is the response type for the - Query/SigningInfo 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: {} - parameters: - - name: cons_address - description: cons_address is the address to query signing info of - in: path - required: true - type: string - tags: - - Query - /cosmos.slashing.v1beta1.Msg/Unjail: - post: - summary: >- - Unjail defines a method for unjailing a jailed validator, thus returning - - them into the bonded validator set, so they can begin receiving - provisions - - and rewards again. - operationId: CosmosSlashingV1Beta1Msg_Unjail - responses: - '200': - description: A successful response. - schema: - type: object - title: MsgUnjailResponse defines the Msg/Unjail response type - 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: - validator_addr: - type: string - title: MsgUnjail defines the Msg/Unjail request type - tags: - - Msg - /cosmos.slashing.v1beta1.Msg/UpdateParams: - post: - summary: >- - UpdateParams defines a governance operation for updating the x/slashing - module - - parameters. The authority defaults to the x/gov module account. - description: 'Since: cosmos-sdk 0.47' - operationId: CosmosSlashingV1Beta1Msg_UpdateParams - responses: - '200': - description: A successful response. - schema: - type: object - description: >- - MsgUpdateParamsResponse defines the response structure for - executing a - - MsgUpdateParams message. - - - Since: cosmos-sdk 0.47 - 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 - description: |- - MsgUpdateParams is the Msg/UpdateParams request type. - - Since: cosmos-sdk 0.47 - in: body - required: true - schema: - 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 - tags: - - Msg - /cosmos/staking/v1beta1/delegations/{delegator_addr}: - get: - summary: >- - DelegatorDelegations queries all delegations of a given delegator - address. - description: >- - When called from another module, this query might consume a high amount - of - - gas if the pagination field is incorrectly set. - operationId: CosmosStakingV1Beta1Query_DelegatorDelegations - responses: - '200': - description: A successful response. - schema: - type: object - properties: - delegation_responses: - type: array - items: - type: object - properties: - delegation: - type: object - properties: - delegator_address: - type: string - description: >- - delegator_address is the encoded address of the - delegator. - validator_address: - type: string - description: >- - validator_address is the encoded address of the - validator. - shares: - type: string - description: shares define the delegation shares received. - description: >- - Delegation represents the bond with tokens held by an - account. It is - - owned by one delegator, and is associated with the - voting power of one - - validator. - balance: - 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: >- - DelegationResponse is equivalent to Delegation except that - it contains a - - balance in addition to shares which is more suitable for - client responses. - description: >- - delegation_responses defines all the delegations' info of a - delegator. - pagination: - description: pagination defines the pagination in the response. - 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: |- - QueryDelegatorDelegationsResponse is response type for the - Query/DelegatorDelegations 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 - 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 - - 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" - } - parameters: - - name: delegator_addr - description: delegator_addr defines the delegator address to query for. - in: path - required: true - type: string - - 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 - /cosmos/staking/v1beta1/delegators/{delegator_addr}/redelegations: - get: - summary: Redelegations queries redelegations of given address. - description: >- - When called from another module, this query might consume a high amount - of - - gas if the pagination field is incorrectly set. - operationId: CosmosStakingV1Beta1Query_Redelegations - responses: - '200': - description: A successful response. - schema: - type: object - properties: - redelegation_responses: - type: array - items: - type: object - properties: - redelegation: - type: object - properties: - delegator_address: - type: string - description: >- - delegator_address is the bech32-encoded address of - the delegator. - validator_src_address: - type: string - description: >- - validator_src_address is the validator redelegation - source operator address. - validator_dst_address: - type: string - description: >- - validator_dst_address is the validator redelegation - destination operator address. - entries: - type: array - items: - type: object - properties: - creation_height: - type: string - format: int64 - description: >- - creation_height defines the height which the - redelegation took place. - completion_time: - type: string - format: date-time - description: >- - completion_time defines the unix time for - redelegation completion. - initial_balance: - type: string - description: >- - initial_balance defines the initial balance - when redelegation started. - shares_dst: - type: string - description: >- - shares_dst is the amount of - destination-validator shares created by - redelegation. - unbonding_id: - type: string - format: uint64 - title: >- - Incrementing id that uniquely identifies this - entry - unbonding_on_hold_ref_count: - type: string - format: int64 - title: >- - Strictly positive if this entry's unbonding - has been stopped by external modules - description: >- - RedelegationEntry defines a redelegation object - with relevant metadata. - description: |- - entries are the redelegation entries. - - redelegation entries - description: >- - Redelegation contains the list of a particular - delegator's redelegating bonds - - from a particular source validator to a particular - destination validator. - entries: - type: array - items: - type: object - properties: - redelegation_entry: - type: object - properties: - creation_height: - type: string - format: int64 - description: >- - creation_height defines the height which the - redelegation took place. - completion_time: - type: string - format: date-time - description: >- - completion_time defines the unix time for - redelegation completion. - initial_balance: - type: string - description: >- - initial_balance defines the initial balance - when redelegation started. - shares_dst: - type: string - description: >- - shares_dst is the amount of - destination-validator shares created by - redelegation. - unbonding_id: - type: string - format: uint64 - title: >- - Incrementing id that uniquely identifies this - entry - unbonding_on_hold_ref_count: - type: string - format: int64 - title: >- - Strictly positive if this entry's unbonding - has been stopped by external modules - description: >- - RedelegationEntry defines a redelegation object - with relevant metadata. - balance: - type: string - description: >- - RedelegationEntryResponse is equivalent to a - RedelegationEntry except that it - - contains a balance in addition to shares which is more - suitable for client - - responses. - description: >- - RedelegationResponse is equivalent to a Redelegation except - that its entries - - contain a balance in addition to shares which is more - suitable for client - - responses. - pagination: - description: pagination defines the pagination in the response. - 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: >- - QueryRedelegationsResponse is response type for the - Query/Redelegations 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 - 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 - - 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" - } - parameters: - - name: delegator_addr - description: delegator_addr defines the delegator address to query for. - in: path - required: true - type: string - - name: src_validator_addr - description: src_validator_addr defines the validator address to redelegate from. - in: query - required: false - type: string - - name: dst_validator_addr - description: dst_validator_addr defines the validator address to redelegate to. - in: query - required: false - type: string - - 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 - /cosmos/staking/v1beta1/delegators/{delegator_addr}/unbonding_delegations: - get: - summary: >- - DelegatorUnbondingDelegations queries all unbonding delegations of a - given - - delegator address. - description: >- - When called from another module, this query might consume a high amount - of - - gas if the pagination field is incorrectly set. - operationId: CosmosStakingV1Beta1Query_DelegatorUnbondingDelegations - responses: - '200': - description: A successful response. - schema: - type: object - properties: - unbonding_responses: - type: array - items: - type: object - properties: - delegator_address: - type: string - description: >- - delegator_address is the encoded address of the - delegator. - validator_address: - type: string - description: >- - validator_address is the encoded address of the - validator. - entries: - type: array - items: - type: object - properties: - creation_height: - type: string - format: int64 - description: >- - creation_height is the height which the unbonding - took place. - completion_time: - type: string - format: date-time - description: >- - completion_time is the unix time for unbonding - completion. - initial_balance: - type: string - description: >- - initial_balance defines the tokens initially - scheduled to receive at completion. - balance: - type: string - description: >- - balance defines the tokens to receive at - completion. - unbonding_id: - type: string - format: uint64 - title: >- - Incrementing id that uniquely identifies this - entry - unbonding_on_hold_ref_count: - type: string - format: int64 - title: >- - Strictly positive if this entry's unbonding has - been stopped by external modules - description: >- - UnbondingDelegationEntry defines an unbonding object - with relevant metadata. - description: |- - entries are the unbonding delegation entries. - - unbonding delegation entries - description: >- - UnbondingDelegation stores all of a single delegator's - unbonding bonds - - for a single validator in an time-ordered list. - pagination: - description: pagination defines the pagination in the response. - 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: >- - QueryUnbondingDelegatorDelegationsResponse is response type for - the - - Query/UnbondingDelegatorDelegations 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 - 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 - - 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" - } - parameters: - - name: delegator_addr - description: delegator_addr defines the delegator address to query for. - in: path - required: true - type: string - - 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 - /cosmos/staking/v1beta1/delegators/{delegator_addr}/validators: - get: - summary: |- - DelegatorValidators queries all validators info for given delegator - address. - description: >- - When called from another module, this query might consume a high amount - of - - gas if the pagination field is incorrectly set. - operationId: CosmosStakingV1Beta1Query_DelegatorValidators - responses: - '200': - description: A successful response. - schema: - type: object - properties: - validators: - type: array - items: - type: object - properties: - operator_address: - type: string - description: >- - operator_address defines the address of the validator's - operator; bech encoded in JSON. - consensus_pubkey: - description: >- - consensus_pubkey is the consensus public key of the - validator, as a Protobuf Any. - 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: {} - jailed: - type: boolean - description: >- - jailed defined whether the validator has been jailed - from bonded status or not. - status: - description: >- - status is the validator status - (bonded/unbonding/unbonded). - type: string - enum: - - BOND_STATUS_UNSPECIFIED - - BOND_STATUS_UNBONDED - - BOND_STATUS_UNBONDING - - BOND_STATUS_BONDED - default: BOND_STATUS_UNSPECIFIED - tokens: - type: string - description: >- - tokens define the delegated tokens (incl. - self-delegation). - delegator_shares: - type: string - description: >- - delegator_shares defines total shares issued to a - validator's delegators. - description: - description: >- - description defines the description terms for the - validator. - 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. - unbonding_height: - type: string - format: int64 - description: >- - unbonding_height defines, if unbonding, the height at - which this validator has begun unbonding. - unbonding_time: - type: string - format: date-time - description: >- - unbonding_time defines, if unbonding, the min time for - the validator to complete unbonding. - commission: - description: commission defines the commission parameters. - type: object - properties: - commission_rates: - description: >- - commission_rates defines the initial commission - rates to be used for creating a validator. - 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. - update_time: - type: string - format: date-time - description: >- - update_time is the last time the commission rate was - changed. - min_self_delegation: - type: string - description: >- - min_self_delegation is the validator's self declared - minimum self delegation. - - - Since: cosmos-sdk 0.46 - unbonding_on_hold_ref_count: - type: string - format: int64 - title: >- - strictly positive if this validator's unbonding has been - stopped by external modules - unbonding_ids: - type: array - items: - type: string - format: uint64 - title: >- - list of unbonding ids, each uniquely identifing an - unbonding of this validator - description: >- - Validator defines a validator, together with the total - amount of the - - Validator's bond shares and their exchange rate to coins. - Slashing results in - - a decrease in the exchange rate, allowing correct - calculation of future - - undelegations without iterating over delegators. When coins - are delegated to - - this validator, the validator is credited with a delegation - whose number of - - bond shares is based on the amount of coins delegated - divided by the current - - exchange rate. Voting power can be calculated as total - bonded shares - - multiplied by exchange rate. - description: validators defines the validators' info of a delegator. - pagination: - description: pagination defines the pagination in the response. - 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: |- - QueryDelegatorValidatorsResponse is response type for the - Query/DelegatorValidators 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 - 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 - - 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" - } - parameters: - - name: delegator_addr - description: delegator_addr defines the delegator address to query for. - in: path - required: true - type: string - - 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 - /cosmos/staking/v1beta1/delegators/{delegator_addr}/validators/{validator_addr}: - get: - summary: |- - DelegatorValidator queries validator info for given delegator validator - pair. - operationId: CosmosStakingV1Beta1Query_DelegatorValidator - responses: - '200': - description: A successful response. - schema: - type: object - properties: - validator: - description: validator defines the validator info. - type: object - properties: - operator_address: - type: string - description: >- - operator_address defines the address of the validator's - operator; bech encoded in JSON. - consensus_pubkey: - description: >- - consensus_pubkey is the consensus public key of the - validator, as a Protobuf Any. - 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: {} - jailed: - type: boolean - description: >- - jailed defined whether the validator has been jailed from - bonded status or not. - status: - description: >- - status is the validator status - (bonded/unbonding/unbonded). - type: string - enum: - - BOND_STATUS_UNSPECIFIED - - BOND_STATUS_UNBONDED - - BOND_STATUS_UNBONDING - - BOND_STATUS_BONDED - default: BOND_STATUS_UNSPECIFIED - tokens: - type: string - description: >- - tokens define the delegated tokens (incl. - self-delegation). - delegator_shares: - type: string - description: >- - delegator_shares defines total shares issued to a - validator's delegators. - description: - description: >- - description defines the description terms for the - validator. - 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. - unbonding_height: - type: string - format: int64 - description: >- - unbonding_height defines, if unbonding, the height at - which this validator has begun unbonding. - unbonding_time: - type: string - format: date-time - description: >- - unbonding_time defines, if unbonding, the min time for the - validator to complete unbonding. - commission: - description: commission defines the commission parameters. - type: object - properties: - commission_rates: - description: >- - commission_rates defines the initial commission rates - to be used for creating a validator. - 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. - update_time: - type: string - format: date-time - description: >- - update_time is the last time the commission rate was - changed. - min_self_delegation: - type: string - description: >- - min_self_delegation is the validator's self declared - minimum self delegation. - - - Since: cosmos-sdk 0.46 - unbonding_on_hold_ref_count: - type: string - format: int64 - title: >- - strictly positive if this validator's unbonding has been - stopped by external modules - unbonding_ids: - type: array - items: - type: string - format: uint64 - title: >- - list of unbonding ids, each uniquely identifing an - unbonding of this validator - description: |- - QueryDelegatorValidatorResponse response type for the - Query/DelegatorValidator 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 - 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 - - 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" - } - parameters: - - name: delegator_addr - description: delegator_addr defines the delegator address to query for. - in: path - required: true - type: string - - name: validator_addr - description: validator_addr defines the validator address to query for. - in: path - required: true - type: string - tags: - - Query - /cosmos/staking/v1beta1/historical_info/{height}: - get: - summary: HistoricalInfo queries the historical info for given height. - operationId: CosmosStakingV1Beta1Query_HistoricalInfo - responses: - '200': - description: A successful response. - schema: - type: object - properties: - hist: - description: hist defines the historical info at the given height. - type: object - properties: - header: - type: object - properties: - version: - title: basic block info - type: object - properties: - block: - type: string - format: uint64 - app: - type: string - format: uint64 - description: >- - Consensus captures the consensus rules for processing - a block in the blockchain, - - including all blockchain data structures and the rules - of the application's - - state transition machine. - chain_id: - type: string - height: - type: string - format: int64 - time: - type: string - format: date-time - last_block_id: - title: prev block info - type: object - properties: - hash: - type: string - format: byte - part_set_header: - type: object - properties: - total: - type: integer - format: int64 - hash: - type: string - format: byte - title: PartsetHeader - last_commit_hash: - type: string - format: byte - description: commit from validators from the last block - title: hashes of block data - data_hash: - type: string - format: byte - title: transactions - validators_hash: - type: string - format: byte - description: validators for the current block - title: hashes from the app output from the prev block - next_validators_hash: - type: string - format: byte - title: validators for the next block - consensus_hash: - type: string - format: byte - title: consensus params for current block - app_hash: - type: string - format: byte - title: state after txs from the previous block - last_results_hash: - type: string - format: byte - title: >- - root hash of all results from the txs from the - previous block - evidence_hash: - type: string - format: byte - description: evidence included in the block - title: consensus info - proposer_address: - type: string - format: byte - title: original proposer of the block - description: Header defines the structure of a block header. - valset: - type: array - items: - type: object - properties: - operator_address: - type: string - description: >- - operator_address defines the address of the - validator's operator; bech encoded in JSON. - consensus_pubkey: - description: >- - consensus_pubkey is the consensus public key of the - validator, as a Protobuf Any. - 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: {} - jailed: - type: boolean - description: >- - jailed defined whether the validator has been jailed - from bonded status or not. - status: - description: >- - status is the validator status - (bonded/unbonding/unbonded). - type: string - enum: - - BOND_STATUS_UNSPECIFIED - - BOND_STATUS_UNBONDED - - BOND_STATUS_UNBONDING - - BOND_STATUS_BONDED - default: BOND_STATUS_UNSPECIFIED - tokens: - type: string - description: >- - tokens define the delegated tokens (incl. - self-delegation). - delegator_shares: - type: string - description: >- - delegator_shares defines total shares issued to a - validator's delegators. - description: - description: >- - description defines the description terms for the - validator. - 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. - unbonding_height: - type: string - format: int64 - description: >- - unbonding_height defines, if unbonding, the height - at which this validator has begun unbonding. - unbonding_time: - type: string - format: date-time - description: >- - unbonding_time defines, if unbonding, the min time - for the validator to complete unbonding. - commission: - description: commission defines the commission parameters. - type: object - properties: - commission_rates: - description: >- - commission_rates defines the initial commission - rates to be used for creating a validator. - 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. - update_time: - type: string - format: date-time - description: >- - update_time is the last time the commission rate - was changed. - min_self_delegation: - type: string - description: >- - min_self_delegation is the validator's self declared - minimum self delegation. - - - Since: cosmos-sdk 0.46 - unbonding_on_hold_ref_count: - type: string - format: int64 - title: >- - strictly positive if this validator's unbonding has - been stopped by external modules - unbonding_ids: - type: array - items: - type: string - format: uint64 - title: >- - list of unbonding ids, each uniquely identifing an - unbonding of this validator - description: >- - Validator defines a validator, together with the total - amount of the - - Validator's bond shares and their exchange rate to - coins. Slashing results in - - a decrease in the exchange rate, allowing correct - calculation of future - - undelegations without iterating over delegators. When - coins are delegated to - - this validator, the validator is credited with a - delegation whose number of - - bond shares is based on the amount of coins delegated - divided by the current - - exchange rate. Voting power can be calculated as total - bonded shares - - multiplied by exchange rate. - description: >- - QueryHistoricalInfoResponse is response type for the - Query/HistoricalInfo 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 - 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 - - 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" - } - parameters: - - name: height - description: height defines at which height to query the historical info. - in: path - required: true - type: string - format: int64 - tags: - - Query - /cosmos/staking/v1beta1/params: - get: - summary: Parameters queries the staking parameters. - operationId: CosmosStakingV1Beta1Query_Params - responses: - '200': - description: A successful response. - schema: - type: object - properties: - params: - description: params holds all the parameters of this module. - 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: >- - 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 - 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 - - 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" - } - tags: - - Query - /cosmos/staking/v1beta1/pool: - get: - summary: Pool queries the pool info. - operationId: CosmosStakingV1Beta1Query_Pool - responses: - '200': - description: A successful response. - schema: - type: object - properties: - pool: - description: pool defines the pool info. - type: object - properties: - not_bonded_tokens: - type: string - bonded_tokens: - type: string - description: QueryPoolResponse is response type for the Query/Pool 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 - 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 - - 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" - } - tags: - - Query - /cosmos/staking/v1beta1/validators: - get: - summary: Validators queries all validators that match the given status. - description: >- - When called from another module, this query might consume a high amount - of - - gas if the pagination field is incorrectly set. - operationId: CosmosStakingV1Beta1Query_Validators - responses: - '200': - description: A successful response. - schema: - type: object - properties: - validators: - type: array - items: - type: object - properties: - operator_address: - type: string - description: >- - operator_address defines the address of the validator's - operator; bech encoded in JSON. - consensus_pubkey: - description: >- - consensus_pubkey is the consensus public key of the - validator, as a Protobuf Any. - 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: {} - jailed: - type: boolean - description: >- - jailed defined whether the validator has been jailed - from bonded status or not. - status: - description: >- - status is the validator status - (bonded/unbonding/unbonded). - type: string - enum: - - BOND_STATUS_UNSPECIFIED - - BOND_STATUS_UNBONDED - - BOND_STATUS_UNBONDING - - BOND_STATUS_BONDED - default: BOND_STATUS_UNSPECIFIED - tokens: - type: string - description: >- - tokens define the delegated tokens (incl. - self-delegation). - delegator_shares: - type: string - description: >- - delegator_shares defines total shares issued to a - validator's delegators. - description: - description: >- - description defines the description terms for the - validator. - 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. - unbonding_height: - type: string - format: int64 - description: >- - unbonding_height defines, if unbonding, the height at - which this validator has begun unbonding. - unbonding_time: - type: string - format: date-time - description: >- - unbonding_time defines, if unbonding, the min time for - the validator to complete unbonding. - commission: - description: commission defines the commission parameters. - type: object - properties: - commission_rates: - description: >- - commission_rates defines the initial commission - rates to be used for creating a validator. - 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. - update_time: - type: string - format: date-time - description: >- - update_time is the last time the commission rate was - changed. - min_self_delegation: - type: string - description: >- - min_self_delegation is the validator's self declared - minimum self delegation. - - - Since: cosmos-sdk 0.46 - unbonding_on_hold_ref_count: - type: string - format: int64 - title: >- - strictly positive if this validator's unbonding has been - stopped by external modules - unbonding_ids: - type: array - items: - type: string - format: uint64 - title: >- - list of unbonding ids, each uniquely identifing an - unbonding of this validator - description: >- - Validator defines a validator, together with the total - amount of the - - Validator's bond shares and their exchange rate to coins. - Slashing results in - - a decrease in the exchange rate, allowing correct - calculation of future - - undelegations without iterating over delegators. When coins - are delegated to - - this validator, the validator is credited with a delegation - whose number of - - bond shares is based on the amount of coins delegated - divided by the current - - exchange rate. Voting power can be calculated as total - bonded shares - - multiplied by exchange rate. - description: validators contains all the queried validators. - pagination: - description: pagination defines the pagination in the response. - 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 - title: >- - QueryValidatorsResponse is response type for the Query/Validators - 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 - 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 - - 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" - } - parameters: - - name: status - description: status enables to query for validators matching a given status. - in: query - required: false - type: string - - 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 - /cosmos/staking/v1beta1/validators/{validator_addr}: - get: - summary: Validator queries validator info for given validator address. - operationId: CosmosStakingV1Beta1Query_Validator - responses: - '200': - description: A successful response. - schema: - type: object - properties: - validator: - description: validator defines the validator info. - type: object - properties: - operator_address: - type: string - description: >- - operator_address defines the address of the validator's - operator; bech encoded in JSON. - consensus_pubkey: - description: >- - consensus_pubkey is the consensus public key of the - validator, as a Protobuf Any. - 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: {} - jailed: - type: boolean - description: >- - jailed defined whether the validator has been jailed from - bonded status or not. - status: - description: >- - status is the validator status - (bonded/unbonding/unbonded). - type: string - enum: - - BOND_STATUS_UNSPECIFIED - - BOND_STATUS_UNBONDED - - BOND_STATUS_UNBONDING - - BOND_STATUS_BONDED - default: BOND_STATUS_UNSPECIFIED - tokens: - type: string - description: >- - tokens define the delegated tokens (incl. - self-delegation). - delegator_shares: - type: string - description: >- - delegator_shares defines total shares issued to a - validator's delegators. - description: - description: >- - description defines the description terms for the - validator. - 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. - unbonding_height: - type: string - format: int64 - description: >- - unbonding_height defines, if unbonding, the height at - which this validator has begun unbonding. - unbonding_time: - type: string - format: date-time - description: >- - unbonding_time defines, if unbonding, the min time for the - validator to complete unbonding. - commission: - description: commission defines the commission parameters. - type: object - properties: - commission_rates: - description: >- - commission_rates defines the initial commission rates - to be used for creating a validator. - 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. - update_time: - type: string - format: date-time - description: >- - update_time is the last time the commission rate was - changed. - min_self_delegation: - type: string - description: >- - min_self_delegation is the validator's self declared - minimum self delegation. - - - Since: cosmos-sdk 0.46 - unbonding_on_hold_ref_count: - type: string - format: int64 - title: >- - strictly positive if this validator's unbonding has been - stopped by external modules - unbonding_ids: - type: array - items: - type: string - format: uint64 - title: >- - list of unbonding ids, each uniquely identifing an - unbonding of this validator - title: >- - QueryValidatorResponse is response type for the Query/Validator - 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 - 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 - - 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" - } - parameters: - - name: validator_addr - description: validator_addr defines the validator address to query for. - in: path - required: true - type: string - tags: - - Query - /cosmos/staking/v1beta1/validators/{validator_addr}/delegations: - get: - summary: ValidatorDelegations queries delegate info for given validator. - description: >- - When called from another module, this query might consume a high amount - of - - gas if the pagination field is incorrectly set. - operationId: CosmosStakingV1Beta1Query_ValidatorDelegations - responses: - '200': - description: A successful response. - schema: - type: object - properties: - delegation_responses: - type: array - items: - type: object - properties: - delegation: - type: object - properties: - delegator_address: - type: string - description: >- - delegator_address is the encoded address of the - delegator. - validator_address: - type: string - description: >- - validator_address is the encoded address of the - validator. - shares: - type: string - description: shares define the delegation shares received. - description: >- - Delegation represents the bond with tokens held by an - account. It is - - owned by one delegator, and is associated with the - voting power of one - - validator. - balance: - 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: >- - DelegationResponse is equivalent to Delegation except that - it contains a - - balance in addition to shares which is more suitable for - client responses. - pagination: - description: pagination defines the pagination in the response. - 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 - title: |- - QueryValidatorDelegationsResponse is response type for the - Query/ValidatorDelegations 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 - 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 - - 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" - } - parameters: - - name: validator_addr - description: validator_addr defines the validator address to query for. - in: path - required: true - type: string - - 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 - /cosmos/staking/v1beta1/validators/{validator_addr}/delegations/{delegator_addr}: - get: - summary: Delegation queries delegate info for given validator delegator pair. - operationId: CosmosStakingV1Beta1Query_Delegation - responses: - '200': - description: A successful response. - schema: - type: object - properties: - delegation_response: - description: >- - delegation_responses defines the delegation info of a - delegation. - type: object - properties: - delegation: - type: object - properties: - delegator_address: - type: string - description: >- - delegator_address is the encoded address of the - delegator. - validator_address: - type: string - description: >- - validator_address is the encoded address of the - validator. - shares: - type: string - description: shares define the delegation shares received. - description: >- - Delegation represents the bond with tokens held by an - account. It is - - owned by one delegator, and is associated with the voting - power of one - - validator. - balance: - 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: >- - QueryDelegationResponse is response type for the Query/Delegation - 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 - 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 - - 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" - } - parameters: - - name: validator_addr - description: validator_addr defines the validator address to query for. - in: path - required: true - type: string - - name: delegator_addr - description: delegator_addr defines the delegator address to query for. - in: path - required: true - type: string - tags: - - Query - /cosmos/staking/v1beta1/validators/{validator_addr}/delegations/{delegator_addr}/unbonding_delegation: - get: - summary: |- - UnbondingDelegation queries unbonding info for given validator delegator - pair. - operationId: CosmosStakingV1Beta1Query_UnbondingDelegation - responses: - '200': - description: A successful response. - schema: - type: object - properties: - unbond: - description: unbond defines the unbonding information of a delegation. - type: object - properties: - delegator_address: - type: string - description: delegator_address is the encoded address of the delegator. - validator_address: - type: string - description: validator_address is the encoded address of the validator. - entries: - type: array - items: - type: object - properties: - creation_height: - type: string - format: int64 - description: >- - creation_height is the height which the unbonding - took place. - completion_time: - type: string - format: date-time - description: >- - completion_time is the unix time for unbonding - completion. - initial_balance: - type: string - description: >- - initial_balance defines the tokens initially - scheduled to receive at completion. - balance: - type: string - description: balance defines the tokens to receive at completion. - unbonding_id: - type: string - format: uint64 - title: Incrementing id that uniquely identifies this entry - unbonding_on_hold_ref_count: - type: string - format: int64 - title: >- - Strictly positive if this entry's unbonding has been - stopped by external modules - description: >- - UnbondingDelegationEntry defines an unbonding object - with relevant metadata. - description: |- - entries are the unbonding delegation entries. - - unbonding delegation entries - description: >- - QueryDelegationResponse is response type for the - Query/UnbondingDelegation - - 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 - 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 - - 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" - } - parameters: - - name: validator_addr - description: validator_addr defines the validator address to query for. - in: path - required: true - type: string - - name: delegator_addr - description: delegator_addr defines the delegator address to query for. - in: path - required: true - type: string - tags: - - Query - /cosmos/staking/v1beta1/validators/{validator_addr}/unbonding_delegations: - get: - summary: >- - ValidatorUnbondingDelegations queries unbonding delegations of a - validator. - description: >- - When called from another module, this query might consume a high amount - of - - gas if the pagination field is incorrectly set. - operationId: CosmosStakingV1Beta1Query_ValidatorUnbondingDelegations - responses: - '200': - description: A successful response. - schema: - type: object - properties: - unbonding_responses: - type: array - items: - type: object - properties: - delegator_address: - type: string - description: >- - delegator_address is the encoded address of the - delegator. - validator_address: - type: string - description: >- - validator_address is the encoded address of the - validator. - entries: - type: array - items: - type: object - properties: - creation_height: - type: string - format: int64 - description: >- - creation_height is the height which the unbonding - took place. - completion_time: - type: string - format: date-time - description: >- - completion_time is the unix time for unbonding - completion. - initial_balance: - type: string - description: >- - initial_balance defines the tokens initially - scheduled to receive at completion. - balance: - type: string - description: >- - balance defines the tokens to receive at - completion. - unbonding_id: - type: string - format: uint64 - title: >- - Incrementing id that uniquely identifies this - entry - unbonding_on_hold_ref_count: - type: string - format: int64 - title: >- - Strictly positive if this entry's unbonding has - been stopped by external modules - description: >- - UnbondingDelegationEntry defines an unbonding object - with relevant metadata. - description: |- - entries are the unbonding delegation entries. - - unbonding delegation entries - description: >- - UnbondingDelegation stores all of a single delegator's - unbonding bonds - - for a single validator in an time-ordered list. - pagination: - description: pagination defines the pagination in the response. - 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: >- - QueryValidatorUnbondingDelegationsResponse is response type for - the - - Query/ValidatorUnbondingDelegations 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 - 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 - - 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" - } - parameters: - - name: validator_addr - description: validator_addr defines the validator address to query for. - in: path - required: true - type: string - - 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 - /cosmos.staking.v1beta1.Msg/BeginRedelegate: - post: - summary: >- - BeginRedelegate defines a method for performing a redelegation - - of coins from a delegator and source validator to a destination - validator. - operationId: CosmosStakingV1Beta1Msg_BeginRedelegate - responses: - '200': - description: A successful response. - schema: - type: object - properties: - completion_time: - type: string - format: date-time - description: >- - MsgBeginRedelegateResponse defines the Msg/BeginRedelegate - response type. - 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 - 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 - - 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" - } - parameters: - - name: body - description: >- - MsgBeginRedelegate defines a SDK message for performing a - redelegation - - of coins from a delegator and source validator to a destination - validator. - in: body - required: true - schema: - 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. - tags: - - Msg - /cosmos.staking.v1beta1.Msg/CancelUnbondingDelegation: - post: - summary: >- - CancelUnbondingDelegation defines a method for performing canceling the - unbonding delegation - - and delegate back to previous validator. - description: 'Since: cosmos-sdk 0.46' - operationId: CosmosStakingV1Beta1Msg_CancelUnbondingDelegation - responses: - '200': - description: A successful response. - schema: - type: object - description: 'Since: cosmos-sdk 0.46' - title: MsgCancelUnbondingDelegationResponse - 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 - 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 - - 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" - } - parameters: - - name: body - description: 'Since: cosmos-sdk 0.46' - in: body - required: true - schema: - type: object - properties: - delegator_address: - type: string - validator_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. - 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 - tags: - - Msg - /cosmos.staking.v1beta1.Msg/CreateValidator: - post: - summary: CreateValidator defines a method for creating a new validator. - operationId: CosmosStakingV1Beta1Msg_CreateValidator - responses: - '200': - description: A successful response. - schema: - type: object - description: >- - MsgCreateValidatorResponse defines the Msg/CreateValidator - response type. - 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 - 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 - - 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" - } - parameters: - - name: body - description: >- - MsgCreateValidator defines a SDK message for creating a new - validator. - in: body - required: true - schema: - 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: - type: string - delegator_address: - 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: - type: string - pubkey: - 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. - - - 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" - } - value: - 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: >- - MsgCreateValidator defines a SDK message for creating a new - validator. - tags: - - Msg - /cosmos.staking.v1beta1.Msg/Delegate: - post: - summary: |- - Delegate defines a method for performing a delegation of coins - from a delegator to a validator. - operationId: CosmosStakingV1Beta1Msg_Delegate - responses: - '200': - description: A successful response. - schema: - type: object - description: MsgDelegateResponse defines the Msg/Delegate response type. - 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 - 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 - - 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" - } - parameters: - - name: body - description: >- - MsgDelegate defines a SDK message for performing a delegation of - coins - - from a delegator to a validator. - in: body - required: true - schema: - type: object - properties: - delegator_address: - type: string - validator_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: >- - MsgDelegate defines a SDK message for performing a delegation of - coins - - from a delegator to a validator. - tags: - - Msg - /cosmos.staking.v1beta1.Msg/EditValidator: - post: - summary: EditValidator defines a method for editing an existing validator. - operationId: CosmosStakingV1Beta1Msg_EditValidator - responses: - '200': - description: A successful response. - schema: - type: object - description: >- - MsgEditValidatorResponse defines the Msg/EditValidator response - type. - 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 - 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 - - 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" - } - parameters: - - name: body - description: >- - MsgEditValidator defines a SDK message for editing an existing - validator. - in: body - required: true - schema: - 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. - 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. - tags: - - Msg - /cosmos.staking.v1beta1.Msg/Undelegate: - post: - summary: |- - Undelegate defines a method for performing an undelegation from a - delegate and a validator. - operationId: CosmosStakingV1Beta1Msg_Undelegate - responses: - '200': - description: A successful response. - schema: - type: object - properties: - completion_time: - type: string - format: date-time - 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 returns the amount of undelegated coins - description: MsgUndelegateResponse defines the Msg/Undelegate response type. - 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 - 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 - - 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" - } - parameters: - - name: body - description: >- - MsgUndelegate defines a SDK message for performing an undelegation - from a - - delegate and a validator. - in: body - required: true - schema: - type: object - properties: - delegator_address: - type: string - validator_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: >- - MsgUndelegate defines a SDK message for performing an undelegation - from a - - delegate and a validator. - tags: - - Msg - /cosmos.staking.v1beta1.Msg/UpdateParams: - post: - summary: |- - UpdateParams defines an operation for updating the x/staking module - parameters. - Since: cosmos-sdk 0.47 - operationId: CosmosStakingV1Beta1Msg_UpdateParams - responses: - '200': - description: A successful response. - schema: - type: object - description: >- - MsgUpdateParamsResponse defines the response structure for - executing a - - MsgUpdateParams message. - - - Since: cosmos-sdk 0.47 - 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 - 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 - - 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" - } - parameters: - - name: body - description: |- - MsgUpdateParams is the Msg/UpdateParams request type. - - Since: cosmos-sdk 0.47 - in: body - required: true - schema: - 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/staking parameters to update. - - NOTE: All parameters must be supplied. - 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: |- - MsgUpdateParams is the Msg/UpdateParams request type. - - Since: cosmos-sdk 0.47 - tags: - - Msg - /cosmos/tx/v1beta1/decode: - post: - summary: TxDecode decodes the transaction. - description: 'Since: cosmos-sdk 0.47' - operationId: CosmosTxV1Beta1Service_TxDecode - responses: - '200': - description: A successful response. - schema: - $ref: '#/definitions/cosmos.tx.v1beta1.TxDecodeResponse' - 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 - 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 - - 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" - } - parameters: - - name: body - description: |- - TxDecodeRequest is the request type for the Service.TxDecode - RPC method. - - Since: cosmos-sdk 0.47 - in: body - required: true - schema: - type: object - properties: - tx_bytes: - type: string - format: byte - description: tx_bytes is the raw transaction. - description: |- - TxDecodeRequest is the request type for the Service.TxDecode - RPC method. - - Since: cosmos-sdk 0.47 - tags: - - Service - /cosmos/tx/v1beta1/decode/amino: - post: - summary: TxDecodeAmino decodes an Amino transaction from encoded bytes to JSON. - description: 'Since: cosmos-sdk 0.47' - operationId: CosmosTxV1Beta1Service_TxDecodeAmino - responses: - '200': - description: A successful response. - schema: - type: object - properties: - amino_json: - type: string - description: >- - TxDecodeAminoResponse is the response type for the - Service.TxDecodeAmino - - RPC method. - - - Since: cosmos-sdk 0.47 - 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 - 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 - - 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" - } - parameters: - - name: body - description: >- - TxDecodeAminoRequest is the request type for the - Service.TxDecodeAmino - - RPC method. - - - Since: cosmos-sdk 0.47 - in: body - required: true - schema: - type: object - properties: - amino_binary: - type: string - format: byte - description: >- - TxDecodeAminoRequest is the request type for the - Service.TxDecodeAmino - - RPC method. - - - Since: cosmos-sdk 0.47 - tags: - - Service - /cosmos/tx/v1beta1/encode: - post: - summary: TxEncode encodes the transaction. - description: 'Since: cosmos-sdk 0.47' - operationId: CosmosTxV1Beta1Service_TxEncode - responses: - '200': - description: A successful response. - schema: - type: object - properties: - tx_bytes: - type: string - format: byte - description: tx_bytes is the encoded transaction bytes. - description: |- - TxEncodeResponse is the response type for the - Service.TxEncode method. - - Since: cosmos-sdk 0.47 - 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 - 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 - - 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" - } - parameters: - - name: body - description: |- - TxEncodeRequest is the request type for the Service.TxEncode - RPC method. - - Since: cosmos-sdk 0.47 - in: body - required: true - schema: - $ref: '#/definitions/cosmos.tx.v1beta1.TxEncodeRequest' - tags: - - Service - /cosmos/tx/v1beta1/encode/amino: - post: - summary: TxEncodeAmino encodes an Amino transaction from JSON to encoded bytes. - description: 'Since: cosmos-sdk 0.47' - operationId: CosmosTxV1Beta1Service_TxEncodeAmino - responses: - '200': - description: A successful response. - schema: - type: object - properties: - amino_binary: - type: string - format: byte - description: >- - TxEncodeAminoResponse is the response type for the - Service.TxEncodeAmino - - RPC method. - - - Since: cosmos-sdk 0.47 - 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 - 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 - - 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" - } - parameters: - - name: body - description: >- - TxEncodeAminoRequest is the request type for the - Service.TxEncodeAmino - - RPC method. - - - Since: cosmos-sdk 0.47 - in: body - required: true - schema: - type: object - properties: - amino_json: - type: string - description: >- - TxEncodeAminoRequest is the request type for the - Service.TxEncodeAmino - - RPC method. - - - Since: cosmos-sdk 0.47 - tags: - - Service - /cosmos/tx/v1beta1/simulate: - post: - summary: Simulate simulates executing a transaction for estimating gas usage. - operationId: CosmosTxV1Beta1Service_Simulate - responses: - '200': - description: A successful response. - schema: - type: object - properties: - gas_info: - description: gas_info is the information about gas used in the simulation. - type: object - properties: - gas_wanted: - type: string - format: uint64 - description: >- - GasWanted is the maximum units of work we allow this tx to - perform. - gas_used: - type: string - format: uint64 - description: GasUsed is the amount of gas actually consumed. - result: - description: result is the result of the simulation. - type: object - properties: - data: - type: string - format: byte - description: >- - Data is any data returned from message or handler - execution. It MUST be - - length prefixed in order to separate data from multiple - message executions. - - Deprecated. This field is still populated, but prefer - msg_response instead - - because it also contains the Msg response typeURL. - log: - type: string - description: >- - Log contains the log information from message or handler - execution. - events: - type: array - items: - type: object - properties: - type: - type: string - attributes: - type: array - items: - type: object - properties: - key: - type: string - value: - type: string - index: - type: boolean - title: nondeterministic - description: >- - EventAttribute is a single key-value pair, - associated with an event. - description: >- - Event allows application developers to attach additional - information to - - ResponseFinalizeBlock and ResponseCheckTx. - - Later, transactions may be queried using these events. - description: >- - Events contains a slice of Event objects that were emitted - during message - - or handler execution. - msg_responses: - type: array - items: - 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. - - - 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" - } - description: >- - msg_responses contains the Msg handler responses type - packed in Anys. - - - Since: cosmos-sdk 0.46 - description: |- - SimulateResponse is the response type for the - Service.SimulateRPC 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 - 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 - - 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" - } - parameters: - - name: body - description: |- - SimulateRequest is the request type for the Service.Simulate - RPC method. - in: body - required: true - schema: - $ref: '#/definitions/cosmos.tx.v1beta1.SimulateRequest' - tags: - - Service - /cosmos/tx/v1beta1/txs: - get: - summary: GetTxsEvent fetches txs by event. - operationId: CosmosTxV1Beta1Service_GetTxsEvent - responses: - '200': - description: A successful response. - schema: - $ref: '#/definitions/cosmos.tx.v1beta1.GetTxsEventResponse' - 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 - 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 - - 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" - } - parameters: - - name: events - description: >- - events is the list of transaction event type. - - Deprecated post v0.47.x: use query instead, which should contain a - valid - - events query. - in: query - required: false - type: array - items: - type: string - collectionFormat: multi - - 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 - - name: order_by - description: |2- - - ORDER_BY_UNSPECIFIED: ORDER_BY_UNSPECIFIED specifies an unknown sorting order. OrderBy defaults - to ASC in this case. - - ORDER_BY_ASC: ORDER_BY_ASC defines ascending order - - ORDER_BY_DESC: ORDER_BY_DESC defines descending order - in: query - required: false - type: string - enum: - - ORDER_BY_UNSPECIFIED - - ORDER_BY_ASC - - ORDER_BY_DESC - default: ORDER_BY_UNSPECIFIED - - name: page - description: |- - page is the page number to query, starts at 1. If not provided, will - default to first page. - in: query - required: false - type: string - format: uint64 - - name: 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: query - description: >- - query defines the transaction event query that is proxied to - Tendermint's - - TxSearch RPC method. The query must be valid. - - - Since cosmos-sdk 0.50 - in: query - required: false - type: string - tags: - - Service - post: - summary: BroadcastTx broadcast transaction. - operationId: CosmosTxV1Beta1Service_BroadcastTx - responses: - '200': - description: A successful response. - schema: - type: object - properties: - tx_response: - description: tx_response is the queried TxResponses. - type: object - properties: - height: - type: string - format: int64 - title: The block height - txhash: - type: string - description: The transaction hash. - codespace: - type: string - title: Namespace for the Code - code: - type: integer - format: int64 - description: Response code. - data: - type: string - description: Result bytes, if any. - raw_log: - type: string - description: >- - The output of the application's logger (raw string). May - be - - non-deterministic. - logs: - type: array - items: - type: object - properties: - msg_index: - type: integer - format: int64 - log: - type: string - events: - type: array - items: - type: object - properties: - type: - type: string - attributes: - type: array - items: - type: object - properties: - key: - type: string - value: - type: string - description: >- - Attribute defines an attribute wrapper where - the key and value are - - strings instead of raw bytes. - description: >- - StringEvent defines en Event object wrapper where - all the attributes - - contain key/value pairs that are strings instead - of raw bytes. - description: >- - Events contains a slice of Event objects that were - emitted during some - - execution. - description: >- - ABCIMessageLog defines a structure containing an indexed - tx ABCI message log. - description: >- - The output of the application's logger (typed). May be - non-deterministic. - info: - type: string - description: Additional information. May be non-deterministic. - gas_wanted: - type: string - format: int64 - description: Amount of gas requested for transaction. - gas_used: - type: string - format: int64 - description: Amount of gas consumed by transaction. - tx: - description: The request transaction bytes. - 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: {} - timestamp: - type: string - description: >- - Time of the previous block. For heights > 1, it's the - weighted median of - - the timestamps of the valid votes in the block.LastCommit. - For height == 1, - - it's genesis time. - events: - type: array - items: - type: object - properties: - type: - type: string - attributes: - type: array - items: - type: object - properties: - key: - type: string - value: - type: string - index: - type: boolean - title: nondeterministic - description: >- - EventAttribute is a single key-value pair, - associated with an event. - description: >- - Event allows application developers to attach additional - information to - - ResponseFinalizeBlock and ResponseCheckTx. - - Later, transactions may be queried using these events. - description: >- - Events defines all the events emitted by processing a - transaction. Note, - - these events include those emitted by processing all the - messages and those - - emitted from the ante. Whereas Logs contains the events, - with - - additional metadata, emitted only by processing the - messages. - - - Since: cosmos-sdk 0.42.11, 0.44.5, 0.45 - description: |- - BroadcastTxResponse is the response type for the - Service.BroadcastTx 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 - 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 - - 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" - } - parameters: - - name: body - description: >- - BroadcastTxRequest is the request type for the - Service.BroadcastTxRequest - - RPC method. - in: body - required: true - schema: - type: object - properties: - tx_bytes: - type: string - format: byte - description: tx_bytes is the raw transaction. - mode: - type: string - enum: - - BROADCAST_MODE_UNSPECIFIED - - BROADCAST_MODE_BLOCK - - BROADCAST_MODE_SYNC - - BROADCAST_MODE_ASYNC - default: BROADCAST_MODE_UNSPECIFIED - description: >- - BroadcastMode specifies the broadcast mode for the - TxService.Broadcast RPC - - method. - - - BROADCAST_MODE_UNSPECIFIED: zero-value for mode ordering - - BROADCAST_MODE_BLOCK: DEPRECATED: use BROADCAST_MODE_SYNC instead, - BROADCAST_MODE_BLOCK is not supported by the SDK from v0.47.x - onwards. - - BROADCAST_MODE_SYNC: BROADCAST_MODE_SYNC defines a tx broadcasting mode where the client waits - for a CheckTx execution response only. - - BROADCAST_MODE_ASYNC: BROADCAST_MODE_ASYNC defines a tx broadcasting mode where the client - returns immediately. - description: >- - BroadcastTxRequest is the request type for the - Service.BroadcastTxRequest - - RPC method. - tags: - - Service - /cosmos/tx/v1beta1/txs/block/{height}: - get: - summary: GetBlockWithTxs fetches a block with decoded txs. - description: 'Since: cosmos-sdk 0.45.2' - operationId: CosmosTxV1Beta1Service_GetBlockWithTxs - responses: - '200': - description: A successful response. - schema: - $ref: '#/definitions/cosmos.tx.v1beta1.GetBlockWithTxsResponse' - 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 - 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 - - 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" - } - parameters: - - name: height - description: height is the height of the block to query. - in: path - required: true - type: string - format: int64 - - 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: - - Service - /cosmos/tx/v1beta1/txs/{hash}: - get: - summary: GetTx fetches a tx by hash. - operationId: CosmosTxV1Beta1Service_GetTx - responses: - '200': - description: A successful response. - schema: - $ref: '#/definitions/cosmos.tx.v1beta1.GetTxResponse' - 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 - 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 - - 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" - } - parameters: - - name: hash - description: hash is the tx hash to query, encoded as a hex string. - in: path - required: true - type: string - tags: - - Service - /cosmos/upgrade/v1beta1/applied_plan/{name}: - get: - summary: AppliedPlan queries a previously applied upgrade plan by its name. - operationId: CosmosUpgradeV1Beta1Query_AppliedPlan - responses: - '200': - description: A successful response. - schema: - type: object - properties: - height: - type: string - format: int64 - description: height is the block height at which the plan was applied. - description: >- - QueryAppliedPlanResponse is the response type for the - Query/AppliedPlan 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 - 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 - - 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" - } - parameters: - - name: name - description: name is the name of the applied plan to query for. - in: path - required: true - type: string - tags: - - Query - /cosmos/upgrade/v1beta1/authority: - get: - summary: Returns the account with authority to conduct upgrades - description: 'Since: cosmos-sdk 0.46' - operationId: CosmosUpgradeV1Beta1Query_Authority - responses: - '200': - description: A successful response. - schema: - type: object - properties: - address: - type: string - description: 'Since: cosmos-sdk 0.46' - title: QueryAuthorityResponse is the response type for Query/Authority - 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 - 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 - - 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" - } - tags: - - Query - /cosmos/upgrade/v1beta1/current_plan: - get: - summary: CurrentPlan queries the current upgrade plan. - operationId: CosmosUpgradeV1Beta1Query_CurrentPlan - responses: - '200': - description: A successful response. - schema: - type: object - properties: - plan: - description: plan is the current upgrade 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 - - has been removed from the SDK. - - 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: >- - 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: >- - QueryCurrentPlanResponse is the response type for the - Query/CurrentPlan 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 - 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 - - 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" - } - tags: - - Query - /cosmos/upgrade/v1beta1/module_versions: - get: - summary: ModuleVersions queries the list of module versions from state. - description: 'Since: cosmos-sdk 0.43' - operationId: CosmosUpgradeV1Beta1Query_ModuleVersions - responses: - '200': - description: A successful response. - schema: - type: object - properties: - module_versions: - type: array - items: - type: object - properties: - name: - type: string - title: name of the app module - version: - type: string - format: uint64 - title: consensus version of the app module - description: |- - ModuleVersion specifies a module and its consensus version. - - Since: cosmos-sdk 0.43 - description: >- - module_versions is a list of module names with their consensus - versions. - description: >- - QueryModuleVersionsResponse is the response type for the - Query/ModuleVersions - - RPC method. - - - Since: cosmos-sdk 0.43 - 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 - 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 - - 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" - } - parameters: - - name: module_name - description: |- - module_name is a field to query a specific module - consensus version from state. Leaving this empty will - fetch the full list of module versions from state - in: query - required: false - type: string - tags: - - Query - /cosmos/upgrade/v1beta1/upgraded_consensus_state/{last_height}: - get: - summary: >- - UpgradedConsensusState queries the consensus state that will serve - - as a trusted kernel for the next version of this chain. It will only be - - stored at the last height of this chain. - - UpgradedConsensusState RPC not supported with legacy querier - - This rpc is deprecated now that IBC has its own replacement - - (https://github.com/cosmos/ibc-go/blob/2c880a22e9f9cc75f62b527ca94aa75ce1106001/proto/ibc/core/client/v1/query.proto#L54) - operationId: CosmosUpgradeV1Beta1Query_UpgradedConsensusState - responses: - '200': - description: A successful response. - schema: - type: object - properties: - upgraded_consensus_state: - type: string - format: byte - title: 'Since: cosmos-sdk 0.43' - description: >- - QueryUpgradedConsensusStateResponse is the response type for the - Query/UpgradedConsensusState - - 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 - 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 - - 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" - } - parameters: - - name: last_height - description: |- - last height of the current chain must be sent in request - as this is the height under which next consensus state is stored - in: path - required: true - type: string - format: int64 - tags: - - Query - /cosmos.upgrade.v1beta1.Msg/CancelUpgrade: - post: - summary: |- - CancelUpgrade is a governance operation for cancelling a previously - approved software upgrade. - description: 'Since: cosmos-sdk 0.46' - operationId: CosmosUpgradeV1Beta1Msg_CancelUpgrade - responses: - '200': - description: A successful response. - schema: - type: object - description: |- - MsgCancelUpgradeResponse is the Msg/CancelUpgrade response type. - - Since: cosmos-sdk 0.46 - 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 - 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 - - 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" - } - parameters: - - name: body - description: |- - MsgCancelUpgrade is the Msg/CancelUpgrade request type. - - Since: cosmos-sdk 0.46 - in: body - required: true - schema: - type: object - properties: - authority: - type: string - description: >- - authority is the address that controls the module (defaults to - x/gov unless overwritten). - description: |- - MsgCancelUpgrade is the Msg/CancelUpgrade request type. - - Since: cosmos-sdk 0.46 - tags: - - Msg - /cosmos.upgrade.v1beta1.Msg/SoftwareUpgrade: - post: - summary: >- - SoftwareUpgrade is a governance operation for initiating a software - upgrade. - description: 'Since: cosmos-sdk 0.46' - operationId: CosmosUpgradeV1Beta1Msg_SoftwareUpgrade - responses: - '200': - description: A successful response. - schema: - type: object - description: >- - MsgSoftwareUpgradeResponse is the Msg/SoftwareUpgrade response - type. - - - Since: cosmos-sdk 0.46 - 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 - 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 - - 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" - } - parameters: - - name: body - description: |- - MsgSoftwareUpgrade is the Msg/SoftwareUpgrade request type. - - Since: cosmos-sdk 0.46 - in: body - required: true - schema: - type: object - properties: - authority: - type: string - description: >- - authority is the address that controls the module (defaults to - x/gov unless overwritten). - plan: - description: plan is the upgrade 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 - - has been removed from the SDK. - - 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: >- - 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: |- - MsgSoftwareUpgrade is the Msg/SoftwareUpgrade request type. - - Since: cosmos-sdk 0.46 - tags: - - Msg - /cosmos.vesting.v1beta1.Msg/CreatePeriodicVestingAccount: - post: - summary: |- - CreatePeriodicVestingAccount defines a method that enables creating a - periodic vesting account. - description: 'Since: cosmos-sdk 0.46' - operationId: CosmosVestingV1Beta1Msg_CreatePeriodicVestingAccount - responses: - '200': - description: A successful response. - schema: - type: object - description: >- - MsgCreateVestingAccountResponse defines the - Msg/CreatePeriodicVestingAccount - - response type. - - - Since: cosmos-sdk 0.46 - 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 - 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 - - 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" - } - parameters: - - name: body - description: >- - MsgCreateVestingAccount defines a message that enables creating a - vesting - - account. - - - Since: cosmos-sdk 0.46 - in: body - required: true - schema: - type: object - properties: - from_address: - type: string - to_address: - type: string - start_time: - type: string - format: int64 - description: start of vesting as unix time (in seconds). - vesting_periods: - type: array - items: - type: object - properties: - length: - type: string - format: int64 - description: Period duration in seconds. - 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. - description: >- - Period defines a length of time and amount of coins that - will vest. - description: >- - MsgCreateVestingAccount defines a message that enables creating a - vesting - - account. - - - Since: cosmos-sdk 0.46 - tags: - - Msg - /cosmos.vesting.v1beta1.Msg/CreatePermanentLockedAccount: - post: - summary: >- - CreatePermanentLockedAccount defines a method that enables creating a - permanent - - locked account. - description: 'Since: cosmos-sdk 0.46' - operationId: CosmosVestingV1Beta1Msg_CreatePermanentLockedAccount - responses: - '200': - description: A successful response. - schema: - type: object - description: >- - MsgCreatePermanentLockedAccountResponse defines the - Msg/CreatePermanentLockedAccount response type. - - - Since: cosmos-sdk 0.46 - 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 - 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 - - 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" - } - parameters: - - name: body - description: >- - MsgCreatePermanentLockedAccount defines a message that enables - creating a permanent - - locked account. - - - Since: cosmos-sdk 0.46 - in: body - required: true - schema: - type: object - properties: - from_address: - type: string - to_address: - type: string - 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. - description: >- - MsgCreatePermanentLockedAccount defines a message that enables - creating a permanent - - locked account. - - - Since: cosmos-sdk 0.46 - tags: - - Msg - /cosmos.vesting.v1beta1.Msg/CreateVestingAccount: - post: - summary: |- - CreateVestingAccount defines a method that enables creating a vesting - account. - operationId: CosmosVestingV1Beta1Msg_CreateVestingAccount - responses: - '200': - description: A successful response. - schema: - type: object - description: >- - MsgCreateVestingAccountResponse defines the - Msg/CreateVestingAccount response type. - 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 - 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 - - 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" - } - parameters: - - name: body - description: >- - MsgCreateVestingAccount defines a message that enables creating a - vesting - - account. - in: body - required: true - schema: - type: object - properties: - from_address: - type: string - to_address: - type: string - 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. - end_time: - type: string - format: int64 - description: end of vesting as unix time (in seconds). - delayed: - type: boolean - description: >- - MsgCreateVestingAccount defines a message that enables creating a - vesting - - account. - tags: - - Msg - /cosmwasm/wasm/v1/code: - get: - summary: Codes gets the metadata for all stored wasm codes - operationId: CosmwasmWasmV1Query_Codes - responses: - '200': - description: A successful response. - schema: - type: object - properties: - code_infos: - type: array - items: - type: object - properties: - code_id: - type: string - format: uint64 - title: id for legacy support - creator: - type: string - data_hash: - type: string - format: byte - instantiate_permission: - type: object - properties: - permission: - type: string - enum: - - ACCESS_TYPE_UNSPECIFIED - - ACCESS_TYPE_NOBODY - - ACCESS_TYPE_EVERYBODY - - ACCESS_TYPE_ANY_OF_ADDRESSES - default: ACCESS_TYPE_UNSPECIFIED - description: >- - - ACCESS_TYPE_UNSPECIFIED: AccessTypeUnspecified - placeholder for empty value - - ACCESS_TYPE_NOBODY: AccessTypeNobody forbidden - - ACCESS_TYPE_EVERYBODY: AccessTypeEverybody unrestricted - - ACCESS_TYPE_ANY_OF_ADDRESSES: AccessTypeAnyOfAddresses allow any of the addresses - title: AccessType permission types - addresses: - type: array - items: - type: string - description: AccessConfig access control type. - title: CodeInfoResponse contains code meta data from CodeInfo - pagination: - description: pagination defines the pagination in the response. - 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 - title: >- - QueryCodesResponse is the response type for the Query/Codes 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 - 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 - - 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" - } - 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 - /cosmwasm/wasm/v1/code/{code_id}: - get: - summary: Code gets the binary code and metadata for a singe wasm code - operationId: CosmwasmWasmV1Query_Code - responses: - '200': - description: A successful response. - schema: - type: object - properties: - code_info: - type: object - properties: - code_id: - type: string - format: uint64 - title: id for legacy support - creator: - type: string - data_hash: - type: string - format: byte - instantiate_permission: - type: object - properties: - permission: - type: string - enum: - - ACCESS_TYPE_UNSPECIFIED - - ACCESS_TYPE_NOBODY - - ACCESS_TYPE_EVERYBODY - - ACCESS_TYPE_ANY_OF_ADDRESSES - default: ACCESS_TYPE_UNSPECIFIED - description: >- - - ACCESS_TYPE_UNSPECIFIED: AccessTypeUnspecified - placeholder for empty value - - ACCESS_TYPE_NOBODY: AccessTypeNobody forbidden - - ACCESS_TYPE_EVERYBODY: AccessTypeEverybody unrestricted - - ACCESS_TYPE_ANY_OF_ADDRESSES: AccessTypeAnyOfAddresses allow any of the addresses - title: AccessType permission types - addresses: - type: array - items: - type: string - description: AccessConfig access control type. - title: CodeInfoResponse contains code meta data from CodeInfo - data: - type: string - format: byte - title: >- - QueryCodeResponse is the response type for the Query/Code 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 - 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 - - 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" - } - parameters: - - name: code_id - description: grpc-gateway_out does not support Go style CodID - in: path - required: true - type: string - format: uint64 - tags: - - Query - /cosmwasm/wasm/v1/code/{code_id}/contracts: - get: - summary: ContractsByCode lists all smart contracts for a code id - operationId: CosmwasmWasmV1Query_ContractsByCode - responses: - '200': - description: A successful response. - schema: - type: object - properties: - contracts: - type: array - items: - type: string - title: contracts are a set of contract addresses - pagination: - description: pagination defines the pagination in the response. - 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 - title: |- - QueryContractsByCodeResponse is the response type for the - Query/ContractsByCode 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 - 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 - - 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" - } - parameters: - - name: code_id - description: grpc-gateway_out does not support Go style CodID - in: path - required: true - type: string - format: uint64 - - 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 - /cosmwasm/wasm/v1/codes/params: - get: - summary: Params gets the module params - operationId: CosmwasmWasmV1Query_Params - responses: - '200': - description: A successful response. - schema: - type: object - properties: - params: - description: params defines the parameters of the module. - type: object - properties: - code_upload_access: - type: object - properties: - permission: - type: string - enum: - - ACCESS_TYPE_UNSPECIFIED - - ACCESS_TYPE_NOBODY - - ACCESS_TYPE_EVERYBODY - - ACCESS_TYPE_ANY_OF_ADDRESSES - default: ACCESS_TYPE_UNSPECIFIED - description: >- - - ACCESS_TYPE_UNSPECIFIED: AccessTypeUnspecified - placeholder for empty value - - ACCESS_TYPE_NOBODY: AccessTypeNobody forbidden - - ACCESS_TYPE_EVERYBODY: AccessTypeEverybody unrestricted - - ACCESS_TYPE_ANY_OF_ADDRESSES: AccessTypeAnyOfAddresses allow any of the addresses - title: AccessType permission types - addresses: - type: array - items: - type: string - description: AccessConfig access control type. - instantiate_default_permission: - type: string - enum: - - ACCESS_TYPE_UNSPECIFIED - - ACCESS_TYPE_NOBODY - - ACCESS_TYPE_EVERYBODY - - ACCESS_TYPE_ANY_OF_ADDRESSES - default: ACCESS_TYPE_UNSPECIFIED - description: >- - - ACCESS_TYPE_UNSPECIFIED: AccessTypeUnspecified - placeholder for empty value - - ACCESS_TYPE_NOBODY: AccessTypeNobody forbidden - - ACCESS_TYPE_EVERYBODY: AccessTypeEverybody unrestricted - - ACCESS_TYPE_ANY_OF_ADDRESSES: AccessTypeAnyOfAddresses allow any of the addresses - title: AccessType permission types - description: >- - QueryParamsResponse is the 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 - 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 - - 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" - } - tags: - - Query - /cosmwasm/wasm/v1/codes/pinned: - get: - summary: PinnedCodes gets the pinned code ids - operationId: CosmwasmWasmV1Query_PinnedCodes - responses: - '200': - description: A successful response. - schema: - type: object - properties: - code_ids: - type: array - items: - type: string - format: uint64 - pagination: - description: pagination defines the pagination in the response. - 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 - title: |- - QueryPinnedCodesResponse is the response type for the - Query/PinnedCodes 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 - 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 - - 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" - } - 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 - /cosmwasm/wasm/v1/contract/{address}: - get: - summary: ContractInfo gets the contract meta data - operationId: CosmwasmWasmV1Query_ContractInfo - responses: - '200': - description: A successful response. - schema: - type: object - properties: - address: - type: string - title: address is the address of the contract - contract_info: - type: object - properties: - code_id: - type: string - format: uint64 - title: CodeID is the reference to the stored Wasm code - creator: - type: string - title: Creator address who initially instantiated the contract - admin: - type: string - title: Admin is an optional address that can execute migrations - label: - type: string - description: >- - Label is optional metadata to be stored with a contract - instance. - created: - description: Created Tx position when the contract was instantiated. - type: object - properties: - block_height: - type: string - format: uint64 - title: BlockHeight is the block the contract was created at - tx_index: - type: string - format: uint64 - title: >- - TxIndex is a monotonic counter within the block - (actual transaction index, - - or gas consumed) - ibc_port_id: - type: string - extension: - description: >- - Extension is an extension point to store custom metadata - within the - - persistence model. - 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: {} - title: ContractInfo stores a WASM contract instance - title: >- - QueryContractInfoResponse is the response type for the - Query/ContractInfo 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 - 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 - - 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" - } - parameters: - - name: address - description: address is the address of the contract to query - in: path - required: true - type: string - tags: - - Query - /cosmwasm/wasm/v1/contract/{address}/history: - get: - summary: ContractHistory gets the contract code history - operationId: CosmwasmWasmV1Query_ContractHistory - responses: - '200': - description: A successful response. - schema: - type: object - properties: - entries: - type: array - items: - type: object - properties: - operation: - type: string - enum: - - CONTRACT_CODE_HISTORY_OPERATION_TYPE_UNSPECIFIED - - CONTRACT_CODE_HISTORY_OPERATION_TYPE_INIT - - CONTRACT_CODE_HISTORY_OPERATION_TYPE_MIGRATE - - CONTRACT_CODE_HISTORY_OPERATION_TYPE_GENESIS - default: CONTRACT_CODE_HISTORY_OPERATION_TYPE_UNSPECIFIED - description: >- - - CONTRACT_CODE_HISTORY_OPERATION_TYPE_UNSPECIFIED: - ContractCodeHistoryOperationTypeUnspecified placeholder - for empty value - - CONTRACT_CODE_HISTORY_OPERATION_TYPE_INIT: ContractCodeHistoryOperationTypeInit on chain contract instantiation - - CONTRACT_CODE_HISTORY_OPERATION_TYPE_MIGRATE: ContractCodeHistoryOperationTypeMigrate code migration - - CONTRACT_CODE_HISTORY_OPERATION_TYPE_GENESIS: ContractCodeHistoryOperationTypeGenesis based on genesis data - title: >- - ContractCodeHistoryOperationType actions that caused a - code change - code_id: - type: string - format: uint64 - title: CodeID is the reference to the stored WASM code - updated: - description: Updated Tx position when the operation was executed. - type: object - properties: - block_height: - type: string - format: uint64 - title: BlockHeight is the block the contract was created at - tx_index: - type: string - format: uint64 - title: >- - TxIndex is a monotonic counter within the block - (actual transaction index, - - or gas consumed) - msg: - type: string - format: byte - description: ContractCodeHistoryEntry metadata to a contract. - pagination: - description: pagination defines the pagination in the response. - 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 - title: |- - QueryContractHistoryResponse is the response type for the - Query/ContractHistory 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 - 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 - - 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" - } - parameters: - - name: address - description: address is the address of the contract to query - in: path - required: true - type: string - - 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 - /cosmwasm/wasm/v1/contract/{address}/raw/{query_data}: - get: - summary: RawContractState gets single key from the raw store data of a contract - operationId: CosmwasmWasmV1Query_RawContractState - responses: - '200': - description: A successful response. - schema: - type: object - properties: - data: - type: string - format: byte - title: Data contains the raw store data - title: |- - QueryRawContractStateResponse is the response type for the - Query/RawContractState 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 - 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 - - 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" - } - parameters: - - name: address - description: address is the address of the contract - in: path - required: true - type: string - - name: query_data - in: path - required: true - type: string - format: byte - tags: - - Query - /cosmwasm/wasm/v1/contract/{address}/smart/{query_data}: - get: - summary: SmartContractState get smart query result from the contract - operationId: CosmwasmWasmV1Query_SmartContractState - responses: - '200': - description: A successful response. - schema: - type: object - properties: - data: - type: string - format: byte - title: Data contains the json data returned from the smart contract - title: |- - QuerySmartContractStateResponse is the response type for the - Query/SmartContractState 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 - 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 - - 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" - } - parameters: - - name: address - description: address is the address of the contract - in: path - required: true - type: string - - name: query_data - description: QueryData contains the query data passed to the contract - in: path - required: true - type: string - format: byte - tags: - - Query - /cosmwasm/wasm/v1/contract/{address}/state: - get: - summary: AllContractState gets all raw store data for a single contract - operationId: CosmwasmWasmV1Query_AllContractState - responses: - '200': - description: A successful response. - schema: - type: object - properties: - models: - type: array - items: - type: object - properties: - key: - type: string - format: byte - title: hex-encode key to read it better (this is often ascii) - value: - type: string - format: byte - title: base64-encode raw value - title: Model is a struct that holds a KV pair - pagination: - description: pagination defines the pagination in the response. - 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 - title: |- - QueryAllContractStateResponse is the response type for the - Query/AllContractState 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 - 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 - - 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" - } - parameters: - - name: address - description: address is the address of the contract - in: path - required: true - type: string - - 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 - /cosmwasm/wasm/v1/contracts/creator/{creator_address}: - get: - summary: ContractsByCreator gets the contracts by creator - operationId: CosmwasmWasmV1Query_ContractsByCreator - responses: - '200': - description: A successful response. - schema: - type: object - properties: - contract_addresses: - type: array - items: - type: string - title: ContractAddresses result set - pagination: - description: Pagination defines the pagination in the response. - 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: |- - QueryContractsByCreatorResponse is the response type for the - Query/ContractsByCreator 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 - 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 - - 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" - } - parameters: - - name: creator_address - description: CreatorAddress is the address of contract creator - in: path - required: true - type: string - - 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 - /cosmwasm.wasm.v1.Msg/AddCodeUploadParamsAddresses: - post: - summary: |- - AddCodeUploadParamsAddresses defines a governance operation for - adding addresses to code upload params. - The authority is defined in the keeper. - operationId: CosmwasmWasmV1Msg_AddCodeUploadParamsAddresses - responses: - '200': - description: A successful response. - schema: - type: object - description: |- - MsgAddCodeUploadParamsAddressesResponse defines the response - structure for executing a MsgAddCodeUploadParamsAddresses message. - 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 - 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 - - 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" - } - parameters: - - name: body - description: |- - MsgAddCodeUploadParamsAddresses is the - MsgAddCodeUploadParamsAddresses request type. - in: body - required: true - schema: - type: object - properties: - authority: - type: string - description: Authority is the address of the governance account. - addresses: - type: array - items: - type: string - description: |- - MsgAddCodeUploadParamsAddresses is the - MsgAddCodeUploadParamsAddresses request type. - tags: - - Msg - /cosmwasm.wasm.v1.Msg/ClearAdmin: - post: - summary: ClearAdmin removes any admin stored for a smart contract - operationId: CosmwasmWasmV1Msg_ClearAdmin - responses: - '200': - description: A successful response. - schema: - type: object - title: MsgClearAdminResponse returns empty data - 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 - 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 - - 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" - } - parameters: - - name: body - in: body - required: true - schema: - type: object - properties: - sender: - type: string - title: Sender is the actor that signed the messages - contract: - type: string - title: Contract is the address of the smart contract - title: MsgClearAdmin removes any admin stored for a smart contract - tags: - - Msg - /cosmwasm.wasm.v1.Msg/ExecuteContract: - post: - summary: Execute submits the given message data to a smart contract - operationId: CosmwasmWasmV1Msg_ExecuteContract - responses: - '200': - description: A successful response. - schema: - type: object - properties: - data: - type: string - format: byte - title: Data contains bytes to returned from the contract - description: MsgExecuteContractResponse returns execution result data. - 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 - 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 - - 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" - } - parameters: - - name: body - in: body - required: true - schema: - type: object - properties: - sender: - type: string - title: Sender is the that actor that signed the messages - contract: - type: string - title: Contract is the address of the smart contract - msg: - type: string - format: byte - title: Msg json encoded message to be passed to the contract - funds: - 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: Funds coins that are transferred to the contract on execution - title: >- - MsgExecuteContract submits the given message data to a smart - contract - tags: - - Msg - /cosmwasm.wasm.v1.Msg/InstantiateContract: - post: - summary: |- - InstantiateContract creates a new smart contract instance for the given - code id. - operationId: CosmwasmWasmV1Msg_InstantiateContract - responses: - '200': - description: A successful response. - schema: - type: object - properties: - address: - type: string - description: Address is the bech32 address of the new contract instance. - data: - type: string - format: byte - title: Data contains bytes to returned from the contract - title: MsgInstantiateContractResponse return instantiation result data - 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 - 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 - - 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" - } - parameters: - - name: body - description: >- - MsgInstantiateContract create a new smart contract instance for the - given - - code id. - in: body - required: true - schema: - type: object - properties: - sender: - type: string - title: Sender is the that actor that signed the messages - admin: - type: string - title: Admin is an optional address that can execute migrations - code_id: - type: string - format: uint64 - title: CodeID is the reference to the stored WASM code - label: - type: string - description: >- - Label is optional metadata to be stored with a contract - instance. - msg: - type: string - format: byte - title: >- - Msg json encoded message to be passed to the contract on - instantiation - funds: - 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: >- - Funds coins that are transferred to the contract on - instantiation - description: >- - MsgInstantiateContract create a new smart contract instance for - the given - - code id. - tags: - - Msg - /cosmwasm.wasm.v1.Msg/InstantiateContract2: - post: - summary: |- - InstantiateContract2 creates a new smart contract instance for the given - code id with a predictable address - operationId: CosmwasmWasmV1Msg_InstantiateContract2 - responses: - '200': - description: A successful response. - schema: - type: object - properties: - address: - type: string - description: Address is the bech32 address of the new contract instance. - data: - type: string - format: byte - title: Data contains bytes to returned from the contract - title: MsgInstantiateContract2Response return instantiation result data - 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 - 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 - - 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" - } - parameters: - - name: body - description: >- - MsgInstantiateContract2 create a new smart contract instance for the - given - - code id with a predicable address. - in: body - required: true - schema: - type: object - properties: - sender: - type: string - title: Sender is the that actor that signed the messages - admin: - type: string - title: Admin is an optional address that can execute migrations - code_id: - type: string - format: uint64 - title: CodeID is the reference to the stored WASM code - label: - type: string - description: >- - Label is optional metadata to be stored with a contract - instance. - msg: - type: string - format: byte - title: >- - Msg json encoded message to be passed to the contract on - instantiation - funds: - 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: >- - Funds coins that are transferred to the contract on - instantiation - salt: - type: string - format: byte - description: >- - Salt is an arbitrary value provided by the sender. Size can be - 1 to 64. - fix_msg: - type: boolean - title: >- - FixMsg include the msg value into the hash for the predictable - address. - - Default is false - description: >- - MsgInstantiateContract2 create a new smart contract instance for - the given - - code id with a predicable address. - tags: - - Msg - /cosmwasm.wasm.v1.Msg/MigrateContract: - post: - summary: Migrate runs a code upgrade/ downgrade for a smart contract - operationId: CosmwasmWasmV1Msg_MigrateContract - responses: - '200': - description: A successful response. - schema: - type: object - properties: - data: - type: string - format: byte - title: >- - Data contains same raw bytes returned as data from the wasm - contract. - - (May be empty) - description: MsgMigrateContractResponse returns contract migration result data. - 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 - 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 - - 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" - } - parameters: - - name: body - in: body - required: true - schema: - type: object - properties: - sender: - type: string - title: Sender is the that actor that signed the messages - contract: - type: string - title: Contract is the address of the smart contract - code_id: - type: string - format: uint64 - title: CodeID references the new WASM code - msg: - type: string - format: byte - title: >- - Msg json encoded message to be passed to the contract on - migration - title: >- - MsgMigrateContract runs a code upgrade/ downgrade for a smart - contract - tags: - - Msg - /cosmwasm.wasm.v1.Msg/PinCodes: - post: - summary: |- - PinCodes defines a governance operation for pinning a set of - code ids in the wasmvm cache. The authority is defined in the keeper. - description: 'Since: 0.40' - operationId: CosmwasmWasmV1Msg_PinCodes - responses: - '200': - description: A successful response. - schema: - type: object - description: |- - MsgPinCodesResponse defines the response structure for executing a - MsgPinCodes message. - - Since: 0.40 - 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 - 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 - - 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" - } - parameters: - - name: body - description: |- - MsgPinCodes is the MsgPinCodes request type. - - Since: 0.40 - in: body - required: true - schema: - type: object - properties: - authority: - type: string - description: Authority is the address of the governance account. - code_ids: - type: array - items: - type: string - format: uint64 - title: CodeIDs references the new WASM codes - description: |- - MsgPinCodes is the MsgPinCodes request type. - - Since: 0.40 - tags: - - Msg - /cosmwasm.wasm.v1.Msg/RemoveCodeUploadParamsAddresses: - post: - summary: |- - RemoveCodeUploadParamsAddresses defines a governance operation for - removing addresses from code upload params. - The authority is defined in the keeper. - operationId: CosmwasmWasmV1Msg_RemoveCodeUploadParamsAddresses - responses: - '200': - description: A successful response. - schema: - type: object - description: >- - MsgRemoveCodeUploadParamsAddressesResponse defines the response - - structure for executing a MsgRemoveCodeUploadParamsAddresses - message. - 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 - 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 - - 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" - } - parameters: - - name: body - description: |- - MsgRemoveCodeUploadParamsAddresses is the - MsgRemoveCodeUploadParamsAddresses request type. - in: body - required: true - schema: - type: object - properties: - authority: - type: string - description: Authority is the address of the governance account. - addresses: - type: array - items: - type: string - description: |- - MsgRemoveCodeUploadParamsAddresses is the - MsgRemoveCodeUploadParamsAddresses request type. - tags: - - Msg - /cosmwasm.wasm.v1.Msg/StoreAndInstantiateContract: - post: - summary: |- - StoreAndInstantiateContract defines a governance operation for storing - and instantiating the contract. The authority is defined in the keeper. - description: 'Since: 0.40' - operationId: CosmwasmWasmV1Msg_StoreAndInstantiateContract - responses: - '200': - description: A successful response. - schema: - type: object - properties: - address: - type: string - description: Address is the bech32 address of the new contract instance. - data: - type: string - format: byte - title: Data contains bytes to returned from the contract - description: >- - MsgStoreAndInstantiateContractResponse defines the response - structure - - for executing a MsgStoreAndInstantiateContract message. - - - Since: 0.40 - 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 - 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 - - 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" - } - parameters: - - name: body - description: |- - MsgStoreAndInstantiateContract is the MsgStoreAndInstantiateContract - request type. - - Since: 0.40 - in: body - required: true - schema: - type: object - properties: - authority: - type: string - description: Authority is the address of the governance account. - wasm_byte_code: - type: string - format: byte - title: WASMByteCode can be raw or gzip compressed - instantiate_permission: - title: InstantiatePermission to apply on contract creation, optional - type: object - properties: - permission: - type: string - enum: - - ACCESS_TYPE_UNSPECIFIED - - ACCESS_TYPE_NOBODY - - ACCESS_TYPE_EVERYBODY - - ACCESS_TYPE_ANY_OF_ADDRESSES - default: ACCESS_TYPE_UNSPECIFIED - description: >- - - ACCESS_TYPE_UNSPECIFIED: AccessTypeUnspecified - placeholder for empty value - - ACCESS_TYPE_NOBODY: AccessTypeNobody forbidden - - ACCESS_TYPE_EVERYBODY: AccessTypeEverybody unrestricted - - ACCESS_TYPE_ANY_OF_ADDRESSES: AccessTypeAnyOfAddresses allow any of the addresses - title: AccessType permission types - addresses: - type: array - items: - type: string - description: AccessConfig access control type. - unpin_code: - type: boolean - description: >- - UnpinCode code on upload, optional. As default the uploaded - contract is - - pinned to cache. - admin: - type: string - title: Admin is an optional address that can execute migrations - label: - type: string - description: >- - Label is optional metadata to be stored with a constract - instance. - msg: - type: string - format: byte - title: >- - Msg json encoded message to be passed to the contract on - instantiation - funds: - 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: >- - Funds coins that are transferred from the authority account to - the contract - - on instantiation - source: - type: string - title: Source is the URL where the code is hosted - builder: - type: string - title: >- - Builder is the docker image used to build the code - deterministically, used - - for smart contract verification - code_hash: - type: string - format: byte - title: >- - CodeHash is the SHA256 sum of the code outputted by builder, - used for smart - - contract verification - description: >- - MsgStoreAndInstantiateContract is the - MsgStoreAndInstantiateContract - - request type. - - - Since: 0.40 - tags: - - Msg - /cosmwasm.wasm.v1.Msg/StoreAndMigrateContract: - post: - summary: |- - StoreAndMigrateContract defines a governance operation for storing - and migrating the contract. The authority is defined in the keeper. - description: 'Since: 0.42' - operationId: CosmwasmWasmV1Msg_StoreAndMigrateContract - responses: - '200': - description: A successful response. - schema: - type: object - properties: - code_id: - type: string - format: uint64 - title: CodeID is the reference to the stored WASM code - checksum: - type: string - format: byte - title: Checksum is the sha256 hash of the stored code - data: - type: string - format: byte - title: Data contains bytes to returned from the contract - description: |- - MsgStoreAndMigrateContractResponse defines the response structure - for executing a MsgStoreAndMigrateContract message. - - Since: 0.42 - 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 - 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 - - 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" - } - parameters: - - name: body - description: |- - MsgStoreAndMigrateContract is the MsgStoreAndMigrateContract - request type. - - Since: 0.42 - in: body - required: true - schema: - type: object - properties: - authority: - type: string - description: Authority is the address of the governance account. - wasm_byte_code: - type: string - format: byte - title: WASMByteCode can be raw or gzip compressed - instantiate_permission: - title: InstantiatePermission to apply on contract creation, optional - type: object - properties: - permission: - type: string - enum: - - ACCESS_TYPE_UNSPECIFIED - - ACCESS_TYPE_NOBODY - - ACCESS_TYPE_EVERYBODY - - ACCESS_TYPE_ANY_OF_ADDRESSES - default: ACCESS_TYPE_UNSPECIFIED - description: >- - - ACCESS_TYPE_UNSPECIFIED: AccessTypeUnspecified - placeholder for empty value - - ACCESS_TYPE_NOBODY: AccessTypeNobody forbidden - - ACCESS_TYPE_EVERYBODY: AccessTypeEverybody unrestricted - - ACCESS_TYPE_ANY_OF_ADDRESSES: AccessTypeAnyOfAddresses allow any of the addresses - title: AccessType permission types - addresses: - type: array - items: - type: string - description: AccessConfig access control type. - contract: - type: string - title: Contract is the address of the smart contract - msg: - type: string - format: byte - title: >- - Msg json encoded message to be passed to the contract on - migration - description: |- - MsgStoreAndMigrateContract is the MsgStoreAndMigrateContract - request type. - - Since: 0.42 - tags: - - Msg - /cosmwasm.wasm.v1.Msg/StoreCode: - post: - summary: StoreCode to submit Wasm code to the system - operationId: CosmwasmWasmV1Msg_StoreCode - responses: - '200': - description: A successful response. - schema: - type: object - properties: - code_id: - type: string - format: uint64 - title: CodeID is the reference to the stored WASM code - checksum: - type: string - format: byte - title: Checksum is the sha256 hash of the stored code - description: MsgStoreCodeResponse returns store result data. - 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 - 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 - - 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" - } - parameters: - - name: body - in: body - required: true - schema: - type: object - properties: - sender: - type: string - title: Sender is the actor that signed the messages - wasm_byte_code: - type: string - format: byte - title: WASMByteCode can be raw or gzip compressed - instantiate_permission: - title: >- - InstantiatePermission access control to apply on contract - creation, - - optional - type: object - properties: - permission: - type: string - enum: - - ACCESS_TYPE_UNSPECIFIED - - ACCESS_TYPE_NOBODY - - ACCESS_TYPE_EVERYBODY - - ACCESS_TYPE_ANY_OF_ADDRESSES - default: ACCESS_TYPE_UNSPECIFIED - description: >- - - ACCESS_TYPE_UNSPECIFIED: AccessTypeUnspecified - placeholder for empty value - - ACCESS_TYPE_NOBODY: AccessTypeNobody forbidden - - ACCESS_TYPE_EVERYBODY: AccessTypeEverybody unrestricted - - ACCESS_TYPE_ANY_OF_ADDRESSES: AccessTypeAnyOfAddresses allow any of the addresses - title: AccessType permission types - addresses: - type: array - items: - type: string - description: AccessConfig access control type. - title: MsgStoreCode submit Wasm code to the system - tags: - - Msg - /cosmwasm.wasm.v1.Msg/SudoContract: - post: - summary: |- - SudoContract defines a governance operation for calling sudo - on a contract. The authority is defined in the keeper. - description: 'Since: 0.40' - operationId: CosmwasmWasmV1Msg_SudoContract - responses: - '200': - description: A successful response. - schema: - type: object - properties: - data: - type: string - format: byte - title: Data contains bytes to returned from the contract - description: >- - MsgSudoContractResponse defines the response structure for - executing a - - MsgSudoContract message. - - - Since: 0.40 - 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 - 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 - - 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" - } - parameters: - - name: body - description: |- - MsgSudoContract is the MsgSudoContract request type. - - Since: 0.40 - in: body - required: true - schema: - type: object - properties: - authority: - type: string - description: Authority is the address of the governance account. - contract: - type: string - title: Contract is the address of the smart contract - msg: - type: string - format: byte - title: Msg json encoded message to be passed to the contract as sudo - description: |- - MsgSudoContract is the MsgSudoContract request type. - - Since: 0.40 - tags: - - Msg - /cosmwasm.wasm.v1.Msg/UnpinCodes: - post: - summary: |- - UnpinCodes defines a governance operation for unpinning a set of - code ids in the wasmvm cache. The authority is defined in the keeper. - description: 'Since: 0.40' - operationId: CosmwasmWasmV1Msg_UnpinCodes - responses: - '200': - description: A successful response. - schema: - type: object - description: >- - MsgUnpinCodesResponse defines the response structure for executing - a - - MsgUnpinCodes message. - - - Since: 0.40 - 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 - 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 - - 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" - } - parameters: - - name: body - description: |- - MsgUnpinCodes is the MsgUnpinCodes request type. - - Since: 0.40 - in: body - required: true - schema: - type: object - properties: - authority: - type: string - description: Authority is the address of the governance account. - code_ids: - type: array - items: - type: string - format: uint64 - title: CodeIDs references the WASM codes - description: |- - MsgUnpinCodes is the MsgUnpinCodes request type. - - Since: 0.40 - tags: - - Msg - /cosmwasm.wasm.v1.Msg/UpdateAdmin: - post: - summary: UpdateAdmin sets a new admin for a smart contract - operationId: CosmwasmWasmV1Msg_UpdateAdmin - responses: - '200': - description: A successful response. - schema: - type: object - title: MsgUpdateAdminResponse returns empty data - 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 - 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 - - 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" - } - parameters: - - name: body - in: body - required: true - schema: - type: object - properties: - sender: - type: string - title: Sender is the that actor that signed the messages - new_admin: - type: string - title: NewAdmin address to be set - contract: - type: string - title: Contract is the address of the smart contract - title: MsgUpdateAdmin sets a new admin for a smart contract - tags: - - Msg - /cosmwasm.wasm.v1.Msg/UpdateContractLabel: - post: - summary: UpdateContractLabel sets a new label for a smart contract - description: 'Since: 0.43' - operationId: CosmwasmWasmV1Msg_UpdateContractLabel - responses: - '200': - description: A successful response. - schema: - type: object - title: MsgUpdateContractLabelResponse returns empty data - 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 - 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 - - 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" - } - parameters: - - name: body - in: body - required: true - schema: - type: object - properties: - sender: - type: string - title: Sender is the that actor that signed the messages - new_label: - type: string - title: NewLabel string to be set - contract: - type: string - title: Contract is the address of the smart contract - title: MsgUpdateContractLabel sets a new label for a smart contract - tags: - - Msg - /cosmwasm.wasm.v1.Msg/UpdateInstantiateConfig: - post: - summary: UpdateInstantiateConfig updates instantiate config for a smart contract - operationId: CosmwasmWasmV1Msg_UpdateInstantiateConfig - responses: - '200': - description: A successful response. - schema: - type: object - title: MsgUpdateInstantiateConfigResponse returns empty data - 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 - 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 - - 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" - } - parameters: - - name: body - in: body - required: true - schema: - type: object - properties: - sender: - type: string - title: Sender is the that actor that signed the messages - code_id: - type: string - format: uint64 - title: CodeID references the stored WASM code - new_instantiate_permission: - title: NewInstantiatePermission is the new access control - type: object - properties: - permission: - type: string - enum: - - ACCESS_TYPE_UNSPECIFIED - - ACCESS_TYPE_NOBODY - - ACCESS_TYPE_EVERYBODY - - ACCESS_TYPE_ANY_OF_ADDRESSES - default: ACCESS_TYPE_UNSPECIFIED - description: >- - - ACCESS_TYPE_UNSPECIFIED: AccessTypeUnspecified - placeholder for empty value - - ACCESS_TYPE_NOBODY: AccessTypeNobody forbidden - - ACCESS_TYPE_EVERYBODY: AccessTypeEverybody unrestricted - - ACCESS_TYPE_ANY_OF_ADDRESSES: AccessTypeAnyOfAddresses allow any of the addresses - title: AccessType permission types - addresses: - type: array - items: - type: string - description: AccessConfig access control type. - title: >- - MsgUpdateInstantiateConfig updates instantiate config for a smart - contract - tags: - - Msg - /cosmwasm.wasm.v1.Msg/UpdateParams: - post: - summary: |- - UpdateParams defines a governance operation for updating the x/wasm - module parameters. The authority is defined in the keeper. - description: 'Since: 0.40' - operationId: CosmwasmWasmV1Msg_UpdateParams - responses: - '200': - description: A successful response. - schema: - type: object - description: >- - MsgUpdateParamsResponse defines the response structure for - executing a - - MsgUpdateParams message. - - - Since: 0.40 - 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 - 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 - - 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" - } - parameters: - - name: body - description: |- - MsgUpdateParams is the MsgUpdateParams request type. - - Since: 0.40 - in: body - required: true - schema: - type: object - properties: - authority: - type: string - description: Authority is the address of the governance account. - params: - description: |- - params defines the x/wasm parameters to update. - - NOTE: All parameters must be supplied. - type: object - properties: - code_upload_access: - type: object - properties: - permission: - type: string - enum: - - ACCESS_TYPE_UNSPECIFIED - - ACCESS_TYPE_NOBODY - - ACCESS_TYPE_EVERYBODY - - ACCESS_TYPE_ANY_OF_ADDRESSES - default: ACCESS_TYPE_UNSPECIFIED - description: >- - - ACCESS_TYPE_UNSPECIFIED: AccessTypeUnspecified - placeholder for empty value - - ACCESS_TYPE_NOBODY: AccessTypeNobody forbidden - - ACCESS_TYPE_EVERYBODY: AccessTypeEverybody unrestricted - - ACCESS_TYPE_ANY_OF_ADDRESSES: AccessTypeAnyOfAddresses allow any of the addresses - title: AccessType permission types - addresses: - type: array - items: - type: string - description: AccessConfig access control type. - instantiate_default_permission: - type: string - enum: - - ACCESS_TYPE_UNSPECIFIED - - ACCESS_TYPE_NOBODY - - ACCESS_TYPE_EVERYBODY - - ACCESS_TYPE_ANY_OF_ADDRESSES - default: ACCESS_TYPE_UNSPECIFIED - description: >- - - ACCESS_TYPE_UNSPECIFIED: AccessTypeUnspecified - placeholder for empty value - - ACCESS_TYPE_NOBODY: AccessTypeNobody forbidden - - ACCESS_TYPE_EVERYBODY: AccessTypeEverybody unrestricted - - ACCESS_TYPE_ANY_OF_ADDRESSES: AccessTypeAnyOfAddresses allow any of the addresses - title: AccessType permission types - description: |- - MsgUpdateParams is the MsgUpdateParams request type. - - Since: 0.40 - tags: - - Msg - /ibc/apps/interchain_accounts/controller/v1/owners/{owner}/connections/{connection_id}: - get: - summary: >- - InterchainAccount returns the interchain account address for a given - owner address on a given connection - operationId: IbcApplicationsInterchainAccountsControllerV1Query_InterchainAccount - responses: - '200': - description: A successful response. - schema: - type: object - properties: - address: - type: string - description: >- - QueryInterchainAccountResponse the response type for the - Query/InterchainAccount 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: {} - parameters: - - name: owner - in: path - required: true - type: string - - name: connection_id - in: path - required: true - type: string - tags: - - Query - /ibc/apps/interchain_accounts/controller/v1/params: - get: - summary: Params queries all parameters of the ICA controller submodule. - operationId: IbcApplicationsInterchainAccountsControllerV1Query_Params - responses: - '200': - description: A successful response. - schema: - type: object - properties: - params: - description: params defines the parameters of the module. - type: object - properties: - controller_enabled: - type: boolean - description: >- - controller_enabled enables or disables the controller - submodule. - description: >- - QueryParamsResponse is the 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 - /ibc.applications.interchain_accounts.controller.v1.Msg/RegisterInterchainAccount: - post: - summary: >- - RegisterInterchainAccount defines a rpc handler for - MsgRegisterInterchainAccount. - operationId: >- - IbcApplicationsInterchainAccountsControllerV1Msg_RegisterInterchainAccount - responses: - '200': - description: A successful response. - schema: - type: object - properties: - channel_id: - type: string - port_id: - type: string - title: >- - MsgRegisterInterchainAccountResponse defines the response for - Msg/RegisterAccount - 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 - 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 - - 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" - } - parameters: - - name: body - in: body - required: true - schema: - type: object - properties: - owner: - type: string - connection_id: - type: string - version: - type: string - title: >- - MsgRegisterInterchainAccount defines the payload for - Msg/RegisterAccount - tags: - - Msg - /ibc.applications.interchain_accounts.controller.v1.Msg/SendTx: - post: - summary: SendTx defines a rpc handler for MsgSendTx. - operationId: IbcApplicationsInterchainAccountsControllerV1Msg_SendTx - responses: - '200': - description: A successful response. - schema: - type: object - properties: - sequence: - type: string - format: uint64 - title: MsgSendTxResponse defines the response for MsgSendTx - 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 - 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 - - 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" - } - parameters: - - name: body - in: body - required: true - schema: - type: object - properties: - owner: - type: string - connection_id: - type: string - packet_data: - 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: - type: string - format: byte - memo: - 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. - - The timeout timestamp must be non-zero. - title: MsgSendTx defines the payload for Msg/SendTx - tags: - - Msg - /ibc.applications.interchain_accounts.controller.v1.Msg/UpdateParams: - post: - summary: UpdateParams defines a rpc handler for MsgUpdateParams. - operationId: IbcApplicationsInterchainAccountsControllerV1Msg_UpdateParams - responses: - '200': - description: A successful response. - schema: - type: object - title: MsgUpdateParamsResponse defines the response for Msg/UpdateParams - 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 - 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 - - 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" - } - parameters: - - name: body - in: body - required: true - schema: - type: object - properties: - signer: - type: string - title: signer address - params: - description: >- - params defines the 27-interchain-accounts/controller - parameters to update. - - - 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 - tags: - - Msg - /ibc.applications.interchain_accounts.host.v1.Msg/UpdateParams: - post: - summary: UpdateParams defines a rpc handler for MsgUpdateParams. - operationId: IbcApplicationsInterchainAccountsHostV1Msg_UpdateParams - responses: - '200': - description: A successful response. - schema: - type: object - title: MsgUpdateParamsResponse defines the response for Msg/UpdateParams - 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: - signer: - type: string - title: signer address - params: - description: >- - params defines the 27-interchain-accounts/host parameters to - update. - - - 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 - tags: - - Msg - /ibc/apps/interchain_accounts/host/v1/params: - get: - summary: Params queries all parameters of the ICA host submodule. - operationId: IbcApplicationsInterchainAccountsHostV1Query_Params - responses: - '200': - description: A successful response. - schema: - type: object - properties: - params: - description: params defines the parameters of the module. - 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: >- - QueryParamsResponse is the 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 - /ibc.applications.transfer.v1.Msg/Transfer: - post: - summary: Transfer defines a rpc handler method for MsgTransfer. - operationId: IbcApplicationsTransferV1Msg_Transfer - responses: - '200': - description: A successful response. - schema: - type: object - properties: - sequence: - type: string - format: uint64 - title: sequence number of the transfer packet sent - description: MsgTransferResponse defines the Msg/Transfer response type. - 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 - 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 - - 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" - } - parameters: - - name: body - in: body - required: true - schema: - type: object - properties: - source_port: - type: string - title: the port on which the packet will be sent - source_channel: - type: string - 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 - 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: - 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 - 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: - - https://github.com/cosmos/ibc/tree/master/spec/app/ics-020-fungible-token-transfer#data-structures - tags: - - Msg - /ibc.applications.transfer.v1.Msg/UpdateParams: - post: - summary: UpdateParams defines a rpc handler for MsgUpdateParams. - operationId: IbcApplicationsTransferV1Msg_UpdateParams - responses: - '200': - description: A successful response. - schema: - type: object - description: >- - MsgUpdateParamsResponse defines the response structure for - executing a - - MsgUpdateParams message. - 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 - 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 - - 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" - } - parameters: - - name: body - description: MsgUpdateParams is the Msg/UpdateParams request type. - in: body - required: true - schema: - type: object - properties: - signer: - type: string - title: signer address - params: - description: |- - params defines the transfer 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. - tags: - - Msg - /ibc/apps/transfer/v1/channels/{channel_id}/ports/{port_id}/escrow_address: - get: - summary: >- - EscrowAddress returns the escrow address for a particular port and - channel id. - operationId: IbcApplicationsTransferV1Query_EscrowAddress - responses: - '200': - description: A successful response. - schema: - type: object - properties: - escrow_address: - type: string - title: the escrow account address - description: >- - QueryEscrowAddressResponse is the response type of the - EscrowAddress 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: {} - parameters: - - name: channel_id - description: unique channel identifier - in: path - required: true - type: string - - name: port_id - description: unique port identifier - in: path - required: true - type: string - tags: - - Query - /ibc/apps/transfer/v1/denom_hashes/{trace}: - get: - summary: DenomHash queries a denomination hash information. - operationId: IbcApplicationsTransferV1Query_DenomHash - responses: - '200': - description: A successful response. - schema: - type: object - properties: - hash: - type: string - description: hash (in hex format) of the denomination trace information. - description: >- - QueryDenomHashResponse is the response type for the - Query/DenomHash 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: {} - parameters: - - name: trace - description: The denomination trace ([port_id]/[channel_id])+/[denom] - in: path - required: true - type: string - pattern: .+ - tags: - - Query - /ibc/apps/transfer/v1/denom_traces: - get: - summary: DenomTraces queries all denomination traces. - operationId: IbcApplicationsTransferV1Query_DenomTraces - responses: - '200': - description: A successful response. - schema: - type: object - properties: - denom_traces: - type: array - items: - type: object - properties: - path: - type: string - description: >- - path defines the chain of port/channel identifiers used - for tracing the - - source of the fungible token. - base_denom: - type: string - description: base denomination of the relayed fungible token. - description: >- - DenomTrace contains the base denomination for ICS20 fungible - tokens and the - - source tracing information path. - description: denom_traces returns all denominations trace information. - pagination: - description: pagination defines the pagination in the response. - 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: >- - QueryConnectionsResponse is the response type for the - Query/DenomTraces 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: {} - 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 - /ibc/apps/transfer/v1/denom_traces/{hash}: - get: - summary: DenomTrace queries a denomination trace information. - operationId: IbcApplicationsTransferV1Query_DenomTrace - responses: - '200': - description: A successful response. - schema: - type: object - properties: - denom_trace: - description: >- - denom_trace returns the requested denomination trace - information. - type: object - properties: - path: - type: string - description: >- - path defines the chain of port/channel identifiers used - for tracing the - - source of the fungible token. - base_denom: - type: string - description: base denomination of the relayed fungible token. - description: >- - QueryDenomTraceResponse is the response type for the - Query/DenomTrace 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: {} - parameters: - - name: hash - description: >- - hash (in hex format) or denom (full denom with ibc prefix) of the - denomination trace information. - in: path - required: true - type: string - pattern: .+ - tags: - - Query - /ibc/apps/transfer/v1/denoms/{denom}/total_escrow: - get: - summary: >- - TotalEscrowForDenom returns the total amount of tokens in escrow based - on the denom. - operationId: IbcApplicationsTransferV1Query_TotalEscrowForDenom - responses: - '200': - description: A successful response. - schema: - type: object - properties: - 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: >- - QueryTotalEscrowForDenomResponse is the response type for - TotalEscrowForDenom 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: {} - parameters: - - name: denom - in: path - required: true - type: string - pattern: .+ - tags: - - Query - /ibc/apps/transfer/v1/params: - get: - summary: Params queries all parameters of the ibc-transfer module. - operationId: IbcApplicationsTransferV1Query_Params - responses: - '200': - description: A successful response. - schema: - type: object - properties: - params: - description: params defines the parameters of the module. - 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: >- - QueryParamsResponse is the 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 - /ibc.core.channel.v1.Msg/Acknowledgement: - post: - summary: Acknowledgement defines a rpc handler method for MsgAcknowledgement. - operationId: IbcCoreChannelV1Msg_Acknowledgement - responses: - '200': - description: A successful response. - schema: - 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: >- - MsgAcknowledgementResponse defines the Msg/Acknowledgement - response type. - 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 - 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 - - 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" - } - parameters: - - name: body - in: body - required: true - schema: - 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 - acknowledgement: - type: string - format: byte - proof_acked: - 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 - - 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 - title: MsgAcknowledgement receives incoming IBC acknowledgement - tags: - - Msg - /ibc.core.channel.v1.Msg/ChannelCloseConfirm: - post: - summary: |- - ChannelCloseConfirm defines a rpc handler method for - MsgChannelCloseConfirm. - operationId: IbcCoreChannelV1Msg_ChannelCloseConfirm - responses: - '200': - description: A successful response. - schema: - type: object - description: >- - MsgChannelCloseConfirmResponse defines the Msg/ChannelCloseConfirm - response - - type. - 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 - 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 - - 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" - } - parameters: - - name: body - description: |- - MsgChannelCloseConfirm defines a msg sent by a Relayer to Chain B - to acknowledge the change of channel state to CLOSED on Chain A. - in: body - required: true - schema: - type: object - properties: - port_id: - type: string - channel_id: - type: string - proof_init: - 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 - - 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: |- - MsgChannelCloseConfirm defines a msg sent by a Relayer to Chain B - to acknowledge the change of channel state to CLOSED on Chain A. - tags: - - Msg - /ibc.core.channel.v1.Msg/ChannelCloseInit: - post: - summary: ChannelCloseInit defines a rpc handler method for MsgChannelCloseInit. - operationId: IbcCoreChannelV1Msg_ChannelCloseInit - responses: - '200': - description: A successful response. - schema: - type: object - description: >- - MsgChannelCloseInitResponse defines the Msg/ChannelCloseInit - response type. - 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 - 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 - - 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" - } - parameters: - - name: body - description: |- - MsgChannelCloseInit defines a msg sent by a Relayer to Chain A - to close a channel with Chain B. - in: body - required: true - schema: - type: object - properties: - port_id: - type: string - channel_id: - type: string - signer: - type: string - description: |- - MsgChannelCloseInit defines a msg sent by a Relayer to Chain A - to close a channel with Chain B. - tags: - - Msg - /ibc.core.channel.v1.Msg/ChannelOpenAck: - post: - summary: ChannelOpenAck defines a rpc handler method for MsgChannelOpenAck. - operationId: IbcCoreChannelV1Msg_ChannelOpenAck - responses: - '200': - description: A successful response. - schema: - type: object - description: >- - MsgChannelOpenAckResponse defines the Msg/ChannelOpenAck response - type. - 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 - 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 - - 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" - } - parameters: - - name: body - description: >- - MsgChannelOpenAck defines a msg sent by a Relayer to Chain A to - acknowledge - - the change of channel state to TRYOPEN on Chain B. - in: body - required: true - schema: - type: object - properties: - 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: - 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: >- - MsgChannelOpenAck defines a msg sent by a Relayer to Chain A to - acknowledge - - the change of channel state to TRYOPEN on Chain B. - tags: - - Msg - /ibc.core.channel.v1.Msg/ChannelOpenConfirm: - post: - summary: >- - ChannelOpenConfirm defines a rpc handler method for - MsgChannelOpenConfirm. - operationId: IbcCoreChannelV1Msg_ChannelOpenConfirm - responses: - '200': - description: A successful response. - schema: - type: object - description: >- - MsgChannelOpenConfirmResponse defines the Msg/ChannelOpenConfirm - response - - type. - 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 - 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 - - 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" - } - parameters: - - name: body - description: |- - MsgChannelOpenConfirm defines a msg sent by a Relayer to Chain B to - acknowledge the change of channel state to OPEN on Chain A. - in: body - required: true - schema: - type: object - properties: - port_id: - type: string - channel_id: - type: string - proof_ack: - 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 - - 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: >- - MsgChannelOpenConfirm defines a msg sent by a Relayer to Chain B - to - - acknowledge the change of channel state to OPEN on Chain A. - tags: - - Msg - /ibc.core.channel.v1.Msg/ChannelOpenInit: - post: - summary: ChannelOpenInit defines a rpc handler method for MsgChannelOpenInit. - operationId: IbcCoreChannelV1Msg_ChannelOpenInit - responses: - '200': - description: A successful response. - schema: - type: object - properties: - channel_id: - type: string - version: - type: string - description: >- - MsgChannelOpenInitResponse defines the Msg/ChannelOpenInit - response type. - 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 - 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 - - 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" - } - parameters: - - name: body - description: >- - MsgChannelOpenInit defines an sdk.Msg to initialize a channel - handshake. It - - is called by a relayer on Chain A. - in: body - required: true - schema: - type: object - properties: - port_id: - type: string - 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. - tags: - - Msg - /ibc.core.channel.v1.Msg/ChannelOpenTry: - post: - summary: ChannelOpenTry defines a rpc handler method for MsgChannelOpenTry. - operationId: IbcCoreChannelV1Msg_ChannelOpenTry - responses: - '200': - description: A successful response. - schema: - type: object - properties: - version: - type: string - channel_id: - type: string - description: >- - MsgChannelOpenTryResponse defines the Msg/ChannelOpenTry response - type. - 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 - 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 - - 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" - } - parameters: - - name: body - 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. - in: body - required: true - schema: - type: object - properties: - port_id: - type: string - 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: >- - 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. - counterparty_version: - type: string - proof_init: - 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 - - 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: >- - 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. - tags: - - Msg - /ibc.core.channel.v1.Msg/RecvPacket: - post: - summary: RecvPacket defines a rpc handler method for MsgRecvPacket. - operationId: IbcCoreChannelV1Msg_RecvPacket - responses: - '200': - description: A successful response. - schema: - 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. - 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 - 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 - - 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" - } - parameters: - - name: body - in: body - required: true - schema: - 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_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 - - 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 - title: MsgRecvPacket receives incoming IBC packet - tags: - - Msg - /ibc.core.channel.v1.Msg/Timeout: - post: - summary: Timeout defines a rpc handler method for MsgTimeout. - operationId: IbcCoreChannelV1Msg_Timeout - responses: - '200': - description: A successful response. - schema: - 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: MsgTimeoutResponse defines the Msg/Timeout response type. - 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 - 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 - - 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" - } - parameters: - - name: body - in: body - required: true - schema: - 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: - 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 - - 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 - next_sequence_recv: - type: string - format: uint64 - signer: - type: string - title: MsgTimeout receives timed-out packet - tags: - - Msg - /ibc.core.channel.v1.Msg/TimeoutOnClose: - post: - summary: TimeoutOnClose defines a rpc handler method for MsgTimeoutOnClose. - operationId: IbcCoreChannelV1Msg_TimeoutOnClose - responses: - '200': - description: A successful response. - schema: - 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: >- - MsgTimeoutOnCloseResponse defines the Msg/TimeoutOnClose response - type. - 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 - 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 - - 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" - } - parameters: - - name: body - description: >- - MsgTimeoutOnClose timed-out packet upon counterparty channel - closure. - in: body - required: true - schema: - 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: - 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 - - 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 - next_sequence_recv: - type: string - format: uint64 - signer: - type: string - description: >- - MsgTimeoutOnClose timed-out packet upon counterparty channel - closure. - tags: - - Msg - /ibc/core/channel/v1/channels: - get: - summary: Channels queries all the IBC channels of a chain. - operationId: IbcCoreChannelV1Query_Channels - responses: - '200': - description: A successful response. - schema: - type: object - properties: - channels: - type: array - items: - 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 - port_id: - type: string - title: port identifier - channel_id: - type: string - title: channel identifier - description: >- - IdentifiedChannel defines a channel with additional port and - channel - - identifier fields. - description: list of stored channels of the chain. - pagination: - title: pagination response - 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; - } - height: - title: query block 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 - description: >- - QueryChannelsResponse is the response type for the Query/Channels - 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 - 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 - - 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" - } - 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 - /ibc/core/channel/v1/channels/{channel_id}/ports/{port_id}: - get: - summary: Channel queries an IBC Channel. - operationId: IbcCoreChannelV1Query_Channel - responses: - '200': - description: A successful response. - schema: - type: object - properties: - channel: - title: channel associated with the request identifiers - 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. - proof: - type: string - format: byte - title: merkle proof of existence - proof_height: - title: height at which the proof was retrieved - 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 - description: >- - QueryChannelResponse is the response type for the Query/Channel - RPC method. - - Besides the Channel end, it includes a proof and the height from - which the - - proof was retrieved. - 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 - 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 - - 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" - } - parameters: - - name: channel_id - description: channel unique identifier - in: path - required: true - type: string - - name: port_id - description: port unique identifier - in: path - required: true - type: string - tags: - - Query - /ibc/core/channel/v1/channels/{channel_id}/ports/{port_id}/client_state: - get: - summary: >- - ChannelClientState queries for the client state for the channel - associated - - with the provided channel identifiers. - operationId: IbcCoreChannelV1Query_ChannelClientState - responses: - '200': - description: A successful response. - schema: - type: object - properties: - identified_client_state: - title: client state associated with the channel - type: object - properties: - client_id: - type: string - title: client identifier - client_state: - title: 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. - - - 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" - } - description: >- - IdentifiedClientState defines a client state with an - additional client - - identifier field. - proof: - type: string - format: byte - title: merkle proof of existence - proof_height: - title: height at which the proof was retrieved - 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: |- - QueryChannelClientStateResponse is the Response type for the - Query/QueryChannelClientState 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 - 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 - - 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" - } - parameters: - - name: channel_id - description: channel unique identifier - in: path - required: true - type: string - - name: port_id - description: port unique identifier - in: path - required: true - type: string - tags: - - Query - /ibc/core/channel/v1/channels/{channel_id}/ports/{port_id}/consensus_state/revision/{revision_number}/height/{revision_height}: - get: - summary: |- - ChannelConsensusState queries for the consensus state for the channel - associated with the provided channel identifiers. - operationId: IbcCoreChannelV1Query_ChannelConsensusState - responses: - '200': - description: A successful response. - schema: - type: object - properties: - consensus_state: - title: consensus state associated with the channel - 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. - - - 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" - } - client_id: - type: string - title: client ID associated with the consensus state - proof: - type: string - format: byte - title: merkle proof of existence - proof_height: - title: height at which the proof was retrieved - 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: |- - QueryChannelClientStateResponse is the Response type for the - Query/QueryChannelClientState 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 - 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 - - 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" - } - parameters: - - name: channel_id - description: channel unique identifier - in: path - required: true - type: string - - name: port_id - description: port unique identifier - in: path - required: true - type: string - - name: revision_number - description: revision number of the consensus state - in: path - required: true - type: string - format: uint64 - - name: revision_height - description: revision height of the consensus state - in: path - required: true - type: string - format: uint64 - tags: - - Query - /ibc/core/channel/v1/channels/{channel_id}/ports/{port_id}/next_sequence: - get: - summary: >- - NextSequenceReceive returns the next receive sequence for a given - channel. - operationId: IbcCoreChannelV1Query_NextSequenceReceive - responses: - '200': - description: A successful response. - schema: - type: object - properties: - next_sequence_receive: - type: string - format: uint64 - title: next sequence receive number - proof: - type: string - format: byte - title: merkle proof of existence - proof_height: - title: height at which the proof was retrieved - 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: |- - QuerySequenceResponse is the request type for the - Query/QueryNextSequenceReceiveResponse 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 - 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 - - 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" - } - parameters: - - name: channel_id - description: channel unique identifier - in: path - required: true - type: string - - name: port_id - description: port unique identifier - in: path - required: true - type: string - tags: - - Query - /ibc/core/channel/v1/channels/{channel_id}/ports/{port_id}/next_sequence_send: - get: - summary: NextSequenceSend returns the next send sequence for a given channel. - operationId: IbcCoreChannelV1Query_NextSequenceSend - responses: - '200': - description: A successful response. - schema: - type: object - properties: - next_sequence_send: - type: string - format: uint64 - title: next sequence send number - proof: - type: string - format: byte - title: merkle proof of existence - proof_height: - title: height at which the proof was retrieved - 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: |- - QueryNextSequenceSendResponse is the request type for the - Query/QueryNextSequenceSend 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 - 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 - - 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" - } - parameters: - - name: channel_id - description: channel unique identifier - in: path - required: true - type: string - - name: port_id - description: port unique identifier - in: path - required: true - type: string - tags: - - Query - /ibc/core/channel/v1/channels/{channel_id}/ports/{port_id}/packet_acknowledgements: - get: - summary: >- - PacketAcknowledgements returns all the packet acknowledgements - associated - - with a channel. - operationId: IbcCoreChannelV1Query_PacketAcknowledgements - responses: - '200': - description: A successful response. - schema: - type: object - properties: - acknowledgements: - type: array - items: - type: object - properties: - port_id: - type: string - description: channel port identifier. - channel_id: - type: string - description: channel unique identifier. - sequence: - type: string - format: uint64 - description: packet sequence. - data: - type: string - format: byte - description: embedded data that represents packet state. - description: >- - PacketState defines the generic type necessary to retrieve - and store - - packet commitments, acknowledgements, and receipts. - - Caller is responsible for knowing the context necessary to - interpret this - - state as a commitment, acknowledgement, or a receipt. - pagination: - title: pagination response - 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; - } - height: - title: query block 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: |- - QueryPacketAcknowledgemetsResponse is the request type for the - Query/QueryPacketAcknowledgements 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 - 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 - - 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" - } - parameters: - - name: channel_id - description: channel unique identifier - in: path - required: true - type: string - - name: port_id - description: port unique identifier - in: path - required: true - type: string - - 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 - - name: packet_commitment_sequences - description: list of packet sequences - in: query - required: false - type: array - items: - type: string - format: uint64 - collectionFormat: multi - tags: - - Query - /ibc/core/channel/v1/channels/{channel_id}/ports/{port_id}/packet_acks/{sequence}: - get: - summary: PacketAcknowledgement queries a stored packet acknowledgement hash. - operationId: IbcCoreChannelV1Query_PacketAcknowledgement - responses: - '200': - description: A successful response. - schema: - type: object - properties: - acknowledgement: - type: string - format: byte - title: packet associated with the request fields - proof: - type: string - format: byte - title: merkle proof of existence - proof_height: - title: height at which the proof was retrieved - 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: >- - QueryPacketAcknowledgementResponse defines the client query - response for a - - packet which also includes a proof and the height from which the - - proof was retrieved - 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 - 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 - - 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" - } - parameters: - - name: channel_id - description: channel unique identifier - in: path - required: true - type: string - - name: port_id - description: port unique identifier - in: path - required: true - type: string - - name: sequence - description: packet sequence - in: path - required: true - type: string - format: uint64 - tags: - - Query - /ibc/core/channel/v1/channels/{channel_id}/ports/{port_id}/packet_commitments: - get: - summary: |- - PacketCommitments returns all the packet commitments hashes associated - with a channel. - operationId: IbcCoreChannelV1Query_PacketCommitments - responses: - '200': - description: A successful response. - schema: - type: object - properties: - commitments: - type: array - items: - type: object - properties: - port_id: - type: string - description: channel port identifier. - channel_id: - type: string - description: channel unique identifier. - sequence: - type: string - format: uint64 - description: packet sequence. - data: - type: string - format: byte - description: embedded data that represents packet state. - description: >- - PacketState defines the generic type necessary to retrieve - and store - - packet commitments, acknowledgements, and receipts. - - Caller is responsible for knowing the context necessary to - interpret this - - state as a commitment, acknowledgement, or a receipt. - pagination: - title: pagination response - 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; - } - height: - title: query block 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: |- - QueryPacketCommitmentsResponse is the request type for the - Query/QueryPacketCommitments 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 - 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 - - 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" - } - parameters: - - name: channel_id - description: channel unique identifier - in: path - required: true - type: string - - name: port_id - description: port unique identifier - in: path - required: true - type: string - - 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 - /ibc/core/channel/v1/channels/{channel_id}/ports/{port_id}/packet_commitments/{packet_ack_sequences}/unreceived_acks: - get: - summary: >- - UnreceivedAcks returns all the unreceived IBC acknowledgements - associated - - with a channel and sequences. - operationId: IbcCoreChannelV1Query_UnreceivedAcks - responses: - '200': - description: A successful response. - schema: - type: object - properties: - sequences: - type: array - items: - type: string - format: uint64 - title: list of unreceived acknowledgement sequences - height: - title: query block 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: |- - QueryUnreceivedAcksResponse is the response type for the - Query/UnreceivedAcks 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 - 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 - - 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" - } - parameters: - - name: channel_id - description: channel unique identifier - in: path - required: true - type: string - - name: port_id - description: port unique identifier - in: path - required: true - type: string - - name: packet_ack_sequences - description: list of acknowledgement sequences - in: path - required: true - type: array - items: - type: string - format: uint64 - collectionFormat: csv - minItems: 1 - tags: - - Query - /ibc/core/channel/v1/channels/{channel_id}/ports/{port_id}/packet_commitments/{packet_commitment_sequences}/unreceived_packets: - get: - summary: >- - UnreceivedPackets returns all the unreceived IBC packets associated with - a - - channel and sequences. - operationId: IbcCoreChannelV1Query_UnreceivedPackets - responses: - '200': - description: A successful response. - schema: - type: object - properties: - sequences: - type: array - items: - type: string - format: uint64 - title: list of unreceived packet sequences - height: - title: query block 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: |- - QueryUnreceivedPacketsResponse is the response type for the - Query/UnreceivedPacketCommitments 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 - 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 - - 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" - } - parameters: - - name: channel_id - description: channel unique identifier - in: path - required: true - type: string - - name: port_id - description: port unique identifier - in: path - required: true - type: string - - name: packet_commitment_sequences - description: list of packet sequences - in: path - required: true - type: array - items: - type: string - format: uint64 - collectionFormat: csv - minItems: 1 - tags: - - Query - /ibc/core/channel/v1/channels/{channel_id}/ports/{port_id}/packet_commitments/{sequence}: - get: - summary: PacketCommitment queries a stored packet commitment hash. - operationId: IbcCoreChannelV1Query_PacketCommitment - responses: - '200': - description: A successful response. - schema: - type: object - properties: - commitment: - type: string - format: byte - title: packet associated with the request fields - proof: - type: string - format: byte - title: merkle proof of existence - proof_height: - title: height at which the proof was retrieved - 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: >- - QueryPacketCommitmentResponse defines the client query response - for a packet - - which also includes a proof and the height from which the proof - was - - retrieved - 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 - 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 - - 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" - } - parameters: - - name: channel_id - description: channel unique identifier - in: path - required: true - type: string - - name: port_id - description: port unique identifier - in: path - required: true - type: string - - name: sequence - description: packet sequence - in: path - required: true - type: string - format: uint64 - tags: - - Query - /ibc/core/channel/v1/channels/{channel_id}/ports/{port_id}/packet_receipts/{sequence}: - get: - summary: >- - PacketReceipt queries if a given packet sequence has been received on - the - - queried chain - operationId: IbcCoreChannelV1Query_PacketReceipt - responses: - '200': - description: A successful response. - schema: - type: object - properties: - received: - type: boolean - title: success flag for if receipt exists - proof: - type: string - format: byte - title: merkle proof of existence - proof_height: - title: height at which the proof was retrieved - 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: >- - QueryPacketReceiptResponse defines the client query response for a - packet - - receipt which also includes a proof, and the height from which the - proof was - - retrieved - 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 - 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 - - 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" - } - parameters: - - name: channel_id - description: channel unique identifier - in: path - required: true - type: string - - name: port_id - description: port unique identifier - in: path - required: true - type: string - - name: sequence - description: packet sequence - in: path - required: true - type: string - format: uint64 - tags: - - Query - /ibc/core/channel/v1/connections/{connection}/channels: - get: - summary: |- - ConnectionChannels queries all the channels associated with a connection - end. - operationId: IbcCoreChannelV1Query_ConnectionChannels - responses: - '200': - description: A successful response. - schema: - type: object - properties: - channels: - type: array - items: - 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 - port_id: - type: string - title: port identifier - channel_id: - type: string - title: channel identifier - description: >- - IdentifiedChannel defines a channel with additional port and - channel - - identifier fields. - description: list of channels associated with a connection. - pagination: - title: pagination response - 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; - } - height: - title: query block 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: |- - QueryConnectionChannelsResponse is the Response type for the - Query/QueryConnectionChannels 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 - 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 - - 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" - } - parameters: - - name: connection - description: connection unique identifier - in: path - required: true - type: string - - 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 - /ibc/core/client/v1/client_states: - get: - summary: ClientStates queries all the IBC light clients of a chain. - operationId: IbcCoreClientV1Query_ClientStates - responses: - '200': - description: A successful response. - schema: - type: object - properties: - client_states: - type: array - items: - type: object - properties: - client_id: - type: string - title: client identifier - client_state: - title: 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. - - - 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" - } - description: >- - IdentifiedClientState defines a client state with an - additional client - - identifier field. - description: list of stored ClientStates of the chain. - pagination: - title: pagination response - 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; - } - description: >- - QueryClientStatesResponse is the response type for the - Query/ClientStates 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 - 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 - - 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" - } - 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 - /ibc/core/client/v1/client_states/{client_id}: - get: - summary: ClientState queries an IBC light client. - operationId: IbcCoreClientV1Query_ClientState - responses: - '200': - description: A successful response. - schema: - type: object - properties: - client_state: - title: client state associated with the request identifier - 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. - - - 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" - } - proof: - type: string - format: byte - title: merkle proof of existence - proof_height: - title: height at which the proof was retrieved - 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 - description: >- - QueryClientStateResponse is the response type for the - Query/ClientState RPC - - method. Besides the client state, it includes a proof and the - height from - - which the proof was retrieved. - 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 - 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 - - 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" - } - parameters: - - name: client_id - description: client state unique identifier - in: path - required: true - type: string - tags: - - Query - /ibc/core/client/v1/client_status/{client_id}: - get: - summary: Status queries the status of an IBC client. - operationId: IbcCoreClientV1Query_ClientStatus - responses: - '200': - description: A successful response. - schema: - type: object - properties: - status: - type: string - description: >- - QueryClientStatusResponse is the response type for the - Query/ClientStatus RPC - - method. It returns the current status of the IBC client. - 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 - 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 - - 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" - } - parameters: - - name: client_id - description: client unique identifier - in: path - required: true - type: string - tags: - - Query - /ibc/core/client/v1/consensus_states/{client_id}: - get: - summary: |- - ConsensusStates queries all the consensus state associated with a given - client. - operationId: IbcCoreClientV1Query_ConsensusStates - responses: - '200': - description: A successful response. - schema: - type: object - properties: - consensus_states: - type: array - items: - type: object - properties: - height: - title: consensus state 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 - consensus_state: - title: consensus 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. - - - 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" - } - description: >- - ConsensusStateWithHeight defines a consensus state with an - additional height - - field. - title: consensus states associated with the identifier - pagination: - title: pagination response - 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; - } - title: |- - QueryConsensusStatesResponse is the response type for the - Query/ConsensusStates 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 - 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 - - 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" - } - parameters: - - name: client_id - description: client identifier - in: path - required: true - type: string - - 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 - /ibc/core/client/v1/consensus_states/{client_id}/heights: - get: - summary: >- - ConsensusStateHeights queries the height of every consensus states - associated with a given client. - operationId: IbcCoreClientV1Query_ConsensusStateHeights - responses: - '200': - description: A successful response. - schema: - type: object - properties: - consensus_state_heights: - type: array - items: - 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 - title: consensus state heights - pagination: - title: pagination response - 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; - } - title: |- - QueryConsensusStateHeightsResponse is the response type for the - Query/ConsensusStateHeights 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 - 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 - - 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" - } - parameters: - - name: client_id - description: client identifier - in: path - required: true - type: string - - 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 - /ibc/core/client/v1/consensus_states/{client_id}/revision/{revision_number}/height/{revision_height}: - get: - summary: >- - ConsensusState queries a consensus state associated with a client state - at - - a given height. - operationId: IbcCoreClientV1Query_ConsensusState - responses: - '200': - description: A successful response. - schema: - type: object - properties: - consensus_state: - title: >- - consensus state associated with the client identifier at the - given height - 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. - - - 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" - } - proof: - type: string - format: byte - title: merkle proof of existence - proof_height: - title: height at which the proof was retrieved - 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: >- - QueryConsensusStateResponse is the response type for the - Query/ConsensusState - - 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 - 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 - - 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" - } - parameters: - - name: client_id - description: client identifier - in: path - required: true - type: string - - name: revision_number - description: consensus state revision number - in: path - required: true - type: string - format: uint64 - - name: revision_height - description: consensus state revision height - in: path - required: true - type: string - format: uint64 - - name: latest_height - description: >- - latest_height overrrides the height field and queries the latest - stored - - ConsensusState - in: query - required: false - type: boolean - tags: - - Query - /ibc/core/client/v1/params: - get: - summary: ClientParams queries all parameters of the ibc client submodule. - operationId: IbcCoreClientV1Query_ClientParams - responses: - '200': - description: A successful response. - schema: - type: object - properties: - params: - description: params defines the parameters of the module. - 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: >- - QueryClientParamsResponse is the response type for the - Query/ClientParams 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 - 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 - - 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" - } - tags: - - Query - /ibc/core/client/v1/upgraded_client_states: - get: - summary: UpgradedClientState queries an Upgraded IBC light client. - operationId: IbcCoreClientV1Query_UpgradedClientState - responses: - '200': - description: A successful response. - schema: - type: object - properties: - upgraded_client_state: - title: client state associated with the request identifier - 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. - - - 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" - } - description: |- - QueryUpgradedClientStateResponse is the response type for the - Query/UpgradedClientState 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 - 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 - - 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" - } - tags: - - Query - /ibc/core/client/v1/upgraded_consensus_states: - get: - summary: UpgradedConsensusState queries an Upgraded IBC consensus state. - operationId: IbcCoreClientV1Query_UpgradedConsensusState - responses: - '200': - description: A successful response. - schema: - type: object - properties: - upgraded_consensus_state: - title: Consensus state associated with the request identifier - 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. - - - 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" - } - description: |- - QueryUpgradedConsensusStateResponse is the response type for the - Query/UpgradedConsensusState 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 - 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 - - 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" - } - tags: - - Query - /ibc.core.client.v1.Msg/CreateClient: - post: - summary: CreateClient defines a rpc handler method for MsgCreateClient. - operationId: IbcCoreClientV1Msg_CreateClient - responses: - '200': - description: A successful response. - schema: - type: object - description: >- - MsgCreateClientResponse defines the Msg/CreateClient response - type. - 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 - 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 - - 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" - } - parameters: - - name: body - in: body - required: true - schema: - 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. - - - 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: - description: >- - consensus state associated with the client that corresponds to - a given - - height. - 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: {} - signer: - type: string - title: signer address - title: MsgCreateClient defines a message to create an IBC client - tags: - - Msg - /ibc.core.client.v1.Msg/IBCSoftwareUpgrade: - post: - summary: >- - IBCSoftwareUpgrade defines a rpc handler method for - MsgIBCSoftwareUpgrade. - operationId: IbcCoreClientV1Msg_IBCSoftwareUpgrade - responses: - '200': - description: A successful response. - schema: - type: object - description: >- - MsgIBCSoftwareUpgradeResponse defines the Msg/IBCSoftwareUpgrade - response type. - 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 - 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 - - 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" - } - parameters: - - name: body - in: body - required: true - schema: - 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 - - has been removed from the SDK. - - 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: >- - 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. - 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 in the Cosmos SDK to allow for this logic to exist - solely in - - the 02-client module. - 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: {} - 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 - tags: - - Msg - /ibc.core.client.v1.Msg/RecoverClient: - post: - summary: RecoverClient defines a rpc handler method for MsgRecoverClient. - operationId: IbcCoreClientV1Msg_RecoverClient - responses: - '200': - description: A successful response. - schema: - type: object - description: >- - MsgRecoverClientResponse defines the Msg/RecoverClient response - type. - 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 - 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 - - 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" - } - parameters: - - name: body - description: >- - MsgRecoverClient defines the message used to recover a frozen or - expired client. - in: body - required: true - schema: - 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. - tags: - - Msg - /ibc.core.client.v1.Msg/SubmitMisbehaviour: - post: - summary: >- - SubmitMisbehaviour defines a rpc handler method for - MsgSubmitMisbehaviour. - operationId: IbcCoreClientV1Msg_SubmitMisbehaviour - responses: - '200': - description: A successful response. - schema: - type: object - description: >- - MsgSubmitMisbehaviourResponse defines the Msg/SubmitMisbehaviour - response - - type. - 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 - 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 - - 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" - } - parameters: - - name: body - description: >- - MsgSubmitMisbehaviour defines an sdk.Msg type that submits Evidence - for - - light client misbehaviour. - - This message has been deprecated. Use MsgUpdateClient instead. - in: body - required: true - schema: - type: object - properties: - client_id: - type: string - title: client unique identifier - misbehaviour: - title: misbehaviour used for freezing the light client - 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. - - - 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" - } - 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. - tags: - - Msg - /ibc.core.client.v1.Msg/UpdateClient: - post: - summary: UpdateClient defines a rpc handler method for MsgUpdateClient. - operationId: IbcCoreClientV1Msg_UpdateClient - responses: - '200': - description: A successful response. - schema: - type: object - description: >- - MsgUpdateClientResponse defines the Msg/UpdateClient response - type. - 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 - 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 - - 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" - } - parameters: - - name: body - description: >- - MsgUpdateClient defines an sdk.Msg to update a IBC client state - using - - the given client message. - in: body - required: true - schema: - 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': - 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 - - 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" - } - signer: - type: string - title: signer address - description: >- - MsgUpdateClient defines an sdk.Msg to update a IBC client state - using - - the given client message. - tags: - - Msg - /ibc.core.client.v1.Msg/UpdateClientParams: - post: - summary: UpdateClientParams defines a rpc handler method for MsgUpdateParams. - operationId: IbcCoreClientV1Msg_UpdateClientParams - responses: - '200': - description: A successful response. - schema: - type: object - description: MsgUpdateParamsResponse defines the MsgUpdateParams response type. - 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 - 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 - - 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" - } - parameters: - - name: body - description: >- - MsgUpdateParams defines the sdk.Msg type to update the client - parameters. - in: body - required: true - schema: - type: object - properties: - signer: - type: string - title: signer address - params: - description: |- - params defines the client parameters to update. - - 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 - - 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. - tags: - - Msg - /ibc.core.client.v1.Msg/UpgradeClient: - post: - summary: UpgradeClient defines a rpc handler method for MsgUpgradeClient. - operationId: IbcCoreClientV1Msg_UpgradeClient - responses: - '200': - description: A successful response. - schema: - type: object - description: >- - MsgUpgradeClientResponse defines the Msg/UpgradeClient response - type. - 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 - 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 - - 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" - } - parameters: - - name: body - in: body - required: true - schema: - type: object - properties: - client_id: - type: string - title: client unique identifier - client_state: - title: upgraded 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. - - - 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: - title: >- - upgraded consensus state, only contains enough information to - serve as a - - basis of trust in update logic - 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. - - - 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" - } - 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 - tags: - - Msg - /ibc/core/connection/v1/client_connections/{client_id}: - get: - summary: |- - ClientConnections queries the connection paths associated with a client - state. - operationId: IbcCoreConnectionV1Query_ClientConnections - responses: - '200': - description: A successful response. - schema: - type: object - properties: - connection_paths: - type: array - items: - type: string - description: slice of all the connection paths associated with a client. - proof: - type: string - format: byte - title: merkle proof of existence - proof_height: - title: height at which the proof was generated - 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: |- - QueryClientConnectionsResponse is the response type for the - Query/ClientConnections 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 - 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 - - 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" - } - parameters: - - name: client_id - description: client identifier associated with a connection - in: path - required: true - type: string - tags: - - Query - /ibc/core/connection/v1/connections: - get: - summary: Connections queries all the IBC connections of a chain. - operationId: IbcCoreConnectionV1Query_Connections - responses: - '200': - description: A successful response. - schema: - type: object - properties: - connections: - type: array - items: - type: object - properties: - id: - type: string - description: connection identifier. - client_id: - type: string - description: client associated with this connection. - 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 - - the connection handshake. - title: >- - IBC version which can be utilised to determine encodings - or protocols for - - channels or packets utilising this connection - state: - description: current state of the connection end. - type: string - enum: - - STATE_UNINITIALIZED_UNSPECIFIED - - STATE_INIT - - STATE_TRYOPEN - - STATE_OPEN - default: STATE_UNINITIALIZED_UNSPECIFIED - counterparty: - description: counterparty chain associated with this connection. - 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...)) - delay_period: - type: string - format: uint64 - description: delay period associated with this connection. - description: >- - IdentifiedConnection defines a connection with additional - connection - - identifier field. - description: list of stored connections of the chain. - pagination: - title: pagination response - 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; - } - height: - title: query block 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 - description: >- - QueryConnectionsResponse is the response type for the - Query/Connections 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 - 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 - - 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" - } - 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 - /ibc/core/connection/v1/connections/{connection_id}: - get: - summary: Connection queries an IBC connection end. - operationId: IbcCoreConnectionV1Query_Connection - responses: - '200': - description: A successful response. - schema: - type: object - properties: - connection: - title: connection associated with the request identifier - type: object - properties: - client_id: - type: string - description: client associated with this connection. - 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 - - the connection handshake. - description: >- - IBC version which can be utilised to determine encodings - or protocols for - - channels or packets utilising this connection. - state: - description: current state of the connection end. - type: string - enum: - - STATE_UNINITIALIZED_UNSPECIFIED - - STATE_INIT - - STATE_TRYOPEN - - STATE_OPEN - default: STATE_UNINITIALIZED_UNSPECIFIED - counterparty: - description: counterparty chain associated with this connection. - 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...)) - delay_period: - type: string - format: uint64 - description: >- - delay period that must pass before a consensus state can - be used for - - packet-verification NOTE: delay period logic is only - implemented by some - - clients. - description: >- - ConnectionEnd defines a stateful object on a chain connected - to another - - separate one. - - NOTE: there must only be 2 defined ConnectionEnds to establish - - a connection between two chains. - proof: - type: string - format: byte - title: merkle proof of existence - proof_height: - title: height at which the proof was retrieved - 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 - description: >- - QueryConnectionResponse is the response type for the - Query/Connection RPC - - method. Besides the connection end, it includes a proof and the - height from - - which the proof was retrieved. - 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 - 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 - - 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" - } - parameters: - - name: connection_id - description: connection unique identifier - in: path - required: true - type: string - tags: - - Query - /ibc/core/connection/v1/connections/{connection_id}/client_state: - get: - summary: |- - ConnectionClientState queries the client state associated with the - connection. - operationId: IbcCoreConnectionV1Query_ConnectionClientState - responses: - '200': - description: A successful response. - schema: - type: object - properties: - identified_client_state: - title: client state associated with the channel - type: object - properties: - client_id: - type: string - title: client identifier - client_state: - title: 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. - - - 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" - } - description: >- - IdentifiedClientState defines a client state with an - additional client - - identifier field. - proof: - type: string - format: byte - title: merkle proof of existence - proof_height: - title: height at which the proof was retrieved - 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: |- - QueryConnectionClientStateResponse is the response type for the - Query/ConnectionClientState 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 - 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 - - 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" - } - parameters: - - name: connection_id - description: connection identifier - in: path - required: true - type: string - tags: - - Query - /ibc/core/connection/v1/connections/{connection_id}/consensus_state/revision/{revision_number}/height/{revision_height}: - get: - summary: |- - ConnectionConsensusState queries the consensus state associated with the - connection. - operationId: IbcCoreConnectionV1Query_ConnectionConsensusState - responses: - '200': - description: A successful response. - schema: - type: object - properties: - consensus_state: - title: consensus state associated with the channel - 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. - - - 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" - } - client_id: - type: string - title: client ID associated with the consensus state - proof: - type: string - format: byte - title: merkle proof of existence - proof_height: - title: height at which the proof was retrieved - 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: |- - QueryConnectionConsensusStateResponse is the response type for the - Query/ConnectionConsensusState 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 - 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 - - 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" - } - parameters: - - name: connection_id - description: connection identifier - in: path - required: true - type: string - - name: revision_number - in: path - required: true - type: string - format: uint64 - - name: revision_height - in: path - required: true - type: string - format: uint64 - tags: - - Query - /ibc/core/connection/v1/params: - get: - summary: ConnectionParams queries all parameters of the ibc connection submodule. - operationId: IbcCoreConnectionV1Query_ConnectionParams - responses: - '200': - description: A successful response. - schema: - type: object - properties: - params: - description: params defines the parameters of the module. - 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: >- - QueryConnectionParamsResponse is the response type for the - Query/ConnectionParams 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 - 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 - - 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" - } - tags: - - Query - /ibc.core.connection.v1.Msg/ConnectionOpenAck: - post: - summary: ConnectionOpenAck defines a rpc handler method for MsgConnectionOpenAck. - operationId: IbcCoreConnectionV1Msg_ConnectionOpenAck - responses: - '200': - description: A successful response. - schema: - type: object - description: >- - MsgConnectionOpenAckResponse defines the Msg/ConnectionOpenAck - response type. - 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 - 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 - - 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" - } - parameters: - - name: body - description: |- - MsgConnectionOpenAck defines a msg sent by a Relayer to Chain A to - acknowledge the change of connection state to TRYOPEN on Chain B. - in: body - required: true - schema: - 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: - 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. - - - 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" - } - 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 - description: |- - MsgConnectionOpenAck defines a msg sent by a Relayer to Chain A to - acknowledge the change of connection state to TRYOPEN on Chain B. - tags: - - Msg - /ibc.core.connection.v1.Msg/ConnectionOpenConfirm: - post: - summary: |- - ConnectionOpenConfirm defines a rpc handler method for - MsgConnectionOpenConfirm. - operationId: IbcCoreConnectionV1Msg_ConnectionOpenConfirm - responses: - '200': - description: A successful response. - schema: - type: object - description: >- - MsgConnectionOpenConfirmResponse defines the - Msg/ConnectionOpenConfirm - - response type. - 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 - 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 - - 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" - } - parameters: - - name: body - description: >- - MsgConnectionOpenConfirm defines a msg sent by a Relayer to Chain B - to - - acknowledge the change of connection state to OPEN on Chain A. - in: body - required: true - schema: - 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. - tags: - - Msg - /ibc.core.connection.v1.Msg/ConnectionOpenInit: - post: - summary: >- - ConnectionOpenInit defines a rpc handler method for - MsgConnectionOpenInit. - operationId: IbcCoreConnectionV1Msg_ConnectionOpenInit - responses: - '200': - description: A successful response. - schema: - type: object - description: >- - MsgConnectionOpenInitResponse defines the Msg/ConnectionOpenInit - response - - type. - 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 - 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 - - 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" - } - parameters: - - name: body - description: >- - MsgConnectionOpenInit defines the msg sent by an account on Chain A - to - - initialize a connection with Chain B. - in: body - required: true - schema: - 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, - - append(Path.KeyPrefix, key...)) - description: >- - Counterparty defines the counterparty chain associated with a - connection end. - 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. - 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. - tags: - - Msg - /ibc.core.connection.v1.Msg/ConnectionOpenTry: - post: - summary: ConnectionOpenTry defines a rpc handler method for MsgConnectionOpenTry. - operationId: IbcCoreConnectionV1Msg_ConnectionOpenTry - responses: - '200': - description: A successful response. - schema: - type: object - description: >- - MsgConnectionOpenTryResponse defines the Msg/ConnectionOpenTry - response type. - 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 - 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 - - 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" - } - parameters: - - name: body - description: >- - MsgConnectionOpenTry defines a msg sent by a Relayer to try to open - a - - connection on Chain B. - in: body - required: true - schema: - 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. - 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. - - - 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" - } - 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. - 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 - - 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 - - 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_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 - - 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 - description: >- - MsgConnectionOpenTry defines a msg sent by a Relayer to try to - open a - - connection on Chain B. - tags: - - Msg - /ibc.core.connection.v1.Msg/UpdateConnectionParams: - post: - summary: |- - UpdateConnectionParams defines a rpc handler method for - MsgUpdateParams. - operationId: IbcCoreConnectionV1Msg_UpdateConnectionParams - responses: - '200': - description: A successful response. - schema: - type: object - description: MsgUpdateParamsResponse defines the MsgUpdateParams response type. - 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 - 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 - - 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" - } - parameters: - - name: body - description: >- - MsgUpdateParams defines the sdk.Msg type to update the connection - parameters. - in: body - required: true - schema: - type: object - properties: - signer: - type: string - 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. - tags: - - Msg - /mycel/epochs/v1beta1/epoch_info: - get: - operationId: MycelEpochsV1Beta1Query_EpochInfoAll - responses: - '200': - description: A successful response. - schema: - type: object - properties: - epoch_info: - type: array - items: - 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 - 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/epochs/v1beta1/epoch_info/{identifier}: - get: - summary: Queries a list of EpochInfo items. - operationId: MycelEpochsV1Beta1Query_EpochInfo - responses: - '200': - description: A successful response. - schema: - type: object - properties: - 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 - 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: identifier - in: path - required: true - type: string - tags: - - Query - /mycel/epochs/v1beta1/params: - get: - summary: Parameters queries the parameters of the module. - operationId: MycelEpochsV1Beta1Query_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. - 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-domain/mycel/furnace/v1beta1/burn_amount: - get: - operationId: MycelFurnaceV1Beta1Query_BurnAmountAll - 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: - 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-domain/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: - 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. - 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: index - in: path - required: true - type: string - format: uint64 - tags: - - Query - /mycel-domain/mycel/furnace/v1beta1/epoch_burn_config: - get: - summary: Queries a EpochBurnConfig by index. - operationId: MycelFurnaceV1Beta1Query_EpochBurnConfig - 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: - type: array - items: - type: object - properties: - '@type': - type: string - additionalProperties: {} - tags: - - Query - /mycel-domain/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. - 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-domain/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 - - 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-domain/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-domain/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-domain/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-domain/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-domain/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/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/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.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 - /mycel-domain/mycel/resolver/v1beta1/all_records/{domain_name}/{domain_parent}: - get: - summary: Queries a list of AllRecord items. - operationId: MycelResolverV1Beta1Query_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-domain/mycel/resolver/v1beta1/dns_record/{domain_name}/{domain_parent}/{dns_record_type}: - get: - summary: Queries a list of DnsRecord items. - operationId: MycelResolverV1Beta1Query_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-domain/mycel/resolver/v1beta1/params: - get: - summary: Parameters queries the parameters of the module. - operationId: MycelResolverV1Beta1Query_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. - 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-domain/mycel/resolver/v1beta1/text_record/{domain_name}/{domain_parent}/{key}: - get: - summary: Queries a list of TextRecord items. - operationId: MycelResolverV1Beta1Query_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-domain/mycel/resolver/v1beta1/wallet_record/{domain_name}/{domain_parent}/{wallet_record_type}: - get: - summary: Queries a list of QueryWalletRecord items. - operationId: MycelResolverV1Beta1Query_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 -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.Params: - 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: Params defines the parameters for the auth module. - google.protobuf.Any: - 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. - - - 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" - } - google.rpc.Status: - type: object - properties: - code: - type: integer - format: int32 - message: - type: string - details: - type: array - items: - 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. - - - 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" - } - cosmos.auth.v1beta1.AddressBytesToStringResponse: - type: object - properties: - address_string: - type: string - description: >- - AddressBytesToStringResponse is the response type for AddressString rpc - method. - - - Since: cosmos-sdk 0.46 - cosmos.auth.v1beta1.AddressStringToBytesResponse: - type: object - properties: - address_bytes: - type: string - format: byte - description: >- - AddressStringToBytesResponse is the response type for AddressBytes rpc - method. - - - Since: cosmos-sdk 0.46 - cosmos.auth.v1beta1.BaseAccount: - type: object - properties: - address: - type: string - pub_key: - 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. - - - 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" - } - account_number: - type: string - format: uint64 - sequence: - type: string - format: uint64 - description: >- - BaseAccount defines a base account type. It contains all the necessary - fields - - for basic account functionality. Any custom account type should extend - this - - type for additional functionality (e.g. vesting). - cosmos.auth.v1beta1.Bech32PrefixResponse: - type: object - properties: - bech32_prefix: - type: string - description: |- - Bech32PrefixResponse is the response type for Bech32Prefix rpc method. - - Since: cosmos-sdk 0.46 - cosmos.auth.v1beta1.QueryAccountAddressByIDResponse: - type: object - properties: - account_address: - type: string - description: 'Since: cosmos-sdk 0.46.2' - title: >- - QueryAccountAddressByIDResponse is the response type for - AccountAddressByID rpc method - cosmos.auth.v1beta1.QueryAccountInfoResponse: - type: object - properties: - info: - description: info is the account info which is represented by BaseAccount. - type: object - properties: - address: - type: string - pub_key: - 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. - - - 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" - } - account_number: - type: string - format: uint64 - sequence: - type: string - format: uint64 - description: |- - QueryAccountInfoResponse is the Query/AccountInfo response type. - - Since: cosmos-sdk 0.47 - cosmos.auth.v1beta1.QueryAccountResponse: - type: object - properties: - account: - 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. - - - 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" - } - description: >- - QueryAccountResponse is the response type for the Query/Account RPC - method. - cosmos.auth.v1beta1.QueryAccountsResponse: - type: object - properties: - accounts: - type: array - items: - 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. - - - 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" - } - title: accounts are the existing accounts - pagination: - description: pagination defines the pagination in the response. - 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: >- - QueryAccountsResponse is the response type for the Query/Accounts RPC - method. - - - Since: cosmos-sdk 0.43 - cosmos.auth.v1beta1.QueryModuleAccountByNameResponse: - type: object - properties: - account: - 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. - - - 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" - } - description: >- - QueryModuleAccountByNameResponse is the response type for the - Query/ModuleAccountByName RPC method. - cosmos.auth.v1beta1.QueryModuleAccountsResponse: - type: object - properties: - accounts: - type: array - items: - 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. - - - 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" - } - description: >- - QueryModuleAccountsResponse is the response type for the - Query/ModuleAccounts RPC method. - - - Since: cosmos-sdk 0.46 - cosmos.auth.v1beta1.QueryParamsResponse: - type: object - properties: - params: - description: params defines the parameters of the module. - 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: QueryParamsResponse is the response type for the Query/Params RPC method. - 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. - - 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 - - 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. - reverse: - type: boolean - description: >- - reverse is set to true if results are to be returned in the descending - order. - - - 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; - } - cosmos.authz.v1beta1.Grant: - type: object - properties: - authorization: - 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. - - - 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" - } - expiration: - type: string - format: date-time - title: >- - time when the grant will expire and will be pruned. If null, then the - grant - - doesn't have a time expiration (other conditions in `authorization` - - may apply to invalidate the grant) - description: |- - Grant gives permissions to execute - the provide method with expiration time. - cosmos.authz.v1beta1.GrantAuthorization: - type: object - properties: - granter: - type: string - grantee: - type: string - authorization: - 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. - - - 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" - } - expiration: - type: string - format: date-time - title: >- - GrantAuthorization extends a grant with both the addresses of the grantee - and granter. - - It is used in genesis.proto and query.proto - cosmos.authz.v1beta1.QueryGranteeGrantsResponse: - type: object - properties: - grants: - type: array - items: - type: object - properties: - granter: - type: string - grantee: - type: string - authorization: - 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. - - - 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" - } - expiration: - type: string - format: date-time - title: >- - GrantAuthorization extends a grant with both the addresses of the - grantee and granter. - - It is used in genesis.proto and query.proto - description: grants is a list of grants granted to the grantee. - pagination: - description: pagination defines an pagination for the response. - 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: >- - QueryGranteeGrantsResponse is the response type for the - Query/GranteeGrants RPC method. - cosmos.authz.v1beta1.QueryGranterGrantsResponse: - type: object - properties: - grants: - type: array - items: - type: object - properties: - granter: - type: string - grantee: - type: string - authorization: - 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. - - - 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" - } - expiration: - type: string - format: date-time - title: >- - GrantAuthorization extends a grant with both the addresses of the - grantee and granter. - - It is used in genesis.proto and query.proto - description: grants is a list of grants granted by the granter. - pagination: - description: pagination defines an pagination for the response. - 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: >- - QueryGranterGrantsResponse is the response type for the - Query/GranterGrants RPC method. - cosmos.authz.v1beta1.QueryGrantsResponse: - type: object - properties: - grants: - type: array - items: - type: object - properties: - authorization: - 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. - - - 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" - } - expiration: - type: string - format: date-time - title: >- - time when the grant will expire and will be pruned. If null, - then the grant - - doesn't have a time expiration (other conditions in - `authorization` - - may apply to invalidate the grant) - description: |- - Grant gives permissions to execute - the provide method with expiration time. - description: authorizations is a list of grants granted for grantee by granter. - pagination: - description: pagination defines an pagination for the response. - 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: >- - QueryGrantsResponse is the response type for the Query/Authorizations RPC - method. - cosmos.authz.v1beta1.MsgExec: - type: object - properties: - grantee: - type: string - msgs: - type: array - items: - 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. - - - 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" - } - description: >- - Execute Msg. - - The x/authz will try to find a grant matching (msg.signers[0], - grantee, MsgTypeURL(msg)) - - triple and validate it. - description: |- - MsgExec attempts to execute the provided messages using - authorizations granted to the grantee. Each message should have only - one signer corresponding to the granter of the authorization. - cosmos.authz.v1beta1.MsgExecResponse: - type: object - properties: - results: - type: array - items: - type: string - format: byte - description: MsgExecResponse defines the Msg/MsgExecResponse response type. - cosmos.authz.v1beta1.MsgGrant: - type: object - properties: - granter: - type: string - grantee: - type: string - grant: - type: object - properties: - authorization: - 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. - - - 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" - } - expiration: - type: string - format: date-time - title: >- - time when the grant will expire and will be pruned. If null, then - the grant - - doesn't have a time expiration (other conditions in - `authorization` - - may apply to invalidate the grant) - description: |- - Grant gives permissions to execute - the provide method with expiration time. - description: >- - MsgGrant is a request type for Grant method. It declares authorization to - the grantee - - on behalf of the granter with the provided expiration time. - cosmos.authz.v1beta1.MsgGrantResponse: - type: object - description: MsgGrantResponse defines the Msg/MsgGrant response type. - cosmos.authz.v1beta1.MsgRevoke: - type: object - properties: - granter: - type: string - grantee: - type: string - msg_type_url: - type: string - description: |- - MsgRevoke revokes any authorization with the provided sdk.Msg type on the - granter's account with that has been granted to the grantee. - cosmos.authz.v1beta1.MsgRevokeResponse: - type: object - description: MsgRevokeResponse defines the Msg/MsgRevokeResponse response type. - cosmos.bank.v1beta1.DenomOwner: - type: object - properties: - address: - type: string - description: address defines the address that owns a particular denomination. - balance: - description: balance is the balance of the denominated coin for an account. - type: object - properties: - denom: - type: string - amount: - type: string - description: |- - DenomOwner defines structure representing an account that owns or holds a - particular denominated token. It contains the account address and account - balance of the denominated token. - - Since: cosmos-sdk 0.46 - cosmos.bank.v1beta1.DenomUnit: - type: object - properties: - denom: - type: string - description: denom represents the string name of the given denom unit (e.g uatom). - exponent: - type: integer - format: int64 - description: >- - exponent represents power of 10 exponent that one must - - raise the base_denom to in order to equal the given DenomUnit's denom - - 1 denom = 10^exponent base_denom - - (e.g. with a base_denom of uatom, one can create a DenomUnit of 'atom' - with - - exponent = 6, thus: 1 atom = 10^6 uatom). - aliases: - type: array - items: - type: string - title: aliases is a list of string aliases for the given denom - description: |- - DenomUnit represents a struct that describes a given - denomination unit of the basic token. - cosmos.bank.v1beta1.Metadata: - type: object - properties: - description: - type: string - denom_units: - type: array - items: - type: object - properties: - denom: - type: string - description: >- - denom represents the string name of the given denom unit (e.g - uatom). - exponent: - type: integer - format: int64 - description: >- - exponent represents power of 10 exponent that one must - - raise the base_denom to in order to equal the given DenomUnit's - denom - - 1 denom = 10^exponent base_denom - - (e.g. with a base_denom of uatom, one can create a DenomUnit of - 'atom' with - - exponent = 6, thus: 1 atom = 10^6 uatom). - aliases: - type: array - items: - type: string - title: aliases is a list of string aliases for the given denom - description: |- - DenomUnit represents a struct that describes a given - denomination unit of the basic token. - title: denom_units represents the list of DenomUnit's for a given coin - base: - type: string - description: >- - base represents the base denom (should be the DenomUnit with exponent - = 0). - display: - type: string - description: |- - display indicates the suggested denom that should be - displayed in clients. - name: - type: string - description: 'Since: cosmos-sdk 0.43' - title: 'name defines the name of the token (eg: Cosmos Atom)' - symbol: - type: string - description: >- - symbol is the token symbol usually shown on exchanges (eg: ATOM). This - can - - be the same as the display. - - - Since: cosmos-sdk 0.43 - uri: - type: string - description: >- - URI to a document (on or off-chain) that contains additional - information. Optional. - - - Since: cosmos-sdk 0.46 - uri_hash: - type: string - description: >- - URIHash is a sha256 hash of a document pointed by URI. It's used to - verify that - - the document didn't change. Optional. - - - Since: cosmos-sdk 0.46 - description: |- - Metadata represents a struct that describes - a basic token. - cosmos.bank.v1beta1.Params: - type: object - properties: - send_enabled: - type: array - items: - type: object - properties: - denom: - type: string - enabled: - type: boolean - description: >- - SendEnabled maps coin denom to a send_enabled status (whether a - denom is - - sendable). - description: >- - Deprecated: Use of SendEnabled in params is deprecated. - - For genesis, use the newly added send_enabled field in the genesis - object. - - Storage, lookup, and manipulation of this information is now in the - keeper. - - - As of cosmos-sdk 0.47, this only exists for backwards compatibility of - genesis files. - default_send_enabled: - type: boolean - description: Params defines the parameters for the bank module. - cosmos.bank.v1beta1.QueryAllBalancesResponse: - type: object - properties: - balances: - 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. - description: balances is the balances of all the coins. - pagination: - description: pagination defines the pagination in the response. - 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: >- - QueryAllBalancesResponse is the response type for the Query/AllBalances - RPC - - method. - cosmos.bank.v1beta1.QueryBalanceResponse: - type: object - properties: - balance: - description: balance is the balance of the coin. - type: object - properties: - denom: - type: string - amount: - type: string - description: >- - QueryBalanceResponse is the response type for the Query/Balance RPC - method. - cosmos.bank.v1beta1.QueryDenomMetadataByQueryStringResponse: - type: object - properties: - metadata: - description: >- - metadata describes and provides all the client information for the - requested token. - type: object - properties: - description: - type: string - denom_units: - type: array - items: - type: object - properties: - denom: - type: string - description: >- - denom represents the string name of the given denom unit - (e.g uatom). - exponent: - type: integer - format: int64 - description: >- - exponent represents power of 10 exponent that one must - - raise the base_denom to in order to equal the given - DenomUnit's denom - - 1 denom = 10^exponent base_denom - - (e.g. with a base_denom of uatom, one can create a DenomUnit - of 'atom' with - - exponent = 6, thus: 1 atom = 10^6 uatom). - aliases: - type: array - items: - type: string - title: aliases is a list of string aliases for the given denom - description: |- - DenomUnit represents a struct that describes a given - denomination unit of the basic token. - title: denom_units represents the list of DenomUnit's for a given coin - base: - type: string - description: >- - base represents the base denom (should be the DenomUnit with - exponent = 0). - display: - type: string - description: |- - display indicates the suggested denom that should be - displayed in clients. - name: - type: string - description: 'Since: cosmos-sdk 0.43' - title: 'name defines the name of the token (eg: Cosmos Atom)' - symbol: - type: string - description: >- - symbol is the token symbol usually shown on exchanges (eg: ATOM). - This can - - be the same as the display. - - - Since: cosmos-sdk 0.43 - uri: - type: string - description: >- - URI to a document (on or off-chain) that contains additional - information. Optional. - - - Since: cosmos-sdk 0.46 - uri_hash: - type: string - description: >- - URIHash is a sha256 hash of a document pointed by URI. It's used - to verify that - - the document didn't change. Optional. - - - Since: cosmos-sdk 0.46 - description: >- - QueryDenomMetadataByQueryStringResponse is the response type for the - Query/DenomMetadata RPC - - method. Identical with QueryDenomMetadataResponse but receives denom as - query string in request. - cosmos.bank.v1beta1.QueryDenomMetadataResponse: - type: object - properties: - metadata: - description: >- - metadata describes and provides all the client information for the - requested token. - type: object - properties: - description: - type: string - denom_units: - type: array - items: - type: object - properties: - denom: - type: string - description: >- - denom represents the string name of the given denom unit - (e.g uatom). - exponent: - type: integer - format: int64 - description: >- - exponent represents power of 10 exponent that one must - - raise the base_denom to in order to equal the given - DenomUnit's denom - - 1 denom = 10^exponent base_denom - - (e.g. with a base_denom of uatom, one can create a DenomUnit - of 'atom' with - - exponent = 6, thus: 1 atom = 10^6 uatom). - aliases: - type: array - items: - type: string - title: aliases is a list of string aliases for the given denom - description: |- - DenomUnit represents a struct that describes a given - denomination unit of the basic token. - title: denom_units represents the list of DenomUnit's for a given coin - base: - type: string - description: >- - base represents the base denom (should be the DenomUnit with - exponent = 0). - display: - type: string - description: |- - display indicates the suggested denom that should be - displayed in clients. - name: - type: string - description: 'Since: cosmos-sdk 0.43' - title: 'name defines the name of the token (eg: Cosmos Atom)' - symbol: - type: string - description: >- - symbol is the token symbol usually shown on exchanges (eg: ATOM). - This can - - be the same as the display. - - - Since: cosmos-sdk 0.43 - uri: - type: string - description: >- - URI to a document (on or off-chain) that contains additional - information. Optional. - - - Since: cosmos-sdk 0.46 - uri_hash: - type: string - description: >- - URIHash is a sha256 hash of a document pointed by URI. It's used - to verify that - - the document didn't change. Optional. - - - Since: cosmos-sdk 0.46 - description: >- - QueryDenomMetadataResponse is the response type for the - Query/DenomMetadata RPC - - method. - cosmos.bank.v1beta1.QueryDenomOwnersByQueryResponse: - type: object - properties: - denom_owners: - type: array - items: - type: object - properties: - address: - type: string - description: address defines the address that owns a particular denomination. - balance: - description: balance is the balance of the denominated coin for an account. - type: object - properties: - denom: - type: string - amount: - type: string - description: >- - DenomOwner defines structure representing an account that owns or - holds a - - particular denominated token. It contains the account address and - account - - balance of the denominated token. - - - Since: cosmos-sdk 0.46 - pagination: - description: pagination defines the pagination in the response. - 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: >- - QueryDenomOwnersByQueryResponse defines the RPC response of a - DenomOwnersByQuery RPC query. - - - Since: cosmos-sdk 0.50.3 - cosmos.bank.v1beta1.QueryDenomOwnersResponse: - type: object - properties: - denom_owners: - type: array - items: - type: object - properties: - address: - type: string - description: address defines the address that owns a particular denomination. - balance: - description: balance is the balance of the denominated coin for an account. - type: object - properties: - denom: - type: string - amount: - type: string - description: >- - DenomOwner defines structure representing an account that owns or - holds a - - particular denominated token. It contains the account address and - account - - balance of the denominated token. - - - Since: cosmos-sdk 0.46 - pagination: - description: pagination defines the pagination in the response. - 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: >- - QueryDenomOwnersResponse defines the RPC response of a DenomOwners RPC - query. - - - Since: cosmos-sdk 0.46 - cosmos.bank.v1beta1.QueryDenomsMetadataResponse: - type: object - properties: - metadatas: - type: array - items: - type: object - properties: - description: - type: string - denom_units: - type: array - items: - type: object - properties: - denom: - type: string - description: >- - denom represents the string name of the given denom unit - (e.g uatom). - exponent: - type: integer - format: int64 - description: >- - exponent represents power of 10 exponent that one must - - raise the base_denom to in order to equal the given - DenomUnit's denom - - 1 denom = 10^exponent base_denom - - (e.g. with a base_denom of uatom, one can create a - DenomUnit of 'atom' with - - exponent = 6, thus: 1 atom = 10^6 uatom). - aliases: - type: array - items: - type: string - title: aliases is a list of string aliases for the given denom - description: |- - DenomUnit represents a struct that describes a given - denomination unit of the basic token. - title: denom_units represents the list of DenomUnit's for a given coin - base: - type: string - description: >- - base represents the base denom (should be the DenomUnit with - exponent = 0). - display: - type: string - description: |- - display indicates the suggested denom that should be - displayed in clients. - name: - type: string - description: 'Since: cosmos-sdk 0.43' - title: 'name defines the name of the token (eg: Cosmos Atom)' - symbol: - type: string - description: >- - symbol is the token symbol usually shown on exchanges (eg: - ATOM). This can - - be the same as the display. - - - Since: cosmos-sdk 0.43 - uri: - type: string - description: >- - URI to a document (on or off-chain) that contains additional - information. Optional. - - - Since: cosmos-sdk 0.46 - uri_hash: - type: string - description: >- - URIHash is a sha256 hash of a document pointed by URI. It's used - to verify that - - the document didn't change. Optional. - - - Since: cosmos-sdk 0.46 - description: |- - Metadata represents a struct that describes - a basic token. - description: >- - metadata provides the client information for all the registered - tokens. - pagination: - description: pagination defines the pagination in the response. - 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: >- - QueryDenomsMetadataResponse is the response type for the - Query/DenomsMetadata RPC - - method. - cosmos.bank.v1beta1.QueryParamsResponse: - type: object - properties: - params: - description: params provides the parameters of the bank module. - type: object - properties: - send_enabled: - type: array - items: - type: object - properties: - denom: - type: string - enabled: - type: boolean - description: >- - SendEnabled maps coin denom to a send_enabled status (whether a - denom is - - sendable). - description: >- - Deprecated: Use of SendEnabled in params is deprecated. - - For genesis, use the newly added send_enabled field in the genesis - object. - - Storage, lookup, and manipulation of this information is now in - the keeper. - - - As of cosmos-sdk 0.47, this only exists for backwards - compatibility of genesis files. - default_send_enabled: - type: boolean - description: >- - QueryParamsResponse defines the response type for querying x/bank - parameters. - cosmos.bank.v1beta1.QuerySendEnabledResponse: - type: object - properties: - send_enabled: - type: array - items: - type: object - properties: - denom: - type: string - enabled: - type: boolean - description: >- - SendEnabled maps coin denom to a send_enabled status (whether a - denom is - - sendable). - pagination: - description: |- - pagination defines the pagination in the response. This field is only - populated if the denoms field in the request is empty. - 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: |- - QuerySendEnabledResponse defines the RPC response of a SendEnable query. - - Since: cosmos-sdk 0.47 - cosmos.bank.v1beta1.QuerySpendableBalanceByDenomResponse: - type: object - properties: - balance: - description: balance is the balance of the coin. - type: object - properties: - denom: - type: string - amount: - type: string - description: >- - QuerySpendableBalanceByDenomResponse defines the gRPC response structure - for - - querying an account's spendable balance for a specific denom. - - - Since: cosmos-sdk 0.47 - cosmos.bank.v1beta1.QuerySpendableBalancesResponse: - type: object - properties: - balances: - 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. - description: balances is the spendable balances of all the coins. - pagination: - description: pagination defines the pagination in the response. - 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: >- - QuerySpendableBalancesResponse defines the gRPC response structure for - querying - - an account's spendable balances. - - - Since: cosmos-sdk 0.46 - cosmos.bank.v1beta1.QuerySupplyOfResponse: - type: object - properties: - amount: - description: amount is the supply of the coin. - type: object - properties: - denom: - type: string - amount: - type: string - description: >- - QuerySupplyOfResponse is the response type for the Query/SupplyOf RPC - method. - cosmos.bank.v1beta1.QueryTotalSupplyResponse: - type: object - properties: - supply: - 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: supply is the supply of the coins - pagination: - description: |- - pagination defines the pagination in the response. - - Since: cosmos-sdk 0.43 - 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 - title: >- - QueryTotalSupplyResponse is the response type for the Query/TotalSupply - RPC - - method - cosmos.bank.v1beta1.SendEnabled: - type: object - properties: - denom: - type: string - enabled: - type: boolean - description: |- - SendEnabled maps coin denom to a send_enabled status (whether a denom is - sendable). - cosmos.base.v1beta1.Coin: - 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. - cosmos.bank.v1beta1.Input: - type: object - properties: - address: - type: string - coins: - 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. - description: Input models transaction input. - cosmos.bank.v1beta1.MsgMultiSend: - type: object - properties: - inputs: - type: array - items: - type: object - properties: - address: - type: string - coins: - 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. - description: Input models transaction input. - description: >- - Inputs, despite being `repeated`, only allows one sender input. This - is - - checked in MsgMultiSend's ValidateBasic. - outputs: - type: array - items: - type: object - properties: - address: - type: string - coins: - 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. - description: Output models transaction outputs. - description: MsgMultiSend represents an arbitrary multi-in, multi-out send message. - cosmos.bank.v1beta1.MsgMultiSendResponse: - type: object - description: MsgMultiSendResponse defines the Msg/MultiSend response type. - cosmos.bank.v1beta1.MsgSend: - type: object - properties: - from_address: - type: string - to_address: - type: string - 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. - description: MsgSend represents a message to send coins from one account to another. - cosmos.bank.v1beta1.MsgSendResponse: - type: object - description: MsgSendResponse defines the Msg/Send response type. - cosmos.bank.v1beta1.MsgSetSendEnabled: - type: object - properties: - authority: - type: string - description: authority is the address that controls the module. - send_enabled: - type: array - items: - type: object - properties: - denom: - type: string - enabled: - type: boolean - description: >- - SendEnabled maps coin denom to a send_enabled status (whether a - denom is - - sendable). - description: send_enabled is the list of entries to add or update. - use_default_for: - type: array - items: - type: string - description: >- - use_default_for is a list of denoms that should use the - params.default_send_enabled value. - - Denoms listed here will have their SendEnabled entries deleted. - - If a denom is included that doesn't have a SendEnabled entry, - - it will be ignored. - description: |- - MsgSetSendEnabled is the Msg/SetSendEnabled request type. - - Only entries to add/update/delete need to be included. - Existing SendEnabled entries that are not included in this - message are left unchanged. - - Since: cosmos-sdk 0.47 - cosmos.bank.v1beta1.MsgSetSendEnabledResponse: - type: object - description: |- - MsgSetSendEnabledResponse defines the Msg/SetSendEnabled response type. - - Since: cosmos-sdk 0.47 - cosmos.bank.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/bank parameters to update. - - NOTE: All parameters must be supplied. - type: object - properties: - send_enabled: - type: array - items: - type: object - properties: - denom: - type: string - enabled: - type: boolean - description: >- - SendEnabled maps coin denom to a send_enabled status (whether a - denom is - - sendable). - description: >- - Deprecated: Use of SendEnabled in params is deprecated. - - For genesis, use the newly added send_enabled field in the genesis - object. - - Storage, lookup, and manipulation of this information is now in - the keeper. - - - As of cosmos-sdk 0.47, this only exists for backwards - compatibility of genesis files. - default_send_enabled: - type: boolean - description: |- - MsgUpdateParams is the Msg/UpdateParams request type. - - Since: cosmos-sdk 0.47 - cosmos.bank.v1beta1.MsgUpdateParamsResponse: - type: object - description: |- - MsgUpdateParamsResponse defines the response structure for executing a - MsgUpdateParams message. - - Since: cosmos-sdk 0.47 - cosmos.bank.v1beta1.Output: - type: object - properties: - address: - type: string - coins: - 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. - description: Output models transaction outputs. - cosmos.consensus.v1.MsgUpdateParams: - type: object - properties: - authority: - type: string - description: >- - authority is the address that controls the module (defaults to x/gov - unless overwritten). - block: - description: |- - params defines the x/consensus parameters to update. - VersionsParams is not included in this Msg because it is tracked - separarately in x/upgrade. - - NOTE: All parameters must be supplied. - type: object - properties: - max_bytes: - type: string - format: int64 - title: |- - Max block size, in bytes. - Note: must be greater than 0 - max_gas: - type: string - format: int64 - title: |- - Max gas per block. - Note: must be greater or equal to -1 - evidence: - type: object - properties: - max_age_num_blocks: - type: string - format: int64 - description: >- - Max age of evidence, in blocks. - - - The basic formula for calculating this is: MaxAgeDuration / - {average block - - time}. - max_age_duration: - type: string - description: >- - Max age of evidence, in time. - - - It should correspond with an app's "unbonding period" or other - similar - - mechanism for handling [Nothing-At-Stake - - attacks](https://github.com/ethereum/wiki/wiki/Proof-of-Stake-FAQ#what-is-the-nothing-at-stake-problem-and-how-can-it-be-fixed). - max_bytes: - type: string - format: int64 - title: >- - This sets the maximum size of total evidence in bytes that can be - committed in a single block. - - and should fall comfortably under the max block bytes. - - Default is 1048576 or 1MB - description: EvidenceParams determine how we handle evidence of malfeasance. - validator: - type: object - properties: - pub_key_types: - type: array - items: - type: string - description: |- - ValidatorParams restrict the public key types validators can use. - NOTE: uses ABCI pubkey naming, not Amino names. - abci: - title: 'Since: cosmos-sdk 0.50' - type: object - properties: - vote_extensions_enable_height: - type: string - format: int64 - description: >- - vote_extensions_enable_height configures the first height during - which - - vote extensions will be enabled. During this specified height, and - for all - - subsequent heights, precommit messages that do not contain valid - extension data - - will be considered invalid. Prior to this height, vote extensions - will not - - be used or accepted by validators on the network. - - - Once enabled, vote extensions will be created by the application - in ExtendVote, - - passed to the application for validation in VerifyVoteExtension - and given - - to the application to use when proposing a block during - PrepareProposal. - description: >- - ABCIParams configure functionality specific to the Application - Blockchain Interface. - description: MsgUpdateParams is the Msg/UpdateParams request type. - cosmos.consensus.v1.MsgUpdateParamsResponse: - type: object - description: |- - MsgUpdateParamsResponse defines the response structure for executing a - MsgUpdateParams message. - tendermint.types.ABCIParams: - type: object - properties: - vote_extensions_enable_height: - type: string - format: int64 - description: >- - vote_extensions_enable_height configures the first height during which - - vote extensions will be enabled. During this specified height, and for - all - - subsequent heights, precommit messages that do not contain valid - extension data - - will be considered invalid. Prior to this height, vote extensions will - not - - be used or accepted by validators on the network. - - - Once enabled, vote extensions will be created by the application in - ExtendVote, - - passed to the application for validation in VerifyVoteExtension and - given - - to the application to use when proposing a block during - PrepareProposal. - description: >- - ABCIParams configure functionality specific to the Application Blockchain - Interface. - tendermint.types.BlockParams: - type: object - properties: - max_bytes: - type: string - format: int64 - title: |- - Max block size, in bytes. - Note: must be greater than 0 - max_gas: - type: string - format: int64 - title: |- - Max gas per block. - Note: must be greater or equal to -1 - description: BlockParams contains limits on the block size. - tendermint.types.EvidenceParams: - type: object - properties: - max_age_num_blocks: - type: string - format: int64 - description: >- - Max age of evidence, in blocks. - - - The basic formula for calculating this is: MaxAgeDuration / {average - block - - time}. - max_age_duration: - type: string - description: >- - Max age of evidence, in time. - - - It should correspond with an app's "unbonding period" or other similar - - mechanism for handling [Nothing-At-Stake - - attacks](https://github.com/ethereum/wiki/wiki/Proof-of-Stake-FAQ#what-is-the-nothing-at-stake-problem-and-how-can-it-be-fixed). - max_bytes: - type: string - format: int64 - title: >- - This sets the maximum size of total evidence in bytes that can be - committed in a single block. - - and should fall comfortably under the max block bytes. - - Default is 1048576 or 1MB - description: EvidenceParams determine how we handle evidence of malfeasance. - tendermint.types.ValidatorParams: - type: object - properties: - pub_key_types: - type: array - items: - type: string - description: |- - ValidatorParams restrict the public key types validators can use. - NOTE: uses ABCI pubkey naming, not Amino names. - cosmos.consensus.v1.QueryParamsResponse: - type: object - properties: - params: - description: >- - params are the tendermint consensus params stored in the consensus - module. - - Please note that `params.version` is not populated in this response, - it is - - tracked separately in the x/upgrade module. - type: object - properties: - block: - type: object - properties: - max_bytes: - type: string - format: int64 - title: |- - Max block size, in bytes. - Note: must be greater than 0 - max_gas: - type: string - format: int64 - title: |- - Max gas per block. - Note: must be greater or equal to -1 - description: BlockParams contains limits on the block size. - evidence: - type: object - properties: - max_age_num_blocks: - type: string - format: int64 - description: >- - Max age of evidence, in blocks. - - - The basic formula for calculating this is: MaxAgeDuration / - {average block - - time}. - max_age_duration: - type: string - description: >- - Max age of evidence, in time. - - - It should correspond with an app's "unbonding period" or other - similar - - mechanism for handling [Nothing-At-Stake - - attacks](https://github.com/ethereum/wiki/wiki/Proof-of-Stake-FAQ#what-is-the-nothing-at-stake-problem-and-how-can-it-be-fixed). - max_bytes: - type: string - format: int64 - title: >- - This sets the maximum size of total evidence in bytes that can - be committed in a single block. - - and should fall comfortably under the max block bytes. - - Default is 1048576 or 1MB - description: EvidenceParams determine how we handle evidence of malfeasance. - validator: - type: object - properties: - pub_key_types: - type: array - items: - type: string - description: |- - ValidatorParams restrict the public key types validators can use. - NOTE: uses ABCI pubkey naming, not Amino names. - version: - type: object - properties: - app: - type: string - format: uint64 - description: VersionParams contains the ABCI application version. - abci: - type: object - properties: - vote_extensions_enable_height: - type: string - format: int64 - description: >- - vote_extensions_enable_height configures the first height - during which - - vote extensions will be enabled. During this specified height, - and for all - - subsequent heights, precommit messages that do not contain - valid extension data - - will be considered invalid. Prior to this height, vote - extensions will not - - be used or accepted by validators on the network. - - - Once enabled, vote extensions will be created by the - application in ExtendVote, - - passed to the application for validation in - VerifyVoteExtension and given - - to the application to use when proposing a block during - PrepareProposal. - description: >- - ABCIParams configure functionality specific to the Application - Blockchain Interface. - description: >- - QueryParamsResponse defines the response type for querying x/consensus - parameters. - tendermint.types.ConsensusParams: - type: object - properties: - block: - type: object - properties: - max_bytes: - type: string - format: int64 - title: |- - Max block size, in bytes. - Note: must be greater than 0 - max_gas: - type: string - format: int64 - title: |- - Max gas per block. - Note: must be greater or equal to -1 - description: BlockParams contains limits on the block size. - evidence: - type: object - properties: - max_age_num_blocks: - type: string - format: int64 - description: >- - Max age of evidence, in blocks. - - - The basic formula for calculating this is: MaxAgeDuration / - {average block - - time}. - max_age_duration: - type: string - description: >- - Max age of evidence, in time. - - - It should correspond with an app's "unbonding period" or other - similar - - mechanism for handling [Nothing-At-Stake - - attacks](https://github.com/ethereum/wiki/wiki/Proof-of-Stake-FAQ#what-is-the-nothing-at-stake-problem-and-how-can-it-be-fixed). - max_bytes: - type: string - format: int64 - title: >- - This sets the maximum size of total evidence in bytes that can be - committed in a single block. - - and should fall comfortably under the max block bytes. - - Default is 1048576 or 1MB - description: EvidenceParams determine how we handle evidence of malfeasance. - validator: - type: object - properties: - pub_key_types: - type: array - items: - type: string - description: |- - ValidatorParams restrict the public key types validators can use. - NOTE: uses ABCI pubkey naming, not Amino names. - version: - type: object - properties: - app: - type: string - format: uint64 - description: VersionParams contains the ABCI application version. - abci: - type: object - properties: - vote_extensions_enable_height: - type: string - format: int64 - description: >- - vote_extensions_enable_height configures the first height during - which - - vote extensions will be enabled. During this specified height, and - for all - - subsequent heights, precommit messages that do not contain valid - extension data - - will be considered invalid. Prior to this height, vote extensions - will not - - be used or accepted by validators on the network. - - - Once enabled, vote extensions will be created by the application - in ExtendVote, - - passed to the application for validation in VerifyVoteExtension - and given - - to the application to use when proposing a block during - PrepareProposal. - description: >- - ABCIParams configure functionality specific to the Application - Blockchain Interface. - description: |- - ConsensusParams contains consensus critical parameters that determine the - validity of blocks. - tendermint.types.VersionParams: - type: object - properties: - app: - type: string - format: uint64 - description: VersionParams contains the ABCI application version. - cosmos.crisis.v1beta1.MsgUpdateParams: - type: object - properties: - authority: - type: string - description: >- - authority is the address that controls the module (defaults to x/gov - unless overwritten). - constant_fee: - description: constant_fee defines the x/crisis parameter. - type: object - properties: - denom: - type: string - amount: - type: string - description: |- - MsgUpdateParams is the Msg/UpdateParams request type. - - Since: cosmos-sdk 0.47 - cosmos.crisis.v1beta1.MsgUpdateParamsResponse: - type: object - description: |- - MsgUpdateParamsResponse defines the response structure for executing a - MsgUpdateParams message. - - Since: cosmos-sdk 0.47 - cosmos.crisis.v1beta1.MsgVerifyInvariant: - type: object - properties: - sender: - type: string - description: >- - sender is the account address of private key to send coins to fee - collector account. - invariant_module_name: - type: string - description: name of the invariant module. - invariant_route: - type: string - description: invariant_route is the msg's invariant route. - description: MsgVerifyInvariant represents a message to verify a particular invariance. - cosmos.crisis.v1beta1.MsgVerifyInvariantResponse: - type: object - description: MsgVerifyInvariantResponse defines the Msg/VerifyInvariant response type. - cosmos.distribution.v1beta1.MsgCommunityPoolSpend: - type: object - properties: - authority: - type: string - description: >- - authority is the address that controls the module (defaults to x/gov - unless overwritten). - recipient: - type: string - 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. - description: >- - MsgCommunityPoolSpend defines a message for sending tokens from the - community - - pool to another account. This message is typically executed via a - governance - - proposal with the governance module being the executing authority. - - - Since: cosmos-sdk 0.47 - cosmos.distribution.v1beta1.MsgCommunityPoolSpendResponse: - type: object - description: |- - MsgCommunityPoolSpendResponse defines the response to executing a - MsgCommunityPoolSpend message. - - Since: cosmos-sdk 0.47 - cosmos.distribution.v1beta1.MsgDepositValidatorRewardsPool: - type: object - properties: - depositor: - type: string - validator_address: - type: string - 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. - description: |- - DepositValidatorRewardsPool defines the request structure to provide - additional rewards to delegators from a specific validator. - - Since: cosmos-sdk 0.50 - cosmos.distribution.v1beta1.MsgDepositValidatorRewardsPoolResponse: - type: object - description: |- - MsgDepositValidatorRewardsPoolResponse defines the response to executing a - MsgDepositValidatorRewardsPool message. - - Since: cosmos-sdk 0.50 - cosmos.distribution.v1beta1.MsgFundCommunityPool: - type: object - properties: - 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. - depositor: - type: string - description: |- - MsgFundCommunityPool allows an account to directly - fund the community pool. - cosmos.distribution.v1beta1.MsgFundCommunityPoolResponse: - type: object - description: >- - MsgFundCommunityPoolResponse defines the Msg/FundCommunityPool response - type. - cosmos.distribution.v1beta1.MsgSetWithdrawAddress: - type: object - properties: - delegator_address: - type: string - withdraw_address: - type: string - description: |- - MsgSetWithdrawAddress sets the withdraw address for - a delegator (or validator self-delegation). - cosmos.distribution.v1beta1.MsgSetWithdrawAddressResponse: - type: object - description: |- - MsgSetWithdrawAddressResponse defines the Msg/SetWithdrawAddress response - type. - cosmos.distribution.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/distribution parameters to update. - - NOTE: All parameters must be supplied. - type: object - properties: - community_tax: - type: string - base_proposer_reward: - type: string - description: >- - Deprecated: The base_proposer_reward field is deprecated and is no - longer used - - in the x/distribution module's reward mechanism. - bonus_proposer_reward: - type: string - description: >- - Deprecated: The bonus_proposer_reward field is deprecated and is - no longer used - - in the x/distribution module's reward mechanism. - withdraw_addr_enabled: - type: boolean - description: |- - MsgUpdateParams is the Msg/UpdateParams request type. - - Since: cosmos-sdk 0.47 - cosmos.distribution.v1beta1.MsgUpdateParamsResponse: - type: object - description: |- - MsgUpdateParamsResponse defines the response structure for executing a - MsgUpdateParams message. - - Since: cosmos-sdk 0.47 - cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward: - type: object - properties: - delegator_address: - type: string - validator_address: - type: string - description: |- - MsgWithdrawDelegatorReward represents delegation withdrawal to a delegator - from a single validator. - cosmos.distribution.v1beta1.MsgWithdrawDelegatorRewardResponse: - type: object - properties: - 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. - title: 'Since: cosmos-sdk 0.46' - description: |- - MsgWithdrawDelegatorRewardResponse defines the Msg/WithdrawDelegatorReward - response type. - cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission: - type: object - properties: - validator_address: - type: string - description: >- - MsgWithdrawValidatorCommission withdraws the full commission to the - validator - - address. - cosmos.distribution.v1beta1.MsgWithdrawValidatorCommissionResponse: - type: object - properties: - 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. - title: 'Since: cosmos-sdk 0.46' - description: |- - MsgWithdrawValidatorCommissionResponse defines the - Msg/WithdrawValidatorCommission response type. - cosmos.distribution.v1beta1.Params: - type: object - properties: - community_tax: - type: string - base_proposer_reward: - type: string - description: >- - Deprecated: The base_proposer_reward field is deprecated and is no - longer used - - in the x/distribution module's reward mechanism. - bonus_proposer_reward: - type: string - description: >- - Deprecated: The bonus_proposer_reward field is deprecated and is no - longer used - - in the x/distribution module's reward mechanism. - withdraw_addr_enabled: - type: boolean - description: Params defines the set of params for the distribution module. - cosmos.base.v1beta1.DecCoin: - type: object - properties: - denom: - type: string - amount: - type: string - description: |- - DecCoin defines a token with a denomination and a decimal amount. - - NOTE: The amount field is an Dec which implements the custom method - signatures required by gogoproto. - cosmos.distribution.v1beta1.DelegationDelegatorReward: - type: object - properties: - validator_address: - type: string - reward: - type: array - items: - type: object - properties: - denom: - type: string - amount: - type: string - description: |- - DecCoin defines a token with a denomination and a decimal amount. - - NOTE: The amount field is an Dec which implements the custom method - signatures required by gogoproto. - description: |- - DelegationDelegatorReward represents the properties - of a delegator's delegation reward. - cosmos.distribution.v1beta1.QueryCommunityPoolResponse: - type: object - properties: - pool: - type: array - items: - type: object - properties: - denom: - type: string - amount: - type: string - description: |- - DecCoin defines a token with a denomination and a decimal amount. - - NOTE: The amount field is an Dec which implements the custom method - signatures required by gogoproto. - description: pool defines community pool's coins. - description: >- - QueryCommunityPoolResponse is the response type for the - Query/CommunityPool - - RPC method. - cosmos.distribution.v1beta1.QueryDelegationRewardsResponse: - type: object - properties: - rewards: - type: array - items: - type: object - properties: - denom: - type: string - amount: - type: string - description: |- - DecCoin defines a token with a denomination and a decimal amount. - - NOTE: The amount field is an Dec which implements the custom method - signatures required by gogoproto. - description: rewards defines the rewards accrued by a delegation. - description: |- - QueryDelegationRewardsResponse is the response type for the - Query/DelegationRewards RPC method. - cosmos.distribution.v1beta1.QueryDelegationTotalRewardsResponse: - type: object - properties: - rewards: - type: array - items: - type: object - properties: - validator_address: - type: string - reward: - type: array - items: - type: object - properties: - denom: - type: string - amount: - type: string - description: >- - DecCoin defines a token with a denomination and a decimal - amount. - - - NOTE: The amount field is an Dec which implements the custom - method - - signatures required by gogoproto. - description: |- - DelegationDelegatorReward represents the properties - of a delegator's delegation reward. - description: rewards defines all the rewards accrued by a delegator. - total: - type: array - items: - type: object - properties: - denom: - type: string - amount: - type: string - description: |- - DecCoin defines a token with a denomination and a decimal amount. - - NOTE: The amount field is an Dec which implements the custom method - signatures required by gogoproto. - description: total defines the sum of all the rewards. - description: |- - QueryDelegationTotalRewardsResponse is the response type for the - Query/DelegationTotalRewards RPC method. - cosmos.distribution.v1beta1.QueryDelegatorValidatorsResponse: - type: object - properties: - validators: - type: array - items: - type: string - description: validators defines the validators a delegator is delegating for. - description: |- - QueryDelegatorValidatorsResponse is the response type for the - Query/DelegatorValidators RPC method. - cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressResponse: - type: object - properties: - withdraw_address: - type: string - description: withdraw_address defines the delegator address to query for. - description: |- - QueryDelegatorWithdrawAddressResponse is the response type for the - Query/DelegatorWithdrawAddress RPC method. - cosmos.distribution.v1beta1.QueryParamsResponse: - type: object - properties: - params: - description: params defines the parameters of the module. - type: object - properties: - community_tax: - type: string - base_proposer_reward: - type: string - description: >- - Deprecated: The base_proposer_reward field is deprecated and is no - longer used - - in the x/distribution module's reward mechanism. - bonus_proposer_reward: - type: string - description: >- - Deprecated: The bonus_proposer_reward field is deprecated and is - no longer used - - in the x/distribution module's reward mechanism. - withdraw_addr_enabled: - type: boolean - description: QueryParamsResponse is the response type for the Query/Params RPC method. - cosmos.distribution.v1beta1.QueryValidatorCommissionResponse: - type: object - properties: - commission: - description: commission defines the commission the validator received. - type: object - properties: - commission: - type: array - items: - type: object - properties: - denom: - type: string - amount: - type: string - description: >- - DecCoin defines a token with a denomination and a decimal - amount. - - - NOTE: The amount field is an Dec which implements the custom - method - - signatures required by gogoproto. - title: |- - QueryValidatorCommissionResponse is the response type for the - Query/ValidatorCommission RPC method - cosmos.distribution.v1beta1.QueryValidatorDistributionInfoResponse: - type: object - properties: - operator_address: - type: string - description: operator_address defines the validator operator address. - self_bond_rewards: - type: array - items: - type: object - properties: - denom: - type: string - amount: - type: string - description: |- - DecCoin defines a token with a denomination and a decimal amount. - - NOTE: The amount field is an Dec which implements the custom method - signatures required by gogoproto. - description: self_bond_rewards defines the self delegations rewards. - commission: - type: array - items: - type: object - properties: - denom: - type: string - amount: - type: string - description: |- - DecCoin defines a token with a denomination and a decimal amount. - - NOTE: The amount field is an Dec which implements the custom method - signatures required by gogoproto. - description: commission defines the commission the validator received. - description: >- - QueryValidatorDistributionInfoResponse is the response type for the - Query/ValidatorDistributionInfo RPC method. - cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsResponse: - type: object - properties: - rewards: - type: object - properties: - rewards: - type: array - items: - type: object - properties: - denom: - type: string - amount: - type: string - description: >- - DecCoin defines a token with a denomination and a decimal - amount. - - - NOTE: The amount field is an Dec which implements the custom - method - - signatures required by gogoproto. - description: >- - ValidatorOutstandingRewards represents outstanding (un-withdrawn) - rewards - - for a validator inexpensive to track, allows simple sanity checks. - description: |- - QueryValidatorOutstandingRewardsResponse is the response type for the - Query/ValidatorOutstandingRewards RPC method. - cosmos.distribution.v1beta1.QueryValidatorSlashesResponse: - type: object - properties: - slashes: - type: array - items: - type: object - properties: - validator_period: - type: string - format: uint64 - fraction: - type: string - description: |- - ValidatorSlashEvent represents a validator slash event. - Height is implicit within the store key. - This is needed to calculate appropriate amount of staking tokens - for delegations which are withdrawn after a slash has occurred. - description: slashes defines the slashes the validator received. - pagination: - description: pagination defines the pagination in the response. - 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: |- - QueryValidatorSlashesResponse is the response type for the - Query/ValidatorSlashes RPC method. - cosmos.distribution.v1beta1.ValidatorAccumulatedCommission: - type: object - properties: - commission: - type: array - items: - type: object - properties: - denom: - type: string - amount: - type: string - description: |- - DecCoin defines a token with a denomination and a decimal amount. - - NOTE: The amount field is an Dec which implements the custom method - signatures required by gogoproto. - description: |- - ValidatorAccumulatedCommission represents accumulated commission - for a validator kept as a running counter, can be withdrawn at any time. - cosmos.distribution.v1beta1.ValidatorOutstandingRewards: - type: object - properties: - rewards: - type: array - items: - type: object - properties: - denom: - type: string - amount: - type: string - description: |- - DecCoin defines a token with a denomination and a decimal amount. - - NOTE: The amount field is an Dec which implements the custom method - signatures required by gogoproto. - description: |- - ValidatorOutstandingRewards represents outstanding (un-withdrawn) rewards - for a validator inexpensive to track, allows simple sanity checks. - cosmos.distribution.v1beta1.ValidatorSlashEvent: - type: object - properties: - validator_period: - type: string - format: uint64 - fraction: - type: string - description: |- - ValidatorSlashEvent represents a validator slash event. - Height is implicit within the store key. - This is needed to calculate appropriate amount of staking tokens - for delegations which are withdrawn after a slash has occurred. - cosmos.evidence.v1beta1.MsgSubmitEvidence: - type: object - properties: - submitter: - type: string - description: submitter is the signer account address of evidence. - evidence: - description: evidence defines the evidence of misbehavior. - 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: |- - MsgSubmitEvidence represents a message that supports submitting arbitrary - Evidence of misbehavior such as equivocation or counterfactual signing. - cosmos.evidence.v1beta1.MsgSubmitEvidenceResponse: - type: object - properties: - hash: - type: string - format: byte - description: hash defines the hash of the evidence. - description: MsgSubmitEvidenceResponse defines the Msg/SubmitEvidence response type. - cosmos.evidence.v1beta1.QueryAllEvidenceResponse: - type: object - properties: - evidence: - type: array - items: - 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. - - - 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" - } - description: evidence returns all evidences. - pagination: - description: pagination defines the pagination in the response. - 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: >- - QueryAllEvidenceResponse is the response type for the Query/AllEvidence - RPC - - method. - cosmos.evidence.v1beta1.QueryEvidenceResponse: - type: object - properties: - evidence: - description: evidence returns the requested evidence. - 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: >- - QueryEvidenceResponse is the response type for the Query/Evidence RPC - method. - cosmos.feegrant.v1beta1.Grant: - type: object - properties: - granter: - type: string - description: >- - granter is the address of the user granting an allowance of their - funds. - grantee: - type: string - description: >- - grantee is the address of the user being granted an allowance of - another user's funds. - allowance: - description: allowance can be any of basic, periodic, allowed fee allowance. - 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: {} - title: Grant is stored in the KVStore to record a grant with full context - cosmos.feegrant.v1beta1.QueryAllowanceResponse: - type: object - properties: - allowance: - description: allowance is a allowance granted for grantee by granter. - type: object - properties: - granter: - type: string - description: >- - granter is the address of the user granting an allowance of their - funds. - grantee: - type: string - description: >- - grantee is the address of the user being granted an allowance of - another user's funds. - allowance: - description: allowance can be any of basic, periodic, allowed fee allowance. - 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: {} - title: Grant is stored in the KVStore to record a grant with full context - description: >- - QueryAllowanceResponse is the response type for the Query/Allowance RPC - method. - cosmos.feegrant.v1beta1.QueryAllowancesByGranterResponse: - type: object - properties: - allowances: - type: array - items: - type: object - properties: - granter: - type: string - description: >- - granter is the address of the user granting an allowance of - their funds. - grantee: - type: string - description: >- - grantee is the address of the user being granted an allowance of - another user's funds. - allowance: - description: allowance can be any of basic, periodic, allowed fee allowance. - 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: {} - title: Grant is stored in the KVStore to record a grant with full context - description: allowances that have been issued by the granter. - pagination: - description: pagination defines an pagination for the response. - 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: >- - QueryAllowancesByGranterResponse is the response type for the - Query/AllowancesByGranter RPC method. - - - Since: cosmos-sdk 0.46 - cosmos.feegrant.v1beta1.QueryAllowancesResponse: - type: object - properties: - allowances: - type: array - items: - type: object - properties: - granter: - type: string - description: >- - granter is the address of the user granting an allowance of - their funds. - grantee: - type: string - description: >- - grantee is the address of the user being granted an allowance of - another user's funds. - allowance: - description: allowance can be any of basic, periodic, allowed fee allowance. - 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: {} - title: Grant is stored in the KVStore to record a grant with full context - description: allowances are allowance's granted for grantee by granter. - pagination: - description: pagination defines an pagination for the response. - 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: >- - QueryAllowancesResponse is the response type for the Query/Allowances RPC - method. - cosmos.feegrant.v1beta1.MsgGrantAllowance: - type: object - properties: - granter: - type: string - description: >- - granter is the address of the user granting an allowance of their - funds. - grantee: - type: string - description: >- - grantee is the address of the user being granted an allowance of - another user's funds. - allowance: - description: allowance can be any of basic, periodic, allowed fee allowance. - 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: |- - MsgGrantAllowance adds permission for Grantee to spend up to Allowance - of fees from the account of Granter. - cosmos.feegrant.v1beta1.MsgGrantAllowanceResponse: - type: object - description: >- - MsgGrantAllowanceResponse defines the Msg/GrantAllowanceResponse response - type. - cosmos.feegrant.v1beta1.MsgPruneAllowances: - type: object - properties: - pruner: - type: string - description: pruner is the address of the user pruning expired allowances. - description: |- - MsgPruneAllowances prunes expired fee allowances. - - Since cosmos-sdk 0.50 - cosmos.feegrant.v1beta1.MsgPruneAllowancesResponse: - type: object - description: >- - MsgPruneAllowancesResponse defines the Msg/PruneAllowancesResponse - response type. - - - Since cosmos-sdk 0.50 - cosmos.feegrant.v1beta1.MsgRevokeAllowance: - type: object - properties: - granter: - type: string - description: >- - granter is the address of the user granting an allowance of their - funds. - grantee: - type: string - description: >- - grantee is the address of the user being granted an allowance of - another user's funds. - description: MsgRevokeAllowance removes any existing Allowance from Granter to Grantee. - cosmos.feegrant.v1beta1.MsgRevokeAllowanceResponse: - type: object - description: >- - MsgRevokeAllowanceResponse defines the Msg/RevokeAllowanceResponse - response type. - cosmos.gov.v1.MsgCancelProposal: - type: object - properties: - proposal_id: - type: string - format: uint64 - description: proposal_id defines the unique id of the proposal. - proposer: - type: string - description: proposer is the account address of the proposer. - description: |- - MsgCancelProposal is the Msg/CancelProposal request type. - - Since: cosmos-sdk 0.50 - cosmos.gov.v1.MsgCancelProposalResponse: - type: object - properties: - proposal_id: - type: string - format: uint64 - description: proposal_id defines the unique id of the proposal. - canceled_time: - type: string - format: date-time - description: canceled_time is the time when proposal is canceled. - canceled_height: - type: string - format: uint64 - description: >- - canceled_height defines the block height at which the proposal is - canceled. - description: |- - MsgCancelProposalResponse defines the response structure for executing a - MsgCancelProposal message. - - Since: cosmos-sdk 0.50 - cosmos.gov.v1.MsgDeposit: - type: object - properties: - proposal_id: - type: string - format: uint64 - description: proposal_id defines the unique id of the proposal. - depositor: - type: string - description: depositor defines the deposit addresses from the proposals. - 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. - description: amount to be deposited by depositor. - description: MsgDeposit defines a message to submit a deposit to an existing proposal. - cosmos.gov.v1.MsgDepositResponse: - type: object - description: MsgDepositResponse defines the Msg/Deposit response type. - cosmos.gov.v1.MsgExecLegacyContent: - type: object - properties: - content: - description: content is the proposal's content. - 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: {} - authority: - type: string - description: authority must be the gov module address. - description: >- - MsgExecLegacyContent is used to wrap the legacy content field into a - message. - - This ensures backwards compatibility with v1beta1.MsgSubmitProposal. - cosmos.gov.v1.MsgExecLegacyContentResponse: - type: object - description: >- - MsgExecLegacyContentResponse defines the Msg/ExecLegacyContent response - type. - cosmos.gov.v1.MsgSubmitProposal: - type: object - properties: - messages: - type: array - items: - 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. - - - 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" - } - description: messages are the arbitrary messages to be executed if proposal passes. - initial_deposit: - 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. - description: >- - initial_deposit is the deposit value that must be paid at proposal - submission. - proposer: - type: string - description: proposer is the account address of the proposer. - metadata: - type: string - description: metadata is any arbitrary metadata attached to the proposal. - title: - type: string - description: |- - title is the title of the proposal. - - Since: cosmos-sdk 0.47 - summary: - type: string - description: 'Since: cosmos-sdk 0.47' - title: summary is the summary of the proposal - expedited: - type: boolean - description: 'Since: cosmos-sdk 0.50' - title: expedited defines if the proposal is expedited or not - description: >- - MsgSubmitProposal defines an sdk.Msg type that supports submitting - arbitrary - - proposal Content. - cosmos.gov.v1.MsgSubmitProposalResponse: - type: object - properties: - proposal_id: - type: string - format: uint64 - description: proposal_id defines the unique id of the proposal. - description: MsgSubmitProposalResponse defines the Msg/SubmitProposal response type. - cosmos.gov.v1.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/gov parameters to update. - - NOTE: All parameters must be supplied. - type: object - properties: - min_deposit: - 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. - description: Minimum deposit for a proposal to enter voting period. - max_deposit_period: - type: string - description: >- - Maximum period for Atom holders to deposit on a proposal. Initial - value: 2 - - months. - voting_period: - type: string - description: Duration of the voting period. - quorum: - type: string - description: >- - Minimum percentage of total stake needed to vote for a result to - be - considered valid. - threshold: - type: string - description: >- - Minimum proportion of Yes votes for proposal to pass. Default - value: 0.5. - veto_threshold: - type: string - description: >- - Minimum value of Veto votes to Total votes ratio for proposal to - be - vetoed. Default value: 1/3. - min_initial_deposit_ratio: - type: string - description: >- - The ratio representing the proportion of the deposit value that - must be paid at proposal submission. - proposal_cancel_ratio: - type: string - description: >- - The cancel ratio which will not be returned back to the depositors - when a proposal is cancelled. - - - Since: cosmos-sdk 0.50 - proposal_cancel_dest: - type: string - description: >- - The address which will receive (proposal_cancel_ratio * deposit) - proposal deposits. - - If empty, the (proposal_cancel_ratio * deposit) proposal deposits - will be burned. - - - Since: cosmos-sdk 0.50 - expedited_voting_period: - type: string - description: |- - Duration of the voting period of an expedited proposal. - - Since: cosmos-sdk 0.50 - expedited_threshold: - type: string - description: >- - Minimum proportion of Yes votes for proposal to pass. Default - value: 0.67. - - - Since: cosmos-sdk 0.50 - expedited_min_deposit: - 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. - description: Minimum expedited deposit for a proposal to enter voting period. - burn_vote_quorum: - type: boolean - title: burn deposits if a proposal does not meet quorum - burn_proposal_deposit_prevote: - type: boolean - title: burn deposits if the proposal does not enter voting period - burn_vote_veto: - type: boolean - title: burn deposits if quorum with vote type no_veto is met - min_deposit_ratio: - type: string - description: >- - The ratio representing the proportion of the deposit value minimum - that must be met when making a deposit. - - Default value: 0.01. Meaning that for a chain with a min_deposit - of 100stake, a deposit of 1stake would be - - required. - - - Since: cosmos-sdk 0.50 - description: |- - MsgUpdateParams is the Msg/UpdateParams request type. - - Since: cosmos-sdk 0.47 - cosmos.gov.v1.MsgUpdateParamsResponse: - type: object - description: |- - MsgUpdateParamsResponse defines the response structure for executing a - MsgUpdateParams message. - - Since: cosmos-sdk 0.47 - cosmos.gov.v1.MsgVote: - type: object - properties: - proposal_id: - type: string - format: uint64 - description: proposal_id defines the unique id of the proposal. - voter: - type: string - description: voter is the voter address for the proposal. - option: - description: option defines the vote option. - type: string - enum: - - VOTE_OPTION_UNSPECIFIED - - VOTE_OPTION_YES - - VOTE_OPTION_ABSTAIN - - VOTE_OPTION_NO - - VOTE_OPTION_NO_WITH_VETO - default: VOTE_OPTION_UNSPECIFIED - metadata: - type: string - description: metadata is any arbitrary metadata attached to the Vote. - description: MsgVote defines a message to cast a vote. - cosmos.gov.v1.MsgVoteResponse: - type: object - description: MsgVoteResponse defines the Msg/Vote response type. - cosmos.gov.v1.MsgVoteWeighted: - type: object - properties: - proposal_id: - type: string - format: uint64 - description: proposal_id defines the unique id of the proposal. - voter: - type: string - description: voter is the voter address for the proposal. - options: - type: array - items: - type: object - properties: - option: - description: >- - option defines the valid vote options, it must not contain - duplicate vote options. - type: string - enum: - - VOTE_OPTION_UNSPECIFIED - - VOTE_OPTION_YES - - VOTE_OPTION_ABSTAIN - - VOTE_OPTION_NO - - VOTE_OPTION_NO_WITH_VETO - default: VOTE_OPTION_UNSPECIFIED - weight: - type: string - description: weight is the vote weight associated with the vote option. - description: WeightedVoteOption defines a unit of vote for vote split. - description: options defines the weighted vote options. - metadata: - type: string - description: metadata is any arbitrary metadata attached to the VoteWeighted. - description: MsgVoteWeighted defines a message to cast a vote. - cosmos.gov.v1.MsgVoteWeightedResponse: - type: object - description: MsgVoteWeightedResponse defines the Msg/VoteWeighted response type. - cosmos.gov.v1.Params: - type: object - properties: - min_deposit: - 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. - description: Minimum deposit for a proposal to enter voting period. - max_deposit_period: - type: string - description: >- - Maximum period for Atom holders to deposit on a proposal. Initial - value: 2 - - months. - voting_period: - type: string - description: Duration of the voting period. - quorum: - type: string - description: |- - Minimum percentage of total stake needed to vote for a result to be - considered valid. - threshold: - type: string - description: >- - Minimum proportion of Yes votes for proposal to pass. Default value: - 0.5. - veto_threshold: - type: string - description: |- - Minimum value of Veto votes to Total votes ratio for proposal to be - vetoed. Default value: 1/3. - min_initial_deposit_ratio: - type: string - description: >- - The ratio representing the proportion of the deposit value that must - be paid at proposal submission. - proposal_cancel_ratio: - type: string - description: >- - The cancel ratio which will not be returned back to the depositors - when a proposal is cancelled. - - - Since: cosmos-sdk 0.50 - proposal_cancel_dest: - type: string - description: >- - The address which will receive (proposal_cancel_ratio * deposit) - proposal deposits. - - If empty, the (proposal_cancel_ratio * deposit) proposal deposits will - be burned. - - - Since: cosmos-sdk 0.50 - expedited_voting_period: - type: string - description: |- - Duration of the voting period of an expedited proposal. - - Since: cosmos-sdk 0.50 - expedited_threshold: - type: string - description: >- - Minimum proportion of Yes votes for proposal to pass. Default value: - 0.67. - - - Since: cosmos-sdk 0.50 - expedited_min_deposit: - 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. - description: Minimum expedited deposit for a proposal to enter voting period. - burn_vote_quorum: - type: boolean - title: burn deposits if a proposal does not meet quorum - burn_proposal_deposit_prevote: - type: boolean - title: burn deposits if the proposal does not enter voting period - burn_vote_veto: - type: boolean - title: burn deposits if quorum with vote type no_veto is met - min_deposit_ratio: - type: string - description: >- - The ratio representing the proportion of the deposit value minimum - that must be met when making a deposit. - - Default value: 0.01. Meaning that for a chain with a min_deposit of - 100stake, a deposit of 1stake would be - - required. - - - Since: cosmos-sdk 0.50 - description: |- - Params defines the parameters for the x/gov module. - - Since: cosmos-sdk 0.47 - cosmos.gov.v1.VoteOption: - type: string - enum: - - VOTE_OPTION_UNSPECIFIED - - VOTE_OPTION_YES - - VOTE_OPTION_ABSTAIN - - VOTE_OPTION_NO - - VOTE_OPTION_NO_WITH_VETO - default: VOTE_OPTION_UNSPECIFIED - description: >- - VoteOption enumerates the valid vote options for a given governance - proposal. - - - VOTE_OPTION_UNSPECIFIED: VOTE_OPTION_UNSPECIFIED defines a no-op vote option. - - VOTE_OPTION_YES: VOTE_OPTION_YES defines a yes vote option. - - VOTE_OPTION_ABSTAIN: VOTE_OPTION_ABSTAIN defines an abstain vote option. - - VOTE_OPTION_NO: VOTE_OPTION_NO defines a no vote option. - - VOTE_OPTION_NO_WITH_VETO: VOTE_OPTION_NO_WITH_VETO defines a no with veto vote option. - cosmos.gov.v1.WeightedVoteOption: - type: object - properties: - option: - description: >- - option defines the valid vote options, it must not contain duplicate - vote options. - type: string - enum: - - VOTE_OPTION_UNSPECIFIED - - VOTE_OPTION_YES - - VOTE_OPTION_ABSTAIN - - VOTE_OPTION_NO - - VOTE_OPTION_NO_WITH_VETO - default: VOTE_OPTION_UNSPECIFIED - weight: - type: string - description: weight is the vote weight associated with the vote option. - description: WeightedVoteOption defines a unit of vote for vote split. - cosmos.gov.v1.Deposit: - type: object - properties: - proposal_id: - type: string - format: uint64 - description: proposal_id defines the unique id of the proposal. - depositor: - type: string - description: depositor defines the deposit addresses from the proposals. - 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. - description: amount to be deposited by depositor. - description: |- - Deposit defines an amount deposited by an account address to an active - proposal. - cosmos.gov.v1.DepositParams: - type: object - properties: - min_deposit: - 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. - description: Minimum deposit for a proposal to enter voting period. - max_deposit_period: - type: string - description: >- - Maximum period for Atom holders to deposit on a proposal. Initial - value: 2 - - months. - description: DepositParams defines the params for deposits on governance proposals. - cosmos.gov.v1.Proposal: - type: object - properties: - id: - type: string - format: uint64 - description: id defines the unique id of the proposal. - messages: - type: array - items: - 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. - - - 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" - } - description: >- - messages are the arbitrary messages to be executed if the proposal - passes. - status: - description: status defines the proposal status. - type: string - enum: - - PROPOSAL_STATUS_UNSPECIFIED - - PROPOSAL_STATUS_DEPOSIT_PERIOD - - PROPOSAL_STATUS_VOTING_PERIOD - - PROPOSAL_STATUS_PASSED - - PROPOSAL_STATUS_REJECTED - - PROPOSAL_STATUS_FAILED - default: PROPOSAL_STATUS_UNSPECIFIED - final_tally_result: - description: |- - final_tally_result is the final tally result of the proposal. When - querying a proposal via gRPC, this field is not populated until the - proposal's voting period has ended. - type: object - properties: - yes_count: - type: string - description: yes_count is the number of yes votes on a proposal. - abstain_count: - type: string - description: abstain_count is the number of abstain votes on a proposal. - no_count: - type: string - description: no_count is the number of no votes on a proposal. - no_with_veto_count: - type: string - description: >- - no_with_veto_count is the number of no with veto votes on a - proposal. - submit_time: - type: string - format: date-time - description: submit_time is the time of proposal submission. - deposit_end_time: - type: string - format: date-time - description: deposit_end_time is the end time for deposition. - total_deposit: - 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. - description: total_deposit is the total deposit on the proposal. - voting_start_time: - type: string - format: date-time - description: voting_start_time is the starting time to vote on a proposal. - voting_end_time: - type: string - format: date-time - description: voting_end_time is the end time of voting on a proposal. - metadata: - type: string - title: |- - metadata is any arbitrary metadata attached to the proposal. - the recommended format of the metadata is to be found here: - https://docs.cosmos.network/v0.47/modules/gov#proposal-3 - title: - type: string - description: 'Since: cosmos-sdk 0.47' - title: title is the title of the proposal - summary: - type: string - description: 'Since: cosmos-sdk 0.47' - title: summary is a short summary of the proposal - proposer: - type: string - description: 'Since: cosmos-sdk 0.47' - title: proposer is the address of the proposal sumbitter - expedited: - type: boolean - description: 'Since: cosmos-sdk 0.50' - title: expedited defines if the proposal is expedited - failed_reason: - type: string - description: 'Since: cosmos-sdk 0.50' - title: failed_reason defines the reason why the proposal failed - description: Proposal defines the core field members of a governance proposal. - cosmos.gov.v1.ProposalStatus: - type: string - enum: - - PROPOSAL_STATUS_UNSPECIFIED - - PROPOSAL_STATUS_DEPOSIT_PERIOD - - PROPOSAL_STATUS_VOTING_PERIOD - - PROPOSAL_STATUS_PASSED - - PROPOSAL_STATUS_REJECTED - - PROPOSAL_STATUS_FAILED - default: PROPOSAL_STATUS_UNSPECIFIED - description: |- - ProposalStatus enumerates the valid statuses of a proposal. - - - PROPOSAL_STATUS_UNSPECIFIED: PROPOSAL_STATUS_UNSPECIFIED defines the default proposal status. - - PROPOSAL_STATUS_DEPOSIT_PERIOD: PROPOSAL_STATUS_DEPOSIT_PERIOD defines a proposal status during the deposit - period. - - PROPOSAL_STATUS_VOTING_PERIOD: PROPOSAL_STATUS_VOTING_PERIOD defines a proposal status during the voting - period. - - PROPOSAL_STATUS_PASSED: PROPOSAL_STATUS_PASSED defines a proposal status of a proposal that has - passed. - - PROPOSAL_STATUS_REJECTED: PROPOSAL_STATUS_REJECTED defines a proposal status of a proposal that has - been rejected. - - PROPOSAL_STATUS_FAILED: PROPOSAL_STATUS_FAILED defines a proposal status of a proposal that has - failed. - cosmos.gov.v1.QueryConstitutionResponse: - type: object - properties: - constitution: - type: string - title: >- - QueryConstitutionResponse is the response type for the Query/Constitution - RPC method - cosmos.gov.v1.QueryDepositResponse: - type: object - properties: - deposit: - description: deposit defines the requested deposit. - type: object - properties: - proposal_id: - type: string - format: uint64 - description: proposal_id defines the unique id of the proposal. - depositor: - type: string - description: depositor defines the deposit addresses from the proposals. - 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. - description: amount to be deposited by depositor. - description: >- - QueryDepositResponse is the response type for the Query/Deposit RPC - method. - cosmos.gov.v1.QueryDepositsResponse: - type: object - properties: - deposits: - type: array - items: - type: object - properties: - proposal_id: - type: string - format: uint64 - description: proposal_id defines the unique id of the proposal. - depositor: - type: string - description: depositor defines the deposit addresses from the proposals. - 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. - description: amount to be deposited by depositor. - description: >- - Deposit defines an amount deposited by an account address to an - active - - proposal. - description: deposits defines the requested deposits. - pagination: - description: pagination defines the pagination in the response. - 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: >- - QueryDepositsResponse is the response type for the Query/Deposits RPC - method. - cosmos.gov.v1.QueryParamsResponse: - type: object - properties: - voting_params: - description: |- - Deprecated: Prefer to use `params` instead. - voting_params defines the parameters related to voting. - type: object - properties: - voting_period: - type: string - description: Duration of the voting period. - deposit_params: - description: |- - Deprecated: Prefer to use `params` instead. - deposit_params defines the parameters related to deposit. - type: object - properties: - min_deposit: - 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. - description: Minimum deposit for a proposal to enter voting period. - max_deposit_period: - type: string - description: >- - Maximum period for Atom holders to deposit on a proposal. Initial - value: 2 - - months. - tally_params: - description: |- - Deprecated: Prefer to use `params` instead. - tally_params defines the parameters related to tally. - type: object - properties: - quorum: - type: string - description: >- - Minimum percentage of total stake needed to vote for a result to - be - - considered valid. - threshold: - type: string - description: >- - Minimum proportion of Yes votes for proposal to pass. Default - value: 0.5. - veto_threshold: - type: string - description: >- - Minimum value of Veto votes to Total votes ratio for proposal to - be - - vetoed. Default value: 1/3. - params: - description: |- - params defines all the paramaters of x/gov module. - - Since: cosmos-sdk 0.47 - type: object - properties: - min_deposit: - 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. - description: Minimum deposit for a proposal to enter voting period. - max_deposit_period: - type: string - description: >- - Maximum period for Atom holders to deposit on a proposal. Initial - value: 2 - - months. - voting_period: - type: string - description: Duration of the voting period. - quorum: - type: string - description: >- - Minimum percentage of total stake needed to vote for a result to - be - considered valid. - threshold: - type: string - description: >- - Minimum proportion of Yes votes for proposal to pass. Default - value: 0.5. - veto_threshold: - type: string - description: >- - Minimum value of Veto votes to Total votes ratio for proposal to - be - vetoed. Default value: 1/3. - min_initial_deposit_ratio: - type: string - description: >- - The ratio representing the proportion of the deposit value that - must be paid at proposal submission. - proposal_cancel_ratio: - type: string - description: >- - The cancel ratio which will not be returned back to the depositors - when a proposal is cancelled. - - - Since: cosmos-sdk 0.50 - proposal_cancel_dest: - type: string - description: >- - The address which will receive (proposal_cancel_ratio * deposit) - proposal deposits. - - If empty, the (proposal_cancel_ratio * deposit) proposal deposits - will be burned. - - - Since: cosmos-sdk 0.50 - expedited_voting_period: - type: string - description: |- - Duration of the voting period of an expedited proposal. - - Since: cosmos-sdk 0.50 - expedited_threshold: - type: string - description: >- - Minimum proportion of Yes votes for proposal to pass. Default - value: 0.67. - - - Since: cosmos-sdk 0.50 - expedited_min_deposit: - 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. - description: Minimum expedited deposit for a proposal to enter voting period. - burn_vote_quorum: - type: boolean - title: burn deposits if a proposal does not meet quorum - burn_proposal_deposit_prevote: - type: boolean - title: burn deposits if the proposal does not enter voting period - burn_vote_veto: - type: boolean - title: burn deposits if quorum with vote type no_veto is met - min_deposit_ratio: - type: string - description: >- - The ratio representing the proportion of the deposit value minimum - that must be met when making a deposit. - - Default value: 0.01. Meaning that for a chain with a min_deposit - of 100stake, a deposit of 1stake would be - - required. - - - Since: cosmos-sdk 0.50 - description: QueryParamsResponse is the response type for the Query/Params RPC method. - cosmos.gov.v1.QueryProposalResponse: - type: object - properties: - proposal: - description: proposal is the requested governance proposal. - type: object - properties: - id: - type: string - format: uint64 - description: id defines the unique id of the proposal. - messages: - type: array - items: - 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. - - - 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" - } - description: >- - messages are the arbitrary messages to be executed if the proposal - passes. - status: - description: status defines the proposal status. - type: string - enum: - - PROPOSAL_STATUS_UNSPECIFIED - - PROPOSAL_STATUS_DEPOSIT_PERIOD - - PROPOSAL_STATUS_VOTING_PERIOD - - PROPOSAL_STATUS_PASSED - - PROPOSAL_STATUS_REJECTED - - PROPOSAL_STATUS_FAILED - default: PROPOSAL_STATUS_UNSPECIFIED - final_tally_result: - description: >- - final_tally_result is the final tally result of the proposal. When - - querying a proposal via gRPC, this field is not populated until - the - - proposal's voting period has ended. - type: object - properties: - yes_count: - type: string - description: yes_count is the number of yes votes on a proposal. - abstain_count: - type: string - description: abstain_count is the number of abstain votes on a proposal. - no_count: - type: string - description: no_count is the number of no votes on a proposal. - no_with_veto_count: - type: string - description: >- - no_with_veto_count is the number of no with veto votes on a - proposal. - submit_time: - type: string - format: date-time - description: submit_time is the time of proposal submission. - deposit_end_time: - type: string - format: date-time - description: deposit_end_time is the end time for deposition. - total_deposit: - 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. - description: total_deposit is the total deposit on the proposal. - voting_start_time: - type: string - format: date-time - description: voting_start_time is the starting time to vote on a proposal. - voting_end_time: - type: string - format: date-time - description: voting_end_time is the end time of voting on a proposal. - metadata: - type: string - title: |- - metadata is any arbitrary metadata attached to the proposal. - the recommended format of the metadata is to be found here: - https://docs.cosmos.network/v0.47/modules/gov#proposal-3 - title: - type: string - description: 'Since: cosmos-sdk 0.47' - title: title is the title of the proposal - summary: - type: string - description: 'Since: cosmos-sdk 0.47' - title: summary is a short summary of the proposal - proposer: - type: string - description: 'Since: cosmos-sdk 0.47' - title: proposer is the address of the proposal sumbitter - expedited: - type: boolean - description: 'Since: cosmos-sdk 0.50' - title: expedited defines if the proposal is expedited - failed_reason: - type: string - description: 'Since: cosmos-sdk 0.50' - title: failed_reason defines the reason why the proposal failed - description: >- - QueryProposalResponse is the response type for the Query/Proposal RPC - method. - cosmos.gov.v1.QueryProposalsResponse: - type: object - properties: - proposals: - type: array - items: - type: object - properties: - id: - type: string - format: uint64 - description: id defines the unique id of the proposal. - messages: - type: array - items: - 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. - - - 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" - } - description: >- - messages are the arbitrary messages to be executed if the - proposal passes. - status: - description: status defines the proposal status. - type: string - enum: - - PROPOSAL_STATUS_UNSPECIFIED - - PROPOSAL_STATUS_DEPOSIT_PERIOD - - PROPOSAL_STATUS_VOTING_PERIOD - - PROPOSAL_STATUS_PASSED - - PROPOSAL_STATUS_REJECTED - - PROPOSAL_STATUS_FAILED - default: PROPOSAL_STATUS_UNSPECIFIED - final_tally_result: - description: >- - final_tally_result is the final tally result of the proposal. - When - - querying a proposal via gRPC, this field is not populated until - the - - proposal's voting period has ended. - type: object - properties: - yes_count: - type: string - description: yes_count is the number of yes votes on a proposal. - abstain_count: - type: string - description: abstain_count is the number of abstain votes on a proposal. - no_count: - type: string - description: no_count is the number of no votes on a proposal. - no_with_veto_count: - type: string - description: >- - no_with_veto_count is the number of no with veto votes on a - proposal. - submit_time: - type: string - format: date-time - description: submit_time is the time of proposal submission. - deposit_end_time: - type: string - format: date-time - description: deposit_end_time is the end time for deposition. - total_deposit: - 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. - description: total_deposit is the total deposit on the proposal. - voting_start_time: - type: string - format: date-time - description: voting_start_time is the starting time to vote on a proposal. - voting_end_time: - type: string - format: date-time - description: voting_end_time is the end time of voting on a proposal. - metadata: - type: string - title: |- - metadata is any arbitrary metadata attached to the proposal. - the recommended format of the metadata is to be found here: - https://docs.cosmos.network/v0.47/modules/gov#proposal-3 - title: - type: string - description: 'Since: cosmos-sdk 0.47' - title: title is the title of the proposal - summary: - type: string - description: 'Since: cosmos-sdk 0.47' - title: summary is a short summary of the proposal - proposer: - type: string - description: 'Since: cosmos-sdk 0.47' - title: proposer is the address of the proposal sumbitter - expedited: - type: boolean - description: 'Since: cosmos-sdk 0.50' - title: expedited defines if the proposal is expedited - failed_reason: - type: string - description: 'Since: cosmos-sdk 0.50' - title: failed_reason defines the reason why the proposal failed - description: Proposal defines the core field members of a governance proposal. - description: proposals defines all the requested governance proposals. - pagination: - description: pagination defines the pagination in the response. - 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: |- - QueryProposalsResponse is the response type for the Query/Proposals RPC - method. - cosmos.gov.v1.QueryTallyResultResponse: - type: object - properties: - tally: - description: tally defines the requested tally. - type: object - properties: - yes_count: - type: string - description: yes_count is the number of yes votes on a proposal. - abstain_count: - type: string - description: abstain_count is the number of abstain votes on a proposal. - no_count: - type: string - description: no_count is the number of no votes on a proposal. - no_with_veto_count: - type: string - description: >- - no_with_veto_count is the number of no with veto votes on a - proposal. - description: >- - QueryTallyResultResponse is the response type for the Query/Tally RPC - method. - cosmos.gov.v1.QueryVoteResponse: - type: object - properties: - vote: - description: vote defines the queried vote. - type: object - properties: - proposal_id: - type: string - format: uint64 - description: proposal_id defines the unique id of the proposal. - voter: - type: string - description: voter is the voter address of the proposal. - options: - type: array - items: - type: object - properties: - option: - description: >- - option defines the valid vote options, it must not contain - duplicate vote options. - type: string - enum: - - VOTE_OPTION_UNSPECIFIED - - VOTE_OPTION_YES - - VOTE_OPTION_ABSTAIN - - VOTE_OPTION_NO - - VOTE_OPTION_NO_WITH_VETO - default: VOTE_OPTION_UNSPECIFIED - weight: - type: string - description: weight is the vote weight associated with the vote option. - description: WeightedVoteOption defines a unit of vote for vote split. - description: options is the weighted vote options. - metadata: - type: string - title: >- - metadata is any arbitrary metadata attached to the vote. - - the recommended format of the metadata is to be found here: - https://docs.cosmos.network/v0.47/modules/gov#vote-5 - description: QueryVoteResponse is the response type for the Query/Vote RPC method. - cosmos.gov.v1.QueryVotesResponse: - type: object - properties: - votes: - type: array - items: - type: object - properties: - proposal_id: - type: string - format: uint64 - description: proposal_id defines the unique id of the proposal. - voter: - type: string - description: voter is the voter address of the proposal. - options: - type: array - items: - type: object - properties: - option: - description: >- - option defines the valid vote options, it must not contain - duplicate vote options. - type: string - enum: - - VOTE_OPTION_UNSPECIFIED - - VOTE_OPTION_YES - - VOTE_OPTION_ABSTAIN - - VOTE_OPTION_NO - - VOTE_OPTION_NO_WITH_VETO - default: VOTE_OPTION_UNSPECIFIED - weight: - type: string - description: weight is the vote weight associated with the vote option. - description: WeightedVoteOption defines a unit of vote for vote split. - description: options is the weighted vote options. - metadata: - type: string - title: >- - metadata is any arbitrary metadata attached to the vote. - - the recommended format of the metadata is to be found here: - https://docs.cosmos.network/v0.47/modules/gov#vote-5 - description: |- - Vote defines a vote on a governance proposal. - A Vote consists of a proposal ID, the voter, and the vote option. - description: votes defines the queried votes. - pagination: - description: pagination defines the pagination in the response. - 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: QueryVotesResponse is the response type for the Query/Votes RPC method. - cosmos.gov.v1.TallyParams: - type: object - properties: - quorum: - type: string - description: |- - Minimum percentage of total stake needed to vote for a result to be - considered valid. - threshold: - type: string - description: >- - Minimum proportion of Yes votes for proposal to pass. Default value: - 0.5. - veto_threshold: - type: string - description: |- - Minimum value of Veto votes to Total votes ratio for proposal to be - vetoed. Default value: 1/3. - description: TallyParams defines the params for tallying votes on governance proposals. - cosmos.gov.v1.TallyResult: - type: object - properties: - yes_count: - type: string - description: yes_count is the number of yes votes on a proposal. - abstain_count: - type: string - description: abstain_count is the number of abstain votes on a proposal. - no_count: - type: string - description: no_count is the number of no votes on a proposal. - no_with_veto_count: - type: string - description: no_with_veto_count is the number of no with veto votes on a proposal. - description: TallyResult defines a standard tally for a governance proposal. - cosmos.gov.v1.Vote: - type: object - properties: - proposal_id: - type: string - format: uint64 - description: proposal_id defines the unique id of the proposal. - voter: - type: string - description: voter is the voter address of the proposal. - options: - type: array - items: - type: object - properties: - option: - description: >- - option defines the valid vote options, it must not contain - duplicate vote options. - type: string - enum: - - VOTE_OPTION_UNSPECIFIED - - VOTE_OPTION_YES - - VOTE_OPTION_ABSTAIN - - VOTE_OPTION_NO - - VOTE_OPTION_NO_WITH_VETO - default: VOTE_OPTION_UNSPECIFIED - weight: - type: string - description: weight is the vote weight associated with the vote option. - description: WeightedVoteOption defines a unit of vote for vote split. - description: options is the weighted vote options. - metadata: - type: string - title: >- - metadata is any arbitrary metadata attached to the vote. - - the recommended format of the metadata is to be found here: - https://docs.cosmos.network/v0.47/modules/gov#vote-5 - description: |- - Vote defines a vote on a governance proposal. - A Vote consists of a proposal ID, the voter, and the vote option. - cosmos.gov.v1.VotingParams: - type: object - properties: - voting_period: - type: string - description: Duration of the voting period. - description: VotingParams defines the params for voting on governance proposals. - cosmos.gov.v1beta1.MsgDeposit: - type: object - properties: - proposal_id: - type: string - format: uint64 - description: proposal_id defines the unique id of the proposal. - depositor: - type: string - description: depositor defines the deposit addresses from the proposals. - 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. - description: amount to be deposited by depositor. - description: MsgDeposit defines a message to submit a deposit to an existing proposal. - cosmos.gov.v1beta1.MsgDepositResponse: - type: object - description: MsgDepositResponse defines the Msg/Deposit response type. - cosmos.gov.v1beta1.MsgSubmitProposal: - type: object - properties: - content: - description: content is the proposal's content. - 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: {} - initial_deposit: - 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. - description: >- - initial_deposit is the deposit value that must be paid at proposal - submission. - proposer: - type: string - description: proposer is the account address of the proposer. - description: >- - MsgSubmitProposal defines an sdk.Msg type that supports submitting - arbitrary - - proposal Content. - cosmos.gov.v1beta1.MsgSubmitProposalResponse: - type: object - properties: - proposal_id: - type: string - format: uint64 - description: proposal_id defines the unique id of the proposal. - description: MsgSubmitProposalResponse defines the Msg/SubmitProposal response type. - cosmos.gov.v1beta1.MsgVote: - type: object - properties: - proposal_id: - type: string - format: uint64 - description: proposal_id defines the unique id of the proposal. - voter: - type: string - description: voter is the voter address for the proposal. - option: - description: option defines the vote option. - type: string - enum: - - VOTE_OPTION_UNSPECIFIED - - VOTE_OPTION_YES - - VOTE_OPTION_ABSTAIN - - VOTE_OPTION_NO - - VOTE_OPTION_NO_WITH_VETO - default: VOTE_OPTION_UNSPECIFIED - description: MsgVote defines a message to cast a vote. - cosmos.gov.v1beta1.MsgVoteResponse: - type: object - description: MsgVoteResponse defines the Msg/Vote response type. - cosmos.gov.v1beta1.MsgVoteWeighted: - type: object - properties: - proposal_id: - type: string - format: uint64 - description: proposal_id defines the unique id of the proposal. - voter: - type: string - description: voter is the voter address for the proposal. - options: - type: array - items: - type: object - properties: - option: - description: >- - option defines the valid vote options, it must not contain - duplicate vote options. - type: string - enum: - - VOTE_OPTION_UNSPECIFIED - - VOTE_OPTION_YES - - VOTE_OPTION_ABSTAIN - - VOTE_OPTION_NO - - VOTE_OPTION_NO_WITH_VETO - default: VOTE_OPTION_UNSPECIFIED - weight: - type: string - description: weight is the vote weight associated with the vote option. - description: |- - WeightedVoteOption defines a unit of vote for vote split. - - Since: cosmos-sdk 0.43 - description: options defines the weighted vote options. - description: |- - MsgVoteWeighted defines a message to cast a vote. - - Since: cosmos-sdk 0.43 - cosmos.gov.v1beta1.MsgVoteWeightedResponse: - type: object - description: |- - MsgVoteWeightedResponse defines the Msg/VoteWeighted response type. - - Since: cosmos-sdk 0.43 - cosmos.gov.v1beta1.VoteOption: - type: string - enum: - - VOTE_OPTION_UNSPECIFIED - - VOTE_OPTION_YES - - VOTE_OPTION_ABSTAIN - - VOTE_OPTION_NO - - VOTE_OPTION_NO_WITH_VETO - default: VOTE_OPTION_UNSPECIFIED - description: >- - VoteOption enumerates the valid vote options for a given governance - proposal. - - - VOTE_OPTION_UNSPECIFIED: VOTE_OPTION_UNSPECIFIED defines a no-op vote option. - - VOTE_OPTION_YES: VOTE_OPTION_YES defines a yes vote option. - - VOTE_OPTION_ABSTAIN: VOTE_OPTION_ABSTAIN defines an abstain vote option. - - VOTE_OPTION_NO: VOTE_OPTION_NO defines a no vote option. - - VOTE_OPTION_NO_WITH_VETO: VOTE_OPTION_NO_WITH_VETO defines a no with veto vote option. - cosmos.gov.v1beta1.WeightedVoteOption: - type: object - properties: - option: - description: >- - option defines the valid vote options, it must not contain duplicate - vote options. - type: string - enum: - - VOTE_OPTION_UNSPECIFIED - - VOTE_OPTION_YES - - VOTE_OPTION_ABSTAIN - - VOTE_OPTION_NO - - VOTE_OPTION_NO_WITH_VETO - default: VOTE_OPTION_UNSPECIFIED - weight: - type: string - description: weight is the vote weight associated with the vote option. - description: |- - WeightedVoteOption defines a unit of vote for vote split. - - Since: cosmos-sdk 0.43 - cosmos.gov.v1beta1.Deposit: - type: object - properties: - proposal_id: - type: string - format: uint64 - description: proposal_id defines the unique id of the proposal. - depositor: - type: string - description: depositor defines the deposit addresses from the proposals. - 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. - description: amount to be deposited by depositor. - description: |- - Deposit defines an amount deposited by an account address to an active - proposal. - cosmos.gov.v1beta1.DepositParams: - type: object - properties: - min_deposit: - 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. - description: Minimum deposit for a proposal to enter voting period. - max_deposit_period: - type: string - description: >- - Maximum period for Atom holders to deposit on a proposal. Initial - value: 2 - - months. - description: DepositParams defines the params for deposits on governance proposals. - cosmos.gov.v1beta1.Proposal: - type: object - properties: - proposal_id: - type: string - format: uint64 - description: proposal_id defines the unique id of the proposal. - content: - description: content is the proposal's content. - 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: {} - status: - description: status defines the proposal status. - type: string - enum: - - PROPOSAL_STATUS_UNSPECIFIED - - PROPOSAL_STATUS_DEPOSIT_PERIOD - - PROPOSAL_STATUS_VOTING_PERIOD - - PROPOSAL_STATUS_PASSED - - PROPOSAL_STATUS_REJECTED - - PROPOSAL_STATUS_FAILED - default: PROPOSAL_STATUS_UNSPECIFIED - final_tally_result: - description: |- - final_tally_result is the final tally result of the proposal. When - querying a proposal via gRPC, this field is not populated until the - proposal's voting period has ended. - type: object - properties: - 'yes': - type: string - description: yes is the number of yes votes on a proposal. - abstain: - type: string - description: abstain is the number of abstain votes on a proposal. - 'no': - type: string - description: no is the number of no votes on a proposal. - no_with_veto: - type: string - description: no_with_veto is the number of no with veto votes on a proposal. - submit_time: - type: string - format: date-time - description: submit_time is the time of proposal submission. - deposit_end_time: - type: string - format: date-time - description: deposit_end_time is the end time for deposition. - total_deposit: - 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. - description: total_deposit is the total deposit on the proposal. - voting_start_time: - type: string - format: date-time - description: voting_start_time is the starting time to vote on a proposal. - voting_end_time: - type: string - format: date-time - description: voting_end_time is the end time of voting on a proposal. - description: Proposal defines the core field members of a governance proposal. - cosmos.gov.v1beta1.ProposalStatus: - type: string - enum: - - PROPOSAL_STATUS_UNSPECIFIED - - PROPOSAL_STATUS_DEPOSIT_PERIOD - - PROPOSAL_STATUS_VOTING_PERIOD - - PROPOSAL_STATUS_PASSED - - PROPOSAL_STATUS_REJECTED - - PROPOSAL_STATUS_FAILED - default: PROPOSAL_STATUS_UNSPECIFIED - description: |- - ProposalStatus enumerates the valid statuses of a proposal. - - - PROPOSAL_STATUS_UNSPECIFIED: PROPOSAL_STATUS_UNSPECIFIED defines the default proposal status. - - PROPOSAL_STATUS_DEPOSIT_PERIOD: PROPOSAL_STATUS_DEPOSIT_PERIOD defines a proposal status during the deposit - period. - - PROPOSAL_STATUS_VOTING_PERIOD: PROPOSAL_STATUS_VOTING_PERIOD defines a proposal status during the voting - period. - - PROPOSAL_STATUS_PASSED: PROPOSAL_STATUS_PASSED defines a proposal status of a proposal that has - passed. - - PROPOSAL_STATUS_REJECTED: PROPOSAL_STATUS_REJECTED defines a proposal status of a proposal that has - been rejected. - - PROPOSAL_STATUS_FAILED: PROPOSAL_STATUS_FAILED defines a proposal status of a proposal that has - failed. - cosmos.gov.v1beta1.QueryDepositResponse: - type: object - properties: - deposit: - description: deposit defines the requested deposit. - type: object - properties: - proposal_id: - type: string - format: uint64 - description: proposal_id defines the unique id of the proposal. - depositor: - type: string - description: depositor defines the deposit addresses from the proposals. - 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. - description: amount to be deposited by depositor. - description: >- - QueryDepositResponse is the response type for the Query/Deposit RPC - method. - cosmos.gov.v1beta1.QueryDepositsResponse: - type: object - properties: - deposits: - type: array - items: - type: object - properties: - proposal_id: - type: string - format: uint64 - description: proposal_id defines the unique id of the proposal. - depositor: - type: string - description: depositor defines the deposit addresses from the proposals. - 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. - description: amount to be deposited by depositor. - description: >- - Deposit defines an amount deposited by an account address to an - active - - proposal. - description: deposits defines the requested deposits. - pagination: - description: pagination defines the pagination in the response. - 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: >- - QueryDepositsResponse is the response type for the Query/Deposits RPC - method. - cosmos.gov.v1beta1.QueryParamsResponse: - type: object - properties: - voting_params: - description: voting_params defines the parameters related to voting. - type: object - properties: - voting_period: - type: string - description: Duration of the voting period. - deposit_params: - description: deposit_params defines the parameters related to deposit. - type: object - properties: - min_deposit: - 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. - description: Minimum deposit for a proposal to enter voting period. - max_deposit_period: - type: string - description: >- - Maximum period for Atom holders to deposit on a proposal. Initial - value: 2 - - months. - tally_params: - description: tally_params defines the parameters related to tally. - type: object - properties: - quorum: - type: string - format: byte - description: >- - Minimum percentage of total stake needed to vote for a result to - be - - considered valid. - threshold: - type: string - format: byte - description: >- - Minimum proportion of Yes votes for proposal to pass. Default - value: 0.5. - veto_threshold: - type: string - format: byte - description: >- - Minimum value of Veto votes to Total votes ratio for proposal to - be - - vetoed. Default value: 1/3. - description: QueryParamsResponse is the response type for the Query/Params RPC method. - cosmos.gov.v1beta1.QueryProposalResponse: - type: object - properties: - proposal: - type: object - properties: - proposal_id: - type: string - format: uint64 - description: proposal_id defines the unique id of the proposal. - content: - description: content is the proposal's content. - 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: {} - status: - description: status defines the proposal status. - type: string - enum: - - PROPOSAL_STATUS_UNSPECIFIED - - PROPOSAL_STATUS_DEPOSIT_PERIOD - - PROPOSAL_STATUS_VOTING_PERIOD - - PROPOSAL_STATUS_PASSED - - PROPOSAL_STATUS_REJECTED - - PROPOSAL_STATUS_FAILED - default: PROPOSAL_STATUS_UNSPECIFIED - final_tally_result: - description: >- - final_tally_result is the final tally result of the proposal. When - - querying a proposal via gRPC, this field is not populated until - the - - proposal's voting period has ended. - type: object - properties: - 'yes': - type: string - description: yes is the number of yes votes on a proposal. - abstain: - type: string - description: abstain is the number of abstain votes on a proposal. - 'no': - type: string - description: no is the number of no votes on a proposal. - no_with_veto: - type: string - description: >- - no_with_veto is the number of no with veto votes on a - proposal. - submit_time: - type: string - format: date-time - description: submit_time is the time of proposal submission. - deposit_end_time: - type: string - format: date-time - description: deposit_end_time is the end time for deposition. - total_deposit: - 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. - description: total_deposit is the total deposit on the proposal. - voting_start_time: - type: string - format: date-time - description: voting_start_time is the starting time to vote on a proposal. - voting_end_time: - type: string - format: date-time - description: voting_end_time is the end time of voting on a proposal. - description: Proposal defines the core field members of a governance proposal. - description: >- - QueryProposalResponse is the response type for the Query/Proposal RPC - method. - cosmos.gov.v1beta1.QueryProposalsResponse: - type: object - properties: - proposals: - type: array - items: - type: object - properties: - proposal_id: - type: string - format: uint64 - description: proposal_id defines the unique id of the proposal. - content: - description: content is the proposal's content. - 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: {} - status: - description: status defines the proposal status. - type: string - enum: - - PROPOSAL_STATUS_UNSPECIFIED - - PROPOSAL_STATUS_DEPOSIT_PERIOD - - PROPOSAL_STATUS_VOTING_PERIOD - - PROPOSAL_STATUS_PASSED - - PROPOSAL_STATUS_REJECTED - - PROPOSAL_STATUS_FAILED - default: PROPOSAL_STATUS_UNSPECIFIED - final_tally_result: - description: >- - final_tally_result is the final tally result of the proposal. - When - - querying a proposal via gRPC, this field is not populated until - the - - proposal's voting period has ended. - type: object - properties: - 'yes': - type: string - description: yes is the number of yes votes on a proposal. - abstain: - type: string - description: abstain is the number of abstain votes on a proposal. - 'no': - type: string - description: no is the number of no votes on a proposal. - no_with_veto: - type: string - description: >- - no_with_veto is the number of no with veto votes on a - proposal. - submit_time: - type: string - format: date-time - description: submit_time is the time of proposal submission. - deposit_end_time: - type: string - format: date-time - description: deposit_end_time is the end time for deposition. - total_deposit: - 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. - description: total_deposit is the total deposit on the proposal. - voting_start_time: - type: string - format: date-time - description: voting_start_time is the starting time to vote on a proposal. - voting_end_time: - type: string - format: date-time - description: voting_end_time is the end time of voting on a proposal. - description: Proposal defines the core field members of a governance proposal. - description: proposals defines all the requested governance proposals. - pagination: - description: pagination defines the pagination in the response. - 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: |- - QueryProposalsResponse is the response type for the Query/Proposals RPC - method. - cosmos.gov.v1beta1.QueryTallyResultResponse: - type: object - properties: - tally: - description: tally defines the requested tally. - type: object - properties: - 'yes': - type: string - description: yes is the number of yes votes on a proposal. - abstain: - type: string - description: abstain is the number of abstain votes on a proposal. - 'no': - type: string - description: no is the number of no votes on a proposal. - no_with_veto: - type: string - description: no_with_veto is the number of no with veto votes on a proposal. - description: >- - QueryTallyResultResponse is the response type for the Query/Tally RPC - method. - cosmos.gov.v1beta1.QueryVoteResponse: - type: object - properties: - vote: - description: vote defines the queried vote. - type: object - properties: - proposal_id: - type: string - format: uint64 - description: proposal_id defines the unique id of the proposal. - voter: - type: string - description: voter is the voter address of the proposal. - option: - description: >- - Deprecated: Prefer to use `options` instead. This field is set in - queries - - if and only if `len(options) == 1` and that option has weight 1. - In all - - other cases, this field will default to VOTE_OPTION_UNSPECIFIED. - type: string - enum: - - VOTE_OPTION_UNSPECIFIED - - VOTE_OPTION_YES - - VOTE_OPTION_ABSTAIN - - VOTE_OPTION_NO - - VOTE_OPTION_NO_WITH_VETO - default: VOTE_OPTION_UNSPECIFIED - options: - type: array - items: - type: object - properties: - option: - description: >- - option defines the valid vote options, it must not contain - duplicate vote options. - type: string - enum: - - VOTE_OPTION_UNSPECIFIED - - VOTE_OPTION_YES - - VOTE_OPTION_ABSTAIN - - VOTE_OPTION_NO - - VOTE_OPTION_NO_WITH_VETO - default: VOTE_OPTION_UNSPECIFIED - weight: - type: string - description: weight is the vote weight associated with the vote option. - description: |- - WeightedVoteOption defines a unit of vote for vote split. - - Since: cosmos-sdk 0.43 - description: |- - options is the weighted vote options. - - Since: cosmos-sdk 0.43 - description: QueryVoteResponse is the response type for the Query/Vote RPC method. - cosmos.gov.v1beta1.QueryVotesResponse: - type: object - properties: - votes: - type: array - items: - type: object - properties: - proposal_id: - type: string - format: uint64 - description: proposal_id defines the unique id of the proposal. - voter: - type: string - description: voter is the voter address of the proposal. - option: - description: >- - Deprecated: Prefer to use `options` instead. This field is set - in queries - - if and only if `len(options) == 1` and that option has weight 1. - In all - - other cases, this field will default to VOTE_OPTION_UNSPECIFIED. - type: string - enum: - - VOTE_OPTION_UNSPECIFIED - - VOTE_OPTION_YES - - VOTE_OPTION_ABSTAIN - - VOTE_OPTION_NO - - VOTE_OPTION_NO_WITH_VETO - default: VOTE_OPTION_UNSPECIFIED - options: - type: array - items: - type: object - properties: - option: - description: >- - option defines the valid vote options, it must not contain - duplicate vote options. - type: string - enum: - - VOTE_OPTION_UNSPECIFIED - - VOTE_OPTION_YES - - VOTE_OPTION_ABSTAIN - - VOTE_OPTION_NO - - VOTE_OPTION_NO_WITH_VETO - default: VOTE_OPTION_UNSPECIFIED - weight: - type: string - description: weight is the vote weight associated with the vote option. - description: |- - WeightedVoteOption defines a unit of vote for vote split. - - Since: cosmos-sdk 0.43 - description: |- - options is the weighted vote options. - - Since: cosmos-sdk 0.43 - description: |- - Vote defines a vote on a governance proposal. - A Vote consists of a proposal ID, the voter, and the vote option. - description: votes defines the queried votes. - pagination: - description: pagination defines the pagination in the response. - 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: QueryVotesResponse is the response type for the Query/Votes RPC method. - cosmos.gov.v1beta1.TallyParams: - type: object - properties: - quorum: - type: string - format: byte - description: |- - Minimum percentage of total stake needed to vote for a result to be - considered valid. - threshold: - type: string - format: byte - description: >- - Minimum proportion of Yes votes for proposal to pass. Default value: - 0.5. - veto_threshold: - type: string - format: byte - description: |- - Minimum value of Veto votes to Total votes ratio for proposal to be - vetoed. Default value: 1/3. - description: TallyParams defines the params for tallying votes on governance proposals. - cosmos.gov.v1beta1.TallyResult: - type: object - properties: - 'yes': - type: string - description: yes is the number of yes votes on a proposal. - abstain: - type: string - description: abstain is the number of abstain votes on a proposal. - 'no': - type: string - description: no is the number of no votes on a proposal. - no_with_veto: - type: string - description: no_with_veto is the number of no with veto votes on a proposal. - description: TallyResult defines a standard tally for a governance proposal. - cosmos.gov.v1beta1.Vote: - type: object - properties: - proposal_id: - type: string - format: uint64 - description: proposal_id defines the unique id of the proposal. - voter: - type: string - description: voter is the voter address of the proposal. - option: - description: >- - Deprecated: Prefer to use `options` instead. This field is set in - queries - - if and only if `len(options) == 1` and that option has weight 1. In - all - - other cases, this field will default to VOTE_OPTION_UNSPECIFIED. - type: string - enum: - - VOTE_OPTION_UNSPECIFIED - - VOTE_OPTION_YES - - VOTE_OPTION_ABSTAIN - - VOTE_OPTION_NO - - VOTE_OPTION_NO_WITH_VETO - default: VOTE_OPTION_UNSPECIFIED - options: - type: array - items: - type: object - properties: - option: - description: >- - option defines the valid vote options, it must not contain - duplicate vote options. - type: string - enum: - - VOTE_OPTION_UNSPECIFIED - - VOTE_OPTION_YES - - VOTE_OPTION_ABSTAIN - - VOTE_OPTION_NO - - VOTE_OPTION_NO_WITH_VETO - default: VOTE_OPTION_UNSPECIFIED - weight: - type: string - description: weight is the vote weight associated with the vote option. - description: |- - WeightedVoteOption defines a unit of vote for vote split. - - Since: cosmos-sdk 0.43 - description: |- - options is the weighted vote options. - - Since: cosmos-sdk 0.43 - description: |- - Vote defines a vote on a governance proposal. - A Vote consists of a proposal ID, the voter, and the vote option. - cosmos.gov.v1beta1.VotingParams: - type: object - properties: - voting_period: - type: string - description: Duration of the voting period. - description: VotingParams defines the params for voting on governance proposals. - cosmos.group.v1.GroupInfo: - type: object - properties: - id: - type: string - format: uint64 - description: id is the unique ID of the group. - admin: - type: string - description: admin is the account address of the group's admin. - metadata: - type: string - title: >- - metadata is any arbitrary metadata to attached to the group. - - the recommended format of the metadata is to be found here: - https://docs.cosmos.network/v0.47/modules/group#group-1 - version: - type: string - format: uint64 - title: >- - version is used to track changes to a group's membership structure - that - - would break existing proposals. Whenever any members weight is - changed, - - or any member is added or removed this version is incremented and will - - cause proposals based on older versions of this group to fail - total_weight: - type: string - description: total_weight is the sum of the group members' weights. - created_at: - type: string - format: date-time - description: created_at is a timestamp specifying when a group was created. - description: GroupInfo represents the high-level on-chain information for a group. - cosmos.group.v1.GroupMember: - type: object - properties: - group_id: - type: string - format: uint64 - description: group_id is the unique ID of the group. - member: - description: member is the member data. - type: object - properties: - address: - type: string - description: address is the member's account address. - weight: - type: string - description: >- - weight is the member's voting weight that should be greater than - 0. - metadata: - type: string - description: metadata is any arbitrary metadata attached to the member. - added_at: - type: string - format: date-time - description: added_at is a timestamp specifying when a member was added. - description: GroupMember represents the relationship between a group and a member. - cosmos.group.v1.GroupPolicyInfo: - type: object - properties: - address: - type: string - description: address is the account address of group policy. - group_id: - type: string - format: uint64 - description: group_id is the unique ID of the group. - admin: - type: string - description: admin is the account address of the group admin. - metadata: - type: string - title: |- - metadata is any arbitrary metadata attached to the group policy. - the recommended format of the metadata is to be found here: - https://docs.cosmos.network/v0.47/modules/group#decision-policy-1 - version: - type: string - format: uint64 - description: >- - version is used to track changes to a group's GroupPolicyInfo - structure that - - would create a different result on a running proposal. - decision_policy: - description: decision_policy specifies the group policy's decision policy. - 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: {} - created_at: - type: string - format: date-time - description: created_at is a timestamp specifying when a group policy was created. - description: >- - GroupPolicyInfo represents the high-level on-chain information for a group - policy. - cosmos.group.v1.Member: - type: object - properties: - address: - type: string - description: address is the member's account address. - weight: - type: string - description: weight is the member's voting weight that should be greater than 0. - metadata: - type: string - description: metadata is any arbitrary metadata attached to the member. - added_at: - type: string - format: date-time - description: added_at is a timestamp specifying when a member was added. - description: |- - Member represents a group member with an account address, - non-zero weight, metadata and added_at timestamp. - cosmos.group.v1.Proposal: - type: object - properties: - id: - type: string - format: uint64 - description: id is the unique id of the proposal. - group_policy_address: - type: string - description: group_policy_address is the account address of group policy. - metadata: - type: string - title: |- - metadata is any arbitrary metadata attached to the proposal. - the recommended format of the metadata is to be found here: - https://docs.cosmos.network/v0.47/modules/group#proposal-4 - proposers: - type: array - items: - type: string - description: proposers are the account addresses of the proposers. - submit_time: - type: string - format: date-time - description: submit_time is a timestamp specifying when a proposal was submitted. - group_version: - type: string - format: uint64 - description: |- - group_version tracks the version of the group at proposal submission. - This field is here for informational purposes only. - group_policy_version: - type: string - format: uint64 - description: >- - group_policy_version tracks the version of the group policy at - proposal submission. - - When a decision policy is changed, existing proposals from previous - policy - - versions will become invalid with the `ABORTED` status. - - This field is here for informational purposes only. - status: - description: >- - status represents the high level position in the life cycle of the - proposal. Initial value is Submitted. - type: string - enum: - - PROPOSAL_STATUS_UNSPECIFIED - - PROPOSAL_STATUS_SUBMITTED - - PROPOSAL_STATUS_ACCEPTED - - PROPOSAL_STATUS_REJECTED - - PROPOSAL_STATUS_ABORTED - - PROPOSAL_STATUS_WITHDRAWN - default: PROPOSAL_STATUS_UNSPECIFIED - final_tally_result: - description: >- - final_tally_result contains the sums of all weighted votes for this - - proposal for each vote option. It is empty at submission, and only - - populated after tallying, at voting period end or at proposal - execution, - - whichever happens first. - type: object - properties: - yes_count: - type: string - description: yes_count is the weighted sum of yes votes. - abstain_count: - type: string - description: abstain_count is the weighted sum of abstainers. - no_count: - type: string - description: no_count is the weighted sum of no votes. - no_with_veto_count: - type: string - description: no_with_veto_count is the weighted sum of veto. - voting_period_end: - type: string - format: date-time - description: >- - voting_period_end is the timestamp before which voting must be done. - - Unless a successful MsgExec is called before (to execute a proposal - whose - - tally is successful before the voting period ends), tallying will be - done - - at this point, and the `final_tally_result`and `status` fields will be - - accordingly updated. - executor_result: - description: >- - executor_result is the final result of the proposal execution. Initial - value is NotRun. - type: string - enum: - - PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED - - PROPOSAL_EXECUTOR_RESULT_NOT_RUN - - PROPOSAL_EXECUTOR_RESULT_SUCCESS - - PROPOSAL_EXECUTOR_RESULT_FAILURE - default: PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED - messages: - type: array - items: - 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. - - - 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" - } - description: >- - messages is a list of `sdk.Msg`s that will be executed if the proposal - passes. - title: - type: string - description: 'Since: cosmos-sdk 0.47' - title: title is the title of the proposal - summary: - type: string - description: 'Since: cosmos-sdk 0.47' - title: summary is a short summary of the proposal - description: >- - Proposal defines a group proposal. Any member of a group can submit a - proposal - - for a group policy to decide upon. - - A proposal consists of a set of `sdk.Msg`s that will be executed if the - proposal - - passes as well as some optional metadata associated with the proposal. - cosmos.group.v1.ProposalExecutorResult: - type: string - enum: - - PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED - - PROPOSAL_EXECUTOR_RESULT_NOT_RUN - - PROPOSAL_EXECUTOR_RESULT_SUCCESS - - PROPOSAL_EXECUTOR_RESULT_FAILURE - default: PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED - description: |- - ProposalExecutorResult defines types of proposal executor results. - - - PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED: An empty value is not allowed. - - PROPOSAL_EXECUTOR_RESULT_NOT_RUN: We have not yet run the executor. - - PROPOSAL_EXECUTOR_RESULT_SUCCESS: The executor was successful and proposed action updated state. - - PROPOSAL_EXECUTOR_RESULT_FAILURE: The executor returned an error and proposed action didn't update state. - cosmos.group.v1.ProposalStatus: - type: string - enum: - - PROPOSAL_STATUS_UNSPECIFIED - - PROPOSAL_STATUS_SUBMITTED - - PROPOSAL_STATUS_ACCEPTED - - PROPOSAL_STATUS_REJECTED - - PROPOSAL_STATUS_ABORTED - - PROPOSAL_STATUS_WITHDRAWN - default: PROPOSAL_STATUS_UNSPECIFIED - description: |- - ProposalStatus defines proposal statuses. - - - PROPOSAL_STATUS_UNSPECIFIED: An empty value is invalid and not allowed. - - PROPOSAL_STATUS_SUBMITTED: Initial status of a proposal when submitted. - - PROPOSAL_STATUS_ACCEPTED: Final status of a proposal when the final tally is done and the outcome - passes the group policy's decision policy. - - PROPOSAL_STATUS_REJECTED: Final status of a proposal when the final tally is done and the outcome - is rejected by the group policy's decision policy. - - PROPOSAL_STATUS_ABORTED: Final status of a proposal when the group policy is modified before the - final tally. - - PROPOSAL_STATUS_WITHDRAWN: A proposal can be withdrawn before the voting start time by the owner. - When this happens the final status is Withdrawn. - cosmos.group.v1.QueryGroupInfoResponse: - type: object - properties: - info: - description: info is the GroupInfo of the group. - type: object - properties: - id: - type: string - format: uint64 - description: id is the unique ID of the group. - admin: - type: string - description: admin is the account address of the group's admin. - metadata: - type: string - title: >- - metadata is any arbitrary metadata to attached to the group. - - the recommended format of the metadata is to be found here: - https://docs.cosmos.network/v0.47/modules/group#group-1 - version: - type: string - format: uint64 - title: >- - version is used to track changes to a group's membership structure - that - - would break existing proposals. Whenever any members weight is - changed, - - or any member is added or removed this version is incremented and - will - - cause proposals based on older versions of this group to fail - total_weight: - type: string - description: total_weight is the sum of the group members' weights. - created_at: - type: string - format: date-time - description: created_at is a timestamp specifying when a group was created. - description: QueryGroupInfoResponse is the Query/GroupInfo response type. - cosmos.group.v1.QueryGroupMembersResponse: - type: object - properties: - members: - type: array - items: - type: object - properties: - group_id: - type: string - format: uint64 - description: group_id is the unique ID of the group. - member: - description: member is the member data. - type: object - properties: - address: - type: string - description: address is the member's account address. - weight: - type: string - description: >- - weight is the member's voting weight that should be greater - than 0. - metadata: - type: string - description: metadata is any arbitrary metadata attached to the member. - added_at: - type: string - format: date-time - description: added_at is a timestamp specifying when a member was added. - description: >- - GroupMember represents the relationship between a group and a - member. - description: members are the members of the group with given group_id. - pagination: - description: pagination defines the pagination in the response. - 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: QueryGroupMembersResponse is the Query/GroupMembersResponse response type. - cosmos.group.v1.QueryGroupPoliciesByAdminResponse: - type: object - properties: - group_policies: - type: array - items: - type: object - properties: - address: - type: string - description: address is the account address of group policy. - group_id: - type: string - format: uint64 - description: group_id is the unique ID of the group. - admin: - type: string - description: admin is the account address of the group admin. - metadata: - type: string - title: >- - metadata is any arbitrary metadata attached to the group policy. - - the recommended format of the metadata is to be found here: - - https://docs.cosmos.network/v0.47/modules/group#decision-policy-1 - version: - type: string - format: uint64 - description: >- - version is used to track changes to a group's GroupPolicyInfo - structure that - - would create a different result on a running proposal. - decision_policy: - description: decision_policy specifies the group policy's decision policy. - 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: {} - created_at: - type: string - format: date-time - description: >- - created_at is a timestamp specifying when a group policy was - created. - description: >- - GroupPolicyInfo represents the high-level on-chain information for a - group policy. - description: group_policies are the group policies info with provided admin. - pagination: - description: pagination defines the pagination in the response. - 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: >- - QueryGroupPoliciesByAdminResponse is the Query/GroupPoliciesByAdmin - response type. - cosmos.group.v1.QueryGroupPoliciesByGroupResponse: - type: object - properties: - group_policies: - type: array - items: - type: object - properties: - address: - type: string - description: address is the account address of group policy. - group_id: - type: string - format: uint64 - description: group_id is the unique ID of the group. - admin: - type: string - description: admin is the account address of the group admin. - metadata: - type: string - title: >- - metadata is any arbitrary metadata attached to the group policy. - - the recommended format of the metadata is to be found here: - - https://docs.cosmos.network/v0.47/modules/group#decision-policy-1 - version: - type: string - format: uint64 - description: >- - version is used to track changes to a group's GroupPolicyInfo - structure that - - would create a different result on a running proposal. - decision_policy: - description: decision_policy specifies the group policy's decision policy. - 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: {} - created_at: - type: string - format: date-time - description: >- - created_at is a timestamp specifying when a group policy was - created. - description: >- - GroupPolicyInfo represents the high-level on-chain information for a - group policy. - description: >- - group_policies are the group policies info associated with the - provided group. - pagination: - description: pagination defines the pagination in the response. - 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: >- - QueryGroupPoliciesByGroupResponse is the Query/GroupPoliciesByGroup - response type. - cosmos.group.v1.QueryGroupPolicyInfoResponse: - type: object - properties: - info: - description: info is the GroupPolicyInfo of the group policy. - type: object - properties: - address: - type: string - description: address is the account address of group policy. - group_id: - type: string - format: uint64 - description: group_id is the unique ID of the group. - admin: - type: string - description: admin is the account address of the group admin. - metadata: - type: string - title: |- - metadata is any arbitrary metadata attached to the group policy. - the recommended format of the metadata is to be found here: - https://docs.cosmos.network/v0.47/modules/group#decision-policy-1 - version: - type: string - format: uint64 - description: >- - version is used to track changes to a group's GroupPolicyInfo - structure that - - would create a different result on a running proposal. - decision_policy: - description: decision_policy specifies the group policy's decision policy. - 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: {} - created_at: - type: string - format: date-time - description: >- - created_at is a timestamp specifying when a group policy was - created. - description: QueryGroupPolicyInfoResponse is the Query/GroupPolicyInfo response type. - cosmos.group.v1.QueryGroupsByAdminResponse: - type: object - properties: - groups: - type: array - items: - type: object - properties: - id: - type: string - format: uint64 - description: id is the unique ID of the group. - admin: - type: string - description: admin is the account address of the group's admin. - metadata: - type: string - title: >- - metadata is any arbitrary metadata to attached to the group. - - the recommended format of the metadata is to be found here: - https://docs.cosmos.network/v0.47/modules/group#group-1 - version: - type: string - format: uint64 - title: >- - version is used to track changes to a group's membership - structure that - - would break existing proposals. Whenever any members weight is - changed, - - or any member is added or removed this version is incremented - and will - - cause proposals based on older versions of this group to fail - total_weight: - type: string - description: total_weight is the sum of the group members' weights. - created_at: - type: string - format: date-time - description: created_at is a timestamp specifying when a group was created. - description: >- - GroupInfo represents the high-level on-chain information for a - group. - description: groups are the groups info with the provided admin. - pagination: - description: pagination defines the pagination in the response. - 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: >- - QueryGroupsByAdminResponse is the Query/GroupsByAdminResponse response - type. - cosmos.group.v1.QueryGroupsByMemberResponse: - type: object - properties: - groups: - type: array - items: - type: object - properties: - id: - type: string - format: uint64 - description: id is the unique ID of the group. - admin: - type: string - description: admin is the account address of the group's admin. - metadata: - type: string - title: >- - metadata is any arbitrary metadata to attached to the group. - - the recommended format of the metadata is to be found here: - https://docs.cosmos.network/v0.47/modules/group#group-1 - version: - type: string - format: uint64 - title: >- - version is used to track changes to a group's membership - structure that - - would break existing proposals. Whenever any members weight is - changed, - - or any member is added or removed this version is incremented - and will - - cause proposals based on older versions of this group to fail - total_weight: - type: string - description: total_weight is the sum of the group members' weights. - created_at: - type: string - format: date-time - description: created_at is a timestamp specifying when a group was created. - description: >- - GroupInfo represents the high-level on-chain information for a - group. - description: groups are the groups info with the provided group member. - pagination: - description: pagination defines the pagination in the response. - 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: QueryGroupsByMemberResponse is the Query/GroupsByMember response type. - cosmos.group.v1.QueryGroupsResponse: - type: object - properties: - groups: - type: array - items: - type: object - properties: - id: - type: string - format: uint64 - description: id is the unique ID of the group. - admin: - type: string - description: admin is the account address of the group's admin. - metadata: - type: string - title: >- - metadata is any arbitrary metadata to attached to the group. - - the recommended format of the metadata is to be found here: - https://docs.cosmos.network/v0.47/modules/group#group-1 - version: - type: string - format: uint64 - title: >- - version is used to track changes to a group's membership - structure that - - would break existing proposals. Whenever any members weight is - changed, - - or any member is added or removed this version is incremented - and will - - cause proposals based on older versions of this group to fail - total_weight: - type: string - description: total_weight is the sum of the group members' weights. - created_at: - type: string - format: date-time - description: created_at is a timestamp specifying when a group was created. - description: >- - GroupInfo represents the high-level on-chain information for a - group. - description: '`groups` is all the groups present in state.' - pagination: - description: pagination defines the pagination in the response. - 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: |- - QueryGroupsResponse is the Query/Groups response type. - - Since: cosmos-sdk 0.47.1 - cosmos.group.v1.QueryProposalResponse: - type: object - properties: - proposal: - description: proposal is the proposal info. - type: object - properties: - id: - type: string - format: uint64 - description: id is the unique id of the proposal. - group_policy_address: - type: string - description: group_policy_address is the account address of group policy. - metadata: - type: string - title: |- - metadata is any arbitrary metadata attached to the proposal. - the recommended format of the metadata is to be found here: - https://docs.cosmos.network/v0.47/modules/group#proposal-4 - proposers: - type: array - items: - type: string - description: proposers are the account addresses of the proposers. - submit_time: - type: string - format: date-time - description: >- - submit_time is a timestamp specifying when a proposal was - submitted. - group_version: - type: string - format: uint64 - description: >- - group_version tracks the version of the group at proposal - submission. - - This field is here for informational purposes only. - group_policy_version: - type: string - format: uint64 - description: >- - group_policy_version tracks the version of the group policy at - proposal submission. - - When a decision policy is changed, existing proposals from - previous policy - - versions will become invalid with the `ABORTED` status. - - This field is here for informational purposes only. - status: - description: >- - status represents the high level position in the life cycle of the - proposal. Initial value is Submitted. - type: string - enum: - - PROPOSAL_STATUS_UNSPECIFIED - - PROPOSAL_STATUS_SUBMITTED - - PROPOSAL_STATUS_ACCEPTED - - PROPOSAL_STATUS_REJECTED - - PROPOSAL_STATUS_ABORTED - - PROPOSAL_STATUS_WITHDRAWN - default: PROPOSAL_STATUS_UNSPECIFIED - final_tally_result: - description: >- - final_tally_result contains the sums of all weighted votes for - this - - proposal for each vote option. It is empty at submission, and only - - populated after tallying, at voting period end or at proposal - execution, - - whichever happens first. - type: object - properties: - yes_count: - type: string - description: yes_count is the weighted sum of yes votes. - abstain_count: - type: string - description: abstain_count is the weighted sum of abstainers. - no_count: - type: string - description: no_count is the weighted sum of no votes. - no_with_veto_count: - type: string - description: no_with_veto_count is the weighted sum of veto. - voting_period_end: - type: string - format: date-time - description: >- - voting_period_end is the timestamp before which voting must be - done. - - Unless a successful MsgExec is called before (to execute a - proposal whose - - tally is successful before the voting period ends), tallying will - be done - - at this point, and the `final_tally_result`and `status` fields - will be - - accordingly updated. - executor_result: - description: >- - executor_result is the final result of the proposal execution. - Initial value is NotRun. - type: string - enum: - - PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED - - PROPOSAL_EXECUTOR_RESULT_NOT_RUN - - PROPOSAL_EXECUTOR_RESULT_SUCCESS - - PROPOSAL_EXECUTOR_RESULT_FAILURE - default: PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED - messages: - type: array - items: - 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. - - - 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" - } - description: >- - messages is a list of `sdk.Msg`s that will be executed if the - proposal passes. - title: - type: string - description: 'Since: cosmos-sdk 0.47' - title: title is the title of the proposal - summary: - type: string - description: 'Since: cosmos-sdk 0.47' - title: summary is a short summary of the proposal - description: QueryProposalResponse is the Query/Proposal response type. - cosmos.group.v1.QueryProposalsByGroupPolicyResponse: - type: object - properties: - proposals: - type: array - items: - type: object - properties: - id: - type: string - format: uint64 - description: id is the unique id of the proposal. - group_policy_address: - type: string - description: group_policy_address is the account address of group policy. - metadata: - type: string - title: |- - metadata is any arbitrary metadata attached to the proposal. - the recommended format of the metadata is to be found here: - https://docs.cosmos.network/v0.47/modules/group#proposal-4 - proposers: - type: array - items: - type: string - description: proposers are the account addresses of the proposers. - submit_time: - type: string - format: date-time - description: >- - submit_time is a timestamp specifying when a proposal was - submitted. - group_version: - type: string - format: uint64 - description: >- - group_version tracks the version of the group at proposal - submission. - - This field is here for informational purposes only. - group_policy_version: - type: string - format: uint64 - description: >- - group_policy_version tracks the version of the group policy at - proposal submission. - - When a decision policy is changed, existing proposals from - previous policy - - versions will become invalid with the `ABORTED` status. - - This field is here for informational purposes only. - status: - description: >- - status represents the high level position in the life cycle of - the proposal. Initial value is Submitted. - type: string - enum: - - PROPOSAL_STATUS_UNSPECIFIED - - PROPOSAL_STATUS_SUBMITTED - - PROPOSAL_STATUS_ACCEPTED - - PROPOSAL_STATUS_REJECTED - - PROPOSAL_STATUS_ABORTED - - PROPOSAL_STATUS_WITHDRAWN - default: PROPOSAL_STATUS_UNSPECIFIED - final_tally_result: - description: >- - final_tally_result contains the sums of all weighted votes for - this - - proposal for each vote option. It is empty at submission, and - only - - populated after tallying, at voting period end or at proposal - execution, - - whichever happens first. - type: object - properties: - yes_count: - type: string - description: yes_count is the weighted sum of yes votes. - abstain_count: - type: string - description: abstain_count is the weighted sum of abstainers. - no_count: - type: string - description: no_count is the weighted sum of no votes. - no_with_veto_count: - type: string - description: no_with_veto_count is the weighted sum of veto. - voting_period_end: - type: string - format: date-time - description: >- - voting_period_end is the timestamp before which voting must be - done. - - Unless a successful MsgExec is called before (to execute a - proposal whose - - tally is successful before the voting period ends), tallying - will be done - - at this point, and the `final_tally_result`and `status` fields - will be - - accordingly updated. - executor_result: - description: >- - executor_result is the final result of the proposal execution. - Initial value is NotRun. - type: string - enum: - - PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED - - PROPOSAL_EXECUTOR_RESULT_NOT_RUN - - PROPOSAL_EXECUTOR_RESULT_SUCCESS - - PROPOSAL_EXECUTOR_RESULT_FAILURE - default: PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED - messages: - type: array - items: - 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. - - - 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" - } - description: >- - messages is a list of `sdk.Msg`s that will be executed if the - proposal passes. - title: - type: string - description: 'Since: cosmos-sdk 0.47' - title: title is the title of the proposal - summary: - type: string - description: 'Since: cosmos-sdk 0.47' - title: summary is a short summary of the proposal - description: >- - Proposal defines a group proposal. Any member of a group can submit - a proposal - - for a group policy to decide upon. - - A proposal consists of a set of `sdk.Msg`s that will be executed if - the proposal - - passes as well as some optional metadata associated with the - proposal. - description: proposals are the proposals with given group policy. - pagination: - description: pagination defines the pagination in the response. - 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: >- - QueryProposalsByGroupPolicyResponse is the Query/ProposalByGroupPolicy - response type. - cosmos.group.v1.QueryTallyResultResponse: - type: object - properties: - tally: - description: tally defines the requested tally. - type: object - properties: - yes_count: - type: string - description: yes_count is the weighted sum of yes votes. - abstain_count: - type: string - description: abstain_count is the weighted sum of abstainers. - no_count: - type: string - description: no_count is the weighted sum of no votes. - no_with_veto_count: - type: string - description: no_with_veto_count is the weighted sum of veto. - description: QueryTallyResultResponse is the Query/TallyResult response type. - cosmos.group.v1.QueryVoteByProposalVoterResponse: - type: object - properties: - vote: - description: vote is the vote with given proposal_id and voter. - type: object - properties: - proposal_id: - type: string - format: uint64 - description: proposal is the unique ID of the proposal. - voter: - type: string - description: voter is the account address of the voter. - option: - description: option is the voter's choice on the proposal. - type: string - enum: - - VOTE_OPTION_UNSPECIFIED - - VOTE_OPTION_YES - - VOTE_OPTION_ABSTAIN - - VOTE_OPTION_NO - - VOTE_OPTION_NO_WITH_VETO - default: VOTE_OPTION_UNSPECIFIED - metadata: - type: string - title: >- - metadata is any arbitrary metadata attached to the vote. - - the recommended format of the metadata is to be found here: - https://docs.cosmos.network/v0.47/modules/group#vote-2 - submit_time: - type: string - format: date-time - description: submit_time is the timestamp when the vote was submitted. - title: Vote represents a vote for a proposal.string metadata - description: >- - QueryVoteByProposalVoterResponse is the Query/VoteByProposalVoter response - type. - cosmos.group.v1.QueryVotesByProposalResponse: - type: object - properties: - votes: - type: array - items: - type: object - properties: - proposal_id: - type: string - format: uint64 - description: proposal is the unique ID of the proposal. - voter: - type: string - description: voter is the account address of the voter. - option: - description: option is the voter's choice on the proposal. - type: string - enum: - - VOTE_OPTION_UNSPECIFIED - - VOTE_OPTION_YES - - VOTE_OPTION_ABSTAIN - - VOTE_OPTION_NO - - VOTE_OPTION_NO_WITH_VETO - default: VOTE_OPTION_UNSPECIFIED - metadata: - type: string - title: >- - metadata is any arbitrary metadata attached to the vote. - - the recommended format of the metadata is to be found here: - https://docs.cosmos.network/v0.47/modules/group#vote-2 - submit_time: - type: string - format: date-time - description: submit_time is the timestamp when the vote was submitted. - title: Vote represents a vote for a proposal.string metadata - description: votes are the list of votes for given proposal_id. - pagination: - description: pagination defines the pagination in the response. - 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: QueryVotesByProposalResponse is the Query/VotesByProposal response type. - cosmos.group.v1.QueryVotesByVoterResponse: - type: object - properties: - votes: - type: array - items: - type: object - properties: - proposal_id: - type: string - format: uint64 - description: proposal is the unique ID of the proposal. - voter: - type: string - description: voter is the account address of the voter. - option: - description: option is the voter's choice on the proposal. - type: string - enum: - - VOTE_OPTION_UNSPECIFIED - - VOTE_OPTION_YES - - VOTE_OPTION_ABSTAIN - - VOTE_OPTION_NO - - VOTE_OPTION_NO_WITH_VETO - default: VOTE_OPTION_UNSPECIFIED - metadata: - type: string - title: >- - metadata is any arbitrary metadata attached to the vote. - - the recommended format of the metadata is to be found here: - https://docs.cosmos.network/v0.47/modules/group#vote-2 - submit_time: - type: string - format: date-time - description: submit_time is the timestamp when the vote was submitted. - title: Vote represents a vote for a proposal.string metadata - description: votes are the list of votes by given voter. - pagination: - description: pagination defines the pagination in the response. - 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: QueryVotesByVoterResponse is the Query/VotesByVoter response type. - cosmos.group.v1.TallyResult: - type: object - properties: - yes_count: - type: string - description: yes_count is the weighted sum of yes votes. - abstain_count: - type: string - description: abstain_count is the weighted sum of abstainers. - no_count: - type: string - description: no_count is the weighted sum of no votes. - no_with_veto_count: - type: string - description: no_with_veto_count is the weighted sum of veto. - description: TallyResult represents the sum of weighted votes for each vote option. - cosmos.group.v1.Vote: - type: object - properties: - proposal_id: - type: string - format: uint64 - description: proposal is the unique ID of the proposal. - voter: - type: string - description: voter is the account address of the voter. - option: - description: option is the voter's choice on the proposal. - type: string - enum: - - VOTE_OPTION_UNSPECIFIED - - VOTE_OPTION_YES - - VOTE_OPTION_ABSTAIN - - VOTE_OPTION_NO - - VOTE_OPTION_NO_WITH_VETO - default: VOTE_OPTION_UNSPECIFIED - metadata: - type: string - title: >- - metadata is any arbitrary metadata attached to the vote. - - the recommended format of the metadata is to be found here: - https://docs.cosmos.network/v0.47/modules/group#vote-2 - submit_time: - type: string - format: date-time - description: submit_time is the timestamp when the vote was submitted. - title: Vote represents a vote for a proposal.string metadata - cosmos.group.v1.VoteOption: - type: string - enum: - - VOTE_OPTION_UNSPECIFIED - - VOTE_OPTION_YES - - VOTE_OPTION_ABSTAIN - - VOTE_OPTION_NO - - VOTE_OPTION_NO_WITH_VETO - default: VOTE_OPTION_UNSPECIFIED - description: |- - VoteOption enumerates the valid vote options for a given proposal. - - - VOTE_OPTION_UNSPECIFIED: VOTE_OPTION_UNSPECIFIED defines an unspecified vote option which will - return an error. - - VOTE_OPTION_YES: VOTE_OPTION_YES defines a yes vote option. - - VOTE_OPTION_ABSTAIN: VOTE_OPTION_ABSTAIN defines an abstain vote option. - - VOTE_OPTION_NO: VOTE_OPTION_NO defines a no vote option. - - VOTE_OPTION_NO_WITH_VETO: VOTE_OPTION_NO_WITH_VETO defines a no with veto vote option. - cosmos.group.v1.Exec: - type: string - enum: - - EXEC_UNSPECIFIED - - EXEC_TRY - default: EXEC_UNSPECIFIED - description: |- - Exec defines modes of execution of a proposal on creation or on new vote. - - - EXEC_UNSPECIFIED: An empty value means that there should be a separate - MsgExec request for the proposal to execute. - - EXEC_TRY: Try to execute the proposal immediately. - If the proposal is not allowed per the DecisionPolicy, - the proposal will still be open and could - be executed at a later point. - cosmos.group.v1.MemberRequest: - type: object - properties: - address: - type: string - description: address is the member's account address. - weight: - type: string - description: weight is the member's voting weight that should be greater than 0. - metadata: - type: string - description: metadata is any arbitrary metadata attached to the member. - description: |- - MemberRequest represents a group member to be used in Msg server requests. - Contrary to `Member`, it doesn't have any `added_at` field - since this field cannot be set as part of requests. - cosmos.group.v1.MsgCreateGroup: - type: object - properties: - admin: - type: string - description: admin is the account address of the group admin. - members: - type: array - items: - type: object - properties: - address: - type: string - description: address is the member's account address. - weight: - type: string - description: >- - weight is the member's voting weight that should be greater than - 0. - metadata: - type: string - description: metadata is any arbitrary metadata attached to the member. - description: >- - MemberRequest represents a group member to be used in Msg server - requests. - - Contrary to `Member`, it doesn't have any `added_at` field - - since this field cannot be set as part of requests. - description: members defines the group members. - metadata: - type: string - description: metadata is any arbitrary metadata to attached to the group. - description: MsgCreateGroup is the Msg/CreateGroup request type. - cosmos.group.v1.MsgCreateGroupPolicy: - type: object - properties: - admin: - type: string - description: admin is the account address of the group admin. - group_id: - type: string - format: uint64 - description: group_id is the unique ID of the group. - metadata: - type: string - description: metadata is any arbitrary metadata attached to the group policy. - decision_policy: - description: decision_policy specifies the group policy's decision policy. - 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: MsgCreateGroupPolicy is the Msg/CreateGroupPolicy request type. - cosmos.group.v1.MsgCreateGroupPolicyResponse: - type: object - properties: - address: - type: string - description: address is the account address of the newly created group policy. - description: MsgCreateGroupPolicyResponse is the Msg/CreateGroupPolicy response type. - cosmos.group.v1.MsgCreateGroupResponse: - type: object - properties: - group_id: - type: string - format: uint64 - description: group_id is the unique ID of the newly created group. - description: MsgCreateGroupResponse is the Msg/CreateGroup response type. - cosmos.group.v1.MsgCreateGroupWithPolicy: - type: object - properties: - admin: - type: string - description: admin is the account address of the group and group policy admin. - members: - type: array - items: - type: object - properties: - address: - type: string - description: address is the member's account address. - weight: - type: string - description: >- - weight is the member's voting weight that should be greater than - 0. - metadata: - type: string - description: metadata is any arbitrary metadata attached to the member. - description: >- - MemberRequest represents a group member to be used in Msg server - requests. - - Contrary to `Member`, it doesn't have any `added_at` field - - since this field cannot be set as part of requests. - description: members defines the group members. - group_metadata: - type: string - description: group_metadata is any arbitrary metadata attached to the group. - group_policy_metadata: - type: string - description: >- - group_policy_metadata is any arbitrary metadata attached to the group - policy. - group_policy_as_admin: - type: boolean - description: >- - group_policy_as_admin is a boolean field, if set to true, the group - policy account address will be used as group - - and group policy admin. - decision_policy: - description: decision_policy specifies the group policy's decision policy. - 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: MsgCreateGroupWithPolicy is the Msg/CreateGroupWithPolicy request type. - cosmos.group.v1.MsgCreateGroupWithPolicyResponse: - type: object - properties: - group_id: - type: string - format: uint64 - description: group_id is the unique ID of the newly created group with policy. - group_policy_address: - type: string - description: >- - group_policy_address is the account address of the newly created group - policy. - description: >- - MsgCreateGroupWithPolicyResponse is the Msg/CreateGroupWithPolicy response - type. - cosmos.group.v1.MsgExec: - type: object - properties: - proposal_id: - type: string - format: uint64 - description: proposal is the unique ID of the proposal. - executor: - type: string - description: executor is the account address used to execute the proposal. - description: MsgExec is the Msg/Exec request type. - cosmos.group.v1.MsgExecResponse: - type: object - properties: - result: - description: result is the final result of the proposal execution. - type: string - enum: - - PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED - - PROPOSAL_EXECUTOR_RESULT_NOT_RUN - - PROPOSAL_EXECUTOR_RESULT_SUCCESS - - PROPOSAL_EXECUTOR_RESULT_FAILURE - default: PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED - description: MsgExecResponse is the Msg/Exec request type. - cosmos.group.v1.MsgLeaveGroup: - type: object - properties: - address: - type: string - description: address is the account address of the group member. - group_id: - type: string - format: uint64 - description: group_id is the unique ID of the group. - description: MsgLeaveGroup is the Msg/LeaveGroup request type. - cosmos.group.v1.MsgLeaveGroupResponse: - type: object - description: MsgLeaveGroupResponse is the Msg/LeaveGroup response type. - cosmos.group.v1.MsgSubmitProposal: - type: object - properties: - group_policy_address: - type: string - description: group_policy_address is the account address of group policy. - proposers: - type: array - items: - type: string - description: |- - proposers are the account addresses of the proposers. - Proposers signatures will be counted as yes votes. - metadata: - type: string - description: metadata is any arbitrary metadata attached to the proposal. - messages: - type: array - items: - 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. - - - 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" - } - description: >- - messages is a list of `sdk.Msg`s that will be executed if the proposal - passes. - exec: - description: |- - exec defines the mode of execution of the proposal, - whether it should be executed immediately on creation or not. - If so, proposers signatures are considered as Yes votes. - type: string - enum: - - EXEC_UNSPECIFIED - - EXEC_TRY - default: EXEC_UNSPECIFIED - title: - type: string - description: |- - title is the title of the proposal. - - Since: cosmos-sdk 0.47 - summary: - type: string - description: |- - summary is the summary of the proposal. - - Since: cosmos-sdk 0.47 - description: MsgSubmitProposal is the Msg/SubmitProposal request type. - cosmos.group.v1.MsgSubmitProposalResponse: - type: object - properties: - proposal_id: - type: string - format: uint64 - description: proposal is the unique ID of the proposal. - description: MsgSubmitProposalResponse is the Msg/SubmitProposal response type. - cosmos.group.v1.MsgUpdateGroupAdmin: - type: object - properties: - admin: - type: string - description: admin is the current account address of the group admin. - group_id: - type: string - format: uint64 - description: group_id is the unique ID of the group. - new_admin: - type: string - description: new_admin is the group new admin account address. - description: MsgUpdateGroupAdmin is the Msg/UpdateGroupAdmin request type. - cosmos.group.v1.MsgUpdateGroupAdminResponse: - type: object - description: MsgUpdateGroupAdminResponse is the Msg/UpdateGroupAdmin response type. - cosmos.group.v1.MsgUpdateGroupMembers: - type: object - properties: - admin: - type: string - description: admin is the account address of the group admin. - group_id: - type: string - format: uint64 - description: group_id is the unique ID of the group. - member_updates: - type: array - items: - type: object - properties: - address: - type: string - description: address is the member's account address. - weight: - type: string - description: >- - weight is the member's voting weight that should be greater than - 0. - metadata: - type: string - description: metadata is any arbitrary metadata attached to the member. - description: >- - MemberRequest represents a group member to be used in Msg server - requests. - - Contrary to `Member`, it doesn't have any `added_at` field - - since this field cannot be set as part of requests. - description: |- - member_updates is the list of members to update, - set weight to 0 to remove a member. - description: MsgUpdateGroupMembers is the Msg/UpdateGroupMembers request type. - cosmos.group.v1.MsgUpdateGroupMembersResponse: - type: object - description: MsgUpdateGroupMembersResponse is the Msg/UpdateGroupMembers response type. - cosmos.group.v1.MsgUpdateGroupMetadata: - type: object - properties: - admin: - type: string - description: admin is the account address of the group admin. - group_id: - type: string - format: uint64 - description: group_id is the unique ID of the group. - metadata: - type: string - description: metadata is the updated group's metadata. - description: MsgUpdateGroupMetadata is the Msg/UpdateGroupMetadata request type. - cosmos.group.v1.MsgUpdateGroupMetadataResponse: - type: object - description: >- - MsgUpdateGroupMetadataResponse is the Msg/UpdateGroupMetadata response - type. - cosmos.group.v1.MsgUpdateGroupPolicyAdmin: - type: object - properties: - admin: - type: string - description: admin is the account address of the group admin. - group_policy_address: - type: string - description: group_policy_address is the account address of the group policy. - new_admin: - type: string - description: new_admin is the new group policy admin. - description: MsgUpdateGroupPolicyAdmin is the Msg/UpdateGroupPolicyAdmin request type. - cosmos.group.v1.MsgUpdateGroupPolicyAdminResponse: - type: object - description: >- - MsgUpdateGroupPolicyAdminResponse is the Msg/UpdateGroupPolicyAdmin - response type. - cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy: - type: object - properties: - admin: - type: string - description: admin is the account address of the group admin. - group_policy_address: - type: string - description: group_policy_address is the account address of group policy. - decision_policy: - description: decision_policy is the updated group policy's decision policy. - 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: >- - MsgUpdateGroupPolicyDecisionPolicy is the - Msg/UpdateGroupPolicyDecisionPolicy request type. - cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicyResponse: - type: object - description: >- - MsgUpdateGroupPolicyDecisionPolicyResponse is the - Msg/UpdateGroupPolicyDecisionPolicy response type. - cosmos.group.v1.MsgUpdateGroupPolicyMetadata: - type: object - properties: - admin: - type: string - description: admin is the account address of the group admin. - group_policy_address: - type: string - description: group_policy_address is the account address of group policy. - metadata: - type: string - description: metadata is the group policy metadata to be updated. - description: >- - MsgUpdateGroupPolicyMetadata is the Msg/UpdateGroupPolicyMetadata request - type. - cosmos.group.v1.MsgUpdateGroupPolicyMetadataResponse: - type: object - description: >- - MsgUpdateGroupPolicyMetadataResponse is the Msg/UpdateGroupPolicyMetadata - response type. - cosmos.group.v1.MsgVote: - type: object - properties: - proposal_id: - type: string - format: uint64 - description: proposal is the unique ID of the proposal. - voter: - type: string - description: voter is the voter account address. - option: - description: option is the voter's choice on the proposal. - type: string - enum: - - VOTE_OPTION_UNSPECIFIED - - VOTE_OPTION_YES - - VOTE_OPTION_ABSTAIN - - VOTE_OPTION_NO - - VOTE_OPTION_NO_WITH_VETO - default: VOTE_OPTION_UNSPECIFIED - metadata: - type: string - description: metadata is any arbitrary metadata attached to the vote. - exec: - description: |- - exec defines whether the proposal should be executed - immediately after voting or not. - type: string - enum: - - EXEC_UNSPECIFIED - - EXEC_TRY - default: EXEC_UNSPECIFIED - description: MsgVote is the Msg/Vote request type. - cosmos.group.v1.MsgVoteResponse: - type: object - description: MsgVoteResponse is the Msg/Vote response type. - cosmos.group.v1.MsgWithdrawProposal: - type: object - properties: - proposal_id: - type: string - format: uint64 - description: proposal is the unique ID of the proposal. - address: - type: string - description: >- - address is the admin of the group policy or one of the proposer of the - proposal. - description: MsgWithdrawProposal is the Msg/WithdrawProposal request type. - cosmos.group.v1.MsgWithdrawProposalResponse: - type: object - description: MsgWithdrawProposalResponse is the Msg/WithdrawProposal response type. - cosmos.mint.v1beta1.Params: - type: object - properties: - mint_denom: - type: string - title: type of coin to mint - inflation_rate_change: - type: string - title: maximum annual change in inflation rate - inflation_max: - type: string - title: maximum inflation rate - inflation_min: - type: string - title: minimum inflation rate - goal_bonded: - type: string - title: goal of percent bonded atoms - blocks_per_year: - type: string - format: uint64 - title: expected blocks per year - description: Params defines the parameters for the x/mint module. - cosmos.mint.v1beta1.QueryAnnualProvisionsResponse: - type: object - properties: - annual_provisions: - type: string - format: byte - description: annual_provisions is the current minting annual provisions value. - description: |- - QueryAnnualProvisionsResponse is the response type for the - Query/AnnualProvisions RPC method. - cosmos.mint.v1beta1.QueryInflationResponse: - type: object - properties: - inflation: - type: string - format: byte - description: inflation is the current minting inflation value. - description: |- - QueryInflationResponse is the response type for the Query/Inflation RPC - method. - cosmos.mint.v1beta1.QueryParamsResponse: - type: object - properties: - params: - description: params defines the parameters of the module. - type: object - properties: - mint_denom: - type: string - title: type of coin to mint - inflation_rate_change: - type: string - title: maximum annual change in inflation rate - inflation_max: - type: string - title: maximum inflation rate - inflation_min: - type: string - title: minimum inflation rate - goal_bonded: - type: string - title: goal of percent bonded atoms - blocks_per_year: - type: string - format: uint64 - title: expected blocks per year - description: QueryParamsResponse is the response type for the Query/Params RPC method. - cosmos.mint.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/mint parameters to update. - - NOTE: All parameters must be supplied. - type: object - properties: - mint_denom: - type: string - title: type of coin to mint - inflation_rate_change: - type: string - title: maximum annual change in inflation rate - inflation_max: - type: string - title: maximum inflation rate - inflation_min: - type: string - title: minimum inflation rate - goal_bonded: - type: string - title: goal of percent bonded atoms - blocks_per_year: - type: string - format: uint64 - title: expected blocks per year - description: |- - MsgUpdateParams is the Msg/UpdateParams request type. - - Since: cosmos-sdk 0.47 - cosmos.mint.v1beta1.MsgUpdateParamsResponse: - type: object - description: |- - MsgUpdateParamsResponse defines the response structure for executing a - MsgUpdateParams message. - - Since: cosmos-sdk 0.47 - 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.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.slashing.v1beta1.QueryParamsResponse: - type: object - properties: - 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. - title: QueryParamsResponse is the response type for the Query/Params RPC method - cosmos.slashing.v1beta1.QuerySigningInfoResponse: - type: object - properties: - val_signing_info: - title: val_signing_info is the signing info of requested val cons address - type: object - properties: - address: - type: string - start_height: - type: string - format: int64 - title: Height at which validator was first a candidate OR was un-jailed - index_offset: - type: string - format: int64 - description: >- - Index which is incremented every time a validator is bonded in a - block and - - _may_ have signed a pre-commit or not. This in conjunction with - the - - signed_blocks_window param determines the index in the missed - block bitmap. - jailed_until: - type: string - format: date-time - description: >- - Timestamp until which the validator is jailed due to liveness - downtime. - tombstoned: - type: boolean - description: >- - Whether or not a validator has been tombstoned (killed out of - validator - - set). It is set once the validator commits an equivocation or for - any other - - configured misbehavior. - missed_blocks_counter: - type: string - format: int64 - description: >- - A counter of missed (unsigned) blocks. It is used to avoid - unnecessary - - reads in the missed block bitmap. - description: >- - ValidatorSigningInfo defines a validator's signing info for monitoring - their - - liveness activity. - title: >- - QuerySigningInfoResponse is the response type for the Query/SigningInfo - RPC - - method - cosmos.slashing.v1beta1.QuerySigningInfosResponse: - type: object - properties: - info: - type: array - items: - type: object - properties: - address: - type: string - start_height: - type: string - format: int64 - title: Height at which validator was first a candidate OR was un-jailed - index_offset: - type: string - format: int64 - description: >- - Index which is incremented every time a validator is bonded in a - block and - - _may_ have signed a pre-commit or not. This in conjunction with - the - - signed_blocks_window param determines the index in the missed - block bitmap. - jailed_until: - type: string - format: date-time - description: >- - Timestamp until which the validator is jailed due to liveness - downtime. - tombstoned: - type: boolean - description: >- - Whether or not a validator has been tombstoned (killed out of - validator - - set). It is set once the validator commits an equivocation or - for any other - - configured misbehavior. - missed_blocks_counter: - type: string - format: int64 - description: >- - A counter of missed (unsigned) blocks. It is used to avoid - unnecessary - - reads in the missed block bitmap. - description: >- - ValidatorSigningInfo defines a validator's signing info for - monitoring their - - liveness activity. - title: info is the signing info of all validators - 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; - } - title: >- - QuerySigningInfosResponse is the response type for the Query/SigningInfos - RPC - - method - cosmos.slashing.v1beta1.ValidatorSigningInfo: - type: object - properties: - address: - type: string - start_height: - type: string - format: int64 - title: Height at which validator was first a candidate OR was un-jailed - index_offset: - type: string - format: int64 - description: >- - Index which is incremented every time a validator is bonded in a block - and - - _may_ have signed a pre-commit or not. This in conjunction with the - - signed_blocks_window param determines the index in the missed block - bitmap. - jailed_until: - type: string - format: date-time - description: >- - Timestamp until which the validator is jailed due to liveness - downtime. - tombstoned: - type: boolean - description: >- - Whether or not a validator has been tombstoned (killed out of - validator - - set). It is set once the validator commits an equivocation or for any - other - - configured misbehavior. - missed_blocks_counter: - type: string - format: int64 - description: |- - A counter of missed (unsigned) blocks. It is used to avoid unnecessary - reads in the missed block bitmap. - description: >- - ValidatorSigningInfo defines a validator's signing info for monitoring - their - - liveness activity. - 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.staking.v1beta1.BondStatus: - type: string - enum: - - BOND_STATUS_UNSPECIFIED - - BOND_STATUS_UNBONDED - - BOND_STATUS_UNBONDING - - BOND_STATUS_BONDED - default: BOND_STATUS_UNSPECIFIED - description: |- - BondStatus is the status of a validator. - - - BOND_STATUS_UNSPECIFIED: UNSPECIFIED defines an invalid validator status. - - BOND_STATUS_UNBONDED: UNBONDED defines a validator that is not bonded. - - BOND_STATUS_UNBONDING: UNBONDING defines a validator that is unbonding. - - BOND_STATUS_BONDED: BONDED defines a validator that is bonded. - cosmos.staking.v1beta1.Commission: - type: object - properties: - commission_rates: - description: >- - commission_rates defines the initial commission rates to be used for - creating a validator. - 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. - update_time: - type: string - format: date-time - description: update_time is the last time the commission rate was changed. - description: Commission defines commission parameters for a given validator. - 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.Delegation: - type: object - properties: - delegator_address: - type: string - description: delegator_address is the encoded address of the delegator. - validator_address: - type: string - description: validator_address is the encoded address of the validator. - shares: - type: string - description: shares define the delegation shares received. - description: |- - Delegation represents the bond with tokens held by an account. It is - owned by one delegator, and is associated with the voting power of one - validator. - cosmos.staking.v1beta1.DelegationResponse: - type: object - properties: - delegation: - type: object - properties: - delegator_address: - type: string - description: delegator_address is the encoded address of the delegator. - validator_address: - type: string - description: validator_address is the encoded address of the validator. - shares: - type: string - description: shares define the delegation shares received. - description: |- - Delegation represents the bond with tokens held by an account. It is - owned by one delegator, and is associated with the voting power of one - validator. - balance: - 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: |- - DelegationResponse is equivalent to Delegation except that it contains a - balance in addition to shares which is more suitable for client responses. - 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.HistoricalInfo: - type: object - properties: - header: - type: object - properties: - version: - title: basic block info - type: object - properties: - block: - type: string - format: uint64 - app: - type: string - format: uint64 - description: >- - Consensus captures the consensus rules for processing a block in - the blockchain, - - including all blockchain data structures and the rules of the - application's - - state transition machine. - chain_id: - type: string - height: - type: string - format: int64 - time: - type: string - format: date-time - last_block_id: - title: prev block info - type: object - properties: - hash: - type: string - format: byte - part_set_header: - type: object - properties: - total: - type: integer - format: int64 - hash: - type: string - format: byte - title: PartsetHeader - last_commit_hash: - type: string - format: byte - description: commit from validators from the last block - title: hashes of block data - data_hash: - type: string - format: byte - title: transactions - validators_hash: - type: string - format: byte - description: validators for the current block - title: hashes from the app output from the prev block - next_validators_hash: - type: string - format: byte - title: validators for the next block - consensus_hash: - type: string - format: byte - title: consensus params for current block - app_hash: - type: string - format: byte - title: state after txs from the previous block - last_results_hash: - type: string - format: byte - title: root hash of all results from the txs from the previous block - evidence_hash: - type: string - format: byte - description: evidence included in the block - title: consensus info - proposer_address: - type: string - format: byte - title: original proposer of the block - description: Header defines the structure of a block header. - valset: - type: array - items: - type: object - properties: - operator_address: - type: string - description: >- - operator_address defines the address of the validator's - operator; bech encoded in JSON. - consensus_pubkey: - description: >- - consensus_pubkey is the consensus public key of the validator, - as a Protobuf Any. - 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: {} - jailed: - type: boolean - description: >- - jailed defined whether the validator has been jailed from bonded - status or not. - status: - description: status is the validator status (bonded/unbonding/unbonded). - type: string - enum: - - BOND_STATUS_UNSPECIFIED - - BOND_STATUS_UNBONDED - - BOND_STATUS_UNBONDING - - BOND_STATUS_BONDED - default: BOND_STATUS_UNSPECIFIED - tokens: - type: string - description: tokens define the delegated tokens (incl. self-delegation). - delegator_shares: - type: string - description: >- - delegator_shares defines total shares issued to a validator's - delegators. - description: - description: description defines the description terms for the validator. - 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. - unbonding_height: - type: string - format: int64 - description: >- - unbonding_height defines, if unbonding, the height at which this - validator has begun unbonding. - unbonding_time: - type: string - format: date-time - description: >- - unbonding_time defines, if unbonding, the min time for the - validator to complete unbonding. - commission: - description: commission defines the commission parameters. - type: object - properties: - commission_rates: - description: >- - commission_rates defines the initial commission rates to be - used for creating a validator. - 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. - update_time: - type: string - format: date-time - description: >- - update_time is the last time the commission rate was - changed. - min_self_delegation: - type: string - description: >- - min_self_delegation is the validator's self declared minimum - self delegation. - - - Since: cosmos-sdk 0.46 - unbonding_on_hold_ref_count: - type: string - format: int64 - title: >- - strictly positive if this validator's unbonding has been stopped - by external modules - unbonding_ids: - type: array - items: - type: string - format: uint64 - title: >- - list of unbonding ids, each uniquely identifing an unbonding of - this validator - description: >- - Validator defines a validator, together with the total amount of the - - Validator's bond shares and their exchange rate to coins. Slashing - results in - - a decrease in the exchange rate, allowing correct calculation of - future - - undelegations without iterating over delegators. When coins are - delegated to - - this validator, the validator is credited with a delegation whose - number of - - bond shares is based on the amount of coins delegated divided by the - current - - exchange rate. Voting power can be calculated as total bonded shares - - multiplied by exchange rate. - description: >- - HistoricalInfo contains header and validator information for a given - block. - - It is stored as part of staking module's state, which persists the `n` - most - - recent HistoricalInfo - - (`n` is set by the staking module's `historical_entries` parameter). - 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. - cosmos.staking.v1beta1.Pool: - type: object - properties: - not_bonded_tokens: - type: string - bonded_tokens: - type: string - description: |- - Pool is used for tracking bonded and not-bonded token supply of the bond - denomination. - cosmos.staking.v1beta1.QueryDelegationResponse: - type: object - properties: - delegation_response: - description: delegation_responses defines the delegation info of a delegation. - type: object - properties: - delegation: - type: object - properties: - delegator_address: - type: string - description: delegator_address is the encoded address of the delegator. - validator_address: - type: string - description: validator_address is the encoded address of the validator. - shares: - type: string - description: shares define the delegation shares received. - description: >- - Delegation represents the bond with tokens held by an account. It - is - - owned by one delegator, and is associated with the voting power of - one - - validator. - balance: - 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: >- - QueryDelegationResponse is response type for the Query/Delegation RPC - method. - cosmos.staking.v1beta1.QueryDelegatorDelegationsResponse: - type: object - properties: - delegation_responses: - type: array - items: - type: object - properties: - delegation: - type: object - properties: - delegator_address: - type: string - description: delegator_address is the encoded address of the delegator. - validator_address: - type: string - description: validator_address is the encoded address of the validator. - shares: - type: string - description: shares define the delegation shares received. - description: >- - Delegation represents the bond with tokens held by an account. - It is - - owned by one delegator, and is associated with the voting power - of one - - validator. - balance: - 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: >- - DelegationResponse is equivalent to Delegation except that it - contains a - - balance in addition to shares which is more suitable for client - responses. - description: delegation_responses defines all the delegations' info of a delegator. - pagination: - description: pagination defines the pagination in the response. - 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: |- - QueryDelegatorDelegationsResponse is response type for the - Query/DelegatorDelegations RPC method. - cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsResponse: - type: object - properties: - unbonding_responses: - type: array - items: - type: object - properties: - delegator_address: - type: string - description: delegator_address is the encoded address of the delegator. - validator_address: - type: string - description: validator_address is the encoded address of the validator. - entries: - type: array - items: - type: object - properties: - creation_height: - type: string - format: int64 - description: >- - creation_height is the height which the unbonding took - place. - completion_time: - type: string - format: date-time - description: completion_time is the unix time for unbonding completion. - initial_balance: - type: string - description: >- - initial_balance defines the tokens initially scheduled to - receive at completion. - balance: - type: string - description: balance defines the tokens to receive at completion. - unbonding_id: - type: string - format: uint64 - title: Incrementing id that uniquely identifies this entry - unbonding_on_hold_ref_count: - type: string - format: int64 - title: >- - Strictly positive if this entry's unbonding has been - stopped by external modules - description: >- - UnbondingDelegationEntry defines an unbonding object with - relevant metadata. - description: |- - entries are the unbonding delegation entries. - - unbonding delegation entries - description: >- - UnbondingDelegation stores all of a single delegator's unbonding - bonds - - for a single validator in an time-ordered list. - pagination: - description: pagination defines the pagination in the response. - 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: |- - QueryUnbondingDelegatorDelegationsResponse is response type for the - Query/UnbondingDelegatorDelegations RPC method. - cosmos.staking.v1beta1.QueryDelegatorValidatorResponse: - type: object - properties: - validator: - description: validator defines the validator info. - type: object - properties: - operator_address: - type: string - description: >- - operator_address defines the address of the validator's operator; - bech encoded in JSON. - consensus_pubkey: - description: >- - consensus_pubkey is the consensus public key of the validator, as - a Protobuf Any. - 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: {} - jailed: - type: boolean - description: >- - jailed defined whether the validator has been jailed from bonded - status or not. - status: - description: status is the validator status (bonded/unbonding/unbonded). - type: string - enum: - - BOND_STATUS_UNSPECIFIED - - BOND_STATUS_UNBONDED - - BOND_STATUS_UNBONDING - - BOND_STATUS_BONDED - default: BOND_STATUS_UNSPECIFIED - tokens: - type: string - description: tokens define the delegated tokens (incl. self-delegation). - delegator_shares: - type: string - description: >- - delegator_shares defines total shares issued to a validator's - delegators. - description: - description: description defines the description terms for the validator. - 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. - unbonding_height: - type: string - format: int64 - description: >- - unbonding_height defines, if unbonding, the height at which this - validator has begun unbonding. - unbonding_time: - type: string - format: date-time - description: >- - unbonding_time defines, if unbonding, the min time for the - validator to complete unbonding. - commission: - description: commission defines the commission parameters. - type: object - properties: - commission_rates: - description: >- - commission_rates defines the initial commission rates to be - used for creating a validator. - 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. - update_time: - type: string - format: date-time - description: update_time is the last time the commission rate was changed. - min_self_delegation: - type: string - description: >- - min_self_delegation is the validator's self declared minimum self - delegation. - - - Since: cosmos-sdk 0.46 - unbonding_on_hold_ref_count: - type: string - format: int64 - title: >- - strictly positive if this validator's unbonding has been stopped - by external modules - unbonding_ids: - type: array - items: - type: string - format: uint64 - title: >- - list of unbonding ids, each uniquely identifing an unbonding of - this validator - description: |- - QueryDelegatorValidatorResponse response type for the - Query/DelegatorValidator RPC method. - cosmos.staking.v1beta1.QueryDelegatorValidatorsResponse: - type: object - properties: - validators: - type: array - items: - type: object - properties: - operator_address: - type: string - description: >- - operator_address defines the address of the validator's - operator; bech encoded in JSON. - consensus_pubkey: - description: >- - consensus_pubkey is the consensus public key of the validator, - as a Protobuf Any. - 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: {} - jailed: - type: boolean - description: >- - jailed defined whether the validator has been jailed from bonded - status or not. - status: - description: status is the validator status (bonded/unbonding/unbonded). - type: string - enum: - - BOND_STATUS_UNSPECIFIED - - BOND_STATUS_UNBONDED - - BOND_STATUS_UNBONDING - - BOND_STATUS_BONDED - default: BOND_STATUS_UNSPECIFIED - tokens: - type: string - description: tokens define the delegated tokens (incl. self-delegation). - delegator_shares: - type: string - description: >- - delegator_shares defines total shares issued to a validator's - delegators. - description: - description: description defines the description terms for the validator. - 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. - unbonding_height: - type: string - format: int64 - description: >- - unbonding_height defines, if unbonding, the height at which this - validator has begun unbonding. - unbonding_time: - type: string - format: date-time - description: >- - unbonding_time defines, if unbonding, the min time for the - validator to complete unbonding. - commission: - description: commission defines the commission parameters. - type: object - properties: - commission_rates: - description: >- - commission_rates defines the initial commission rates to be - used for creating a validator. - 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. - update_time: - type: string - format: date-time - description: >- - update_time is the last time the commission rate was - changed. - min_self_delegation: - type: string - description: >- - min_self_delegation is the validator's self declared minimum - self delegation. - - - Since: cosmos-sdk 0.46 - unbonding_on_hold_ref_count: - type: string - format: int64 - title: >- - strictly positive if this validator's unbonding has been stopped - by external modules - unbonding_ids: - type: array - items: - type: string - format: uint64 - title: >- - list of unbonding ids, each uniquely identifing an unbonding of - this validator - description: >- - Validator defines a validator, together with the total amount of the - - Validator's bond shares and their exchange rate to coins. Slashing - results in - - a decrease in the exchange rate, allowing correct calculation of - future - - undelegations without iterating over delegators. When coins are - delegated to - - this validator, the validator is credited with a delegation whose - number of - - bond shares is based on the amount of coins delegated divided by the - current - - exchange rate. Voting power can be calculated as total bonded shares - - multiplied by exchange rate. - description: validators defines the validators' info of a delegator. - pagination: - description: pagination defines the pagination in the response. - 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: |- - QueryDelegatorValidatorsResponse is response type for the - Query/DelegatorValidators RPC method. - cosmos.staking.v1beta1.QueryHistoricalInfoResponse: - type: object - properties: - hist: - description: hist defines the historical info at the given height. - type: object - properties: - header: - type: object - properties: - version: - title: basic block info - type: object - properties: - block: - type: string - format: uint64 - app: - type: string - format: uint64 - description: >- - Consensus captures the consensus rules for processing a block - in the blockchain, - - including all blockchain data structures and the rules of the - application's - - state transition machine. - chain_id: - type: string - height: - type: string - format: int64 - time: - type: string - format: date-time - last_block_id: - title: prev block info - type: object - properties: - hash: - type: string - format: byte - part_set_header: - type: object - properties: - total: - type: integer - format: int64 - hash: - type: string - format: byte - title: PartsetHeader - last_commit_hash: - type: string - format: byte - description: commit from validators from the last block - title: hashes of block data - data_hash: - type: string - format: byte - title: transactions - validators_hash: - type: string - format: byte - description: validators for the current block - title: hashes from the app output from the prev block - next_validators_hash: - type: string - format: byte - title: validators for the next block - consensus_hash: - type: string - format: byte - title: consensus params for current block - app_hash: - type: string - format: byte - title: state after txs from the previous block - last_results_hash: - type: string - format: byte - title: root hash of all results from the txs from the previous block - evidence_hash: - type: string - format: byte - description: evidence included in the block - title: consensus info - proposer_address: - type: string - format: byte - title: original proposer of the block - description: Header defines the structure of a block header. - valset: - type: array - items: - type: object - properties: - operator_address: - type: string - description: >- - operator_address defines the address of the validator's - operator; bech encoded in JSON. - consensus_pubkey: - description: >- - consensus_pubkey is the consensus public key of the - validator, as a Protobuf Any. - 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: {} - jailed: - type: boolean - description: >- - jailed defined whether the validator has been jailed from - bonded status or not. - status: - description: status is the validator status (bonded/unbonding/unbonded). - type: string - enum: - - BOND_STATUS_UNSPECIFIED - - BOND_STATUS_UNBONDED - - BOND_STATUS_UNBONDING - - BOND_STATUS_BONDED - default: BOND_STATUS_UNSPECIFIED - tokens: - type: string - description: tokens define the delegated tokens (incl. self-delegation). - delegator_shares: - type: string - description: >- - delegator_shares defines total shares issued to a - validator's delegators. - description: - description: description defines the description terms for the validator. - 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. - unbonding_height: - type: string - format: int64 - description: >- - unbonding_height defines, if unbonding, the height at which - this validator has begun unbonding. - unbonding_time: - type: string - format: date-time - description: >- - unbonding_time defines, if unbonding, the min time for the - validator to complete unbonding. - commission: - description: commission defines the commission parameters. - type: object - properties: - commission_rates: - description: >- - commission_rates defines the initial commission rates to - be used for creating a validator. - 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. - update_time: - type: string - format: date-time - description: >- - update_time is the last time the commission rate was - changed. - min_self_delegation: - type: string - description: >- - min_self_delegation is the validator's self declared minimum - self delegation. - - - Since: cosmos-sdk 0.46 - unbonding_on_hold_ref_count: - type: string - format: int64 - title: >- - strictly positive if this validator's unbonding has been - stopped by external modules - unbonding_ids: - type: array - items: - type: string - format: uint64 - title: >- - list of unbonding ids, each uniquely identifing an unbonding - of this validator - description: >- - Validator defines a validator, together with the total amount of - the - - Validator's bond shares and their exchange rate to coins. - Slashing results in - - a decrease in the exchange rate, allowing correct calculation of - future - - undelegations without iterating over delegators. When coins are - delegated to - - this validator, the validator is credited with a delegation - whose number of - - bond shares is based on the amount of coins delegated divided by - the current - - exchange rate. Voting power can be calculated as total bonded - shares - - multiplied by exchange rate. - description: >- - QueryHistoricalInfoResponse is response type for the Query/HistoricalInfo - RPC - - method. - cosmos.staking.v1beta1.QueryParamsResponse: - type: object - properties: - params: - description: params holds all the parameters of this module. - 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: QueryParamsResponse is response type for the Query/Params RPC method. - cosmos.staking.v1beta1.QueryPoolResponse: - type: object - properties: - pool: - description: pool defines the pool info. - type: object - properties: - not_bonded_tokens: - type: string - bonded_tokens: - type: string - description: QueryPoolResponse is response type for the Query/Pool RPC method. - cosmos.staking.v1beta1.QueryRedelegationsResponse: - type: object - properties: - redelegation_responses: - type: array - items: - type: object - properties: - redelegation: - type: object - properties: - delegator_address: - type: string - description: >- - delegator_address is the bech32-encoded address of the - delegator. - validator_src_address: - type: string - description: >- - validator_src_address is the validator redelegation source - operator address. - validator_dst_address: - type: string - description: >- - validator_dst_address is the validator redelegation - destination operator address. - entries: - type: array - items: - type: object - properties: - creation_height: - type: string - format: int64 - description: >- - creation_height defines the height which the - redelegation took place. - completion_time: - type: string - format: date-time - description: >- - completion_time defines the unix time for redelegation - completion. - initial_balance: - type: string - description: >- - initial_balance defines the initial balance when - redelegation started. - shares_dst: - type: string - description: >- - shares_dst is the amount of destination-validator - shares created by redelegation. - unbonding_id: - type: string - format: uint64 - title: Incrementing id that uniquely identifies this entry - unbonding_on_hold_ref_count: - type: string - format: int64 - title: >- - Strictly positive if this entry's unbonding has been - stopped by external modules - description: >- - RedelegationEntry defines a redelegation object with - relevant metadata. - description: |- - entries are the redelegation entries. - - redelegation entries - description: >- - Redelegation contains the list of a particular delegator's - redelegating bonds - - from a particular source validator to a particular destination - validator. - entries: - type: array - items: - type: object - properties: - redelegation_entry: - type: object - properties: - creation_height: - type: string - format: int64 - description: >- - creation_height defines the height which the - redelegation took place. - completion_time: - type: string - format: date-time - description: >- - completion_time defines the unix time for redelegation - completion. - initial_balance: - type: string - description: >- - initial_balance defines the initial balance when - redelegation started. - shares_dst: - type: string - description: >- - shares_dst is the amount of destination-validator - shares created by redelegation. - unbonding_id: - type: string - format: uint64 - title: Incrementing id that uniquely identifies this entry - unbonding_on_hold_ref_count: - type: string - format: int64 - title: >- - Strictly positive if this entry's unbonding has been - stopped by external modules - description: >- - RedelegationEntry defines a redelegation object with - relevant metadata. - balance: - type: string - description: >- - RedelegationEntryResponse is equivalent to a RedelegationEntry - except that it - - contains a balance in addition to shares which is more - suitable for client - - responses. - description: >- - RedelegationResponse is equivalent to a Redelegation except that its - entries - - contain a balance in addition to shares which is more suitable for - client - - responses. - pagination: - description: pagination defines the pagination in the response. - 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: >- - QueryRedelegationsResponse is response type for the Query/Redelegations - RPC - - method. - cosmos.staking.v1beta1.QueryUnbondingDelegationResponse: - type: object - properties: - unbond: - description: unbond defines the unbonding information of a delegation. - type: object - properties: - delegator_address: - type: string - description: delegator_address is the encoded address of the delegator. - validator_address: - type: string - description: validator_address is the encoded address of the validator. - entries: - type: array - items: - type: object - properties: - creation_height: - type: string - format: int64 - description: >- - creation_height is the height which the unbonding took - place. - completion_time: - type: string - format: date-time - description: completion_time is the unix time for unbonding completion. - initial_balance: - type: string - description: >- - initial_balance defines the tokens initially scheduled to - receive at completion. - balance: - type: string - description: balance defines the tokens to receive at completion. - unbonding_id: - type: string - format: uint64 - title: Incrementing id that uniquely identifies this entry - unbonding_on_hold_ref_count: - type: string - format: int64 - title: >- - Strictly positive if this entry's unbonding has been stopped - by external modules - description: >- - UnbondingDelegationEntry defines an unbonding object with - relevant metadata. - description: |- - entries are the unbonding delegation entries. - - unbonding delegation entries - description: |- - QueryDelegationResponse is response type for the Query/UnbondingDelegation - RPC method. - cosmos.staking.v1beta1.QueryValidatorDelegationsResponse: - type: object - properties: - delegation_responses: - type: array - items: - type: object - properties: - delegation: - type: object - properties: - delegator_address: - type: string - description: delegator_address is the encoded address of the delegator. - validator_address: - type: string - description: validator_address is the encoded address of the validator. - shares: - type: string - description: shares define the delegation shares received. - description: >- - Delegation represents the bond with tokens held by an account. - It is - - owned by one delegator, and is associated with the voting power - of one - - validator. - balance: - 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: >- - DelegationResponse is equivalent to Delegation except that it - contains a - - balance in addition to shares which is more suitable for client - responses. - pagination: - description: pagination defines the pagination in the response. - 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 - title: |- - QueryValidatorDelegationsResponse is response type for the - Query/ValidatorDelegations RPC method - cosmos.staking.v1beta1.QueryValidatorResponse: - type: object - properties: - validator: - description: validator defines the validator info. - type: object - properties: - operator_address: - type: string - description: >- - operator_address defines the address of the validator's operator; - bech encoded in JSON. - consensus_pubkey: - description: >- - consensus_pubkey is the consensus public key of the validator, as - a Protobuf Any. - 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: {} - jailed: - type: boolean - description: >- - jailed defined whether the validator has been jailed from bonded - status or not. - status: - description: status is the validator status (bonded/unbonding/unbonded). - type: string - enum: - - BOND_STATUS_UNSPECIFIED - - BOND_STATUS_UNBONDED - - BOND_STATUS_UNBONDING - - BOND_STATUS_BONDED - default: BOND_STATUS_UNSPECIFIED - tokens: - type: string - description: tokens define the delegated tokens (incl. self-delegation). - delegator_shares: - type: string - description: >- - delegator_shares defines total shares issued to a validator's - delegators. - description: - description: description defines the description terms for the validator. - 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. - unbonding_height: - type: string - format: int64 - description: >- - unbonding_height defines, if unbonding, the height at which this - validator has begun unbonding. - unbonding_time: - type: string - format: date-time - description: >- - unbonding_time defines, if unbonding, the min time for the - validator to complete unbonding. - commission: - description: commission defines the commission parameters. - type: object - properties: - commission_rates: - description: >- - commission_rates defines the initial commission rates to be - used for creating a validator. - 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. - update_time: - type: string - format: date-time - description: update_time is the last time the commission rate was changed. - min_self_delegation: - type: string - description: >- - min_self_delegation is the validator's self declared minimum self - delegation. - - - Since: cosmos-sdk 0.46 - unbonding_on_hold_ref_count: - type: string - format: int64 - title: >- - strictly positive if this validator's unbonding has been stopped - by external modules - unbonding_ids: - type: array - items: - type: string - format: uint64 - title: >- - list of unbonding ids, each uniquely identifing an unbonding of - this validator - title: QueryValidatorResponse is response type for the Query/Validator RPC method - cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsResponse: - type: object - properties: - unbonding_responses: - type: array - items: - type: object - properties: - delegator_address: - type: string - description: delegator_address is the encoded address of the delegator. - validator_address: - type: string - description: validator_address is the encoded address of the validator. - entries: - type: array - items: - type: object - properties: - creation_height: - type: string - format: int64 - description: >- - creation_height is the height which the unbonding took - place. - completion_time: - type: string - format: date-time - description: completion_time is the unix time for unbonding completion. - initial_balance: - type: string - description: >- - initial_balance defines the tokens initially scheduled to - receive at completion. - balance: - type: string - description: balance defines the tokens to receive at completion. - unbonding_id: - type: string - format: uint64 - title: Incrementing id that uniquely identifies this entry - unbonding_on_hold_ref_count: - type: string - format: int64 - title: >- - Strictly positive if this entry's unbonding has been - stopped by external modules - description: >- - UnbondingDelegationEntry defines an unbonding object with - relevant metadata. - description: |- - entries are the unbonding delegation entries. - - unbonding delegation entries - description: >- - UnbondingDelegation stores all of a single delegator's unbonding - bonds - - for a single validator in an time-ordered list. - pagination: - description: pagination defines the pagination in the response. - 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: |- - QueryValidatorUnbondingDelegationsResponse is response type for the - Query/ValidatorUnbondingDelegations RPC method. - cosmos.staking.v1beta1.QueryValidatorsResponse: - type: object - properties: - validators: - type: array - items: - type: object - properties: - operator_address: - type: string - description: >- - operator_address defines the address of the validator's - operator; bech encoded in JSON. - consensus_pubkey: - description: >- - consensus_pubkey is the consensus public key of the validator, - as a Protobuf Any. - 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: {} - jailed: - type: boolean - description: >- - jailed defined whether the validator has been jailed from bonded - status or not. - status: - description: status is the validator status (bonded/unbonding/unbonded). - type: string - enum: - - BOND_STATUS_UNSPECIFIED - - BOND_STATUS_UNBONDED - - BOND_STATUS_UNBONDING - - BOND_STATUS_BONDED - default: BOND_STATUS_UNSPECIFIED - tokens: - type: string - description: tokens define the delegated tokens (incl. self-delegation). - delegator_shares: - type: string - description: >- - delegator_shares defines total shares issued to a validator's - delegators. - description: - description: description defines the description terms for the validator. - 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. - unbonding_height: - type: string - format: int64 - description: >- - unbonding_height defines, if unbonding, the height at which this - validator has begun unbonding. - unbonding_time: - type: string - format: date-time - description: >- - unbonding_time defines, if unbonding, the min time for the - validator to complete unbonding. - commission: - description: commission defines the commission parameters. - type: object - properties: - commission_rates: - description: >- - commission_rates defines the initial commission rates to be - used for creating a validator. - 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. - update_time: - type: string - format: date-time - description: >- - update_time is the last time the commission rate was - changed. - min_self_delegation: - type: string - description: >- - min_self_delegation is the validator's self declared minimum - self delegation. - - - Since: cosmos-sdk 0.46 - unbonding_on_hold_ref_count: - type: string - format: int64 - title: >- - strictly positive if this validator's unbonding has been stopped - by external modules - unbonding_ids: - type: array - items: - type: string - format: uint64 - title: >- - list of unbonding ids, each uniquely identifing an unbonding of - this validator - description: >- - Validator defines a validator, together with the total amount of the - - Validator's bond shares and their exchange rate to coins. Slashing - results in - - a decrease in the exchange rate, allowing correct calculation of - future - - undelegations without iterating over delegators. When coins are - delegated to - - this validator, the validator is credited with a delegation whose - number of - - bond shares is based on the amount of coins delegated divided by the - current - - exchange rate. Voting power can be calculated as total bonded shares - - multiplied by exchange rate. - description: validators contains all the queried validators. - pagination: - description: pagination defines the pagination in the response. - 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 - title: >- - QueryValidatorsResponse is response type for the Query/Validators RPC - method - cosmos.staking.v1beta1.Redelegation: - type: object - properties: - delegator_address: - type: string - description: delegator_address is the bech32-encoded address of the delegator. - validator_src_address: - type: string - description: >- - validator_src_address is the validator redelegation source operator - address. - validator_dst_address: - type: string - description: >- - validator_dst_address is the validator redelegation destination - operator address. - entries: - type: array - items: - type: object - properties: - creation_height: - type: string - format: int64 - description: >- - creation_height defines the height which the redelegation took - place. - completion_time: - type: string - format: date-time - description: >- - completion_time defines the unix time for redelegation - completion. - initial_balance: - type: string - description: >- - initial_balance defines the initial balance when redelegation - started. - shares_dst: - type: string - description: >- - shares_dst is the amount of destination-validator shares created - by redelegation. - unbonding_id: - type: string - format: uint64 - title: Incrementing id that uniquely identifies this entry - unbonding_on_hold_ref_count: - type: string - format: int64 - title: >- - Strictly positive if this entry's unbonding has been stopped by - external modules - description: >- - RedelegationEntry defines a redelegation object with relevant - metadata. - description: |- - entries are the redelegation entries. - - redelegation entries - description: >- - Redelegation contains the list of a particular delegator's redelegating - bonds - - from a particular source validator to a particular destination validator. - cosmos.staking.v1beta1.RedelegationEntry: - type: object - properties: - creation_height: - type: string - format: int64 - description: creation_height defines the height which the redelegation took place. - completion_time: - type: string - format: date-time - description: completion_time defines the unix time for redelegation completion. - initial_balance: - type: string - description: initial_balance defines the initial balance when redelegation started. - shares_dst: - type: string - description: >- - shares_dst is the amount of destination-validator shares created by - redelegation. - unbonding_id: - type: string - format: uint64 - title: Incrementing id that uniquely identifies this entry - unbonding_on_hold_ref_count: - type: string - format: int64 - title: >- - Strictly positive if this entry's unbonding has been stopped by - external modules - description: RedelegationEntry defines a redelegation object with relevant metadata. - cosmos.staking.v1beta1.RedelegationEntryResponse: - type: object - properties: - redelegation_entry: - type: object - properties: - creation_height: - type: string - format: int64 - description: >- - creation_height defines the height which the redelegation took - place. - completion_time: - type: string - format: date-time - description: completion_time defines the unix time for redelegation completion. - initial_balance: - type: string - description: >- - initial_balance defines the initial balance when redelegation - started. - shares_dst: - type: string - description: >- - shares_dst is the amount of destination-validator shares created - by redelegation. - unbonding_id: - type: string - format: uint64 - title: Incrementing id that uniquely identifies this entry - unbonding_on_hold_ref_count: - type: string - format: int64 - title: >- - Strictly positive if this entry's unbonding has been stopped by - external modules - description: >- - RedelegationEntry defines a redelegation object with relevant - metadata. - balance: - type: string - description: >- - RedelegationEntryResponse is equivalent to a RedelegationEntry except that - it - - contains a balance in addition to shares which is more suitable for client - - responses. - cosmos.staking.v1beta1.RedelegationResponse: - type: object - properties: - redelegation: - type: object - properties: - delegator_address: - type: string - description: delegator_address is the bech32-encoded address of the delegator. - validator_src_address: - type: string - description: >- - validator_src_address is the validator redelegation source - operator address. - validator_dst_address: - type: string - description: >- - validator_dst_address is the validator redelegation destination - operator address. - entries: - type: array - items: - type: object - properties: - creation_height: - type: string - format: int64 - description: >- - creation_height defines the height which the redelegation - took place. - completion_time: - type: string - format: date-time - description: >- - completion_time defines the unix time for redelegation - completion. - initial_balance: - type: string - description: >- - initial_balance defines the initial balance when - redelegation started. - shares_dst: - type: string - description: >- - shares_dst is the amount of destination-validator shares - created by redelegation. - unbonding_id: - type: string - format: uint64 - title: Incrementing id that uniquely identifies this entry - unbonding_on_hold_ref_count: - type: string - format: int64 - title: >- - Strictly positive if this entry's unbonding has been stopped - by external modules - description: >- - RedelegationEntry defines a redelegation object with relevant - metadata. - description: |- - entries are the redelegation entries. - - redelegation entries - description: >- - Redelegation contains the list of a particular delegator's - redelegating bonds - - from a particular source validator to a particular destination - validator. - entries: - type: array - items: - type: object - properties: - redelegation_entry: - type: object - properties: - creation_height: - type: string - format: int64 - description: >- - creation_height defines the height which the redelegation - took place. - completion_time: - type: string - format: date-time - description: >- - completion_time defines the unix time for redelegation - completion. - initial_balance: - type: string - description: >- - initial_balance defines the initial balance when - redelegation started. - shares_dst: - type: string - description: >- - shares_dst is the amount of destination-validator shares - created by redelegation. - unbonding_id: - type: string - format: uint64 - title: Incrementing id that uniquely identifies this entry - unbonding_on_hold_ref_count: - type: string - format: int64 - title: >- - Strictly positive if this entry's unbonding has been stopped - by external modules - description: >- - RedelegationEntry defines a redelegation object with relevant - metadata. - balance: - type: string - description: >- - RedelegationEntryResponse is equivalent to a RedelegationEntry - except that it - - contains a balance in addition to shares which is more suitable for - client - - responses. - description: >- - RedelegationResponse is equivalent to a Redelegation except that its - entries - - contain a balance in addition to shares which is more suitable for client - - responses. - cosmos.staking.v1beta1.UnbondingDelegation: - type: object - properties: - delegator_address: - type: string - description: delegator_address is the encoded address of the delegator. - validator_address: - type: string - description: validator_address is the encoded address of the validator. - entries: - type: array - items: - type: object - properties: - creation_height: - type: string - format: int64 - description: creation_height is the height which the unbonding took place. - completion_time: - type: string - format: date-time - description: completion_time is the unix time for unbonding completion. - initial_balance: - type: string - description: >- - initial_balance defines the tokens initially scheduled to - receive at completion. - balance: - type: string - description: balance defines the tokens to receive at completion. - unbonding_id: - type: string - format: uint64 - title: Incrementing id that uniquely identifies this entry - unbonding_on_hold_ref_count: - type: string - format: int64 - title: >- - Strictly positive if this entry's unbonding has been stopped by - external modules - description: >- - UnbondingDelegationEntry defines an unbonding object with relevant - metadata. - description: |- - entries are the unbonding delegation entries. - - unbonding delegation entries - description: |- - UnbondingDelegation stores all of a single delegator's unbonding bonds - for a single validator in an time-ordered list. - cosmos.staking.v1beta1.UnbondingDelegationEntry: - type: object - properties: - creation_height: - type: string - format: int64 - description: creation_height is the height which the unbonding took place. - completion_time: - type: string - format: date-time - description: completion_time is the unix time for unbonding completion. - initial_balance: - type: string - description: >- - initial_balance defines the tokens initially scheduled to receive at - completion. - balance: - type: string - description: balance defines the tokens to receive at completion. - unbonding_id: - type: string - format: uint64 - title: Incrementing id that uniquely identifies this entry - unbonding_on_hold_ref_count: - type: string - format: int64 - title: >- - Strictly positive if this entry's unbonding has been stopped by - external modules - description: >- - UnbondingDelegationEntry defines an unbonding object with relevant - metadata. - cosmos.staking.v1beta1.Validator: - type: object - properties: - operator_address: - type: string - description: >- - operator_address defines the address of the validator's operator; bech - encoded in JSON. - consensus_pubkey: - description: >- - consensus_pubkey is the consensus public key of the validator, as a - Protobuf Any. - 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: {} - jailed: - type: boolean - description: >- - jailed defined whether the validator has been jailed from bonded - status or not. - status: - description: status is the validator status (bonded/unbonding/unbonded). - type: string - enum: - - BOND_STATUS_UNSPECIFIED - - BOND_STATUS_UNBONDED - - BOND_STATUS_UNBONDING - - BOND_STATUS_BONDED - default: BOND_STATUS_UNSPECIFIED - tokens: - type: string - description: tokens define the delegated tokens (incl. self-delegation). - delegator_shares: - type: string - description: >- - delegator_shares defines total shares issued to a validator's - delegators. - description: - description: description defines the description terms for the validator. - 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. - unbonding_height: - type: string - format: int64 - description: >- - unbonding_height defines, if unbonding, the height at which this - validator has begun unbonding. - unbonding_time: - type: string - format: date-time - description: >- - unbonding_time defines, if unbonding, the min time for the validator - to complete unbonding. - commission: - description: commission defines the commission parameters. - type: object - properties: - commission_rates: - description: >- - commission_rates defines the initial commission rates to be used - for creating a validator. - 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. - update_time: - type: string - format: date-time - description: update_time is the last time the commission rate was changed. - min_self_delegation: - type: string - description: >- - min_self_delegation is the validator's self declared minimum self - delegation. - - - Since: cosmos-sdk 0.46 - unbonding_on_hold_ref_count: - type: string - format: int64 - title: >- - strictly positive if this validator's unbonding has been stopped by - external modules - unbonding_ids: - type: array - items: - type: string - format: uint64 - title: >- - list of unbonding ids, each uniquely identifing an unbonding of this - validator - description: >- - Validator defines a validator, together with the total amount of the - - Validator's bond shares and their exchange rate to coins. Slashing results - in - - a decrease in the exchange rate, allowing correct calculation of future - - undelegations without iterating over delegators. When coins are delegated - to - - this validator, the validator is credited with a delegation whose number - of - - bond shares is based on the amount of coins delegated divided by the - current - - exchange rate. Voting power can be calculated as total bonded shares - - multiplied by exchange rate. - tendermint.types.BlockID: - type: object - properties: - hash: - type: string - format: byte - part_set_header: - type: object - properties: - total: - type: integer - format: int64 - hash: - type: string - format: byte - title: PartsetHeader - title: BlockID - tendermint.types.Header: - type: object - properties: - version: - title: basic block info - type: object - properties: - block: - type: string - format: uint64 - app: - type: string - format: uint64 - description: >- - Consensus captures the consensus rules for processing a block in the - blockchain, - - including all blockchain data structures and the rules of the - application's - - state transition machine. - chain_id: - type: string - height: - type: string - format: int64 - time: - type: string - format: date-time - last_block_id: - title: prev block info - type: object - properties: - hash: - type: string - format: byte - part_set_header: - type: object - properties: - total: - type: integer - format: int64 - hash: - type: string - format: byte - title: PartsetHeader - last_commit_hash: - type: string - format: byte - description: commit from validators from the last block - title: hashes of block data - data_hash: - type: string - format: byte - title: transactions - validators_hash: - type: string - format: byte - description: validators for the current block - title: hashes from the app output from the prev block - next_validators_hash: - type: string - format: byte - title: validators for the next block - consensus_hash: - type: string - format: byte - title: consensus params for current block - app_hash: - type: string - format: byte - title: state after txs from the previous block - last_results_hash: - type: string - format: byte - title: root hash of all results from the txs from the previous block - evidence_hash: - type: string - format: byte - description: evidence included in the block - title: consensus info - proposer_address: - type: string - format: byte - title: original proposer of the block - description: Header defines the structure of a block header. - tendermint.types.PartSetHeader: - type: object - properties: - total: - type: integer - format: int64 - hash: - type: string - format: byte - title: PartsetHeader - tendermint.version.Consensus: - type: object - properties: - block: - type: string - format: uint64 - app: - type: string - format: uint64 - description: >- - Consensus captures the consensus rules for processing a block in the - blockchain, - - including all blockchain data structures and the rules of the - application's - - state transition machine. - 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: - type: object - 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: - type: string - validator_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. - 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: 'Since: cosmos-sdk 0.46' - title: MsgCancelUnbondingDelegationResponse - cosmos.staking.v1beta1.MsgCreateValidator: - 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: - type: string - delegator_address: - 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: - type: string - pubkey: - 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. - - - 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" - } - value: - 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: MsgCreateValidator defines a SDK message for creating a new validator. - cosmos.staking.v1beta1.MsgCreateValidatorResponse: - type: object - description: MsgCreateValidatorResponse defines the Msg/CreateValidator response type. - cosmos.staking.v1beta1.MsgDelegate: - type: object - properties: - delegator_address: - type: string - validator_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: |- - 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: - 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. - 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: - 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: |- - 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: - 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 returns the amount of undelegated coins - description: MsgUndelegateResponse defines the Msg/Undelegate response type. - cosmos.staking.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/staking parameters to update. - - NOTE: All parameters must be supplied. - 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: |- - MsgUpdateParams is the Msg/UpdateParams request type. - - Since: cosmos-sdk 0.47 - cosmos.staking.v1beta1.MsgUpdateParamsResponse: - type: object - description: |- - MsgUpdateParamsResponse defines the response structure for executing a - MsgUpdateParams message. - - Since: cosmos-sdk 0.47 - cosmos.base.abci.v1beta1.ABCIMessageLog: - type: object - properties: - msg_index: - type: integer - format: int64 - log: - type: string - events: - type: array - items: - type: object - properties: - type: - type: string - attributes: - type: array - items: - type: object - properties: - key: - type: string - value: - type: string - description: >- - Attribute defines an attribute wrapper where the key and value - are - - strings instead of raw bytes. - description: |- - StringEvent defines en Event object wrapper where all the attributes - contain key/value pairs that are strings instead of raw bytes. - description: |- - Events contains a slice of Event objects that were emitted during some - execution. - description: >- - ABCIMessageLog defines a structure containing an indexed tx ABCI message - log. - cosmos.base.abci.v1beta1.Attribute: - type: object - properties: - key: - type: string - value: - type: string - description: |- - Attribute defines an attribute wrapper where the key and value are - strings instead of raw bytes. - cosmos.base.abci.v1beta1.GasInfo: - type: object - properties: - gas_wanted: - type: string - format: uint64 - description: GasWanted is the maximum units of work we allow this tx to perform. - gas_used: - type: string - format: uint64 - description: GasUsed is the amount of gas actually consumed. - description: GasInfo defines tx execution gas context. - cosmos.base.abci.v1beta1.Result: - type: object - properties: - data: - type: string - format: byte - description: >- - Data is any data returned from message or handler execution. It MUST - be - - length prefixed in order to separate data from multiple message - executions. - - Deprecated. This field is still populated, but prefer msg_response - instead - - because it also contains the Msg response typeURL. - log: - type: string - description: Log contains the log information from message or handler execution. - events: - type: array - items: - type: object - properties: - type: - type: string - attributes: - type: array - items: - type: object - properties: - key: - type: string - value: - type: string - index: - type: boolean - title: nondeterministic - description: >- - EventAttribute is a single key-value pair, associated with an - event. - description: >- - Event allows application developers to attach additional information - to - - ResponseFinalizeBlock and ResponseCheckTx. - - Later, transactions may be queried using these events. - description: >- - Events contains a slice of Event objects that were emitted during - message - - or handler execution. - msg_responses: - type: array - items: - 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. - - - 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" - } - description: |- - msg_responses contains the Msg handler responses type packed in Anys. - - Since: cosmos-sdk 0.46 - description: Result is the union of ResponseFormat and ResponseCheckTx. - cosmos.base.abci.v1beta1.StringEvent: - type: object - properties: - type: - type: string - attributes: - type: array - items: - type: object - properties: - key: - type: string - value: - type: string - description: |- - Attribute defines an attribute wrapper where the key and value are - strings instead of raw bytes. - description: |- - StringEvent defines en Event object wrapper where all the attributes - contain key/value pairs that are strings instead of raw bytes. - cosmos.base.abci.v1beta1.TxResponse: - type: object - properties: - height: - type: string - format: int64 - title: The block height - txhash: - type: string - description: The transaction hash. - codespace: - type: string - title: Namespace for the Code - code: - type: integer - format: int64 - description: Response code. - data: - type: string - description: Result bytes, if any. - raw_log: - type: string - description: |- - The output of the application's logger (raw string). May be - non-deterministic. - logs: - type: array - items: - type: object - properties: - msg_index: - type: integer - format: int64 - log: - type: string - events: - type: array - items: - type: object - properties: - type: - type: string - attributes: - type: array - items: - type: object - properties: - key: - type: string - value: - type: string - description: >- - Attribute defines an attribute wrapper where the key and - value are - - strings instead of raw bytes. - description: >- - StringEvent defines en Event object wrapper where all the - attributes - - contain key/value pairs that are strings instead of raw bytes. - description: >- - Events contains a slice of Event objects that were emitted - during some - - execution. - description: >- - ABCIMessageLog defines a structure containing an indexed tx ABCI - message log. - description: >- - The output of the application's logger (typed). May be - non-deterministic. - info: - type: string - description: Additional information. May be non-deterministic. - gas_wanted: - type: string - format: int64 - description: Amount of gas requested for transaction. - gas_used: - type: string - format: int64 - description: Amount of gas consumed by transaction. - tx: - description: The request transaction bytes. - 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: {} - timestamp: - type: string - description: >- - Time of the previous block. For heights > 1, it's the weighted median - of - - the timestamps of the valid votes in the block.LastCommit. For height - == 1, - - it's genesis time. - events: - type: array - items: - type: object - properties: - type: - type: string - attributes: - type: array - items: - type: object - properties: - key: - type: string - value: - type: string - index: - type: boolean - title: nondeterministic - description: >- - EventAttribute is a single key-value pair, associated with an - event. - description: >- - Event allows application developers to attach additional information - to - - ResponseFinalizeBlock and ResponseCheckTx. - - Later, transactions may be queried using these events. - description: >- - Events defines all the events emitted by processing a transaction. - Note, - - these events include those emitted by processing all the messages and - those - - emitted from the ante. Whereas Logs contains the events, with - - additional metadata, emitted only by processing the messages. - - - Since: cosmos-sdk 0.42.11, 0.44.5, 0.45 - description: >- - TxResponse defines a structure containing relevant tx data and metadata. - The - - tags are stringified and the log is JSON decoded. - cosmos.crypto.multisig.v1beta1.CompactBitArray: - type: object - properties: - extra_bits_stored: - type: integer - format: int64 - elems: - type: string - format: byte - description: |- - CompactBitArray is an implementation of a space efficient bit array. - This is used to ensure that the encoded data takes up a minimal amount of - space after proto encoding. - This is not thread safe, and is not intended for concurrent usage. - cosmos.tx.signing.v1beta1.SignMode: - type: string - enum: - - SIGN_MODE_UNSPECIFIED - - SIGN_MODE_DIRECT - - SIGN_MODE_TEXTUAL - - SIGN_MODE_DIRECT_AUX - - SIGN_MODE_LEGACY_AMINO_JSON - - SIGN_MODE_EIP_191 - default: SIGN_MODE_UNSPECIFIED - description: |- - SignMode represents a signing mode with its own security guarantees. - - This enum should be considered a registry of all known sign modes - in the Cosmos ecosystem. Apps are not expected to support all known - sign modes. Apps that would like to support custom sign modes are - encouraged to open a small PR against this file to add a new case - to this SignMode enum describing their sign mode so that different - apps have a consistent version of this enum. - - - SIGN_MODE_UNSPECIFIED: SIGN_MODE_UNSPECIFIED specifies an unknown signing mode and will be - rejected. - - SIGN_MODE_DIRECT: SIGN_MODE_DIRECT specifies a signing mode which uses SignDoc and is - verified with raw bytes from Tx. - - SIGN_MODE_TEXTUAL: SIGN_MODE_TEXTUAL is a future signing mode that will verify some - human-readable textual representation on top of the binary representation - from SIGN_MODE_DIRECT. - - Since: cosmos-sdk 0.50 - - SIGN_MODE_DIRECT_AUX: SIGN_MODE_DIRECT_AUX specifies a signing mode which uses - SignDocDirectAux. As opposed to SIGN_MODE_DIRECT, this sign mode does not - require signers signing over other signers' `signer_info`. - - Since: cosmos-sdk 0.46 - - SIGN_MODE_LEGACY_AMINO_JSON: SIGN_MODE_LEGACY_AMINO_JSON is a backwards compatibility mode which uses - Amino JSON and will be removed in the future. - - SIGN_MODE_EIP_191: SIGN_MODE_EIP_191 specifies the sign mode for EIP 191 signing on the Cosmos - SDK. Ref: https://eips.ethereum.org/EIPS/eip-191 - - Currently, SIGN_MODE_EIP_191 is registered as a SignMode enum variant, - but is not implemented on the SDK by default. To enable EIP-191, you need - to pass a custom `TxConfig` that has an implementation of - `SignModeHandler` for EIP-191. The SDK may decide to fully support - EIP-191 in the future. - - Since: cosmos-sdk 0.45.2 - cosmos.tx.v1beta1.AuthInfo: - type: object - properties: - signer_infos: - type: array - items: - type: object - $ref: '#/definitions/cosmos.tx.v1beta1.SignerInfo' - description: >- - signer_infos defines the signing modes for the required signers. The - number - - and order of elements must match the required signers from TxBody's - - messages. The first element is the primary signer and the one which - pays - - the fee. - fee: - description: >- - Fee is the fee and gas limit for the transaction. The first signer is - the - - primary signer and the one which pays the fee. The fee can be - calculated - - based on the cost of evaluating the body and doing signature - verification - - of the signers. This can be estimated via simulation. - type: object - properties: - 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. - title: amount is the amount of coins to be paid as a fee - gas_limit: - type: string - format: uint64 - title: >- - gas_limit is the maximum gas that can be used in transaction - processing - - before an out of gas error occurs - payer: - type: string - description: >- - if unset, the first signer is responsible for paying the fees. If - set, the specified account must pay the fees. - - the payer must be a tx signer (and thus have signed this field in - AuthInfo). - - setting this field does *not* change the ordering of required - signers for the transaction. - granter: - type: string - title: >- - if set, the fee payer (either the first signer or the value of the - payer field) requests that a fee grant be used - - to pay fees instead of the fee payer's own balance. If an - appropriate fee grant does not exist or the chain does - - not support fee grants, this will fail - tip: - description: >- - Tip is the optional tip used for transactions fees paid in another - denom. - - - This field is ignored if the chain didn't enable tips, i.e. didn't add - the - - `TipDecorator` in its posthandler. - - - Since: cosmos-sdk 0.46 - type: object - properties: - 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. - title: amount is the amount of the tip - tipper: - type: string - title: tipper is the address of the account paying for the tip - description: |- - AuthInfo describes the fee and signer modes that are used to sign a - transaction. - cosmos.tx.v1beta1.BroadcastMode: - type: string - enum: - - BROADCAST_MODE_UNSPECIFIED - - BROADCAST_MODE_BLOCK - - BROADCAST_MODE_SYNC - - BROADCAST_MODE_ASYNC - default: BROADCAST_MODE_UNSPECIFIED - description: |- - BroadcastMode specifies the broadcast mode for the TxService.Broadcast RPC - method. - - - BROADCAST_MODE_UNSPECIFIED: zero-value for mode ordering - - BROADCAST_MODE_BLOCK: DEPRECATED: use BROADCAST_MODE_SYNC instead, - BROADCAST_MODE_BLOCK is not supported by the SDK from v0.47.x onwards. - - BROADCAST_MODE_SYNC: BROADCAST_MODE_SYNC defines a tx broadcasting mode where the client waits - for a CheckTx execution response only. - - BROADCAST_MODE_ASYNC: BROADCAST_MODE_ASYNC defines a tx broadcasting mode where the client - returns immediately. - cosmos.tx.v1beta1.BroadcastTxRequest: - type: object - properties: - tx_bytes: - type: string - format: byte - description: tx_bytes is the raw transaction. - mode: - type: string - enum: - - BROADCAST_MODE_UNSPECIFIED - - BROADCAST_MODE_BLOCK - - BROADCAST_MODE_SYNC - - BROADCAST_MODE_ASYNC - default: BROADCAST_MODE_UNSPECIFIED - description: >- - BroadcastMode specifies the broadcast mode for the TxService.Broadcast - RPC - - method. - - - BROADCAST_MODE_UNSPECIFIED: zero-value for mode ordering - - BROADCAST_MODE_BLOCK: DEPRECATED: use BROADCAST_MODE_SYNC instead, - BROADCAST_MODE_BLOCK is not supported by the SDK from v0.47.x onwards. - - BROADCAST_MODE_SYNC: BROADCAST_MODE_SYNC defines a tx broadcasting mode where the client waits - for a CheckTx execution response only. - - BROADCAST_MODE_ASYNC: BROADCAST_MODE_ASYNC defines a tx broadcasting mode where the client - returns immediately. - description: |- - BroadcastTxRequest is the request type for the Service.BroadcastTxRequest - RPC method. - cosmos.tx.v1beta1.BroadcastTxResponse: - type: object - properties: - tx_response: - description: tx_response is the queried TxResponses. - type: object - properties: - height: - type: string - format: int64 - title: The block height - txhash: - type: string - description: The transaction hash. - codespace: - type: string - title: Namespace for the Code - code: - type: integer - format: int64 - description: Response code. - data: - type: string - description: Result bytes, if any. - raw_log: - type: string - description: |- - The output of the application's logger (raw string). May be - non-deterministic. - logs: - type: array - items: - type: object - properties: - msg_index: - type: integer - format: int64 - log: - type: string - events: - type: array - items: - type: object - properties: - type: - type: string - attributes: - type: array - items: - type: object - properties: - key: - type: string - value: - type: string - description: >- - Attribute defines an attribute wrapper where the key - and value are - - strings instead of raw bytes. - description: >- - StringEvent defines en Event object wrapper where all the - attributes - - contain key/value pairs that are strings instead of raw - bytes. - description: >- - Events contains a slice of Event objects that were emitted - during some - - execution. - description: >- - ABCIMessageLog defines a structure containing an indexed tx ABCI - message log. - description: >- - The output of the application's logger (typed). May be - non-deterministic. - info: - type: string - description: Additional information. May be non-deterministic. - gas_wanted: - type: string - format: int64 - description: Amount of gas requested for transaction. - gas_used: - type: string - format: int64 - description: Amount of gas consumed by transaction. - tx: - description: The request transaction bytes. - 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: {} - timestamp: - type: string - description: >- - Time of the previous block. For heights > 1, it's the weighted - median of - - the timestamps of the valid votes in the block.LastCommit. For - height == 1, - - it's genesis time. - events: - type: array - items: - type: object - properties: - type: - type: string - attributes: - type: array - items: - type: object - properties: - key: - type: string - value: - type: string - index: - type: boolean - title: nondeterministic - description: >- - EventAttribute is a single key-value pair, associated with - an event. - description: >- - Event allows application developers to attach additional - information to - - ResponseFinalizeBlock and ResponseCheckTx. - - Later, transactions may be queried using these events. - description: >- - Events defines all the events emitted by processing a transaction. - Note, - - these events include those emitted by processing all the messages - and those - - emitted from the ante. Whereas Logs contains the events, with - - additional metadata, emitted only by processing the messages. - - - Since: cosmos-sdk 0.42.11, 0.44.5, 0.45 - description: |- - BroadcastTxResponse is the response type for the - Service.BroadcastTx method. - cosmos.tx.v1beta1.Fee: - type: object - properties: - 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. - title: amount is the amount of coins to be paid as a fee - gas_limit: - type: string - format: uint64 - title: >- - gas_limit is the maximum gas that can be used in transaction - processing - - before an out of gas error occurs - payer: - type: string - description: >- - if unset, the first signer is responsible for paying the fees. If set, - the specified account must pay the fees. - - the payer must be a tx signer (and thus have signed this field in - AuthInfo). - - setting this field does *not* change the ordering of required signers - for the transaction. - granter: - type: string - title: >- - if set, the fee payer (either the first signer or the value of the - payer field) requests that a fee grant be used - - to pay fees instead of the fee payer's own balance. If an appropriate - fee grant does not exist or the chain does - - not support fee grants, this will fail - description: >- - Fee includes the amount of coins paid in fees and the maximum - - gas to be used by the transaction. The ratio yields an effective - "gasprice", - - which must be above some miminum to be accepted into the mempool. - cosmos.tx.v1beta1.GetBlockWithTxsResponse: - type: object - properties: - txs: - type: array - items: - type: object - $ref: '#/definitions/cosmos.tx.v1beta1.Tx' - description: txs are the transactions in the block. - block_id: - type: object - properties: - hash: - type: string - format: byte - part_set_header: - type: object - properties: - total: - type: integer - format: int64 - hash: - type: string - format: byte - title: PartsetHeader - title: BlockID - block: - type: object - properties: - header: - type: object - properties: - version: - title: basic block info - type: object - properties: - block: - type: string - format: uint64 - app: - type: string - format: uint64 - description: >- - Consensus captures the consensus rules for processing a block - in the blockchain, - - including all blockchain data structures and the rules of the - application's - - state transition machine. - chain_id: - type: string - height: - type: string - format: int64 - time: - type: string - format: date-time - last_block_id: - type: object - properties: - hash: - type: string - format: byte - part_set_header: - type: object - properties: - total: - type: integer - format: int64 - hash: - type: string - format: byte - title: PartsetHeader - title: BlockID - last_commit_hash: - type: string - format: byte - description: commit from validators from the last block - title: hashes of block data - data_hash: - type: string - format: byte - title: transactions - validators_hash: - type: string - format: byte - description: validators for the current block - title: hashes from the app output from the prev block - next_validators_hash: - type: string - format: byte - title: validators for the next block - consensus_hash: - type: string - format: byte - title: consensus params for current block - app_hash: - type: string - format: byte - title: state after txs from the previous block - last_results_hash: - type: string - format: byte - title: root hash of all results from the txs from the previous block - evidence_hash: - type: string - format: byte - description: evidence included in the block - title: consensus info - proposer_address: - type: string - format: byte - title: original proposer of the block - description: Header defines the structure of a block header. - data: - type: object - properties: - txs: - type: array - items: - type: string - format: byte - description: >- - Txs that will be applied by state @ block.Height+1. - - NOTE: not all txs here are valid. We're just agreeing on the - order first. - - This means that block.AppHash does not include these txs. - title: Data contains the set of transactions included in the block - evidence: - type: object - properties: - evidence: - type: array - items: - type: object - properties: - duplicate_vote_evidence: - type: object - properties: - vote_a: - type: object - properties: - type: - type: string - enum: - - SIGNED_MSG_TYPE_UNKNOWN - - SIGNED_MSG_TYPE_PREVOTE - - SIGNED_MSG_TYPE_PRECOMMIT - - SIGNED_MSG_TYPE_PROPOSAL - default: SIGNED_MSG_TYPE_UNKNOWN - description: >- - SignedMsgType is a type of signed message in the - consensus. - - - SIGNED_MSG_TYPE_PREVOTE: Votes - - SIGNED_MSG_TYPE_PROPOSAL: Proposals - height: - type: string - format: int64 - round: - type: integer - format: int32 - block_id: - type: object - properties: - hash: - type: string - format: byte - part_set_header: - type: object - properties: - total: - type: integer - format: int64 - hash: - type: string - format: byte - title: PartsetHeader - title: BlockID - description: zero if vote is nil. - timestamp: - type: string - format: date-time - validator_address: - type: string - format: byte - validator_index: - type: integer - format: int32 - signature: - type: string - format: byte - description: >- - Vote signature by the validator if they - participated in consensus for the - - associated block. - extension: - type: string - format: byte - description: >- - Vote extension provided by the application. Only - valid for precommit - - messages. - extension_signature: - type: string - format: byte - description: >- - Vote extension signature by the validator if - they participated in - - consensus for the associated block. - - Only valid for precommit messages. - description: >- - Vote represents a prevote or precommit vote from - validators for - - consensus. - vote_b: - type: object - properties: - type: - type: string - enum: - - SIGNED_MSG_TYPE_UNKNOWN - - SIGNED_MSG_TYPE_PREVOTE - - SIGNED_MSG_TYPE_PRECOMMIT - - SIGNED_MSG_TYPE_PROPOSAL - default: SIGNED_MSG_TYPE_UNKNOWN - description: >- - SignedMsgType is a type of signed message in the - consensus. - - - SIGNED_MSG_TYPE_PREVOTE: Votes - - SIGNED_MSG_TYPE_PROPOSAL: Proposals - height: - type: string - format: int64 - round: - type: integer - format: int32 - block_id: - type: object - properties: - hash: - type: string - format: byte - part_set_header: - type: object - properties: - total: - type: integer - format: int64 - hash: - type: string - format: byte - title: PartsetHeader - title: BlockID - description: zero if vote is nil. - timestamp: - type: string - format: date-time - validator_address: - type: string - format: byte - validator_index: - type: integer - format: int32 - signature: - type: string - format: byte - description: >- - Vote signature by the validator if they - participated in consensus for the - - associated block. - extension: - type: string - format: byte - description: >- - Vote extension provided by the application. Only - valid for precommit - - messages. - extension_signature: - type: string - format: byte - description: >- - Vote extension signature by the validator if - they participated in - - consensus for the associated block. - - Only valid for precommit messages. - description: >- - Vote represents a prevote or precommit vote from - validators for - - consensus. - total_voting_power: - type: string - format: int64 - validator_power: - type: string - format: int64 - timestamp: - type: string - format: date-time - description: >- - DuplicateVoteEvidence contains evidence of a validator - signed two conflicting votes. - light_client_attack_evidence: - type: object - properties: - conflicting_block: - type: object - properties: - signed_header: - type: object - properties: - header: - type: object - properties: - version: - title: basic block info - type: object - properties: - block: - type: string - format: uint64 - app: - type: string - format: uint64 - description: >- - Consensus captures the consensus rules - for processing a block in the - blockchain, - - including all blockchain data structures - and the rules of the application's - - state transition machine. - chain_id: - type: string - height: - type: string - format: int64 - time: - type: string - format: date-time - last_block_id: - type: object - properties: - hash: - type: string - format: byte - part_set_header: - type: object - properties: - total: - type: integer - format: int64 - hash: - type: string - format: byte - title: PartsetHeader - title: BlockID - last_commit_hash: - type: string - format: byte - description: >- - commit from validators from the last - block - title: hashes of block data - data_hash: - type: string - format: byte - title: transactions - validators_hash: - type: string - format: byte - description: validators for the current block - title: >- - hashes from the app output from the prev - block - next_validators_hash: - type: string - format: byte - title: validators for the next block - consensus_hash: - type: string - format: byte - title: consensus params for current block - app_hash: - type: string - format: byte - title: state after txs from the previous block - last_results_hash: - type: string - format: byte - title: >- - root hash of all results from the txs - from the previous block - evidence_hash: - type: string - format: byte - description: evidence included in the block - title: consensus info - proposer_address: - type: string - format: byte - title: original proposer of the block - description: >- - Header defines the structure of a block - header. - commit: - type: object - properties: - height: - type: string - format: int64 - round: - type: integer - format: int32 - block_id: - type: object - properties: - hash: - type: string - format: byte - part_set_header: - type: object - properties: - total: - type: integer - format: int64 - hash: - type: string - format: byte - title: PartsetHeader - title: BlockID - signatures: - type: array - items: - type: object - properties: - block_id_flag: - type: string - enum: - - BLOCK_ID_FLAG_UNKNOWN - - BLOCK_ID_FLAG_ABSENT - - BLOCK_ID_FLAG_COMMIT - - BLOCK_ID_FLAG_NIL - default: BLOCK_ID_FLAG_UNKNOWN - description: >- - - BLOCK_ID_FLAG_UNKNOWN: indicates an - error condition - - BLOCK_ID_FLAG_ABSENT: the vote was not received - - BLOCK_ID_FLAG_COMMIT: voted for the block that received the majority - - BLOCK_ID_FLAG_NIL: voted for nil - title: >- - BlockIdFlag indicates which BlockID the - signature is for - validator_address: - type: string - format: byte - timestamp: - type: string - format: date-time - signature: - type: string - format: byte - description: >- - CommitSig is a part of the Vote included - in a Commit. - description: >- - Commit contains the evidence that a block - was committed by a set of validators. - validator_set: - type: object - properties: - validators: - type: array - items: - type: object - properties: - address: - type: string - format: byte - pub_key: - type: object - properties: - ed25519: - type: string - format: byte - secp256k1: - type: string - format: byte - title: >- - PublicKey defines the keys available for - use with Validators - voting_power: - type: string - format: int64 - proposer_priority: - type: string - format: int64 - proposer: - type: object - properties: - address: - type: string - format: byte - pub_key: - type: object - properties: - ed25519: - type: string - format: byte - secp256k1: - type: string - format: byte - title: >- - PublicKey defines the keys available for - use with Validators - voting_power: - type: string - format: int64 - proposer_priority: - type: string - format: int64 - total_voting_power: - type: string - format: int64 - common_height: - type: string - format: int64 - byzantine_validators: - type: array - items: - type: object - properties: - address: - type: string - format: byte - pub_key: - type: object - properties: - ed25519: - type: string - format: byte - secp256k1: - type: string - format: byte - title: >- - PublicKey defines the keys available for use - with Validators - voting_power: - type: string - format: int64 - proposer_priority: - type: string - format: int64 - total_voting_power: - type: string - format: int64 - timestamp: - type: string - format: date-time - description: >- - LightClientAttackEvidence contains evidence of a set of - validators attempting to mislead a light client. - last_commit: - type: object - properties: - height: - type: string - format: int64 - round: - type: integer - format: int32 - block_id: - type: object - properties: - hash: - type: string - format: byte - part_set_header: - type: object - properties: - total: - type: integer - format: int64 - hash: - type: string - format: byte - title: PartsetHeader - title: BlockID - signatures: - type: array - items: - type: object - properties: - block_id_flag: - type: string - enum: - - BLOCK_ID_FLAG_UNKNOWN - - BLOCK_ID_FLAG_ABSENT - - BLOCK_ID_FLAG_COMMIT - - BLOCK_ID_FLAG_NIL - default: BLOCK_ID_FLAG_UNKNOWN - description: |- - - BLOCK_ID_FLAG_UNKNOWN: indicates an error condition - - BLOCK_ID_FLAG_ABSENT: the vote was not received - - BLOCK_ID_FLAG_COMMIT: voted for the block that received the majority - - BLOCK_ID_FLAG_NIL: voted for nil - title: BlockIdFlag indicates which BlockID the signature is for - validator_address: - type: string - format: byte - timestamp: - type: string - format: date-time - signature: - type: string - format: byte - description: CommitSig is a part of the Vote included in a Commit. - description: >- - Commit contains the evidence that a block was committed by a set - of validators. - pagination: - description: pagination defines a pagination for the response. - 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: >- - GetBlockWithTxsResponse is the response type for the - Service.GetBlockWithTxs - - method. - - - Since: cosmos-sdk 0.45.2 - cosmos.tx.v1beta1.GetTxResponse: - type: object - properties: - tx: - $ref: '#/definitions/cosmos.tx.v1beta1.Tx' - description: tx is the queried transaction. - tx_response: - description: tx_response is the queried TxResponses. - type: object - properties: - height: - type: string - format: int64 - title: The block height - txhash: - type: string - description: The transaction hash. - codespace: - type: string - title: Namespace for the Code - code: - type: integer - format: int64 - description: Response code. - data: - type: string - description: Result bytes, if any. - raw_log: - type: string - description: |- - The output of the application's logger (raw string). May be - non-deterministic. - logs: - type: array - items: - type: object - properties: - msg_index: - type: integer - format: int64 - log: - type: string - events: - type: array - items: - type: object - properties: - type: - type: string - attributes: - type: array - items: - type: object - properties: - key: - type: string - value: - type: string - description: >- - Attribute defines an attribute wrapper where the key - and value are - - strings instead of raw bytes. - description: >- - StringEvent defines en Event object wrapper where all the - attributes - - contain key/value pairs that are strings instead of raw - bytes. - description: >- - Events contains a slice of Event objects that were emitted - during some - - execution. - description: >- - ABCIMessageLog defines a structure containing an indexed tx ABCI - message log. - description: >- - The output of the application's logger (typed). May be - non-deterministic. - info: - type: string - description: Additional information. May be non-deterministic. - gas_wanted: - type: string - format: int64 - description: Amount of gas requested for transaction. - gas_used: - type: string - format: int64 - description: Amount of gas consumed by transaction. - tx: - description: The request transaction bytes. - 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: {} - timestamp: - type: string - description: >- - Time of the previous block. For heights > 1, it's the weighted - median of - - the timestamps of the valid votes in the block.LastCommit. For - height == 1, - - it's genesis time. - events: - type: array - items: - type: object - properties: - type: - type: string - attributes: - type: array - items: - type: object - properties: - key: - type: string - value: - type: string - index: - type: boolean - title: nondeterministic - description: >- - EventAttribute is a single key-value pair, associated with - an event. - description: >- - Event allows application developers to attach additional - information to - - ResponseFinalizeBlock and ResponseCheckTx. - - Later, transactions may be queried using these events. - description: >- - Events defines all the events emitted by processing a transaction. - Note, - - these events include those emitted by processing all the messages - and those - - emitted from the ante. Whereas Logs contains the events, with - - additional metadata, emitted only by processing the messages. - - - Since: cosmos-sdk 0.42.11, 0.44.5, 0.45 - description: GetTxResponse is the response type for the Service.GetTx method. - cosmos.tx.v1beta1.GetTxsEventResponse: - type: object - properties: - txs: - type: array - items: - type: object - $ref: '#/definitions/cosmos.tx.v1beta1.Tx' - description: txs is the list of queried transactions. - tx_responses: - type: array - items: - type: object - properties: - height: - type: string - format: int64 - title: The block height - txhash: - type: string - description: The transaction hash. - codespace: - type: string - title: Namespace for the Code - code: - type: integer - format: int64 - description: Response code. - data: - type: string - description: Result bytes, if any. - raw_log: - type: string - description: |- - The output of the application's logger (raw string). May be - non-deterministic. - logs: - type: array - items: - type: object - properties: - msg_index: - type: integer - format: int64 - log: - type: string - events: - type: array - items: - type: object - properties: - type: - type: string - attributes: - type: array - items: - type: object - properties: - key: - type: string - value: - type: string - description: >- - Attribute defines an attribute wrapper where the - key and value are - - strings instead of raw bytes. - description: >- - StringEvent defines en Event object wrapper where all - the attributes - - contain key/value pairs that are strings instead of raw - bytes. - description: >- - Events contains a slice of Event objects that were emitted - during some - - execution. - description: >- - ABCIMessageLog defines a structure containing an indexed tx - ABCI message log. - description: >- - The output of the application's logger (typed). May be - non-deterministic. - info: - type: string - description: Additional information. May be non-deterministic. - gas_wanted: - type: string - format: int64 - description: Amount of gas requested for transaction. - gas_used: - type: string - format: int64 - description: Amount of gas consumed by transaction. - tx: - description: The request transaction bytes. - 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: {} - timestamp: - type: string - description: >- - Time of the previous block. For heights > 1, it's the weighted - median of - - the timestamps of the valid votes in the block.LastCommit. For - height == 1, - - it's genesis time. - events: - type: array - items: - type: object - properties: - type: - type: string - attributes: - type: array - items: - type: object - properties: - key: - type: string - value: - type: string - index: - type: boolean - title: nondeterministic - description: >- - EventAttribute is a single key-value pair, associated - with an event. - description: >- - Event allows application developers to attach additional - information to - - ResponseFinalizeBlock and ResponseCheckTx. - - Later, transactions may be queried using these events. - description: >- - Events defines all the events emitted by processing a - transaction. Note, - - these events include those emitted by processing all the - messages and those - - emitted from the ante. Whereas Logs contains the events, with - - additional metadata, emitted only by processing the messages. - - - Since: cosmos-sdk 0.42.11, 0.44.5, 0.45 - description: >- - TxResponse defines a structure containing relevant tx data and - metadata. The - - tags are stringified and the log is JSON decoded. - description: tx_responses is the list of queried TxResponses. - pagination: - description: |- - pagination defines a pagination for the response. - Deprecated post v0.46.x: use total instead. - 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 - total: - type: string - format: uint64 - title: total is total number of results available - description: |- - GetTxsEventResponse is the response type for the Service.TxsByEvents - RPC method. - cosmos.tx.v1beta1.ModeInfo: - type: object - properties: - single: - title: single represents a single signer - type: object - properties: - mode: - title: mode is the signing mode of the single signer - type: string - enum: - - SIGN_MODE_UNSPECIFIED - - SIGN_MODE_DIRECT - - SIGN_MODE_TEXTUAL - - SIGN_MODE_DIRECT_AUX - - SIGN_MODE_LEGACY_AMINO_JSON - - SIGN_MODE_EIP_191 - default: SIGN_MODE_UNSPECIFIED - description: >- - SignMode represents a signing mode with its own security - guarantees. - - - This enum should be considered a registry of all known sign modes - - in the Cosmos ecosystem. Apps are not expected to support all - known - - sign modes. Apps that would like to support custom sign modes are - - encouraged to open a small PR against this file to add a new case - - to this SignMode enum describing their sign mode so that different - - apps have a consistent version of this enum. - - - SIGN_MODE_UNSPECIFIED: SIGN_MODE_UNSPECIFIED specifies an unknown signing mode and will be - rejected. - - SIGN_MODE_DIRECT: SIGN_MODE_DIRECT specifies a signing mode which uses SignDoc and is - verified with raw bytes from Tx. - - SIGN_MODE_TEXTUAL: SIGN_MODE_TEXTUAL is a future signing mode that will verify some - human-readable textual representation on top of the binary - representation - - from SIGN_MODE_DIRECT. - - - Since: cosmos-sdk 0.50 - - SIGN_MODE_DIRECT_AUX: SIGN_MODE_DIRECT_AUX specifies a signing mode which uses - SignDocDirectAux. As opposed to SIGN_MODE_DIRECT, this sign mode - does not - - require signers signing over other signers' `signer_info`. - - - Since: cosmos-sdk 0.46 - - SIGN_MODE_LEGACY_AMINO_JSON: SIGN_MODE_LEGACY_AMINO_JSON is a backwards compatibility mode which uses - Amino JSON and will be removed in the future. - - SIGN_MODE_EIP_191: SIGN_MODE_EIP_191 specifies the sign mode for EIP 191 signing on the Cosmos - SDK. Ref: https://eips.ethereum.org/EIPS/eip-191 - - - Currently, SIGN_MODE_EIP_191 is registered as a SignMode enum - variant, - - but is not implemented on the SDK by default. To enable EIP-191, - you need - - to pass a custom `TxConfig` that has an implementation of - - `SignModeHandler` for EIP-191. The SDK may decide to fully support - - EIP-191 in the future. - - - Since: cosmos-sdk 0.45.2 - multi: - $ref: '#/definitions/cosmos.tx.v1beta1.ModeInfo.Multi' - title: multi represents a nested multisig signer - description: ModeInfo describes the signing mode of a single or nested multisig signer. - cosmos.tx.v1beta1.ModeInfo.Multi: - type: object - properties: - bitarray: - title: bitarray specifies which keys within the multisig are signing - type: object - properties: - extra_bits_stored: - type: integer - format: int64 - elems: - type: string - format: byte - description: >- - CompactBitArray is an implementation of a space efficient bit array. - - This is used to ensure that the encoded data takes up a minimal amount - of - - space after proto encoding. - - This is not thread safe, and is not intended for concurrent usage. - mode_infos: - type: array - items: - type: object - $ref: '#/definitions/cosmos.tx.v1beta1.ModeInfo' - title: |- - mode_infos is the corresponding modes of the signers of the multisig - which could include nested multisig public keys - title: Multi is the mode info for a multisig public key - cosmos.tx.v1beta1.ModeInfo.Single: - type: object - properties: - mode: - title: mode is the signing mode of the single signer - type: string - enum: - - SIGN_MODE_UNSPECIFIED - - SIGN_MODE_DIRECT - - SIGN_MODE_TEXTUAL - - SIGN_MODE_DIRECT_AUX - - SIGN_MODE_LEGACY_AMINO_JSON - - SIGN_MODE_EIP_191 - default: SIGN_MODE_UNSPECIFIED - description: >- - SignMode represents a signing mode with its own security guarantees. - - - This enum should be considered a registry of all known sign modes - - in the Cosmos ecosystem. Apps are not expected to support all known - - sign modes. Apps that would like to support custom sign modes are - - encouraged to open a small PR against this file to add a new case - - to this SignMode enum describing their sign mode so that different - - apps have a consistent version of this enum. - - - SIGN_MODE_UNSPECIFIED: SIGN_MODE_UNSPECIFIED specifies an unknown signing mode and will be - rejected. - - SIGN_MODE_DIRECT: SIGN_MODE_DIRECT specifies a signing mode which uses SignDoc and is - verified with raw bytes from Tx. - - SIGN_MODE_TEXTUAL: SIGN_MODE_TEXTUAL is a future signing mode that will verify some - human-readable textual representation on top of the binary - representation - - from SIGN_MODE_DIRECT. - - - Since: cosmos-sdk 0.50 - - SIGN_MODE_DIRECT_AUX: SIGN_MODE_DIRECT_AUX specifies a signing mode which uses - SignDocDirectAux. As opposed to SIGN_MODE_DIRECT, this sign mode does - not - - require signers signing over other signers' `signer_info`. - - - Since: cosmos-sdk 0.46 - - SIGN_MODE_LEGACY_AMINO_JSON: SIGN_MODE_LEGACY_AMINO_JSON is a backwards compatibility mode which uses - Amino JSON and will be removed in the future. - - SIGN_MODE_EIP_191: SIGN_MODE_EIP_191 specifies the sign mode for EIP 191 signing on the Cosmos - SDK. Ref: https://eips.ethereum.org/EIPS/eip-191 - - - Currently, SIGN_MODE_EIP_191 is registered as a SignMode enum variant, - - but is not implemented on the SDK by default. To enable EIP-191, you - need - - to pass a custom `TxConfig` that has an implementation of - - `SignModeHandler` for EIP-191. The SDK may decide to fully support - - EIP-191 in the future. - - - Since: cosmos-sdk 0.45.2 - title: |- - Single is the mode info for a single signer. It is structured as a message - to allow for additional fields such as locale for SIGN_MODE_TEXTUAL in the - future - cosmos.tx.v1beta1.OrderBy: - type: string - enum: - - ORDER_BY_UNSPECIFIED - - ORDER_BY_ASC - - ORDER_BY_DESC - default: ORDER_BY_UNSPECIFIED - description: >- - - ORDER_BY_UNSPECIFIED: ORDER_BY_UNSPECIFIED specifies an unknown sorting - order. OrderBy defaults - - to ASC in this case. - - ORDER_BY_ASC: ORDER_BY_ASC defines ascending order - - ORDER_BY_DESC: ORDER_BY_DESC defines descending order - title: OrderBy defines the sorting order - cosmos.tx.v1beta1.SignerInfo: - type: object - properties: - public_key: - description: >- - public_key is the public key of the signer. It is optional for - accounts - - that already exist in state. If unset, the verifier can use the - required \ - - signer address for this position and lookup the public key. - 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: {} - mode_info: - $ref: '#/definitions/cosmos.tx.v1beta1.ModeInfo' - title: |- - mode_info describes the signing mode of the signer and is a nested - structure to support nested multisig pubkey's - sequence: - type: string - format: uint64 - description: >- - sequence is the sequence of the account, which describes the - - number of committed transactions signed by a given address. It is used - to - - prevent replay attacks. - description: |- - SignerInfo describes the public key and signing mode of a single top-level - signer. - cosmos.tx.v1beta1.SimulateRequest: - type: object - properties: - tx: - $ref: '#/definitions/cosmos.tx.v1beta1.Tx' - description: |- - tx is the transaction to simulate. - Deprecated. Send raw tx bytes instead. - tx_bytes: - type: string - format: byte - description: |- - tx_bytes is the raw transaction. - - Since: cosmos-sdk 0.43 - description: |- - SimulateRequest is the request type for the Service.Simulate - RPC method. - cosmos.tx.v1beta1.SimulateResponse: - type: object - properties: - gas_info: - description: gas_info is the information about gas used in the simulation. - type: object - properties: - gas_wanted: - type: string - format: uint64 - description: >- - GasWanted is the maximum units of work we allow this tx to - perform. - gas_used: - type: string - format: uint64 - description: GasUsed is the amount of gas actually consumed. - result: - description: result is the result of the simulation. - type: object - properties: - data: - type: string - format: byte - description: >- - Data is any data returned from message or handler execution. It - MUST be - - length prefixed in order to separate data from multiple message - executions. - - Deprecated. This field is still populated, but prefer msg_response - instead - - because it also contains the Msg response typeURL. - log: - type: string - description: >- - Log contains the log information from message or handler - execution. - events: - type: array - items: - type: object - properties: - type: - type: string - attributes: - type: array - items: - type: object - properties: - key: - type: string - value: - type: string - index: - type: boolean - title: nondeterministic - description: >- - EventAttribute is a single key-value pair, associated with - an event. - description: >- - Event allows application developers to attach additional - information to - - ResponseFinalizeBlock and ResponseCheckTx. - - Later, transactions may be queried using these events. - description: >- - Events contains a slice of Event objects that were emitted during - message - - or handler execution. - msg_responses: - type: array - items: - 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. - - - 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" - } - description: >- - msg_responses contains the Msg handler responses type packed in - Anys. - - - Since: cosmos-sdk 0.46 - description: |- - SimulateResponse is the response type for the - Service.SimulateRPC method. - cosmos.tx.v1beta1.Tip: - type: object - properties: - 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. - title: amount is the amount of the tip - tipper: - type: string - title: tipper is the address of the account paying for the tip - description: |- - Tip is the tip used for meta-transactions. - - Since: cosmos-sdk 0.46 - cosmos.tx.v1beta1.Tx: - type: object - properties: - body: - title: body is the processable content of the transaction - type: object - properties: - messages: - type: array - items: - 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. - - - 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" - } - description: >- - messages is a list of messages to be executed. The required - signers of - - those messages define the number and order of elements in - AuthInfo's - - signer_infos and Tx's signatures. Each required signer address is - added to - - the list only the first time it occurs. - - By convention, the first required signer (usually from the first - message) - - is referred to as the primary signer and pays the fee for the - whole - - transaction. - memo: - type: string - description: >- - memo is any arbitrary note/comment to be added to the transaction. - - WARNING: in clients, any publicly exposed text should not be - called memo, - - but should be called `note` instead (see - https://github.com/cosmos/cosmos-sdk/issues/9122). - timeout_height: - type: string - format: uint64 - title: |- - timeout is the block height after which this transaction will not - be processed by the chain - extension_options: - type: array - items: - 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. - - - 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" - } - title: >- - extension_options are arbitrary options that can be added by - chains - - when the default options are not sufficient. If any of these are - present - - and can't be handled, the transaction will be rejected - non_critical_extension_options: - type: array - items: - 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. - - - 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" - } - title: >- - extension_options are arbitrary options that can be added by - chains - - when the default options are not sufficient. If any of these are - present - - and can't be handled, they will be ignored - description: TxBody is the body of a transaction that all signers sign over. - auth_info: - $ref: '#/definitions/cosmos.tx.v1beta1.AuthInfo' - title: |- - auth_info is the authorization related content of the transaction, - specifically signers, signer modes and fee - signatures: - type: array - items: - type: string - format: byte - description: >- - signatures is a list of signatures that matches the length and order - of - - AuthInfo's signer_infos to allow connecting signature meta information - like - - public key and signing mode by position. - description: Tx is the standard type used for broadcasting transactions. - cosmos.tx.v1beta1.TxBody: - type: object - properties: - messages: - type: array - items: - 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. - - - 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" - } - description: >- - messages is a list of messages to be executed. The required signers of - - those messages define the number and order of elements in AuthInfo's - - signer_infos and Tx's signatures. Each required signer address is - added to - - the list only the first time it occurs. - - By convention, the first required signer (usually from the first - message) - - is referred to as the primary signer and pays the fee for the whole - - transaction. - memo: - type: string - description: >- - memo is any arbitrary note/comment to be added to the transaction. - - WARNING: in clients, any publicly exposed text should not be called - memo, - - but should be called `note` instead (see - https://github.com/cosmos/cosmos-sdk/issues/9122). - timeout_height: - type: string - format: uint64 - title: |- - timeout is the block height after which this transaction will not - be processed by the chain - extension_options: - type: array - items: - 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. - - - 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" - } - title: >- - extension_options are arbitrary options that can be added by chains - - when the default options are not sufficient. If any of these are - present - - and can't be handled, the transaction will be rejected - non_critical_extension_options: - type: array - items: - 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. - - - 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" - } - title: >- - extension_options are arbitrary options that can be added by chains - - when the default options are not sufficient. If any of these are - present - - and can't be handled, they will be ignored - description: TxBody is the body of a transaction that all signers sign over. - cosmos.tx.v1beta1.TxDecodeAminoRequest: - type: object - properties: - amino_binary: - type: string - format: byte - description: |- - TxDecodeAminoRequest is the request type for the Service.TxDecodeAmino - RPC method. - - Since: cosmos-sdk 0.47 - cosmos.tx.v1beta1.TxDecodeAminoResponse: - type: object - properties: - amino_json: - type: string - description: |- - TxDecodeAminoResponse is the response type for the Service.TxDecodeAmino - RPC method. - - Since: cosmos-sdk 0.47 - cosmos.tx.v1beta1.TxDecodeRequest: - type: object - properties: - tx_bytes: - type: string - format: byte - description: tx_bytes is the raw transaction. - description: |- - TxDecodeRequest is the request type for the Service.TxDecode - RPC method. - - Since: cosmos-sdk 0.47 - cosmos.tx.v1beta1.TxDecodeResponse: - type: object - properties: - tx: - $ref: '#/definitions/cosmos.tx.v1beta1.Tx' - description: tx is the decoded transaction. - description: |- - TxDecodeResponse is the response type for the - Service.TxDecode method. - - Since: cosmos-sdk 0.47 - cosmos.tx.v1beta1.TxEncodeAminoRequest: - type: object - properties: - amino_json: - type: string - description: |- - TxEncodeAminoRequest is the request type for the Service.TxEncodeAmino - RPC method. - - Since: cosmos-sdk 0.47 - cosmos.tx.v1beta1.TxEncodeAminoResponse: - type: object - properties: - amino_binary: - type: string - format: byte - description: |- - TxEncodeAminoResponse is the response type for the Service.TxEncodeAmino - RPC method. - - Since: cosmos-sdk 0.47 - cosmos.tx.v1beta1.TxEncodeRequest: - type: object - properties: - tx: - $ref: '#/definitions/cosmos.tx.v1beta1.Tx' - description: tx is the transaction to encode. - description: |- - TxEncodeRequest is the request type for the Service.TxEncode - RPC method. - - Since: cosmos-sdk 0.47 - cosmos.tx.v1beta1.TxEncodeResponse: - type: object - properties: - tx_bytes: - type: string - format: byte - description: tx_bytes is the encoded transaction bytes. - description: |- - TxEncodeResponse is the response type for the - Service.TxEncode method. - - Since: cosmos-sdk 0.47 - tendermint.abci.Event: - type: object - properties: - type: - type: string - attributes: - type: array - items: - type: object - properties: - key: - type: string - value: - type: string - index: - type: boolean - title: nondeterministic - description: EventAttribute is a single key-value pair, associated with an event. - description: |- - Event allows application developers to attach additional information to - ResponseFinalizeBlock and ResponseCheckTx. - Later, transactions may be queried using these events. - tendermint.abci.EventAttribute: - type: object - properties: - key: - type: string - value: - type: string - index: - type: boolean - title: nondeterministic - description: EventAttribute is a single key-value pair, associated with an event. - tendermint.crypto.PublicKey: - type: object - properties: - ed25519: - type: string - format: byte - secp256k1: - type: string - format: byte - title: PublicKey defines the keys available for use with Validators - tendermint.types.Block: - type: object - properties: - header: - type: object - properties: - version: - title: basic block info - type: object - properties: - block: - type: string - format: uint64 - app: - type: string - format: uint64 - description: >- - Consensus captures the consensus rules for processing a block in - the blockchain, - - including all blockchain data structures and the rules of the - application's - - state transition machine. - chain_id: - type: string - height: - type: string - format: int64 - time: - type: string - format: date-time - last_block_id: - type: object - properties: - hash: - type: string - format: byte - part_set_header: - type: object - properties: - total: - type: integer - format: int64 - hash: - type: string - format: byte - title: PartsetHeader - title: BlockID - last_commit_hash: - type: string - format: byte - description: commit from validators from the last block - title: hashes of block data - data_hash: - type: string - format: byte - title: transactions - validators_hash: - type: string - format: byte - description: validators for the current block - title: hashes from the app output from the prev block - next_validators_hash: - type: string - format: byte - title: validators for the next block - consensus_hash: - type: string - format: byte - title: consensus params for current block - app_hash: - type: string - format: byte - title: state after txs from the previous block - last_results_hash: - type: string - format: byte - title: root hash of all results from the txs from the previous block - evidence_hash: - type: string - format: byte - description: evidence included in the block - title: consensus info - proposer_address: - type: string - format: byte - title: original proposer of the block - description: Header defines the structure of a block header. - data: - type: object - properties: - txs: - type: array - items: - type: string - format: byte - description: >- - Txs that will be applied by state @ block.Height+1. - - NOTE: not all txs here are valid. We're just agreeing on the - order first. - - This means that block.AppHash does not include these txs. - title: Data contains the set of transactions included in the block - evidence: - type: object - properties: - evidence: - type: array - items: - type: object - properties: - duplicate_vote_evidence: - type: object - properties: - vote_a: - type: object - properties: - type: - type: string - enum: - - SIGNED_MSG_TYPE_UNKNOWN - - SIGNED_MSG_TYPE_PREVOTE - - SIGNED_MSG_TYPE_PRECOMMIT - - SIGNED_MSG_TYPE_PROPOSAL - default: SIGNED_MSG_TYPE_UNKNOWN - description: >- - SignedMsgType is a type of signed message in the - consensus. - - - SIGNED_MSG_TYPE_PREVOTE: Votes - - SIGNED_MSG_TYPE_PROPOSAL: Proposals - height: - type: string - format: int64 - round: - type: integer - format: int32 - block_id: - type: object - properties: - hash: - type: string - format: byte - part_set_header: - type: object - properties: - total: - type: integer - format: int64 - hash: - type: string - format: byte - title: PartsetHeader - title: BlockID - description: zero if vote is nil. - timestamp: - type: string - format: date-time - validator_address: - type: string - format: byte - validator_index: - type: integer - format: int32 - signature: - type: string - format: byte - description: >- - Vote signature by the validator if they participated - in consensus for the - - associated block. - extension: - type: string - format: byte - description: >- - Vote extension provided by the application. Only - valid for precommit - - messages. - extension_signature: - type: string - format: byte - description: >- - Vote extension signature by the validator if they - participated in - - consensus for the associated block. - - Only valid for precommit messages. - description: >- - Vote represents a prevote or precommit vote from - validators for - - consensus. - vote_b: - type: object - properties: - type: - type: string - enum: - - SIGNED_MSG_TYPE_UNKNOWN - - SIGNED_MSG_TYPE_PREVOTE - - SIGNED_MSG_TYPE_PRECOMMIT - - SIGNED_MSG_TYPE_PROPOSAL - default: SIGNED_MSG_TYPE_UNKNOWN - description: >- - SignedMsgType is a type of signed message in the - consensus. - - - SIGNED_MSG_TYPE_PREVOTE: Votes - - SIGNED_MSG_TYPE_PROPOSAL: Proposals - height: - type: string - format: int64 - round: - type: integer - format: int32 - block_id: - type: object - properties: - hash: - type: string - format: byte - part_set_header: - type: object - properties: - total: - type: integer - format: int64 - hash: - type: string - format: byte - title: PartsetHeader - title: BlockID - description: zero if vote is nil. - timestamp: - type: string - format: date-time - validator_address: - type: string - format: byte - validator_index: - type: integer - format: int32 - signature: - type: string - format: byte - description: >- - Vote signature by the validator if they participated - in consensus for the - - associated block. - extension: - type: string - format: byte - description: >- - Vote extension provided by the application. Only - valid for precommit - - messages. - extension_signature: - type: string - format: byte - description: >- - Vote extension signature by the validator if they - participated in - - consensus for the associated block. - - Only valid for precommit messages. - description: >- - Vote represents a prevote or precommit vote from - validators for - - consensus. - total_voting_power: - type: string - format: int64 - validator_power: - type: string - format: int64 - timestamp: - type: string - format: date-time - description: >- - DuplicateVoteEvidence contains evidence of a validator - signed two conflicting votes. - light_client_attack_evidence: - type: object - properties: - conflicting_block: - type: object - properties: - signed_header: - type: object - properties: - header: - type: object - properties: - version: - title: basic block info - type: object - properties: - block: - type: string - format: uint64 - app: - type: string - format: uint64 - description: >- - Consensus captures the consensus rules for - processing a block in the blockchain, - - including all blockchain data structures and - the rules of the application's - - state transition machine. - chain_id: - type: string - height: - type: string - format: int64 - time: - type: string - format: date-time - last_block_id: - type: object - properties: - hash: - type: string - format: byte - part_set_header: - type: object - properties: - total: - type: integer - format: int64 - hash: - type: string - format: byte - title: PartsetHeader - title: BlockID - last_commit_hash: - type: string - format: byte - description: commit from validators from the last block - title: hashes of block data - data_hash: - type: string - format: byte - title: transactions - validators_hash: - type: string - format: byte - description: validators for the current block - title: >- - hashes from the app output from the prev - block - next_validators_hash: - type: string - format: byte - title: validators for the next block - consensus_hash: - type: string - format: byte - title: consensus params for current block - app_hash: - type: string - format: byte - title: state after txs from the previous block - last_results_hash: - type: string - format: byte - title: >- - root hash of all results from the txs from - the previous block - evidence_hash: - type: string - format: byte - description: evidence included in the block - title: consensus info - proposer_address: - type: string - format: byte - title: original proposer of the block - description: Header defines the structure of a block header. - commit: - type: object - properties: - height: - type: string - format: int64 - round: - type: integer - format: int32 - block_id: - type: object - properties: - hash: - type: string - format: byte - part_set_header: - type: object - properties: - total: - type: integer - format: int64 - hash: - type: string - format: byte - title: PartsetHeader - title: BlockID - signatures: - type: array - items: - type: object - properties: - block_id_flag: - type: string - enum: - - BLOCK_ID_FLAG_UNKNOWN - - BLOCK_ID_FLAG_ABSENT - - BLOCK_ID_FLAG_COMMIT - - BLOCK_ID_FLAG_NIL - default: BLOCK_ID_FLAG_UNKNOWN - description: >- - - BLOCK_ID_FLAG_UNKNOWN: indicates an - error condition - - BLOCK_ID_FLAG_ABSENT: the vote was not received - - BLOCK_ID_FLAG_COMMIT: voted for the block that received the majority - - BLOCK_ID_FLAG_NIL: voted for nil - title: >- - BlockIdFlag indicates which BlockID the - signature is for - validator_address: - type: string - format: byte - timestamp: - type: string - format: date-time - signature: - type: string - format: byte - description: >- - CommitSig is a part of the Vote included - in a Commit. - description: >- - Commit contains the evidence that a block was - committed by a set of validators. - validator_set: - type: object - properties: - validators: - type: array - items: - type: object - properties: - address: - type: string - format: byte - pub_key: - type: object - properties: - ed25519: - type: string - format: byte - secp256k1: - type: string - format: byte - title: >- - PublicKey defines the keys available for - use with Validators - voting_power: - type: string - format: int64 - proposer_priority: - type: string - format: int64 - proposer: - type: object - properties: - address: - type: string - format: byte - pub_key: - type: object - properties: - ed25519: - type: string - format: byte - secp256k1: - type: string - format: byte - title: >- - PublicKey defines the keys available for use - with Validators - voting_power: - type: string - format: int64 - proposer_priority: - type: string - format: int64 - total_voting_power: - type: string - format: int64 - common_height: - type: string - format: int64 - byzantine_validators: - type: array - items: - type: object - properties: - address: - type: string - format: byte - pub_key: - type: object - properties: - ed25519: - type: string - format: byte - secp256k1: - type: string - format: byte - title: >- - PublicKey defines the keys available for use with - Validators - voting_power: - type: string - format: int64 - proposer_priority: - type: string - format: int64 - total_voting_power: - type: string - format: int64 - timestamp: - type: string - format: date-time - description: >- - LightClientAttackEvidence contains evidence of a set of - validators attempting to mislead a light client. - last_commit: - type: object - properties: - height: - type: string - format: int64 - round: - type: integer - format: int32 - block_id: - type: object - properties: - hash: - type: string - format: byte - part_set_header: - type: object - properties: - total: - type: integer - format: int64 - hash: - type: string - format: byte - title: PartsetHeader - title: BlockID - signatures: - type: array - items: - type: object - properties: - block_id_flag: - type: string - enum: - - BLOCK_ID_FLAG_UNKNOWN - - BLOCK_ID_FLAG_ABSENT - - BLOCK_ID_FLAG_COMMIT - - BLOCK_ID_FLAG_NIL - default: BLOCK_ID_FLAG_UNKNOWN - description: |- - - BLOCK_ID_FLAG_UNKNOWN: indicates an error condition - - BLOCK_ID_FLAG_ABSENT: the vote was not received - - BLOCK_ID_FLAG_COMMIT: voted for the block that received the majority - - BLOCK_ID_FLAG_NIL: voted for nil - title: BlockIdFlag indicates which BlockID the signature is for - validator_address: - type: string - format: byte - timestamp: - type: string - format: date-time - signature: - type: string - format: byte - description: CommitSig is a part of the Vote included in a Commit. - description: >- - Commit contains the evidence that a block was committed by a set of - validators. - tendermint.types.BlockIDFlag: - type: string - enum: - - BLOCK_ID_FLAG_UNKNOWN - - BLOCK_ID_FLAG_ABSENT - - BLOCK_ID_FLAG_COMMIT - - BLOCK_ID_FLAG_NIL - default: BLOCK_ID_FLAG_UNKNOWN - description: |- - - BLOCK_ID_FLAG_UNKNOWN: indicates an error condition - - BLOCK_ID_FLAG_ABSENT: the vote was not received - - BLOCK_ID_FLAG_COMMIT: voted for the block that received the majority - - BLOCK_ID_FLAG_NIL: voted for nil - title: BlockIdFlag indicates which BlockID the signature is for - tendermint.types.Commit: - type: object - properties: - height: - type: string - format: int64 - round: - type: integer - format: int32 - block_id: - type: object - properties: - hash: - type: string - format: byte - part_set_header: - type: object - properties: - total: - type: integer - format: int64 - hash: - type: string - format: byte - title: PartsetHeader - title: BlockID - signatures: - type: array - items: - type: object - properties: - block_id_flag: - type: string - enum: - - BLOCK_ID_FLAG_UNKNOWN - - BLOCK_ID_FLAG_ABSENT - - BLOCK_ID_FLAG_COMMIT - - BLOCK_ID_FLAG_NIL - default: BLOCK_ID_FLAG_UNKNOWN - description: |- - - BLOCK_ID_FLAG_UNKNOWN: indicates an error condition - - BLOCK_ID_FLAG_ABSENT: the vote was not received - - BLOCK_ID_FLAG_COMMIT: voted for the block that received the majority - - BLOCK_ID_FLAG_NIL: voted for nil - title: BlockIdFlag indicates which BlockID the signature is for - validator_address: - type: string - format: byte - timestamp: - type: string - format: date-time - signature: - type: string - format: byte - description: CommitSig is a part of the Vote included in a Commit. - description: >- - Commit contains the evidence that a block was committed by a set of - validators. - tendermint.types.CommitSig: - type: object - properties: - block_id_flag: - type: string - enum: - - BLOCK_ID_FLAG_UNKNOWN - - BLOCK_ID_FLAG_ABSENT - - BLOCK_ID_FLAG_COMMIT - - BLOCK_ID_FLAG_NIL - default: BLOCK_ID_FLAG_UNKNOWN - description: |- - - BLOCK_ID_FLAG_UNKNOWN: indicates an error condition - - BLOCK_ID_FLAG_ABSENT: the vote was not received - - BLOCK_ID_FLAG_COMMIT: voted for the block that received the majority - - BLOCK_ID_FLAG_NIL: voted for nil - title: BlockIdFlag indicates which BlockID the signature is for - validator_address: - type: string - format: byte - timestamp: - type: string - format: date-time - signature: - type: string - format: byte - description: CommitSig is a part of the Vote included in a Commit. - tendermint.types.Data: - type: object - properties: - txs: - type: array - items: - type: string - format: byte - description: >- - Txs that will be applied by state @ block.Height+1. - - NOTE: not all txs here are valid. We're just agreeing on the order - first. - - This means that block.AppHash does not include these txs. - title: Data contains the set of transactions included in the block - tendermint.types.DuplicateVoteEvidence: - type: object - properties: - vote_a: - type: object - properties: - type: - type: string - enum: - - SIGNED_MSG_TYPE_UNKNOWN - - SIGNED_MSG_TYPE_PREVOTE - - SIGNED_MSG_TYPE_PRECOMMIT - - SIGNED_MSG_TYPE_PROPOSAL - default: SIGNED_MSG_TYPE_UNKNOWN - description: |- - SignedMsgType is a type of signed message in the consensus. - - - SIGNED_MSG_TYPE_PREVOTE: Votes - - SIGNED_MSG_TYPE_PROPOSAL: Proposals - height: - type: string - format: int64 - round: - type: integer - format: int32 - block_id: - type: object - properties: - hash: - type: string - format: byte - part_set_header: - type: object - properties: - total: - type: integer - format: int64 - hash: - type: string - format: byte - title: PartsetHeader - title: BlockID - description: zero if vote is nil. - timestamp: - type: string - format: date-time - validator_address: - type: string - format: byte - validator_index: - type: integer - format: int32 - signature: - type: string - format: byte - description: >- - Vote signature by the validator if they participated in consensus - for the - - associated block. - extension: - type: string - format: byte - description: >- - Vote extension provided by the application. Only valid for - precommit - - messages. - extension_signature: - type: string - format: byte - description: |- - Vote extension signature by the validator if they participated in - consensus for the associated block. - Only valid for precommit messages. - description: |- - Vote represents a prevote or precommit vote from validators for - consensus. - vote_b: - type: object - properties: - type: - type: string - enum: - - SIGNED_MSG_TYPE_UNKNOWN - - SIGNED_MSG_TYPE_PREVOTE - - SIGNED_MSG_TYPE_PRECOMMIT - - SIGNED_MSG_TYPE_PROPOSAL - default: SIGNED_MSG_TYPE_UNKNOWN - description: |- - SignedMsgType is a type of signed message in the consensus. - - - SIGNED_MSG_TYPE_PREVOTE: Votes - - SIGNED_MSG_TYPE_PROPOSAL: Proposals - height: - type: string - format: int64 - round: - type: integer - format: int32 - block_id: - type: object - properties: - hash: - type: string - format: byte - part_set_header: - type: object - properties: - total: - type: integer - format: int64 - hash: - type: string - format: byte - title: PartsetHeader - title: BlockID - description: zero if vote is nil. - timestamp: - type: string - format: date-time - validator_address: - type: string - format: byte - validator_index: - type: integer - format: int32 - signature: - type: string - format: byte - description: >- - Vote signature by the validator if they participated in consensus - for the - - associated block. - extension: - type: string - format: byte - description: >- - Vote extension provided by the application. Only valid for - precommit - - messages. - extension_signature: - type: string - format: byte - description: |- - Vote extension signature by the validator if they participated in - consensus for the associated block. - Only valid for precommit messages. - description: |- - Vote represents a prevote or precommit vote from validators for - consensus. - total_voting_power: - type: string - format: int64 - validator_power: - type: string - format: int64 - timestamp: - type: string - format: date-time - description: >- - DuplicateVoteEvidence contains evidence of a validator signed two - conflicting votes. - tendermint.types.Evidence: - type: object - properties: - duplicate_vote_evidence: - type: object - properties: - vote_a: - type: object - properties: - type: - type: string - enum: - - SIGNED_MSG_TYPE_UNKNOWN - - SIGNED_MSG_TYPE_PREVOTE - - SIGNED_MSG_TYPE_PRECOMMIT - - SIGNED_MSG_TYPE_PROPOSAL - default: SIGNED_MSG_TYPE_UNKNOWN - description: |- - SignedMsgType is a type of signed message in the consensus. - - - SIGNED_MSG_TYPE_PREVOTE: Votes - - SIGNED_MSG_TYPE_PROPOSAL: Proposals - height: - type: string - format: int64 - round: - type: integer - format: int32 - block_id: - type: object - properties: - hash: - type: string - format: byte - part_set_header: - type: object - properties: - total: - type: integer - format: int64 - hash: - type: string - format: byte - title: PartsetHeader - title: BlockID - description: zero if vote is nil. - timestamp: - type: string - format: date-time - validator_address: - type: string - format: byte - validator_index: - type: integer - format: int32 - signature: - type: string - format: byte - description: >- - Vote signature by the validator if they participated in - consensus for the - - associated block. - extension: - type: string - format: byte - description: >- - Vote extension provided by the application. Only valid for - precommit - - messages. - extension_signature: - type: string - format: byte - description: >- - Vote extension signature by the validator if they participated - in - - consensus for the associated block. - - Only valid for precommit messages. - description: |- - Vote represents a prevote or precommit vote from validators for - consensus. - vote_b: - type: object - properties: - type: - type: string - enum: - - SIGNED_MSG_TYPE_UNKNOWN - - SIGNED_MSG_TYPE_PREVOTE - - SIGNED_MSG_TYPE_PRECOMMIT - - SIGNED_MSG_TYPE_PROPOSAL - default: SIGNED_MSG_TYPE_UNKNOWN - description: |- - SignedMsgType is a type of signed message in the consensus. - - - SIGNED_MSG_TYPE_PREVOTE: Votes - - SIGNED_MSG_TYPE_PROPOSAL: Proposals - height: - type: string - format: int64 - round: - type: integer - format: int32 - block_id: - type: object - properties: - hash: - type: string - format: byte - part_set_header: - type: object - properties: - total: - type: integer - format: int64 - hash: - type: string - format: byte - title: PartsetHeader - title: BlockID - description: zero if vote is nil. - timestamp: - type: string - format: date-time - validator_address: - type: string - format: byte - validator_index: - type: integer - format: int32 - signature: - type: string - format: byte - description: >- - Vote signature by the validator if they participated in - consensus for the - - associated block. - extension: - type: string - format: byte - description: >- - Vote extension provided by the application. Only valid for - precommit - - messages. - extension_signature: - type: string - format: byte - description: >- - Vote extension signature by the validator if they participated - in - - consensus for the associated block. - - Only valid for precommit messages. - description: |- - Vote represents a prevote or precommit vote from validators for - consensus. - total_voting_power: - type: string - format: int64 - validator_power: - type: string - format: int64 - timestamp: - type: string - format: date-time - description: >- - DuplicateVoteEvidence contains evidence of a validator signed two - conflicting votes. - light_client_attack_evidence: - type: object - properties: - conflicting_block: - type: object - properties: - signed_header: - type: object - properties: - header: - type: object - properties: - version: - title: basic block info - type: object - properties: - block: - type: string - format: uint64 - app: - type: string - format: uint64 - description: >- - Consensus captures the consensus rules for processing - a block in the blockchain, - - including all blockchain data structures and the rules - of the application's - - state transition machine. - chain_id: - type: string - height: - type: string - format: int64 - time: - type: string - format: date-time - last_block_id: - type: object - properties: - hash: - type: string - format: byte - part_set_header: - type: object - properties: - total: - type: integer - format: int64 - hash: - type: string - format: byte - title: PartsetHeader - title: BlockID - last_commit_hash: - type: string - format: byte - description: commit from validators from the last block - title: hashes of block data - data_hash: - type: string - format: byte - title: transactions - validators_hash: - type: string - format: byte - description: validators for the current block - title: hashes from the app output from the prev block - next_validators_hash: - type: string - format: byte - title: validators for the next block - consensus_hash: - type: string - format: byte - title: consensus params for current block - app_hash: - type: string - format: byte - title: state after txs from the previous block - last_results_hash: - type: string - format: byte - title: >- - root hash of all results from the txs from the - previous block - evidence_hash: - type: string - format: byte - description: evidence included in the block - title: consensus info - proposer_address: - type: string - format: byte - title: original proposer of the block - description: Header defines the structure of a block header. - commit: - type: object - properties: - height: - type: string - format: int64 - round: - type: integer - format: int32 - block_id: - type: object - properties: - hash: - type: string - format: byte - part_set_header: - type: object - properties: - total: - type: integer - format: int64 - hash: - type: string - format: byte - title: PartsetHeader - title: BlockID - signatures: - type: array - items: - type: object - properties: - block_id_flag: - type: string - enum: - - BLOCK_ID_FLAG_UNKNOWN - - BLOCK_ID_FLAG_ABSENT - - BLOCK_ID_FLAG_COMMIT - - BLOCK_ID_FLAG_NIL - default: BLOCK_ID_FLAG_UNKNOWN - description: >- - - BLOCK_ID_FLAG_UNKNOWN: indicates an error - condition - - BLOCK_ID_FLAG_ABSENT: the vote was not received - - BLOCK_ID_FLAG_COMMIT: voted for the block that received the majority - - BLOCK_ID_FLAG_NIL: voted for nil - title: >- - BlockIdFlag indicates which BlockID the - signature is for - validator_address: - type: string - format: byte - timestamp: - type: string - format: date-time - signature: - type: string - format: byte - description: >- - CommitSig is a part of the Vote included in a - Commit. - description: >- - Commit contains the evidence that a block was committed by - a set of validators. - validator_set: - type: object - properties: - validators: - type: array - items: - type: object - properties: - address: - type: string - format: byte - pub_key: - type: object - properties: - ed25519: - type: string - format: byte - secp256k1: - type: string - format: byte - title: >- - PublicKey defines the keys available for use with - Validators - voting_power: - type: string - format: int64 - proposer_priority: - type: string - format: int64 - proposer: - type: object - properties: - address: - type: string - format: byte - pub_key: - type: object - properties: - ed25519: - type: string - format: byte - secp256k1: - type: string - format: byte - title: >- - PublicKey defines the keys available for use with - Validators - voting_power: - type: string - format: int64 - proposer_priority: - type: string - format: int64 - total_voting_power: - type: string - format: int64 - common_height: - type: string - format: int64 - byzantine_validators: - type: array - items: - type: object - properties: - address: - type: string - format: byte - pub_key: - type: object - properties: - ed25519: - type: string - format: byte - secp256k1: - type: string - format: byte - title: PublicKey defines the keys available for use with Validators - voting_power: - type: string - format: int64 - proposer_priority: - type: string - format: int64 - total_voting_power: - type: string - format: int64 - timestamp: - type: string - format: date-time - description: >- - LightClientAttackEvidence contains evidence of a set of validators - attempting to mislead a light client. - tendermint.types.EvidenceList: - type: object - properties: - evidence: - type: array - items: - type: object - properties: - duplicate_vote_evidence: - type: object - properties: - vote_a: - type: object - properties: - type: - type: string - enum: - - SIGNED_MSG_TYPE_UNKNOWN - - SIGNED_MSG_TYPE_PREVOTE - - SIGNED_MSG_TYPE_PRECOMMIT - - SIGNED_MSG_TYPE_PROPOSAL - default: SIGNED_MSG_TYPE_UNKNOWN - description: >- - SignedMsgType is a type of signed message in the - consensus. - - - SIGNED_MSG_TYPE_PREVOTE: Votes - - SIGNED_MSG_TYPE_PROPOSAL: Proposals - height: - type: string - format: int64 - round: - type: integer - format: int32 - block_id: - type: object - properties: - hash: - type: string - format: byte - part_set_header: - type: object - properties: - total: - type: integer - format: int64 - hash: - type: string - format: byte - title: PartsetHeader - title: BlockID - description: zero if vote is nil. - timestamp: - type: string - format: date-time - validator_address: - type: string - format: byte - validator_index: - type: integer - format: int32 - signature: - type: string - format: byte - description: >- - Vote signature by the validator if they participated in - consensus for the - - associated block. - extension: - type: string - format: byte - description: >- - Vote extension provided by the application. Only valid - for precommit - - messages. - extension_signature: - type: string - format: byte - description: >- - Vote extension signature by the validator if they - participated in - - consensus for the associated block. - - Only valid for precommit messages. - description: >- - Vote represents a prevote or precommit vote from validators - for - - consensus. - vote_b: - type: object - properties: - type: - type: string - enum: - - SIGNED_MSG_TYPE_UNKNOWN - - SIGNED_MSG_TYPE_PREVOTE - - SIGNED_MSG_TYPE_PRECOMMIT - - SIGNED_MSG_TYPE_PROPOSAL - default: SIGNED_MSG_TYPE_UNKNOWN - description: >- - SignedMsgType is a type of signed message in the - consensus. - - - SIGNED_MSG_TYPE_PREVOTE: Votes - - SIGNED_MSG_TYPE_PROPOSAL: Proposals - height: - type: string - format: int64 - round: - type: integer - format: int32 - block_id: - type: object - properties: - hash: - type: string - format: byte - part_set_header: - type: object - properties: - total: - type: integer - format: int64 - hash: - type: string - format: byte - title: PartsetHeader - title: BlockID - description: zero if vote is nil. - timestamp: - type: string - format: date-time - validator_address: - type: string - format: byte - validator_index: - type: integer - format: int32 - signature: - type: string - format: byte - description: >- - Vote signature by the validator if they participated in - consensus for the - - associated block. - extension: - type: string - format: byte - description: >- - Vote extension provided by the application. Only valid - for precommit - - messages. - extension_signature: - type: string - format: byte - description: >- - Vote extension signature by the validator if they - participated in - - consensus for the associated block. - - Only valid for precommit messages. - description: >- - Vote represents a prevote or precommit vote from validators - for - - consensus. - total_voting_power: - type: string - format: int64 - validator_power: - type: string - format: int64 - timestamp: - type: string - format: date-time - description: >- - DuplicateVoteEvidence contains evidence of a validator signed - two conflicting votes. - light_client_attack_evidence: - type: object - properties: - conflicting_block: - type: object - properties: - signed_header: - type: object - properties: - header: - type: object - properties: - version: - title: basic block info - type: object - properties: - block: - type: string - format: uint64 - app: - type: string - format: uint64 - description: >- - Consensus captures the consensus rules for - processing a block in the blockchain, - - including all blockchain data structures and the - rules of the application's - - state transition machine. - chain_id: - type: string - height: - type: string - format: int64 - time: - type: string - format: date-time - last_block_id: - type: object - properties: - hash: - type: string - format: byte - part_set_header: - type: object - properties: - total: - type: integer - format: int64 - hash: - type: string - format: byte - title: PartsetHeader - title: BlockID - last_commit_hash: - type: string - format: byte - description: commit from validators from the last block - title: hashes of block data - data_hash: - type: string - format: byte - title: transactions - validators_hash: - type: string - format: byte - description: validators for the current block - title: hashes from the app output from the prev block - next_validators_hash: - type: string - format: byte - title: validators for the next block - consensus_hash: - type: string - format: byte - title: consensus params for current block - app_hash: - type: string - format: byte - title: state after txs from the previous block - last_results_hash: - type: string - format: byte - title: >- - root hash of all results from the txs from the - previous block - evidence_hash: - type: string - format: byte - description: evidence included in the block - title: consensus info - proposer_address: - type: string - format: byte - title: original proposer of the block - description: Header defines the structure of a block header. - commit: - type: object - properties: - height: - type: string - format: int64 - round: - type: integer - format: int32 - block_id: - type: object - properties: - hash: - type: string - format: byte - part_set_header: - type: object - properties: - total: - type: integer - format: int64 - hash: - type: string - format: byte - title: PartsetHeader - title: BlockID - signatures: - type: array - items: - type: object - properties: - block_id_flag: - type: string - enum: - - BLOCK_ID_FLAG_UNKNOWN - - BLOCK_ID_FLAG_ABSENT - - BLOCK_ID_FLAG_COMMIT - - BLOCK_ID_FLAG_NIL - default: BLOCK_ID_FLAG_UNKNOWN - description: >- - - BLOCK_ID_FLAG_UNKNOWN: indicates an - error condition - - BLOCK_ID_FLAG_ABSENT: the vote was not received - - BLOCK_ID_FLAG_COMMIT: voted for the block that received the majority - - BLOCK_ID_FLAG_NIL: voted for nil - title: >- - BlockIdFlag indicates which BlockID the - signature is for - validator_address: - type: string - format: byte - timestamp: - type: string - format: date-time - signature: - type: string - format: byte - description: >- - CommitSig is a part of the Vote included in a - Commit. - description: >- - Commit contains the evidence that a block was - committed by a set of validators. - validator_set: - type: object - properties: - validators: - type: array - items: - type: object - properties: - address: - type: string - format: byte - pub_key: - type: object - properties: - ed25519: - type: string - format: byte - secp256k1: - type: string - format: byte - title: >- - PublicKey defines the keys available for use - with Validators - voting_power: - type: string - format: int64 - proposer_priority: - type: string - format: int64 - proposer: - type: object - properties: - address: - type: string - format: byte - pub_key: - type: object - properties: - ed25519: - type: string - format: byte - secp256k1: - type: string - format: byte - title: >- - PublicKey defines the keys available for use - with Validators - voting_power: - type: string - format: int64 - proposer_priority: - type: string - format: int64 - total_voting_power: - type: string - format: int64 - common_height: - type: string - format: int64 - byzantine_validators: - type: array - items: - type: object - properties: - address: - type: string - format: byte - pub_key: - type: object - properties: - ed25519: - type: string - format: byte - secp256k1: - type: string - format: byte - title: >- - PublicKey defines the keys available for use with - Validators - voting_power: - type: string - format: int64 - proposer_priority: - type: string - format: int64 - total_voting_power: - type: string - format: int64 - timestamp: - type: string - format: date-time - description: >- - LightClientAttackEvidence contains evidence of a set of - validators attempting to mislead a light client. - tendermint.types.LightBlock: - type: object - properties: - signed_header: - type: object - properties: - header: - type: object - properties: - version: - title: basic block info - type: object - properties: - block: - type: string - format: uint64 - app: - type: string - format: uint64 - description: >- - Consensus captures the consensus rules for processing a block - in the blockchain, - - including all blockchain data structures and the rules of the - application's + Example 2: Pack and unpack a message in Java. - state transition machine. - chain_id: - type: string - height: - type: string - format: int64 - time: - type: string - format: date-time - last_block_id: - type: object - properties: - hash: - type: string - format: byte - part_set_header: - type: object - properties: - total: - type: integer - format: int64 - hash: - type: string - format: byte - title: PartsetHeader - title: BlockID - last_commit_hash: - type: string - format: byte - description: commit from validators from the last block - title: hashes of block data - data_hash: - type: string - format: byte - title: transactions - validators_hash: - type: string - format: byte - description: validators for the current block - title: hashes from the app output from the prev block - next_validators_hash: - type: string - format: byte - title: validators for the next block - consensus_hash: - type: string - format: byte - title: consensus params for current block - app_hash: - type: string - format: byte - title: state after txs from the previous block - last_results_hash: - type: string - format: byte - title: root hash of all results from the txs from the previous block - evidence_hash: - type: string - format: byte - description: evidence included in the block - title: consensus info - proposer_address: - type: string - format: byte - title: original proposer of the block - description: Header defines the structure of a block header. - commit: - type: object - properties: - height: - type: string - format: int64 - round: - type: integer - format: int32 - block_id: - type: object - properties: - hash: - type: string - format: byte - part_set_header: - type: object - properties: - total: - type: integer - format: int64 - hash: - type: string - format: byte - title: PartsetHeader - title: BlockID - signatures: - type: array - items: - type: object - properties: - block_id_flag: - type: string - enum: - - BLOCK_ID_FLAG_UNKNOWN - - BLOCK_ID_FLAG_ABSENT - - BLOCK_ID_FLAG_COMMIT - - BLOCK_ID_FLAG_NIL - default: BLOCK_ID_FLAG_UNKNOWN - description: |- - - BLOCK_ID_FLAG_UNKNOWN: indicates an error condition - - BLOCK_ID_FLAG_ABSENT: the vote was not received - - BLOCK_ID_FLAG_COMMIT: voted for the block that received the majority - - BLOCK_ID_FLAG_NIL: voted for nil - title: BlockIdFlag indicates which BlockID the signature is for - validator_address: - type: string - format: byte - timestamp: - type: string - format: date-time - signature: - type: string - format: byte - description: CommitSig is a part of the Vote included in a Commit. - description: >- - Commit contains the evidence that a block was committed by a set - of validators. - validator_set: - type: object - properties: - validators: - type: array - items: - type: object - properties: - address: - type: string - format: byte - pub_key: - type: object - properties: - ed25519: - type: string - format: byte - secp256k1: - type: string - format: byte - title: PublicKey defines the keys available for use with Validators - voting_power: - type: string - format: int64 - proposer_priority: - type: string - format: int64 - proposer: - type: object - properties: - address: - type: string - format: byte - pub_key: - type: object - properties: - ed25519: - type: string - format: byte - secp256k1: - type: string - format: byte - title: PublicKey defines the keys available for use with Validators - voting_power: - type: string - format: int64 - proposer_priority: - type: string - format: int64 - total_voting_power: - type: string - format: int64 - tendermint.types.LightClientAttackEvidence: - type: object - properties: - conflicting_block: - type: object - properties: - signed_header: - type: object - properties: - header: - type: object - properties: - version: - title: basic block info - type: object - properties: - block: - type: string - format: uint64 - app: - type: string - format: uint64 - description: >- - Consensus captures the consensus rules for processing a - block in the blockchain, + 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()); + } - including all blockchain data structures and the rules of - the application's + Example 3: Pack and unpack a message in Python. - state transition machine. - chain_id: - type: string - height: - type: string - format: int64 - time: - type: string - format: date-time - last_block_id: - type: object - properties: - hash: - type: string - format: byte - part_set_header: - type: object - properties: - total: - type: integer - format: int64 - hash: - type: string - format: byte - title: PartsetHeader - title: BlockID - last_commit_hash: - type: string - format: byte - description: commit from validators from the last block - title: hashes of block data - data_hash: - type: string - format: byte - title: transactions - validators_hash: - type: string - format: byte - description: validators for the current block - title: hashes from the app output from the prev block - next_validators_hash: - type: string - format: byte - title: validators for the next block - consensus_hash: - type: string - format: byte - title: consensus params for current block - app_hash: - type: string - format: byte - title: state after txs from the previous block - last_results_hash: - type: string - format: byte - title: >- - root hash of all results from the txs from the previous - block - evidence_hash: - type: string - format: byte - description: evidence included in the block - title: consensus info - proposer_address: - type: string - format: byte - title: original proposer of the block - description: Header defines the structure of a block header. - commit: - type: object - properties: - height: - type: string - format: int64 - round: - type: integer - format: int32 - block_id: - type: object - properties: - hash: - type: string - format: byte - part_set_header: - type: object - properties: - total: - type: integer - format: int64 - hash: - type: string - format: byte - title: PartsetHeader - title: BlockID - signatures: - type: array - items: - type: object - properties: - block_id_flag: - type: string - enum: - - BLOCK_ID_FLAG_UNKNOWN - - BLOCK_ID_FLAG_ABSENT - - BLOCK_ID_FLAG_COMMIT - - BLOCK_ID_FLAG_NIL - default: BLOCK_ID_FLAG_UNKNOWN - description: >- - - BLOCK_ID_FLAG_UNKNOWN: indicates an error - condition - - BLOCK_ID_FLAG_ABSENT: the vote was not received - - BLOCK_ID_FLAG_COMMIT: voted for the block that received the majority - - BLOCK_ID_FLAG_NIL: voted for nil - title: >- - BlockIdFlag indicates which BlockID the signature is - for - validator_address: - type: string - format: byte - timestamp: - type: string - format: date-time - signature: - type: string - format: byte - description: CommitSig is a part of the Vote included in a Commit. - description: >- - Commit contains the evidence that a block was committed by a - set of validators. - validator_set: - type: object - properties: - validators: - type: array - items: - type: object - properties: - address: - type: string - format: byte - pub_key: - type: object - properties: - ed25519: - type: string - format: byte - secp256k1: - type: string - format: byte - title: >- - PublicKey defines the keys available for use with - Validators - voting_power: - type: string - format: int64 - proposer_priority: - type: string - format: int64 - proposer: - type: object - properties: - address: - type: string - format: byte - pub_key: - type: object - properties: - ed25519: - type: string - format: byte - secp256k1: - type: string - format: byte - title: >- - PublicKey defines the keys available for use with - Validators - voting_power: - type: string - format: int64 - proposer_priority: - type: string - format: int64 - total_voting_power: - type: string - format: int64 - common_height: - type: string - format: int64 - byzantine_validators: - type: array - items: - type: object - properties: - address: - type: string - format: byte - pub_key: - type: object - properties: - ed25519: - type: string - format: byte - secp256k1: - type: string - format: byte - title: PublicKey defines the keys available for use with Validators - voting_power: - type: string - format: int64 - proposer_priority: - type: string - format: int64 - total_voting_power: - type: string - format: int64 - timestamp: - type: string - format: date-time - description: >- - LightClientAttackEvidence contains evidence of a set of validators - attempting to mislead a light client. - tendermint.types.SignedHeader: - type: object - properties: - header: - type: object - properties: - version: - title: basic block info - type: object - properties: - block: - type: string - format: uint64 - app: - type: string - format: uint64 - description: >- - Consensus captures the consensus rules for processing a block in - the blockchain, + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... - including all blockchain data structures and the rules of the - application's + Example 4: Pack and unpack a message in Go - state transition machine. - chain_id: - type: string - height: - type: string - format: int64 - time: - type: string - format: date-time - last_block_id: - type: object - properties: - hash: - type: string - format: byte - part_set_header: - type: object - properties: - total: - type: integer - format: int64 - hash: - type: string - format: byte - title: PartsetHeader - title: BlockID - last_commit_hash: - type: string - format: byte - description: commit from validators from the last block - title: hashes of block data - data_hash: - type: string - format: byte - title: transactions - validators_hash: - type: string - format: byte - description: validators for the current block - title: hashes from the app output from the prev block - next_validators_hash: - type: string - format: byte - title: validators for the next block - consensus_hash: - type: string - format: byte - title: consensus params for current block - app_hash: - type: string - format: byte - title: state after txs from the previous block - last_results_hash: - type: string - format: byte - title: root hash of all results from the txs from the previous block - evidence_hash: - type: string - format: byte - description: evidence included in the block - title: consensus info - proposer_address: - type: string - format: byte - title: original proposer of the block - description: Header defines the structure of a block header. - commit: - type: object - properties: - height: - type: string - format: int64 - round: - type: integer - format: int32 - block_id: - type: object - properties: - hash: - type: string - format: byte - part_set_header: - type: object - properties: - total: - type: integer - format: int64 - hash: - type: string - format: byte - title: PartsetHeader - title: BlockID - signatures: - type: array - items: - type: object - properties: - block_id_flag: - type: string - enum: - - BLOCK_ID_FLAG_UNKNOWN - - BLOCK_ID_FLAG_ABSENT - - BLOCK_ID_FLAG_COMMIT - - BLOCK_ID_FLAG_NIL - default: BLOCK_ID_FLAG_UNKNOWN - description: |- - - BLOCK_ID_FLAG_UNKNOWN: indicates an error condition - - BLOCK_ID_FLAG_ABSENT: the vote was not received - - BLOCK_ID_FLAG_COMMIT: voted for the block that received the majority - - BLOCK_ID_FLAG_NIL: voted for nil - title: BlockIdFlag indicates which BlockID the signature is for - validator_address: - type: string - format: byte - timestamp: - type: string - format: date-time - signature: - type: string - format: byte - description: CommitSig is a part of the Vote included in a Commit. - description: >- - Commit contains the evidence that a block was committed by a set of - validators. - tendermint.types.SignedMsgType: - type: string - enum: - - SIGNED_MSG_TYPE_UNKNOWN - - SIGNED_MSG_TYPE_PREVOTE - - SIGNED_MSG_TYPE_PRECOMMIT - - SIGNED_MSG_TYPE_PROPOSAL - default: SIGNED_MSG_TYPE_UNKNOWN - description: |- - SignedMsgType is a type of signed message in the consensus. + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } - - SIGNED_MSG_TYPE_PREVOTE: Votes - - SIGNED_MSG_TYPE_PROPOSAL: Proposals - tendermint.types.Validator: - type: object - properties: - address: - type: string - format: byte - pub_key: - type: object - properties: - ed25519: - type: string - format: byte - secp256k1: - type: string - format: byte - title: PublicKey defines the keys available for use with Validators - voting_power: - type: string - format: int64 - proposer_priority: - type: string - format: int64 - tendermint.types.ValidatorSet: - type: object - properties: - validators: - type: array - items: - type: object - properties: - address: - type: string - format: byte - pub_key: - type: object - properties: - ed25519: - type: string - format: byte - secp256k1: - type: string - format: byte - title: PublicKey defines the keys available for use with Validators - voting_power: - type: string - format: int64 - proposer_priority: - type: string - format: int64 - proposer: - type: object - properties: - address: - type: string - format: byte - pub_key: - type: object - properties: - ed25519: - type: string - format: byte - secp256k1: - type: string - format: byte - title: PublicKey defines the keys available for use with Validators - voting_power: - type: string - format: int64 - proposer_priority: - type: string - format: int64 - total_voting_power: - type: string - format: int64 - tendermint.types.Vote: - type: object - properties: - type: - type: string - enum: - - SIGNED_MSG_TYPE_UNKNOWN - - SIGNED_MSG_TYPE_PREVOTE - - SIGNED_MSG_TYPE_PRECOMMIT - - SIGNED_MSG_TYPE_PROPOSAL - default: SIGNED_MSG_TYPE_UNKNOWN - description: |- - SignedMsgType is a type of signed message in the consensus. + The pack methods provided by protobuf library will by default use - - SIGNED_MSG_TYPE_PREVOTE: Votes - - SIGNED_MSG_TYPE_PROPOSAL: Proposals - height: - type: string - format: int64 - round: - type: integer - format: int32 - block_id: - type: object - properties: - hash: - type: string - format: byte - part_set_header: - type: object - properties: - total: - type: integer - format: int64 - hash: - type: string - format: byte - title: PartsetHeader - title: BlockID - description: zero if vote is nil. - timestamp: - type: string - format: date-time - validator_address: - type: string - format: byte - validator_index: - type: integer - format: int32 - signature: - type: string - format: byte - description: >- - Vote signature by the validator if they participated in consensus for - the + 'type.googleapis.com/full.type.name' as the type URL and the unpack - associated block. - extension: - type: string - format: byte - description: |- - Vote extension provided by the application. Only valid for precommit - messages. - extension_signature: - type: string - format: byte - description: |- - Vote extension signature by the validator if they participated in - consensus for the associated block. - Only valid for precommit messages. - description: |- - Vote represents a prevote or precommit vote from validators for - consensus. - cosmos.upgrade.v1beta1.ModuleVersion: - type: object - properties: - name: - type: string - title: name of the app module - version: - type: string - format: uint64 - title: consensus version of the app module - description: |- - ModuleVersion specifies a module and its consensus version. + methods only use the fully qualified type name after the last '/' - Since: cosmos-sdk 0.43 - 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 + in the type URL, for example "foo.bar.com/x/y.z" will yield type - version of the software to apply any special "on-upgrade" commands - during + name "y.z". - 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 + JSON - 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 + The JSON representation of an `Any` value uses the regular - reached and the software will exit. - time: - type: string - format: date-time - description: >- - Deprecated: Time based upgrades have been deprecated. Time based - upgrade logic + representation of the deserialized, embedded message, with an - has been removed from the SDK. + additional field `@type` which contains the type URL. Example: - 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: >- - Deprecated: UpgradedClientState field has been deprecated. IBC upgrade - logic has been + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } - moved to the IBC module in the sub module 02-client. + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } - If this field is not empty, an error will be thrown. + 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" + } + cosmos.authz.v1beta1.Grant: + type: object + properties: + authorization: type: object properties: '@type': @@ -95613,1055 +22172,327 @@ definitions: used with implementation specific semantics. additionalProperties: {} - description: >- - Plan specifies information about a planned upgrade and when it should - occur. - cosmos.upgrade.v1beta1.QueryAppliedPlanResponse: - type: object - properties: - height: - type: string - format: int64 - description: height is the block height at which the plan was applied. - description: >- - QueryAppliedPlanResponse is the response type for the Query/AppliedPlan - RPC + description: >- + `Any` contains an arbitrary serialized protocol buffer message along + with a - method. - cosmos.upgrade.v1beta1.QueryAuthorityResponse: - type: object - properties: - address: - type: string - description: 'Since: cosmos-sdk 0.46' - title: QueryAuthorityResponse is the response type for Query/Authority - cosmos.upgrade.v1beta1.QueryCurrentPlanResponse: - type: object - properties: - plan: - description: plan is the current upgrade 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" + } + expiration: + type: string + format: date-time + title: >- + time when the grant will expire and will be pruned. If null, then the + grant - used with implementation specific semantics. - additionalProperties: {} - description: >- - QueryCurrentPlanResponse is the response type for the Query/CurrentPlan - RPC + doesn't have a time expiration (other conditions in `authorization` - method. - cosmos.upgrade.v1beta1.QueryModuleVersionsResponse: + may apply to invalidate the grant) + description: |- + Grant gives permissions to execute + the provide method with expiration time. + cosmos.authz.v1beta1.MsgExec: type: object properties: - module_versions: + grantee: + type: string + msgs: type: array items: type: object properties: - name: - type: string - title: name of the app module - version: + '@type': type: string - format: uint64 - title: consensus version of the app module - description: |- - ModuleVersion specifies a module and its consensus version. - - Since: cosmos-sdk 0.43 - description: >- - module_versions is a list of module names with their consensus - versions. - description: >- - QueryModuleVersionsResponse is the response type for the - Query/ModuleVersions - - RPC method. - - - Since: cosmos-sdk 0.43 - cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateResponse: - type: object - properties: - upgraded_consensus_state: - type: string - format: byte - title: 'Since: cosmos-sdk 0.43' - description: >- - QueryUpgradedConsensusStateResponse is the response type for the - Query/UpgradedConsensusState - - RPC method. - cosmos.upgrade.v1beta1.MsgCancelUpgrade: - type: object - properties: - authority: - type: string - description: >- - authority is the address that controls the module (defaults to x/gov - unless overwritten). - description: |- - MsgCancelUpgrade is the Msg/CancelUpgrade request type. - - Since: cosmos-sdk 0.46 - cosmos.upgrade.v1beta1.MsgCancelUpgradeResponse: - type: object - description: |- - MsgCancelUpgradeResponse is the Msg/CancelUpgrade response type. - - Since: cosmos-sdk 0.46 - cosmos.upgrade.v1beta1.MsgSoftwareUpgrade: - type: object - properties: - authority: - type: string - description: >- - authority is the address that controls the module (defaults to x/gov - unless overwritten). - plan: - description: plan is the upgrade 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 - - has been removed from the SDK. - - 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: >- - 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 + description: >- + A URL/resource name that uniquely identifies the type of the + serialized - protobuf release, and it is not used for type URLs beginning - with + protocol buffer message. This string must contain at least - type.googleapis.com. As of May 2023, there are no widely used - type server + one "/" character. The last segment of the URL's path must + represent - implementations and no plans to implement one. + the fully qualified name of the type (as in + `path/google.protobuf.Duration`). The name should be in a + canonical form - Schemes other than `http`, `https` (or the empty scheme) might - be + (e.g., leading "." is not accepted). - used with implementation specific semantics. - additionalProperties: {} - description: |- - MsgSoftwareUpgrade is the Msg/SoftwareUpgrade request type. - Since: cosmos-sdk 0.46 - cosmos.upgrade.v1beta1.MsgSoftwareUpgradeResponse: - type: object - description: |- - MsgSoftwareUpgradeResponse is the Msg/SoftwareUpgrade response type. + In practice, teams usually precompile into the binary all types + that they - Since: cosmos-sdk 0.46 - cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccount: - type: object - properties: - from_address: - type: string - to_address: - type: string - start_time: - type: string - format: int64 - description: start of vesting as unix time (in seconds). - vesting_periods: - type: array - items: - type: object - properties: - length: - type: string - format: int64 - description: Period duration in seconds. - amount: - 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. - description: Period defines a length of time and amount of coins that will vest. - description: |- - MsgCreateVestingAccount defines a message that enables creating a vesting - account. - Since: cosmos-sdk 0.46 - cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccountResponse: - type: object - description: >- - MsgCreateVestingAccountResponse defines the - Msg/CreatePeriodicVestingAccount + * If no scheme is provided, `https` is assumed. - response type. + * 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 - Since: cosmos-sdk 0.46 - cosmos.vesting.v1beta1.MsgCreatePermanentLockedAccount: - type: object - properties: - from_address: - type: string - to_address: - type: string - amount: - type: array - items: - type: object - properties: - denom: - type: string - amount: - type: string - description: |- - Coin defines a token with a denomination and an amount. + protobuf release, and it is not used for type URLs beginning + with - NOTE: The amount field is an Int which implements the custom method - signatures required by gogoproto. - description: >- - MsgCreatePermanentLockedAccount defines a message that enables creating a - permanent + type.googleapis.com. As of May 2023, there are no widely used + type server - locked account. + implementations and no plans to implement one. - Since: cosmos-sdk 0.46 - cosmos.vesting.v1beta1.MsgCreatePermanentLockedAccountResponse: - type: object - description: >- - MsgCreatePermanentLockedAccountResponse defines the - Msg/CreatePermanentLockedAccount response type. + 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 - Since: cosmos-sdk 0.46 - cosmos.vesting.v1beta1.MsgCreateVestingAccount: - type: object - properties: - from_address: - type: string - to_address: - type: string - amount: - type: array - items: - type: object - properties: - denom: - type: string - amount: - type: string - description: |- - Coin defines a token with a denomination and an amount. + URL that describes the type of the serialized message. - NOTE: The amount field is an Int which implements the custom method - signatures required by gogoproto. - end_time: - type: string - format: int64 - description: end of vesting as unix time (in seconds). - delayed: - type: boolean - description: |- - MsgCreateVestingAccount defines a message that enables creating a vesting - account. - cosmos.vesting.v1beta1.MsgCreateVestingAccountResponse: - type: object - description: >- - MsgCreateVestingAccountResponse defines the Msg/CreateVestingAccount - response type. - cosmos.vesting.v1beta1.Period: - type: object - properties: - length: - type: string - format: int64 - description: Period duration in seconds. - 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. - description: Period defines a length of time and amount of coins that will vest. - cosmwasm.wasm.v1.AbsoluteTxPosition: - type: object - properties: - block_height: - type: string - format: uint64 - title: BlockHeight is the block the contract was created at - tx_index: - type: string - format: uint64 - title: >- - TxIndex is a monotonic counter within the block (actual transaction - index, + Protobuf library provides support to pack/unpack Any values in the + form - or gas consumed) - description: |- - AbsoluteTxPosition is a unique transaction position that allows for global - ordering of transactions. - cosmwasm.wasm.v1.AccessConfig: - type: object - properties: - permission: - type: string - enum: - - ACCESS_TYPE_UNSPECIFIED - - ACCESS_TYPE_NOBODY - - ACCESS_TYPE_EVERYBODY - - ACCESS_TYPE_ANY_OF_ADDRESSES - default: ACCESS_TYPE_UNSPECIFIED - description: >- - - ACCESS_TYPE_UNSPECIFIED: AccessTypeUnspecified placeholder for empty - value - - ACCESS_TYPE_NOBODY: AccessTypeNobody forbidden - - ACCESS_TYPE_EVERYBODY: AccessTypeEverybody unrestricted - - ACCESS_TYPE_ANY_OF_ADDRESSES: AccessTypeAnyOfAddresses allow any of the addresses - title: AccessType permission types - addresses: - type: array - items: - type: string - description: AccessConfig access control type. - cosmwasm.wasm.v1.AccessType: - type: string - enum: - - ACCESS_TYPE_UNSPECIFIED - - ACCESS_TYPE_NOBODY - - ACCESS_TYPE_EVERYBODY - - ACCESS_TYPE_ANY_OF_ADDRESSES - default: ACCESS_TYPE_UNSPECIFIED - description: >- - - ACCESS_TYPE_UNSPECIFIED: AccessTypeUnspecified placeholder for empty - value - - ACCESS_TYPE_NOBODY: AccessTypeNobody forbidden - - ACCESS_TYPE_EVERYBODY: AccessTypeEverybody unrestricted - - ACCESS_TYPE_ANY_OF_ADDRESSES: AccessTypeAnyOfAddresses allow any of the addresses - title: AccessType permission types - cosmwasm.wasm.v1.CodeInfoResponse: - type: object - properties: - code_id: - type: string - format: uint64 - title: id for legacy support - creator: - type: string - data_hash: - type: string - format: byte - instantiate_permission: - type: object - properties: - permission: - type: string - enum: - - ACCESS_TYPE_UNSPECIFIED - - ACCESS_TYPE_NOBODY - - ACCESS_TYPE_EVERYBODY - - ACCESS_TYPE_ANY_OF_ADDRESSES - default: ACCESS_TYPE_UNSPECIFIED - description: >- - - ACCESS_TYPE_UNSPECIFIED: AccessTypeUnspecified placeholder for - empty value - - ACCESS_TYPE_NOBODY: AccessTypeNobody forbidden - - ACCESS_TYPE_EVERYBODY: AccessTypeEverybody unrestricted - - ACCESS_TYPE_ANY_OF_ADDRESSES: AccessTypeAnyOfAddresses allow any of the addresses - title: AccessType permission types - addresses: - type: array - items: - type: string - description: AccessConfig access control type. - title: CodeInfoResponse contains code meta data from CodeInfo - cosmwasm.wasm.v1.ContractCodeHistoryEntry: - type: object - properties: - operation: - type: string - enum: - - CONTRACT_CODE_HISTORY_OPERATION_TYPE_UNSPECIFIED - - CONTRACT_CODE_HISTORY_OPERATION_TYPE_INIT - - CONTRACT_CODE_HISTORY_OPERATION_TYPE_MIGRATE - - CONTRACT_CODE_HISTORY_OPERATION_TYPE_GENESIS - default: CONTRACT_CODE_HISTORY_OPERATION_TYPE_UNSPECIFIED - description: >- - - CONTRACT_CODE_HISTORY_OPERATION_TYPE_UNSPECIFIED: - ContractCodeHistoryOperationTypeUnspecified placeholder for empty - value - - CONTRACT_CODE_HISTORY_OPERATION_TYPE_INIT: ContractCodeHistoryOperationTypeInit on chain contract instantiation - - CONTRACT_CODE_HISTORY_OPERATION_TYPE_MIGRATE: ContractCodeHistoryOperationTypeMigrate code migration - - CONTRACT_CODE_HISTORY_OPERATION_TYPE_GENESIS: ContractCodeHistoryOperationTypeGenesis based on genesis data - title: ContractCodeHistoryOperationType actions that caused a code change - code_id: - type: string - format: uint64 - title: CodeID is the reference to the stored WASM code - updated: - description: Updated Tx position when the operation was executed. - type: object - properties: - block_height: - type: string - format: uint64 - title: BlockHeight is the block the contract was created at - tx_index: - type: string - format: uint64 - title: >- - TxIndex is a monotonic counter within the block (actual - transaction index, + of utility functions or additional generated methods of the Any + type. - or gas consumed) - msg: - type: string - format: byte - description: ContractCodeHistoryEntry metadata to a contract. - cosmwasm.wasm.v1.ContractCodeHistoryOperationType: - type: string - enum: - - CONTRACT_CODE_HISTORY_OPERATION_TYPE_UNSPECIFIED - - CONTRACT_CODE_HISTORY_OPERATION_TYPE_INIT - - CONTRACT_CODE_HISTORY_OPERATION_TYPE_MIGRATE - - CONTRACT_CODE_HISTORY_OPERATION_TYPE_GENESIS - default: CONTRACT_CODE_HISTORY_OPERATION_TYPE_UNSPECIFIED - description: >- - - CONTRACT_CODE_HISTORY_OPERATION_TYPE_UNSPECIFIED: - ContractCodeHistoryOperationTypeUnspecified placeholder for empty value - - CONTRACT_CODE_HISTORY_OPERATION_TYPE_INIT: ContractCodeHistoryOperationTypeInit on chain contract instantiation - - CONTRACT_CODE_HISTORY_OPERATION_TYPE_MIGRATE: ContractCodeHistoryOperationTypeMigrate code migration - - CONTRACT_CODE_HISTORY_OPERATION_TYPE_GENESIS: ContractCodeHistoryOperationTypeGenesis based on genesis data - title: ContractCodeHistoryOperationType actions that caused a code change - cosmwasm.wasm.v1.ContractInfo: - type: object - properties: - code_id: - type: string - format: uint64 - title: CodeID is the reference to the stored Wasm code - creator: - type: string - title: Creator address who initially instantiated the contract - admin: - type: string - title: Admin is an optional address that can execute migrations - label: - type: string - description: Label is optional metadata to be stored with a contract instance. - created: - description: Created Tx position when the contract was instantiated. - type: object - properties: - block_height: - type: string - format: uint64 - title: BlockHeight is the block the contract was created at - tx_index: - type: string - format: uint64 - title: >- - TxIndex is a monotonic counter within the block (actual - transaction index, - or gas consumed) - ibc_port_id: - type: string - extension: - description: |- - Extension is an extension point to store custom metadata within the - persistence model. - type: object - properties: - '@type': - type: string - description: >- - A URL/resource name that uniquely identifies the type of the - serialized + Example 1: Pack and unpack a message in C++. - protocol buffer message. This string must contain at least + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } - one "/" character. The last segment of the URL's path must - represent + Example 2: Pack and unpack a message in Java. - the fully qualified name of the type (as in + 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()); + } - `path/google.protobuf.Duration`). The name should be in a - canonical form + Example 3: Pack and unpack a message in Python. - (e.g., leading "." is not accepted). + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... + Example 4: Pack and unpack a message in Go - In practice, teams usually precompile into the binary all types - that they + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } - expect it to use in the context of Any. However, for URLs which - use the + The pack methods provided by protobuf library will by default use - scheme `http`, `https`, or no scheme, one can optionally set up a - type + 'type.googleapis.com/full.type.name' as the type URL and the unpack - server that maps type URLs to message definitions as follows: + 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 - * If no scheme is provided, `https` is assumed. + name "y.z". - * 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 + JSON - 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 + The JSON representation of an `Any` value uses the regular - implementations and no plans to implement one. + representation of the deserialized, embedded message, with an + additional field `@type` which contains the type URL. Example: - Schemes other than `http`, `https` (or the empty scheme) might be + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } - used with implementation specific semantics. - additionalProperties: {} - title: ContractInfo stores a WASM contract instance - cosmwasm.wasm.v1.Model: - type: object - properties: - key: - type: string - format: byte - title: hex-encode key to read it better (this is often ascii) - value: - type: string - format: byte - title: base64-encode raw value - title: Model is a struct that holds a KV pair - cosmwasm.wasm.v1.Params: - type: object - properties: - code_upload_access: - type: object - properties: - permission: - type: string - enum: - - ACCESS_TYPE_UNSPECIFIED - - ACCESS_TYPE_NOBODY - - ACCESS_TYPE_EVERYBODY - - ACCESS_TYPE_ANY_OF_ADDRESSES - default: ACCESS_TYPE_UNSPECIFIED - description: >- - - ACCESS_TYPE_UNSPECIFIED: AccessTypeUnspecified placeholder for - empty value - - ACCESS_TYPE_NOBODY: AccessTypeNobody forbidden - - ACCESS_TYPE_EVERYBODY: AccessTypeEverybody unrestricted - - ACCESS_TYPE_ANY_OF_ADDRESSES: AccessTypeAnyOfAddresses allow any of the addresses - title: AccessType permission types - addresses: - type: array - items: - type: string - description: AccessConfig access control type. - instantiate_default_permission: - type: string - enum: - - ACCESS_TYPE_UNSPECIFIED - - ACCESS_TYPE_NOBODY - - ACCESS_TYPE_EVERYBODY - - ACCESS_TYPE_ANY_OF_ADDRESSES - default: ACCESS_TYPE_UNSPECIFIED + { + "@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" + } description: >- - - ACCESS_TYPE_UNSPECIFIED: AccessTypeUnspecified placeholder for empty - value - - ACCESS_TYPE_NOBODY: AccessTypeNobody forbidden - - ACCESS_TYPE_EVERYBODY: AccessTypeEverybody unrestricted - - ACCESS_TYPE_ANY_OF_ADDRESSES: AccessTypeAnyOfAddresses allow any of the addresses - title: AccessType permission types - description: Params defines the set of wasm parameters. - cosmwasm.wasm.v1.QueryAllContractStateResponse: - type: object - properties: - models: - type: array - items: - type: object - properties: - key: - type: string - format: byte - title: hex-encode key to read it better (this is often ascii) - value: - type: string - format: byte - title: base64-encode raw value - title: Model is a struct that holds a KV pair - pagination: - description: pagination defines the pagination in the response. - 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 + Execute Msg. - was set, its value is undefined otherwise - title: |- - QueryAllContractStateResponse is the response type for the - Query/AllContractState RPC method - cosmwasm.wasm.v1.QueryCodeResponse: - type: object - properties: - code_info: - type: object - properties: - code_id: - type: string - format: uint64 - title: id for legacy support - creator: - type: string - data_hash: - type: string - format: byte - instantiate_permission: - type: object - properties: - permission: - type: string - enum: - - ACCESS_TYPE_UNSPECIFIED - - ACCESS_TYPE_NOBODY - - ACCESS_TYPE_EVERYBODY - - ACCESS_TYPE_ANY_OF_ADDRESSES - default: ACCESS_TYPE_UNSPECIFIED - description: >- - - ACCESS_TYPE_UNSPECIFIED: AccessTypeUnspecified placeholder - for empty value - - ACCESS_TYPE_NOBODY: AccessTypeNobody forbidden - - ACCESS_TYPE_EVERYBODY: AccessTypeEverybody unrestricted - - ACCESS_TYPE_ANY_OF_ADDRESSES: AccessTypeAnyOfAddresses allow any of the addresses - title: AccessType permission types - addresses: - type: array - items: - type: string - description: AccessConfig access control type. - title: CodeInfoResponse contains code meta data from CodeInfo - data: - type: string - format: byte - title: QueryCodeResponse is the response type for the Query/Code RPC method - cosmwasm.wasm.v1.QueryCodesResponse: - type: object - properties: - code_infos: - type: array - items: - type: object - properties: - code_id: - type: string - format: uint64 - title: id for legacy support - creator: - type: string - data_hash: - type: string - format: byte - instantiate_permission: - type: object - properties: - permission: - type: string - enum: - - ACCESS_TYPE_UNSPECIFIED - - ACCESS_TYPE_NOBODY - - ACCESS_TYPE_EVERYBODY - - ACCESS_TYPE_ANY_OF_ADDRESSES - default: ACCESS_TYPE_UNSPECIFIED - description: >- - - ACCESS_TYPE_UNSPECIFIED: AccessTypeUnspecified placeholder - for empty value - - ACCESS_TYPE_NOBODY: AccessTypeNobody forbidden - - ACCESS_TYPE_EVERYBODY: AccessTypeEverybody unrestricted - - ACCESS_TYPE_ANY_OF_ADDRESSES: AccessTypeAnyOfAddresses allow any of the addresses - title: AccessType permission types - addresses: - type: array - items: - type: string - description: AccessConfig access control type. - title: CodeInfoResponse contains code meta data from CodeInfo - pagination: - description: pagination defines the pagination in the response. - 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 + The x/authz will try to find a grant matching (msg.signers[0], + grantee, MsgTypeURL(msg)) - was set, its value is undefined otherwise - title: QueryCodesResponse is the response type for the Query/Codes RPC method - cosmwasm.wasm.v1.QueryContractHistoryResponse: + triple and validate it. + description: |- + MsgExec attempts to execute the provided messages using + authorizations granted to the grantee. Each message should have only + one signer corresponding to the granter of the authorization. + cosmos.authz.v1beta1.MsgExecResponse: type: object properties: - entries: + results: type: array items: - type: object - properties: - operation: - type: string - enum: - - CONTRACT_CODE_HISTORY_OPERATION_TYPE_UNSPECIFIED - - CONTRACT_CODE_HISTORY_OPERATION_TYPE_INIT - - CONTRACT_CODE_HISTORY_OPERATION_TYPE_MIGRATE - - CONTRACT_CODE_HISTORY_OPERATION_TYPE_GENESIS - default: CONTRACT_CODE_HISTORY_OPERATION_TYPE_UNSPECIFIED - description: >- - - CONTRACT_CODE_HISTORY_OPERATION_TYPE_UNSPECIFIED: - ContractCodeHistoryOperationTypeUnspecified placeholder for - empty value - - CONTRACT_CODE_HISTORY_OPERATION_TYPE_INIT: ContractCodeHistoryOperationTypeInit on chain contract instantiation - - CONTRACT_CODE_HISTORY_OPERATION_TYPE_MIGRATE: ContractCodeHistoryOperationTypeMigrate code migration - - CONTRACT_CODE_HISTORY_OPERATION_TYPE_GENESIS: ContractCodeHistoryOperationTypeGenesis based on genesis data - title: >- - ContractCodeHistoryOperationType actions that caused a code - change - code_id: - type: string - format: uint64 - title: CodeID is the reference to the stored WASM code - updated: - description: Updated Tx position when the operation was executed. - type: object - properties: - block_height: - type: string - format: uint64 - title: BlockHeight is the block the contract was created at - tx_index: - type: string - format: uint64 - title: >- - TxIndex is a monotonic counter within the block (actual - transaction index, - - or gas consumed) - msg: - type: string - format: byte - description: ContractCodeHistoryEntry metadata to a contract. - pagination: - description: pagination defines the pagination in the response. - 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 - title: |- - QueryContractHistoryResponse is the response type for the - Query/ContractHistory RPC method - cosmwasm.wasm.v1.QueryContractInfoResponse: + type: string + format: byte + description: MsgExecResponse defines the Msg/MsgExecResponse response type. + cosmos.authz.v1beta1.MsgGrant: type: object properties: - address: + granter: + type: string + grantee: type: string - title: address is the address of the contract - contract_info: + grant: type: object properties: - code_id: - type: string - format: uint64 - title: CodeID is the reference to the stored Wasm code - creator: - type: string - title: Creator address who initially instantiated the contract - admin: - type: string - title: Admin is an optional address that can execute migrations - label: - type: string - description: Label is optional metadata to be stored with a contract instance. - created: - description: Created Tx position when the contract was instantiated. - type: object - properties: - block_height: - type: string - format: uint64 - title: BlockHeight is the block the contract was created at - tx_index: - type: string - format: uint64 - title: >- - TxIndex is a monotonic counter within the block (actual - transaction index, - - or gas consumed) - ibc_port_id: - type: string - extension: - description: >- - Extension is an extension point to store custom metadata within - the - - persistence model. + authorization: type: object properties: '@type': @@ -96723,213 +22554,156 @@ definitions: used with implementation specific semantics. additionalProperties: {} - title: ContractInfo stores a WASM contract instance - title: >- - QueryContractInfoResponse is the response type for the Query/ContractInfo - RPC + description: >- + `Any` contains an arbitrary serialized protocol buffer message + along with a - method - cosmwasm.wasm.v1.QueryContractsByCodeResponse: - type: object - properties: - contracts: - type: array - items: - type: string - title: contracts are a set of contract addresses - pagination: - description: pagination defines the pagination in the response. - 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 + URL that describes the type of the serialized message. - was set, its value is undefined otherwise - title: |- - QueryContractsByCodeResponse is the response type for the - Query/ContractsByCode RPC method - cosmwasm.wasm.v1.QueryContractsByCreatorResponse: - type: object - properties: - contract_addresses: - type: array - items: - type: string - title: ContractAddresses result set - pagination: - description: Pagination defines the pagination in the response. - 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: |- - QueryContractsByCreatorResponse is the response type for the - Query/ContractsByCreator RPC method. - cosmwasm.wasm.v1.QueryParamsResponse: - type: object - properties: - params: - description: params defines the parameters of the module. - type: object - properties: - code_upload_access: - type: object - properties: - permission: - type: string - enum: - - ACCESS_TYPE_UNSPECIFIED - - ACCESS_TYPE_NOBODY - - ACCESS_TYPE_EVERYBODY - - ACCESS_TYPE_ANY_OF_ADDRESSES - default: ACCESS_TYPE_UNSPECIFIED - description: >- - - ACCESS_TYPE_UNSPECIFIED: AccessTypeUnspecified placeholder - for empty value - - ACCESS_TYPE_NOBODY: AccessTypeNobody forbidden - - ACCESS_TYPE_EVERYBODY: AccessTypeEverybody unrestricted - - ACCESS_TYPE_ANY_OF_ADDRESSES: AccessTypeAnyOfAddresses allow any of the addresses - title: AccessType permission types - addresses: - type: array - items: - type: string - description: AccessConfig access control type. - instantiate_default_permission: - type: string - enum: - - ACCESS_TYPE_UNSPECIFIED - - ACCESS_TYPE_NOBODY - - ACCESS_TYPE_EVERYBODY - - ACCESS_TYPE_ANY_OF_ADDRESSES - default: ACCESS_TYPE_UNSPECIFIED - description: >- - - ACCESS_TYPE_UNSPECIFIED: AccessTypeUnspecified placeholder for - empty value - - ACCESS_TYPE_NOBODY: AccessTypeNobody forbidden - - ACCESS_TYPE_EVERYBODY: AccessTypeEverybody unrestricted - - ACCESS_TYPE_ANY_OF_ADDRESSES: AccessTypeAnyOfAddresses allow any of the addresses - title: AccessType permission types - description: QueryParamsResponse is the response type for the Query/Params RPC method. - cosmwasm.wasm.v1.QueryPinnedCodesResponse: - type: object - properties: - code_ids: - type: array - items: - type: string - format: uint64 - pagination: - description: pagination defines the pagination in the response. - 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: + 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" + } + expiration: type: string - format: uint64 + format: date-time title: >- - total is total number of results available if - PageRequest.count_total + time when the grant will expire and will be pruned. If null, then + the grant - was set, its value is undefined otherwise - title: |- - QueryPinnedCodesResponse is the response type for the - Query/PinnedCodes RPC method - cosmwasm.wasm.v1.QueryRawContractStateResponse: - type: object - properties: - data: - type: string - format: byte - title: Data contains the raw store data - title: |- - QueryRawContractStateResponse is the response type for the - Query/RawContractState RPC method - cosmwasm.wasm.v1.QuerySmartContractStateResponse: + doesn't have a time expiration (other conditions in + `authorization` + + may apply to invalidate the grant) + description: |- + Grant gives permissions to execute + the provide method with expiration time. + description: >- + MsgGrant is a request type for Grant method. It declares authorization to + the grantee + + on behalf of the granter with the provided expiration time. + cosmos.authz.v1beta1.MsgGrantResponse: type: object - properties: - data: - type: string - format: byte - title: Data contains the json data returned from the smart contract - title: |- - QuerySmartContractStateResponse is the response type for the - Query/SmartContractState RPC method - cosmwasm.wasm.v1.MsgAddCodeUploadParamsAddresses: + description: MsgGrantResponse defines the Msg/MsgGrant response type. + cosmos.authz.v1beta1.MsgRevoke: type: object properties: - authority: + granter: type: string - description: Authority is the address of the governance account. - addresses: - type: array - items: - type: string - description: |- - MsgAddCodeUploadParamsAddresses is the - MsgAddCodeUploadParamsAddresses request type. - cosmwasm.wasm.v1.MsgAddCodeUploadParamsAddressesResponse: - type: object - description: |- - MsgAddCodeUploadParamsAddressesResponse defines the response - structure for executing a MsgAddCodeUploadParamsAddresses message. - cosmwasm.wasm.v1.MsgClearAdmin: - type: object - properties: - sender: + grantee: type: string - title: Sender is the actor that signed the messages - contract: + msg_type_url: type: string - title: Contract is the address of the smart contract - title: MsgClearAdmin removes any admin stored for a smart contract - cosmwasm.wasm.v1.MsgClearAdminResponse: + description: |- + MsgRevoke revokes any authorization with the provided sdk.Msg type on the + granter's account with that has been granted to the grantee. + cosmos.authz.v1beta1.MsgRevokeResponse: type: object - title: MsgClearAdminResponse returns empty data - cosmwasm.wasm.v1.MsgExecuteContract: + description: MsgRevokeResponse defines the Msg/MsgRevokeResponse response type. + cosmos.bank.v1beta1.Input: type: object properties: - sender: - type: string - title: Sender is the that actor that signed the messages - contract: - type: string - title: Contract is the address of the smart contract - msg: + address: type: string - format: byte - title: Msg json encoded message to be passed to the contract - funds: + coins: type: array items: type: object @@ -96943,75 +22717,77 @@ definitions: NOTE: The amount field is an Int which implements the custom method signatures required by gogoproto. - title: Funds coins that are transferred to the contract on execution - title: MsgExecuteContract submits the given message data to a smart contract - cosmwasm.wasm.v1.MsgExecuteContractResponse: - type: object - properties: - data: - type: string - format: byte - title: Data contains bytes to returned from the contract - description: MsgExecuteContractResponse returns execution result data. - cosmwasm.wasm.v1.MsgInstantiateContract: + description: Input models transaction input. + cosmos.bank.v1beta1.MsgMultiSend: type: object properties: - sender: - type: string - title: Sender is the that actor that signed the messages - admin: - type: string - title: Admin is an optional address that can execute migrations - code_id: - type: string - format: uint64 - title: CodeID is the reference to the stored WASM code - label: - type: string - description: Label is optional metadata to be stored with a contract instance. - msg: - type: string - format: byte - title: Msg json encoded message to be passed to the contract on instantiation - funds: + inputs: type: array items: type: object properties: - denom: + address: type: string - amount: + coins: + 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. + description: Input models transaction input. + description: >- + Inputs, despite being `repeated`, only allows one sender input. This + is + + checked in MsgMultiSend's ValidateBasic. + outputs: + type: array + items: + type: object + properties: + address: type: string - description: |- - Coin defines a token with a denomination and an amount. + coins: + 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: Funds coins that are transferred to the contract on instantiation - description: |- - MsgInstantiateContract create a new smart contract instance for the given - code id. - cosmwasm.wasm.v1.MsgInstantiateContract2: + + NOTE: The amount field is an Int which implements the custom + method + + signatures required by gogoproto. + description: Output models transaction outputs. + description: MsgMultiSend represents an arbitrary multi-in, multi-out send message. + cosmos.bank.v1beta1.MsgMultiSendResponse: + type: object + description: MsgMultiSendResponse defines the Msg/MultiSend response type. + cosmos.bank.v1beta1.MsgSend: type: object properties: - sender: - type: string - title: Sender is the that actor that signed the messages - admin: - type: string - title: Admin is an optional address that can execute migrations - code_id: - type: string - format: uint64 - title: CodeID is the reference to the stored WASM code - label: + from_address: type: string - description: Label is optional metadata to be stored with a contract instance. - msg: + to_address: type: string - format: byte - title: Msg json encoded message to be passed to the contract on instantiation - funds: + amount: type: array items: type: object @@ -97025,166 +22801,118 @@ definitions: NOTE: The amount field is an Int which implements the custom method signatures required by gogoproto. - title: Funds coins that are transferred to the contract on instantiation - salt: - type: string - format: byte - description: >- - Salt is an arbitrary value provided by the sender. Size can be 1 to - 64. - fix_msg: - type: boolean - title: >- - FixMsg include the msg value into the hash for the predictable - address. - - Default is false - description: |- - MsgInstantiateContract2 create a new smart contract instance for the given - code id with a predicable address. - cosmwasm.wasm.v1.MsgInstantiateContract2Response: - type: object - properties: - address: - type: string - description: Address is the bech32 address of the new contract instance. - data: - type: string - format: byte - title: Data contains bytes to returned from the contract - title: MsgInstantiateContract2Response return instantiation result data - cosmwasm.wasm.v1.MsgInstantiateContractResponse: - type: object - properties: - address: - type: string - description: Address is the bech32 address of the new contract instance. - data: - type: string - format: byte - title: Data contains bytes to returned from the contract - title: MsgInstantiateContractResponse return instantiation result data - cosmwasm.wasm.v1.MsgMigrateContract: - type: object - properties: - sender: - type: string - title: Sender is the that actor that signed the messages - contract: - type: string - title: Contract is the address of the smart contract - code_id: - type: string - format: uint64 - title: CodeID references the new WASM code - msg: - type: string - format: byte - title: Msg json encoded message to be passed to the contract on migration - title: MsgMigrateContract runs a code upgrade/ downgrade for a smart contract - cosmwasm.wasm.v1.MsgMigrateContractResponse: + description: MsgSend represents a message to send coins from one account to another. + cosmos.bank.v1beta1.MsgSendResponse: type: object - properties: - data: - type: string - format: byte - title: |- - Data contains same raw bytes returned as data from the wasm contract. - (May be empty) - description: MsgMigrateContractResponse returns contract migration result data. - cosmwasm.wasm.v1.MsgPinCodes: + description: MsgSendResponse defines the Msg/Send response type. + cosmos.bank.v1beta1.MsgSetSendEnabled: type: object properties: authority: type: string - description: Authority is the address of the governance account. - code_ids: + description: authority is the address that controls the module. + send_enabled: type: array items: - type: string - format: uint64 - title: CodeIDs references the new WASM codes - description: |- - MsgPinCodes is the MsgPinCodes request type. - - Since: 0.40 - cosmwasm.wasm.v1.MsgPinCodesResponse: - type: object - description: |- - MsgPinCodesResponse defines the response structure for executing a - MsgPinCodes message. + type: object + properties: + denom: + type: string + enabled: + type: boolean + description: >- + SendEnabled maps coin denom to a send_enabled status (whether a + denom is - Since: 0.40 - cosmwasm.wasm.v1.MsgRemoveCodeUploadParamsAddresses: - type: object - properties: - authority: - type: string - description: Authority is the address of the governance account. - addresses: + sendable). + description: send_enabled is the list of entries to add or update. + use_default_for: type: array items: type: string + description: >- + use_default_for is a list of denoms that should use the + params.default_send_enabled value. + + Denoms listed here will have their SendEnabled entries deleted. + + If a denom is included that doesn't have a SendEnabled entry, + + it will be ignored. description: |- - MsgRemoveCodeUploadParamsAddresses is the - MsgRemoveCodeUploadParamsAddresses request type. - cosmwasm.wasm.v1.MsgRemoveCodeUploadParamsAddressesResponse: + MsgSetSendEnabled is the Msg/SetSendEnabled request type. + + Only entries to add/update/delete need to be included. + Existing SendEnabled entries that are not included in this + message are left unchanged. + + Since: cosmos-sdk 0.47 + cosmos.bank.v1beta1.MsgSetSendEnabledResponse: type: object description: |- - MsgRemoveCodeUploadParamsAddressesResponse defines the response - structure for executing a MsgRemoveCodeUploadParamsAddresses message. - cosmwasm.wasm.v1.MsgStoreAndInstantiateContract: + MsgSetSendEnabledResponse defines the Msg/SetSendEnabled response type. + + Since: cosmos-sdk 0.47 + cosmos.bank.v1beta1.MsgUpdateParams: type: object properties: authority: type: string - description: Authority is the address of the governance account. - wasm_byte_code: - type: string - format: byte - title: WASMByteCode can be raw or gzip compressed - instantiate_permission: - title: InstantiatePermission to apply on contract creation, optional + description: >- + authority is the address that controls the module (defaults to x/gov + unless overwritten). + params: + description: |- + params defines the x/bank parameters to update. + + NOTE: All parameters must be supplied. type: object properties: - permission: - type: string - enum: - - ACCESS_TYPE_UNSPECIFIED - - ACCESS_TYPE_NOBODY - - ACCESS_TYPE_EVERYBODY - - ACCESS_TYPE_ANY_OF_ADDRESSES - default: ACCESS_TYPE_UNSPECIFIED - description: >- - - ACCESS_TYPE_UNSPECIFIED: AccessTypeUnspecified placeholder for - empty value - - ACCESS_TYPE_NOBODY: AccessTypeNobody forbidden - - ACCESS_TYPE_EVERYBODY: AccessTypeEverybody unrestricted - - ACCESS_TYPE_ANY_OF_ADDRESSES: AccessTypeAnyOfAddresses allow any of the addresses - title: AccessType permission types - addresses: + send_enabled: type: array items: - type: string - description: AccessConfig access control type. - unpin_code: - type: boolean - description: >- - UnpinCode code on upload, optional. As default the uploaded contract - is + type: object + properties: + denom: + type: string + enabled: + type: boolean + description: >- + SendEnabled maps coin denom to a send_enabled status (whether a + denom is - pinned to cache. - admin: - type: string - title: Admin is an optional address that can execute migrations - label: - type: string - description: Label is optional metadata to be stored with a constract instance. - msg: + sendable). + description: >- + Deprecated: Use of SendEnabled in params is deprecated. + + For genesis, use the newly added send_enabled field in the genesis + object. + + Storage, lookup, and manipulation of this information is now in + the keeper. + + + As of cosmos-sdk 0.47, this only exists for backwards + compatibility of genesis files. + default_send_enabled: + type: boolean + description: |- + MsgUpdateParams is the Msg/UpdateParams request type. + + Since: cosmos-sdk 0.47 + cosmos.bank.v1beta1.MsgUpdateParamsResponse: + type: object + description: |- + MsgUpdateParamsResponse defines the response structure for executing a + MsgUpdateParams message. + + Since: cosmos-sdk 0.47 + cosmos.bank.v1beta1.Output: + type: object + properties: + address: type: string - format: byte - title: Msg json encoded message to be passed to the contract on instantiation - funds: + coins: type: array items: type: object @@ -97198,2293 +22926,2156 @@ definitions: NOTE: The amount field is an Int which implements the custom method signatures required by gogoproto. - title: >- - Funds coins that are transferred from the authority account to the - contract + description: Output models transaction outputs. + cosmos.bank.v1beta1.Params: + type: object + properties: + send_enabled: + type: array + items: + type: object + properties: + denom: + type: string + enabled: + type: boolean + description: >- + SendEnabled maps coin denom to a send_enabled status (whether a + denom is - on instantiation - source: - type: string - title: Source is the URL where the code is hosted - builder: - type: string - title: >- - Builder is the docker image used to build the code deterministically, - used + sendable). + description: >- + Deprecated: Use of SendEnabled in params is deprecated. - for smart contract verification - code_hash: - type: string - format: byte - title: >- - CodeHash is the SHA256 sum of the code outputted by builder, used for - smart + For genesis, use the newly added send_enabled field in the genesis + object. - contract verification - description: |- - MsgStoreAndInstantiateContract is the MsgStoreAndInstantiateContract - request type. + Storage, lookup, and manipulation of this information is now in the + keeper. - Since: 0.40 - cosmwasm.wasm.v1.MsgStoreAndInstantiateContractResponse: + + As of cosmos-sdk 0.47, this only exists for backwards compatibility of + genesis files. + default_send_enabled: + type: boolean + description: Params defines the parameters for the bank module. + cosmos.bank.v1beta1.SendEnabled: type: object properties: - address: - type: string - description: Address is the bech32 address of the new contract instance. - data: + denom: type: string - format: byte - title: Data contains bytes to returned from the contract + enabled: + type: boolean description: |- - MsgStoreAndInstantiateContractResponse defines the response structure - for executing a MsgStoreAndInstantiateContract message. - - Since: 0.40 - cosmwasm.wasm.v1.MsgStoreAndMigrateContract: + SendEnabled maps coin denom to a send_enabled status (whether a denom is + sendable). + cosmos.base.v1beta1.Coin: type: object properties: - authority: - type: string - description: Authority is the address of the governance account. - wasm_byte_code: - type: string - format: byte - title: WASMByteCode can be raw or gzip compressed - instantiate_permission: - title: InstantiatePermission to apply on contract creation, optional - type: object - properties: - permission: - type: string - enum: - - ACCESS_TYPE_UNSPECIFIED - - ACCESS_TYPE_NOBODY - - ACCESS_TYPE_EVERYBODY - - ACCESS_TYPE_ANY_OF_ADDRESSES - default: ACCESS_TYPE_UNSPECIFIED - description: >- - - ACCESS_TYPE_UNSPECIFIED: AccessTypeUnspecified placeholder for - empty value - - ACCESS_TYPE_NOBODY: AccessTypeNobody forbidden - - ACCESS_TYPE_EVERYBODY: AccessTypeEverybody unrestricted - - ACCESS_TYPE_ANY_OF_ADDRESSES: AccessTypeAnyOfAddresses allow any of the addresses - title: AccessType permission types - addresses: - type: array - items: - type: string - description: AccessConfig access control type. - contract: + denom: type: string - title: Contract is the address of the smart contract - msg: + amount: type: string - format: byte - title: Msg json encoded message to be passed to the contract on migration description: |- - MsgStoreAndMigrateContract is the MsgStoreAndMigrateContract - request type. + Coin defines a token with a denomination and an amount. - Since: 0.42 - cosmwasm.wasm.v1.MsgStoreAndMigrateContractResponse: + NOTE: The amount field is an Int which implements the custom method + signatures required by gogoproto. + cosmos.base.node.v1beta1.ConfigResponse: type: object properties: - code_id: + minimum_gas_price: type: string - format: uint64 - title: CodeID is the reference to the stored WASM code - checksum: - type: string - format: byte - title: Checksum is the sha256 hash of the stored code - data: + pruning_keep_recent: type: string - format: byte - title: Data contains bytes to returned from the contract - description: |- - MsgStoreAndMigrateContractResponse defines the response structure - for executing a MsgStoreAndMigrateContract message. - - Since: 0.42 - cosmwasm.wasm.v1.MsgStoreCode: - type: object - properties: - sender: + pruning_interval: type: string - title: Sender is the actor that signed the messages - wasm_byte_code: + halt_height: type: string - format: byte - title: WASMByteCode can be raw or gzip compressed - instantiate_permission: - title: |- - InstantiatePermission access control to apply on contract creation, - optional - type: object - properties: - permission: - type: string - enum: - - ACCESS_TYPE_UNSPECIFIED - - ACCESS_TYPE_NOBODY - - ACCESS_TYPE_EVERYBODY - - ACCESS_TYPE_ANY_OF_ADDRESSES - default: ACCESS_TYPE_UNSPECIFIED - description: >- - - ACCESS_TYPE_UNSPECIFIED: AccessTypeUnspecified placeholder for - empty value - - ACCESS_TYPE_NOBODY: AccessTypeNobody forbidden - - ACCESS_TYPE_EVERYBODY: AccessTypeEverybody unrestricted - - ACCESS_TYPE_ANY_OF_ADDRESSES: AccessTypeAnyOfAddresses allow any of the addresses - title: AccessType permission types - addresses: - type: array - items: - type: string - description: AccessConfig access control type. - title: MsgStoreCode submit Wasm code to the system - cosmwasm.wasm.v1.MsgStoreCodeResponse: + format: uint64 + description: ConfigResponse defines the response structure for the Config gRPC query. + cosmos.base.node.v1beta1.StatusResponse: type: object properties: - code_id: + earliest_store_height: type: string format: uint64 - title: CodeID is the reference to the stored WASM code - checksum: - type: string - format: byte - title: Checksum is the sha256 hash of the stored code - description: MsgStoreCodeResponse returns store result data. - cosmwasm.wasm.v1.MsgSudoContract: - type: object - properties: - authority: + title: earliest block height available in the store + height: type: string - description: Authority is the address of the governance account. - contract: + format: uint64 + title: current block height + timestamp: type: string - title: Contract is the address of the smart contract - msg: + format: date-time + title: block height timestamp + app_hash: type: string format: byte - title: Msg json encoded message to be passed to the contract as sudo - description: |- - MsgSudoContract is the MsgSudoContract request type. - - Since: 0.40 - cosmwasm.wasm.v1.MsgSudoContractResponse: - type: object - properties: - data: + title: app hash of the current block + validator_hash: type: string format: byte - title: Data contains bytes to returned from the contract - description: |- - MsgSudoContractResponse defines the response structure for executing a - MsgSudoContract message. - - Since: 0.40 - cosmwasm.wasm.v1.MsgUnpinCodes: + title: validator hash provided by the consensus header + description: StateResponse defines the response structure for the status of a node. + cosmos.consensus.v1.MsgUpdateParams: type: object properties: authority: type: string - description: Authority is the address of the governance account. - code_ids: - type: array - items: - type: string - format: uint64 - title: CodeIDs references the WASM codes - description: |- - MsgUnpinCodes is the MsgUnpinCodes request type. - - Since: 0.40 - cosmwasm.wasm.v1.MsgUnpinCodesResponse: - type: object - description: |- - MsgUnpinCodesResponse defines the response structure for executing a - MsgUnpinCodes message. + description: >- + authority is the address that controls the module (defaults to x/gov + unless overwritten). + block: + description: |- + params defines the x/consensus parameters to update. + VersionsParams is not included in this Msg because it is tracked + separarately in x/upgrade. - Since: 0.40 - cosmwasm.wasm.v1.MsgUpdateAdmin: - type: object - properties: - sender: - type: string - title: Sender is the that actor that signed the messages - new_admin: - type: string - title: NewAdmin address to be set - contract: - type: string - title: Contract is the address of the smart contract - title: MsgUpdateAdmin sets a new admin for a smart contract - cosmwasm.wasm.v1.MsgUpdateAdminResponse: - type: object - title: MsgUpdateAdminResponse returns empty data - cosmwasm.wasm.v1.MsgUpdateContractLabel: - type: object - properties: - sender: - type: string - title: Sender is the that actor that signed the messages - new_label: - type: string - title: NewLabel string to be set - contract: - type: string - title: Contract is the address of the smart contract - title: MsgUpdateContractLabel sets a new label for a smart contract - cosmwasm.wasm.v1.MsgUpdateContractLabelResponse: - type: object - title: MsgUpdateContractLabelResponse returns empty data - cosmwasm.wasm.v1.MsgUpdateInstantiateConfig: - type: object - properties: - sender: - type: string - title: Sender is the that actor that signed the messages - code_id: - type: string - format: uint64 - title: CodeID references the stored WASM code - new_instantiate_permission: - title: NewInstantiatePermission is the new access control + NOTE: All parameters must be supplied. type: object properties: - permission: + max_bytes: + type: string + format: int64 + title: |- + Max block size, in bytes. + Note: must be greater than 0 + max_gas: + type: string + format: int64 + title: |- + Max gas per block. + Note: must be greater or equal to -1 + evidence: + type: object + properties: + max_age_num_blocks: + type: string + format: int64 + description: >- + Max age of evidence, in blocks. + + + The basic formula for calculating this is: MaxAgeDuration / + {average block + + time}. + max_age_duration: type: string - enum: - - ACCESS_TYPE_UNSPECIFIED - - ACCESS_TYPE_NOBODY - - ACCESS_TYPE_EVERYBODY - - ACCESS_TYPE_ANY_OF_ADDRESSES - default: ACCESS_TYPE_UNSPECIFIED description: >- - - ACCESS_TYPE_UNSPECIFIED: AccessTypeUnspecified placeholder for - empty value - - ACCESS_TYPE_NOBODY: AccessTypeNobody forbidden - - ACCESS_TYPE_EVERYBODY: AccessTypeEverybody unrestricted - - ACCESS_TYPE_ANY_OF_ADDRESSES: AccessTypeAnyOfAddresses allow any of the addresses - title: AccessType permission types - addresses: + Max age of evidence, in time. + + + It should correspond with an app's "unbonding period" or other + similar + + mechanism for handling [Nothing-At-Stake + + attacks](https://github.com/ethereum/wiki/wiki/Proof-of-Stake-FAQ#what-is-the-nothing-at-stake-problem-and-how-can-it-be-fixed). + max_bytes: + type: string + format: int64 + title: >- + This sets the maximum size of total evidence in bytes that can be + committed in a single block. + + and should fall comfortably under the max block bytes. + + Default is 1048576 or 1MB + description: EvidenceParams determine how we handle evidence of malfeasance. + validator: + type: object + properties: + pub_key_types: type: array items: type: string - description: AccessConfig access control type. - title: MsgUpdateInstantiateConfig updates instantiate config for a smart contract - cosmwasm.wasm.v1.MsgUpdateInstantiateConfigResponse: - type: object - title: MsgUpdateInstantiateConfigResponse returns empty data - cosmwasm.wasm.v1.MsgUpdateParams: - type: object - properties: - authority: - type: string - description: Authority is the address of the governance account. - params: description: |- - params defines the x/wasm parameters to update. - - NOTE: All parameters must be supplied. + ValidatorParams restrict the public key types validators can use. + NOTE: uses ABCI pubkey naming, not Amino names. + abci: + title: 'Since: cosmos-sdk 0.50' type: object properties: - code_upload_access: - type: object - properties: - permission: - type: string - enum: - - ACCESS_TYPE_UNSPECIFIED - - ACCESS_TYPE_NOBODY - - ACCESS_TYPE_EVERYBODY - - ACCESS_TYPE_ANY_OF_ADDRESSES - default: ACCESS_TYPE_UNSPECIFIED - description: >- - - ACCESS_TYPE_UNSPECIFIED: AccessTypeUnspecified placeholder - for empty value - - ACCESS_TYPE_NOBODY: AccessTypeNobody forbidden - - ACCESS_TYPE_EVERYBODY: AccessTypeEverybody unrestricted - - ACCESS_TYPE_ANY_OF_ADDRESSES: AccessTypeAnyOfAddresses allow any of the addresses - title: AccessType permission types - addresses: - type: array - items: - type: string - description: AccessConfig access control type. - instantiate_default_permission: + vote_extensions_enable_height: type: string - enum: - - ACCESS_TYPE_UNSPECIFIED - - ACCESS_TYPE_NOBODY - - ACCESS_TYPE_EVERYBODY - - ACCESS_TYPE_ANY_OF_ADDRESSES - default: ACCESS_TYPE_UNSPECIFIED + format: int64 description: >- - - ACCESS_TYPE_UNSPECIFIED: AccessTypeUnspecified placeholder for - empty value - - ACCESS_TYPE_NOBODY: AccessTypeNobody forbidden - - ACCESS_TYPE_EVERYBODY: AccessTypeEverybody unrestricted - - ACCESS_TYPE_ANY_OF_ADDRESSES: AccessTypeAnyOfAddresses allow any of the addresses - title: AccessType permission types - description: |- - MsgUpdateParams is the MsgUpdateParams request type. + vote_extensions_enable_height configures the first height during + which + + vote extensions will be enabled. During this specified height, and + for all + + subsequent heights, precommit messages that do not contain valid + extension data - Since: 0.40 - cosmwasm.wasm.v1.MsgUpdateParamsResponse: + will be considered invalid. Prior to this height, vote extensions + will not + + be used or accepted by validators on the network. + + + Once enabled, vote extensions will be created by the application + in ExtendVote, + + passed to the application for validation in VerifyVoteExtension + and given + + to the application to use when proposing a block during + PrepareProposal. + description: >- + ABCIParams configure functionality specific to the Application + Blockchain Interface. + description: MsgUpdateParams is the Msg/UpdateParams request type. + cosmos.consensus.v1.MsgUpdateParamsResponse: type: object description: |- MsgUpdateParamsResponse defines the response structure for executing a MsgUpdateParams message. - - Since: 0.40 - 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.controller.v1.QueryInterchainAccountResponse: + tendermint.types.ABCIParams: type: object properties: - address: + vote_extensions_enable_height: type: string + format: int64 + description: >- + vote_extensions_enable_height configures the first height during which + + vote extensions will be enabled. During this specified height, and for + all + + subsequent heights, precommit messages that do not contain valid + extension data + + will be considered invalid. Prior to this height, vote extensions will + not + + be used or accepted by validators on the network. + + + Once enabled, vote extensions will be created by the application in + ExtendVote, + + passed to the application for validation in VerifyVoteExtension and + given + + to the application to use when proposing a block during + PrepareProposal. description: >- - QueryInterchainAccountResponse the response type for the - Query/InterchainAccount RPC method. - ibc.applications.interchain_accounts.controller.v1.QueryParamsResponse: - type: object - properties: - params: - description: params defines the parameters of the module. - type: object - properties: - controller_enabled: - type: boolean - description: controller_enabled enables or disables the controller submodule. - description: QueryParamsResponse is the response type for the Query/Params RPC method. - 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: + ABCIParams configure functionality specific to the Application Blockchain + Interface. + tendermint.types.BlockParams: type: object properties: - channel_id: + max_bytes: type: string - port_id: + format: int64 + title: |- + Max block size, in bytes. + Note: must be greater than 0 + max_gas: type: string - title: >- - MsgRegisterInterchainAccountResponse defines the response for - Msg/RegisterAccount - ibc.applications.interchain_accounts.controller.v1.MsgSendTx: + format: int64 + title: |- + Max gas per block. + Note: must be greater or equal to -1 + description: BlockParams contains limits on the block size. + tendermint.types.EvidenceParams: type: object properties: - owner: - type: string - connection_id: - type: string - packet_data: - 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: - type: string - format: byte - memo: - type: string - description: >- - InterchainAccountPacketData is comprised of a raw transaction, type of - transaction and optional memo field. - relative_timeout: + max_age_num_blocks: type: string - format: uint64 + format: int64 description: >- - Relative timeout timestamp provided will be added to the current block - time during transaction execution. + Max age of evidence, in blocks. - 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: + + The basic formula for calculating this is: MaxAgeDuration / {average + block + + time}. + max_age_duration: type: string - title: signer address - params: description: >- - params defines the 27-interchain-accounts/controller parameters to - update. + Max age of evidence, in time. - 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.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: >- - Type defines a classification of message issued from a controller - chain to its associated interchain accounts + It should correspond with an app's "unbonding period" or other similar - 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 + mechanism for handling [Nothing-At-Stake - host - ibc.applications.interchain_accounts.host.v1.MsgUpdateParams: - type: object - properties: - signer: + attacks](https://github.com/ethereum/wiki/wiki/Proof-of-Stake-FAQ#what-is-the-nothing-at-stake-problem-and-how-can-it-be-fixed). + max_bytes: type: string - title: signer address - params: - description: |- - params defines the 27-interchain-accounts/host parameters to update. + format: int64 + title: >- + This sets the maximum size of total evidence in bytes that can be + committed in a single block. - 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 - title: MsgUpdateParamsResponse defines the response for Msg/UpdateParams - ibc.applications.interchain_accounts.host.v1.Params: + and should fall comfortably under the max block bytes. + + Default is 1048576 or 1MB + description: EvidenceParams determine how we handle evidence of malfeasance. + tendermint.types.ValidatorParams: type: object properties: - host_enabled: - type: boolean - description: host_enabled enables or disables the host submodule. - allow_messages: + pub_key_types: 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.interchain_accounts.host.v1.QueryParamsResponse: - type: object - properties: - params: - description: params defines the parameters of the module. - 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: QueryParamsResponse is the response type for the Query/Params RPC method. - ibc.applications.transfer.v1.MsgTransfer: + ValidatorParams restrict the public key types validators can use. + NOTE: uses ABCI pubkey naming, not Amino names. + cosmos.crisis.v1beta1.MsgUpdateParams: type: object properties: - source_port: - type: string - title: the port on which the packet will be sent - source_channel: + authority: type: string - title: the channel by which the packet will be sent - token: - title: the tokens to be transferred + description: >- + authority is the address that controls the module (defaults to x/gov + unless overwritten). + constant_fee: + description: constant_fee defines the x/crisis parameter. 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 - 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: - 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 - 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 + description: |- + MsgUpdateParams is the Msg/UpdateParams request type. - ICS20 enabled chains. See ICS Spec here: + Since: cosmos-sdk 0.47 + cosmos.crisis.v1beta1.MsgUpdateParamsResponse: + type: object + description: |- + MsgUpdateParamsResponse defines the response structure for executing a + MsgUpdateParams message. - https://github.com/cosmos/ibc/tree/master/spec/app/ics-020-fungible-token-transfer#data-structures - ibc.applications.transfer.v1.MsgTransferResponse: + Since: cosmos-sdk 0.47 + cosmos.crisis.v1beta1.MsgVerifyInvariant: type: object properties: - sequence: + sender: 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: - signer: + description: >- + sender is the account address of private key to send coins to fee + collector account. + invariant_module_name: type: string - title: signer address - params: - description: |- - params defines the transfer 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: + description: name of the invariant module. + invariant_route: + type: string + description: invariant_route is the msg's invariant route. + description: MsgVerifyInvariant represents a message to verify a particular invariance. + cosmos.crisis.v1beta1.MsgVerifyInvariantResponse: type: object - description: |- - MsgUpdateParamsResponse defines the response structure for executing a - MsgUpdateParams message. - ibc.applications.transfer.v1.Params: + description: MsgVerifyInvariantResponse defines the Msg/VerifyInvariant response type. + cosmos.distribution.v1beta1.MsgCommunityPoolSpend: 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 + authority: + type: string description: >- - receive_enabled enables or disables all cross-chain token transfers to - this + authority is the address that controls the module (defaults to x/gov + unless overwritten). + recipient: + type: string + amount: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + description: |- + Coin defines a token with a denomination and an amount. - chain. + NOTE: The amount field is an Int which implements the custom method + signatures required by gogoproto. description: >- - Params defines the set of IBC transfer parameters. + MsgCommunityPoolSpend defines a message for sending tokens from the + community - NOTE: To prevent a single token from being transferred, set the + pool to another account. This message is typically executed via a + governance - TransfersEnabled parameter to true and then set the bank module's - SendEnabled + proposal with the governance module being the executing authority. - parameter for the denomination to false. - ibc.core.client.v1.Height: + + Since: cosmos-sdk 0.47 + cosmos.distribution.v1beta1.MsgCommunityPoolSpendResponse: + type: object + description: |- + MsgCommunityPoolSpendResponse defines the response to executing a + MsgCommunityPoolSpend message. + + Since: cosmos-sdk 0.47 + cosmos.distribution.v1beta1.MsgDepositValidatorRewardsPool: type: object properties: - revision_number: + depositor: type: string - format: uint64 - title: the revision that the client is currently on - revision_height: + validator_address: type: string - format: uint64 - title: the height within the given revision + 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. 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 + DepositValidatorRewardsPool defines the request structure to provide + additional rewards to delegators from a specific validator. - that can be compared against another Height for the purposes of updating - and + Since: cosmos-sdk 0.50 + cosmos.distribution.v1beta1.MsgDepositValidatorRewardsPoolResponse: + type: object + description: |- + MsgDepositValidatorRewardsPoolResponse defines the response to executing a + MsgDepositValidatorRewardsPool message. - freezing clients - ibc.applications.transfer.v1.DenomTrace: + Since: cosmos-sdk 0.50 + cosmos.distribution.v1beta1.MsgFundCommunityPool: type: object properties: - path: - type: string - description: >- - path defines the chain of port/channel identifiers used for tracing - the + amount: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + description: |- + Coin defines a token with a denomination and an amount. - source of the fungible token. - base_denom: + NOTE: The amount field is an Int which implements the custom method + signatures required by gogoproto. + depositor: type: string - description: base denomination of the relayed fungible token. + description: |- + MsgFundCommunityPool allows an account to directly + fund the community pool. + cosmos.distribution.v1beta1.MsgFundCommunityPoolResponse: + type: object description: >- - DenomTrace contains the base denomination for ICS20 fungible tokens and - the - - source tracing information path. - ibc.applications.transfer.v1.QueryDenomHashResponse: + MsgFundCommunityPoolResponse defines the Msg/FundCommunityPool response + type. + cosmos.distribution.v1beta1.MsgSetWithdrawAddress: type: object properties: - hash: + delegator_address: type: string - description: hash (in hex format) of the denomination trace information. + withdraw_address: + type: string + description: |- + MsgSetWithdrawAddress sets the withdraw address for + a delegator (or validator self-delegation). + cosmos.distribution.v1beta1.MsgSetWithdrawAddressResponse: + type: object description: |- - QueryDenomHashResponse is the response type for the Query/DenomHash RPC - method. - ibc.applications.transfer.v1.QueryDenomTraceResponse: + MsgSetWithdrawAddressResponse defines the Msg/SetWithdrawAddress response + type. + cosmos.distribution.v1beta1.MsgUpdateParams: type: object properties: - denom_trace: - description: denom_trace returns the requested denomination trace information. + authority: + type: string + description: >- + authority is the address that controls the module (defaults to x/gov + unless overwritten). + params: + description: |- + params defines the x/distribution parameters to update. + + NOTE: All parameters must be supplied. type: object properties: - path: + community_tax: + type: string + base_proposer_reward: type: string description: >- - path defines the chain of port/channel identifiers used for - tracing the + Deprecated: The base_proposer_reward field is deprecated and is no + longer used - source of the fungible token. - base_denom: + in the x/distribution module's reward mechanism. + bonus_proposer_reward: type: string - description: base denomination of the relayed fungible token. + description: >- + Deprecated: The bonus_proposer_reward field is deprecated and is + no longer used + + in the x/distribution module's reward mechanism. + withdraw_addr_enabled: + type: boolean + description: |- + MsgUpdateParams is the Msg/UpdateParams request type. + + Since: cosmos-sdk 0.47 + cosmos.distribution.v1beta1.MsgUpdateParamsResponse: + type: object + description: |- + MsgUpdateParamsResponse defines the response structure for executing a + MsgUpdateParams message. + + Since: cosmos-sdk 0.47 + cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward: + type: object + properties: + delegator_address: + type: string + validator_address: + type: string description: |- - QueryDenomTraceResponse is the response type for the Query/DenomTrace RPC - method. - ibc.applications.transfer.v1.QueryDenomTracesResponse: + MsgWithdrawDelegatorReward represents delegation withdrawal to a delegator + from a single validator. + cosmos.distribution.v1beta1.MsgWithdrawDelegatorRewardResponse: type: object properties: - denom_traces: + amount: type: array items: type: object properties: - path: + denom: type: string - description: >- - path defines the chain of port/channel identifiers used for - tracing the - - source of the fungible token. - base_denom: + amount: type: string - description: base denomination of the relayed fungible token. - description: >- - DenomTrace contains the base denomination for ICS20 fungible tokens - and the - - source tracing information path. - description: denom_traces returns all denominations trace information. - pagination: - description: pagination defines the pagination in the response. - 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: >- - QueryConnectionsResponse is the response type for the Query/DenomTraces - RPC + description: |- + Coin defines a token with a denomination and an amount. - method. - ibc.applications.transfer.v1.QueryEscrowAddressResponse: + NOTE: The amount field is an Int which implements the custom method + signatures required by gogoproto. + title: 'Since: cosmos-sdk 0.46' + description: |- + MsgWithdrawDelegatorRewardResponse defines the Msg/WithdrawDelegatorReward + response type. + cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission: type: object properties: - escrow_address: + validator_address: type: string - title: the escrow account address description: >- - QueryEscrowAddressResponse is the response type of the EscrowAddress RPC - method. - ibc.applications.transfer.v1.QueryParamsResponse: - type: object - properties: - params: - description: params defines the parameters of the module. - 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 + MsgWithdrawValidatorCommission withdraws the full commission to the + validator - chain. - description: QueryParamsResponse is the response type for the Query/Params RPC method. - ibc.applications.transfer.v1.QueryTotalEscrowForDenomResponse: + address. + cosmos.distribution.v1beta1.MsgWithdrawValidatorCommissionResponse: type: object properties: 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: >- - QueryTotalEscrowForDenomResponse is the response type for - TotalEscrowForDenom RPC method. - 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: - 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 + 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: 'Since: cosmos-sdk 0.46' 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: + MsgWithdrawValidatorCommissionResponse defines the + Msg/WithdrawValidatorCommission response type. + cosmos.distribution.v1beta1.Params: type: object properties: - port_id: + community_tax: + type: string + base_proposer_reward: type: string description: >- - port on the counterparty chain which owns the other end of the - channel. - channel_id: + Deprecated: The base_proposer_reward field is deprecated and is no + longer used + + in the x/distribution module's reward mechanism. + bonus_proposer_reward: type: string - title: channel end on the counterparty chain - title: Counterparty defines a channel end counterparty - ibc.core.channel.v1.MsgAcknowledgement: + description: >- + Deprecated: The bonus_proposer_reward field is deprecated and is no + longer used + + in the x/distribution module's reward mechanism. + withdraw_addr_enabled: + type: boolean + description: Params defines the set of params for the distribution module. + cosmos.evidence.v1beta1.MsgSubmitEvidence: type: object properties: - packet: + submitter: + type: string + description: submitter is the signer account address of evidence. + evidence: + description: evidence defines the evidence of misbehavior. type: object properties: - sequence: + '@type': type: string - format: uint64 description: >- - number corresponds to the order of sends and receives, where a - Packet + A URL/resource name that uniquely identifies the type of the + serialized - with an earlier sequence number must be sent and received before a - Packet + protocol buffer message. This string must contain at least - 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 + one "/" character. The last segment of the URL's path must + represent - RevisionNumber the same. However some consensus algorithms may - choose to + the fully qualified name of the type (as in - reset the height in certain conditions e.g. hard forks, - state-machine + `path/google.protobuf.Duration`). The name should be in a + canonical form - breaking changes In these cases, the RevisionNumber is incremented - so that + (e.g., leading "." is not accepted). - 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 - acknowledgement: - type: string - format: byte - proof_acked: - 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 + 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 - title: >- - Height is a monotonically increasing data type + * If no scheme is provided, `https` is assumed. - that can be compared against another Height for the purposes of - updating and + * 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.) - freezing clients - signer: - type: string - title: MsgAcknowledgement receives incoming IBC acknowledgement - ibc.core.channel.v1.MsgAcknowledgementResponse: + 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: |- + MsgSubmitEvidence represents a message that supports submitting arbitrary + Evidence of misbehavior such as equivocation or counterfactual signing. + cosmos.evidence.v1beta1.MsgSubmitEvidenceResponse: type: object properties: - result: + hash: 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: + format: byte + description: hash defines the hash of the evidence. + description: MsgSubmitEvidenceResponse defines the Msg/SubmitEvidence response type. + cosmos.feegrant.v1beta1.MsgGrantAllowance: type: object properties: - port_id: - type: string - channel_id: + granter: type: string - proof_init: + description: >- + granter is the address of the user granting an allowance of their + funds. + grantee: type: string - format: byte - proof_height: + description: >- + grantee is the address of the user being granted an allowance of + another user's funds. + allowance: + description: allowance can be any of basic, periodic, allowed fee allowance. type: object properties: - revision_number: - type: string - format: uint64 - title: the revision that the client is currently on - revision_height: + '@type': type: string - format: uint64 - title: the height within the given revision - description: >- - Normally the RevisionHeight is incremented at each height while - keeping + description: >- + A URL/resource name that uniquely identifies the type of the + serialized - RevisionNumber the same. However some consensus algorithms may choose - to + protocol buffer message. This string must contain at least - reset the height in certain conditions e.g. hard forks, state-machine + one "/" character. The last segment of the URL's path must + represent - breaking changes In these cases, the RevisionNumber is incremented so - that + the fully qualified name of the type (as in - height continues to be monitonically increasing even as the - RevisionHeight + `path/google.protobuf.Duration`). The name should be in a + canonical form - gets reset - title: >- - Height is a monotonically increasing data type + (e.g., leading "." is not accepted). - that can be compared against another Height for the purposes of - updating and - freezing clients - signer: + 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: |- + MsgGrantAllowance adds permission for Grantee to spend up to Allowance + of fees from the account of Granter. + cosmos.feegrant.v1beta1.MsgGrantAllowanceResponse: + type: object + description: >- + MsgGrantAllowanceResponse defines the Msg/GrantAllowanceResponse response + type. + cosmos.feegrant.v1beta1.MsgPruneAllowances: + type: object + properties: + pruner: type: string + description: pruner is the address of the user pruning expired allowances. 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: + MsgPruneAllowances prunes expired fee allowances. + + Since cosmos-sdk 0.50 + cosmos.feegrant.v1beta1.MsgPruneAllowancesResponse: type: object description: >- - MsgChannelCloseConfirmResponse defines the Msg/ChannelCloseConfirm - response + MsgPruneAllowancesResponse defines the Msg/PruneAllowancesResponse + response type. - type. - ibc.core.channel.v1.MsgChannelCloseInit: + + Since cosmos-sdk 0.50 + cosmos.feegrant.v1beta1.MsgRevokeAllowance: type: object properties: - port_id: - type: string - channel_id: + granter: type: string - signer: + description: >- + granter is the address of the user granting an allowance of their + funds. + grantee: 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: + description: >- + grantee is the address of the user being granted an allowance of + another user's funds. + description: MsgRevokeAllowance removes any existing Allowance from Granter to Grantee. + cosmos.feegrant.v1beta1.MsgRevokeAllowanceResponse: type: object description: >- - MsgChannelCloseInitResponse defines the Msg/ChannelCloseInit response - type. - ibc.core.channel.v1.MsgChannelOpenAck: + MsgRevokeAllowanceResponse defines the Msg/RevokeAllowanceResponse + response type. + cosmos.gov.v1.MsgCancelProposal: type: object properties: - port_id: + proposal_id: type: string - channel_id: + format: uint64 + description: proposal_id defines the unique id of the proposal. + proposer: type: string - counterparty_channel_id: + description: proposer is the account address of the proposer. + description: |- + MsgCancelProposal is the Msg/CancelProposal request type. + + Since: cosmos-sdk 0.50 + cosmos.gov.v1.MsgCancelProposalResponse: + type: object + properties: + proposal_id: type: string - counterparty_version: + format: uint64 + description: proposal_id defines the unique id of the proposal. + canceled_time: type: string - proof_try: + format: date-time + description: canceled_time is the time when proposal is canceled. + canceled_height: type: string - format: byte - proof_height: + format: uint64 + description: >- + canceled_height defines the block height at which the proposal is + canceled. + description: |- + MsgCancelProposalResponse defines the response structure for executing a + MsgCancelProposal message. + + Since: cosmos-sdk 0.50 + cosmos.gov.v1.MsgDeposit: + type: object + properties: + proposal_id: + type: string + format: uint64 + description: proposal_id defines the unique id of the proposal. + depositor: + type: string + description: depositor defines the deposit addresses from the proposals. + 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. + description: amount to be deposited by depositor. + description: MsgDeposit defines a message to submit a deposit to an existing proposal. + cosmos.gov.v1.MsgDepositResponse: + type: object + description: MsgDepositResponse defines the Msg/Deposit response type. + cosmos.gov.v1.MsgExecLegacyContent: + type: object + properties: + content: + description: content is the proposal's content. type: object properties: - revision_number: - type: string - format: uint64 - title: the revision that the client is currently on - revision_height: + '@type': type: string - format: uint64 - title: the height within the given revision - description: >- - Normally the RevisionHeight is incremented at each height while - keeping + description: >- + A URL/resource name that uniquely identifies the type of the + serialized - RevisionNumber the same. However some consensus algorithms may choose - to + protocol buffer message. This string must contain at least - reset the height in certain conditions e.g. hard forks, state-machine + one "/" character. The last segment of the URL's path must + represent - breaking changes In these cases, the RevisionNumber is incremented so - that + the fully qualified name of the type (as in - height continues to be monitonically increasing even as the - RevisionHeight + `path/google.protobuf.Duration`). The name should be in a + canonical form - gets reset - title: >- - Height is a monotonically increasing data type + (e.g., leading "." is not accepted). - that can be compared against another Height for the purposes of - updating and - freezing clients - signer: - type: string - description: >- - MsgChannelOpenAck defines a msg sent by a Relayer to Chain A to - acknowledge + In practice, teams usually precompile into the binary all types + that they - 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: - 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 + expect it to use in the context of Any. However, for URLs which + use the - RevisionNumber the same. However some consensus algorithms may choose - to + scheme `http`, `https`, or no scheme, one can optionally set up a + type - reset the height in certain conditions e.g. hard forks, state-machine + server that maps type URLs to message definitions as follows: - breaking changes In these cases, the RevisionNumber is incremented so - that - height continues to be monitonically increasing even as the - RevisionHeight + * If no scheme is provided, `https` is assumed. - gets reset - title: >- - Height is a monotonically increasing data type + * 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.) - that can be compared against another Height for the purposes of - updating and + Note: this functionality is not currently available in the + official - freezing clients - signer: - 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: - type: object - description: |- - MsgChannelOpenConfirmResponse defines the Msg/ChannelOpenConfirm response - type. - ibc.core.channel.v1.MsgChannelOpenInit: - type: object - properties: - port_id: - type: string - 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. + protobuf release, and it is not used for type URLs beginning with - - 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 + type.googleapis.com. As of May 2023, there are no widely used type + server - 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 + implementations and no plans to implement one. - modules on separate blockchains, which has at least one end capable of - sending packets and one end capable of receiving packets. - signer: + Schemes other than `http`, `https` (or the empty scheme) might be + + used with implementation specific semantics. + additionalProperties: {} + authority: type: string + description: authority must be the gov module address. description: >- - MsgChannelOpenInit defines an sdk.Msg to initialize a channel handshake. - It + MsgExecLegacyContent is used to wrap the legacy content field into a + message. - is called by a relayer on Chain A. - ibc.core.channel.v1.MsgChannelOpenInitResponse: + This ensures backwards compatibility with v1beta1.MsgSubmitProposal. + cosmos.gov.v1.MsgExecLegacyContentResponse: type: object - properties: - channel_id: - type: string - version: - type: string - description: MsgChannelOpenInitResponse defines the Msg/ChannelOpenInit response type. - ibc.core.channel.v1.MsgChannelOpenTry: + description: >- + MsgExecLegacyContentResponse defines the Msg/ExecLegacyContent response + type. + cosmos.gov.v1.MsgSubmitProposal: type: object properties: - port_id: - type: string - 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: + messages: + type: array + items: + type: object + properties: + '@type': type: string - title: >- - list of connection identifiers, in order, along which packets sent - on + 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 - 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 + name "y.z". - modules on separate blockchains, which has at least one end capable of - sending packets and one end capable of receiving packets. - counterparty_version: - type: string - proof_init: - 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 + JSON - RevisionNumber the same. However some consensus algorithms may choose - to + ==== - reset the height in certain conditions e.g. hard forks, state-machine + The JSON representation of an `Any` value uses the regular - breaking changes In these cases, the RevisionNumber is incremented so - that + representation of the deserialized, embedded message, with an - height continues to be monitonically increasing even as the - RevisionHeight + additional field `@type` which contains the type URL. Example: - gets reset - title: >- - Height is a monotonically increasing data type + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } - that can be compared against another Height for the purposes of - updating and + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } - freezing clients - signer: + 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" + } + description: messages are the arbitrary messages to be executed if proposal passes. + initial_deposit: + 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. + description: >- + initial_deposit is the deposit value that must be paid at proposal + submission. + proposer: type: string - description: >- - MsgChannelOpenInit defines a msg sent by a Relayer to try to open a - channel + description: proposer is the account address of the proposer. + metadata: + type: string + description: metadata is any arbitrary metadata attached to the proposal. + title: + type: string + description: |- + title is the title of the proposal. - on Chain B. The version field within the Channel field has been - deprecated. Its + Since: cosmos-sdk 0.47 + summary: + type: string + description: 'Since: cosmos-sdk 0.47' + title: summary is the summary of the proposal + expedited: + type: boolean + description: 'Since: cosmos-sdk 0.50' + title: expedited defines if the proposal is expedited or not + description: >- + MsgSubmitProposal defines an sdk.Msg type that supports submitting + arbitrary - value will be ignored by core IBC. - ibc.core.channel.v1.MsgChannelOpenTryResponse: + proposal Content. + cosmos.gov.v1.MsgSubmitProposalResponse: type: object properties: - version: - type: string - channel_id: + proposal_id: type: string - description: MsgChannelOpenTryResponse defines the Msg/ChannelOpenTry response type. - ibc.core.channel.v1.MsgRecvPacket: + format: uint64 + description: proposal_id defines the unique id of the proposal. + description: MsgSubmitProposalResponse defines the Msg/SubmitProposal response type. + cosmos.gov.v1.MsgUpdateParams: type: object properties: - packet: + authority: + type: string + description: >- + authority is the address that controls the module (defaults to x/gov + unless overwritten). + params: + description: |- + params defines the x/gov parameters to update. + + NOTE: All parameters must be supplied. type: object properties: - sequence: + min_deposit: + 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. + description: Minimum deposit for a proposal to enter voting period. + max_deposit_period: 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 + Maximum period for Atom holders to deposit on a proposal. Initial + value: 2 - with a later sequence number. - source_port: + months. + voting_period: type: string - description: identifies the port on the sending chain. - source_channel: + description: Duration of the voting period. + quorum: type: string - description: identifies the channel end on the sending chain. - destination_port: + description: >- + Minimum percentage of total stake needed to vote for a result to + be + considered valid. + threshold: type: string - description: identifies the port on the receiving chain. - destination_channel: + description: >- + Minimum proportion of Yes votes for proposal to pass. Default + value: 0.5. + veto_threshold: type: string - description: identifies the channel end on the receiving chain. - data: + description: >- + Minimum value of Veto votes to Total votes ratio for proposal to + be + vetoed. Default value: 1/3. + min_initial_deposit_ratio: 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 + The ratio representing the proportion of the deposit value that + must be paid at proposal submission. + proposal_cancel_ratio: + type: string + description: >- + The cancel ratio which will not be returned back to the depositors + when a proposal is cancelled. - RevisionNumber the same. However some consensus algorithms may - choose to - reset the height in certain conditions e.g. hard forks, - state-machine + Since: cosmos-sdk 0.50 + proposal_cancel_dest: + type: string + description: >- + The address which will receive (proposal_cancel_ratio * deposit) + proposal deposits. - breaking changes In these cases, the RevisionNumber is incremented - so that + If empty, the (proposal_cancel_ratio * deposit) proposal deposits + will be burned. - 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_commitment: - type: string - format: byte - proof_height: - type: object - properties: - revision_number: + Since: cosmos-sdk 0.50 + expedited_voting_period: type: string - format: uint64 - title: the revision that the client is currently on - revision_height: + description: |- + Duration of the voting period of an expedited proposal. + + Since: cosmos-sdk 0.50 + expedited_threshold: type: string - format: uint64 - title: the height within the given revision - description: >- - Normally the RevisionHeight is incremented at each height while - keeping + description: >- + Minimum proportion of Yes votes for proposal to pass. Default + value: 0.67. - RevisionNumber the same. However some consensus algorithms may choose - to - reset the height in certain conditions e.g. hard forks, state-machine + Since: cosmos-sdk 0.50 + expedited_min_deposit: + 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. + description: Minimum expedited deposit for a proposal to enter voting period. + burn_vote_quorum: + type: boolean + title: burn deposits if a proposal does not meet quorum + burn_proposal_deposit_prevote: + type: boolean + title: burn deposits if the proposal does not enter voting period + burn_vote_veto: + type: boolean + title: burn deposits if quorum with vote type no_veto is met + min_deposit_ratio: + type: string + description: >- + The ratio representing the proportion of the deposit value minimum + that must be met when making a deposit. - that can be compared against another Height for the purposes of - updating and + Default value: 0.01. Meaning that for a chain with a min_deposit + of 100stake, a deposit of 1stake would be - freezing clients - signer: - type: string - title: MsgRecvPacket receives incoming IBC packet - ibc.core.channel.v1.MsgRecvPacketResponse: + required. + + + Since: cosmos-sdk 0.50 + description: |- + MsgUpdateParams is the Msg/UpdateParams request type. + + Since: cosmos-sdk 0.47 + cosmos.gov.v1.MsgUpdateParamsResponse: + type: object + description: |- + MsgUpdateParamsResponse defines the response structure for executing a + MsgUpdateParams message. + + Since: cosmos-sdk 0.47 + cosmos.gov.v1.MsgVote: type: object properties: - result: + proposal_id: + type: string + format: uint64 + description: proposal_id defines the unique id of the proposal. + voter: + type: string + description: voter is the voter address for the proposal. + option: + description: option defines the vote option. 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: + - VOTE_OPTION_UNSPECIFIED + - VOTE_OPTION_YES + - VOTE_OPTION_ABSTAIN + - VOTE_OPTION_NO + - VOTE_OPTION_NO_WITH_VETO + default: VOTE_OPTION_UNSPECIFIED + metadata: + type: string + description: metadata is any arbitrary metadata attached to the Vote. + description: MsgVote defines a message to cast a vote. + cosmos.gov.v1.MsgVoteResponse: + type: object + description: MsgVoteResponse defines the Msg/Vote response type. + cosmos.gov.v1.MsgVoteWeighted: 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 + proposal_id: + type: string + format: uint64 + description: proposal_id defines the unique id of the proposal. + voter: + type: string + description: voter is the voter address for the proposal. + options: + type: array + items: + type: object + properties: + option: + description: >- + option defines the valid vote options, it must not contain + duplicate vote options. + type: string + enum: + - VOTE_OPTION_UNSPECIFIED + - VOTE_OPTION_YES + - VOTE_OPTION_ABSTAIN + - VOTE_OPTION_NO + - VOTE_OPTION_NO_WITH_VETO + default: VOTE_OPTION_UNSPECIFIED + weight: + type: string + description: weight is the vote weight associated with the vote option. + description: WeightedVoteOption defines a unit of vote for vote split. + description: options defines the weighted vote options. + metadata: + type: string + description: metadata is any arbitrary metadata attached to the VoteWeighted. + description: MsgVoteWeighted defines a message to cast a vote. + cosmos.gov.v1.MsgVoteWeightedResponse: + type: object + description: MsgVoteWeightedResponse defines the Msg/VoteWeighted response type. + cosmos.gov.v1.Params: + type: object + properties: + min_deposit: + 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 + NOTE: The amount field is an Int which implements the custom method + signatures required by gogoproto. + description: Minimum deposit for a proposal to enter voting period. + max_deposit_period: + type: string + description: >- + Maximum period for Atom holders to deposit on a proposal. Initial + value: 2 - 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 + months. + voting_period: + type: string + description: Duration of the voting period. + quorum: + type: string + description: |- + Minimum percentage of total stake needed to vote for a result to be + considered valid. + threshold: + type: string + description: >- + Minimum proportion of Yes votes for proposal to pass. Default value: + 0.5. + veto_threshold: + type: string + description: |- + Minimum value of Veto votes to Total votes ratio for proposal to be + vetoed. Default value: 1/3. + min_initial_deposit_ratio: + type: string + description: >- + The ratio representing the proportion of the deposit value that must + be paid at proposal submission. + proposal_cancel_ratio: + type: string + description: >- + The cancel ratio which will not be returned back to the depositors + when a proposal is cancelled. - RevisionNumber the same. However some consensus algorithms may - choose to - reset the height in certain conditions e.g. hard forks, - state-machine + Since: cosmos-sdk 0.50 + proposal_cancel_dest: + type: string + description: >- + The address which will receive (proposal_cancel_ratio * deposit) + proposal deposits. + + If empty, the (proposal_cancel_ratio * deposit) proposal deposits will + be burned. - breaking changes In these cases, the RevisionNumber is incremented - so that - height continues to be monitonically increasing even as the - RevisionHeight + Since: cosmos-sdk 0.50 + expedited_voting_period: + type: string + description: |- + Duration of the voting period of an expedited proposal. - 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: + Since: cosmos-sdk 0.50 + expedited_threshold: 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 + Minimum proportion of Yes votes for proposal to pass. Default value: + 0.67. - RevisionNumber the same. However some consensus algorithms may choose - to - reset the height in certain conditions e.g. hard forks, state-machine + Since: cosmos-sdk 0.50 + expedited_min_deposit: + 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 + NOTE: The amount field is an Int which implements the custom method + signatures required by gogoproto. + description: Minimum expedited deposit for a proposal to enter voting period. + burn_vote_quorum: + type: boolean + title: burn deposits if a proposal does not meet quorum + burn_proposal_deposit_prevote: + type: boolean + title: burn deposits if the proposal does not enter voting period + burn_vote_veto: + type: boolean + title: burn deposits if quorum with vote type no_veto is met + min_deposit_ratio: + type: string + description: >- + The ratio representing the proportion of the deposit value minimum + that must be met when making a deposit. - height continues to be monitonically increasing even as the - RevisionHeight + Default value: 0.01. Meaning that for a chain with a min_deposit of + 100stake, a deposit of 1stake would be - gets reset - title: >- - Height is a monotonically increasing data type + required. - that can be compared against another Height for the purposes of - updating and - freezing clients - next_sequence_recv: + Since: cosmos-sdk 0.50 + description: |- + Params defines the parameters for the x/gov module. + + Since: cosmos-sdk 0.47 + cosmos.gov.v1.VoteOption: + type: string + enum: + - VOTE_OPTION_UNSPECIFIED + - VOTE_OPTION_YES + - VOTE_OPTION_ABSTAIN + - VOTE_OPTION_NO + - VOTE_OPTION_NO_WITH_VETO + default: VOTE_OPTION_UNSPECIFIED + description: >- + VoteOption enumerates the valid vote options for a given governance + proposal. + + - VOTE_OPTION_UNSPECIFIED: VOTE_OPTION_UNSPECIFIED defines a no-op vote option. + - VOTE_OPTION_YES: VOTE_OPTION_YES defines a yes vote option. + - VOTE_OPTION_ABSTAIN: VOTE_OPTION_ABSTAIN defines an abstain vote option. + - VOTE_OPTION_NO: VOTE_OPTION_NO defines a no vote option. + - VOTE_OPTION_NO_WITH_VETO: VOTE_OPTION_NO_WITH_VETO defines a no with veto vote option. + cosmos.gov.v1.WeightedVoteOption: + type: object + properties: + option: + description: >- + option defines the valid vote options, it must not contain duplicate + vote options. + type: string + enum: + - VOTE_OPTION_UNSPECIFIED + - VOTE_OPTION_YES + - VOTE_OPTION_ABSTAIN + - VOTE_OPTION_NO + - VOTE_OPTION_NO_WITH_VETO + default: VOTE_OPTION_UNSPECIFIED + weight: + type: string + description: weight is the vote weight associated with the vote option. + description: WeightedVoteOption defines a unit of vote for vote split. + cosmos.gov.v1beta1.MsgDeposit: + type: object + properties: + proposal_id: type: string format: uint64 - signer: + description: proposal_id defines the unique id of the proposal. + depositor: type: string - title: MsgTimeout receives timed-out packet - ibc.core.channel.v1.MsgTimeoutOnClose: + description: depositor defines the deposit addresses from the proposals. + 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. + description: amount to be deposited by depositor. + description: MsgDeposit defines a message to submit a deposit to an existing proposal. + cosmos.gov.v1beta1.MsgDepositResponse: + type: object + description: MsgDepositResponse defines the Msg/Deposit response type. + cosmos.gov.v1beta1.MsgSubmitProposal: type: object properties: - packet: + content: + description: content is the proposal's content. type: object properties: - sequence: + '@type': type: string - format: uint64 description: >- - number corresponds to the order of sends and receives, where a - Packet + A URL/resource name that uniquely identifies the type of the + serialized - with an earlier sequence number must be sent and received before a - Packet + protocol buffer message. This string must contain at least - 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 + one "/" character. The last segment of the URL's path must + represent - RevisionNumber the same. However some consensus algorithms may - choose to + the fully qualified name of the type (as in - reset the height in certain conditions e.g. hard forks, - state-machine + `path/google.protobuf.Duration`). The name should be in a + canonical form - breaking changes In these cases, the RevisionNumber is incremented - so that + (e.g., leading "." is not accepted). - 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: - 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 + 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 - title: >- - Height is a monotonically increasing data type + * If no scheme is provided, `https` is assumed. - that can be compared against another Height for the purposes of - updating and + * 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.) - freezing clients - next_sequence_recv: + 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: {} + initial_deposit: + 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. + description: >- + initial_deposit is the deposit value that must be paid at proposal + submission. + proposer: type: string - format: uint64 - signer: + description: proposer is the account address of the proposer. + description: >- + MsgSubmitProposal defines an sdk.Msg type that supports submitting + arbitrary + + proposal Content. + cosmos.gov.v1beta1.MsgSubmitProposalResponse: + type: object + properties: + proposal_id: type: string - description: MsgTimeoutOnClose timed-out packet upon counterparty channel closure. - ibc.core.channel.v1.MsgTimeoutOnCloseResponse: + format: uint64 + description: proposal_id defines the unique id of the proposal. + description: MsgSubmitProposalResponse defines the Msg/SubmitProposal response type. + cosmos.gov.v1beta1.MsgVote: type: object properties: - result: + proposal_id: + type: string + format: uint64 + description: proposal_id defines the unique id of the proposal. + voter: + type: string + description: voter is the voter address for the proposal. + option: + description: option defines the vote option. 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: + - VOTE_OPTION_UNSPECIFIED + - VOTE_OPTION_YES + - VOTE_OPTION_ABSTAIN + - VOTE_OPTION_NO + - VOTE_OPTION_NO_WITH_VETO + default: VOTE_OPTION_UNSPECIFIED + description: MsgVote defines a message to cast a vote. + cosmos.gov.v1beta1.MsgVoteResponse: + type: object + description: MsgVoteResponse defines the Msg/Vote response type. + cosmos.gov.v1beta1.MsgVoteWeighted: type: object properties: - result: + proposal_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: + format: uint64 + description: proposal_id defines the unique id of the proposal. + voter: + type: string + description: voter is the voter address for the proposal. + options: + type: array + items: + type: object + properties: + option: + description: >- + option defines the valid vote options, it must not contain + duplicate vote options. + type: string + enum: + - VOTE_OPTION_UNSPECIFIED + - VOTE_OPTION_YES + - VOTE_OPTION_ABSTAIN + - VOTE_OPTION_NO + - VOTE_OPTION_NO_WITH_VETO + default: VOTE_OPTION_UNSPECIFIED + weight: + type: string + description: weight is the vote weight associated with the vote option. + description: |- + WeightedVoteOption defines a unit of vote for vote split. + + Since: cosmos-sdk 0.43 + description: options defines the weighted vote options. + description: |- + MsgVoteWeighted defines a message to cast a vote. + + Since: cosmos-sdk 0.43 + cosmos.gov.v1beta1.MsgVoteWeightedResponse: + type: object + description: |- + MsgVoteWeightedResponse defines the Msg/VoteWeighted response type. + + Since: cosmos-sdk 0.43 + cosmos.gov.v1beta1.VoteOption: type: string enum: - - ORDER_NONE_UNSPECIFIED - - ORDER_UNORDERED - - ORDER_ORDERED - default: ORDER_NONE_UNSPECIFIED + - VOTE_OPTION_UNSPECIFIED + - VOTE_OPTION_YES + - VOTE_OPTION_ABSTAIN + - VOTE_OPTION_NO + - VOTE_OPTION_NO_WITH_VETO + default: VOTE_OPTION_UNSPECIFIED + description: >- + VoteOption enumerates the valid vote options for a given governance + proposal. + + - VOTE_OPTION_UNSPECIFIED: VOTE_OPTION_UNSPECIFIED defines a no-op vote option. + - VOTE_OPTION_YES: VOTE_OPTION_YES defines a yes vote option. + - VOTE_OPTION_ABSTAIN: VOTE_OPTION_ABSTAIN defines an abstain vote option. + - VOTE_OPTION_NO: VOTE_OPTION_NO defines a no vote option. + - VOTE_OPTION_NO_WITH_VETO: VOTE_OPTION_NO_WITH_VETO defines a no with veto vote option. + cosmos.gov.v1beta1.WeightedVoteOption: + type: object + properties: + option: + description: >- + option defines the valid vote options, it must not contain duplicate + vote options. + type: string + enum: + - VOTE_OPTION_UNSPECIFIED + - VOTE_OPTION_YES + - VOTE_OPTION_ABSTAIN + - VOTE_OPTION_NO + - VOTE_OPTION_NO_WITH_VETO + default: VOTE_OPTION_UNSPECIFIED + weight: + type: string + description: weight is the vote weight associated with the vote option. 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: + WeightedVoteOption defines a unit of vote for vote split. + + Since: cosmos-sdk 0.43 + cosmos.mint.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/mint parameters to update. + + NOTE: All parameters must be supplied. + type: object + properties: + mint_denom: + type: string + title: type of coin to mint + inflation_rate_change: + type: string + title: maximum annual change in inflation rate + inflation_max: + type: string + title: maximum inflation rate + inflation_min: + type: string + title: minimum inflation rate + goal_bonded: + type: string + title: goal of percent bonded atoms + blocks_per_year: + type: string + format: uint64 + title: expected blocks per year + description: |- + MsgUpdateParams is the Msg/UpdateParams request type. + + Since: cosmos-sdk 0.47 + cosmos.mint.v1beta1.MsgUpdateParamsResponse: + type: object + description: |- + MsgUpdateParamsResponse defines the response structure for executing a + MsgUpdateParams message. + + Since: cosmos-sdk 0.47 + cosmos.mint.v1beta1.Params: + type: object + properties: + mint_denom: + type: string + title: type of coin to mint + inflation_rate_change: + type: string + title: maximum annual change in inflation rate + inflation_max: + type: string + title: maximum inflation rate + inflation_min: + type: string + title: minimum inflation rate + goal_bonded: + type: string + title: goal of percent bonded atoms + blocks_per_year: + type: string + format: uint64 + title: expected blocks per year + description: Params defines the parameters for the x/mint module. + cosmos.nft.v1beta1.MsgSend: type: object properties: - sequence: + class_id: 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: + title: >- + class_id defines the unique identifier of the nft classification, + similar to the contract address of ERC721 + id: type: string - description: identifies the port on the sending chain. - source_channel: + title: id defines the unique identification of nft + sender: type: string - description: identifies the channel end on the sending chain. - destination_port: + title: sender is the address of the owner of nft + receiver: type: string - description: identifies the port on the receiving chain. - destination_channel: + 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 - description: identifies the channel end on the receiving chain. - data: + key: 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 + 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: - revision_number: + subspace: type: string - format: uint64 - title: the revision that the client is currently on - revision_height: + key: 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 + 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 - reset the height in certain conditions e.g. hard forks, state-machine + the subspace. - breaking changes In these cases, the RevisionNumber is incremented so - that - height continues to be monitonically increasing even as the - RevisionHeight + Since: cosmos-sdk 0.46 + description: |- + QuerySubspacesResponse defines the response types for querying for all + registered subspaces and all keys for a subspace. - gets reset - timeout_timestamp: + Since: cosmos-sdk 0.46 + cosmos.params.v1beta1.Subspace: + type: object + properties: + subspace: 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 + keys: + type: array + items: + type: string description: |- - State defines if a channel is in one of the following states: - CLOSED, INIT, TRYOPEN, OPEN or UNINITIALIZED. + Subspace defines a parameter subspace name and all the keys that exist for + the subspace. - - 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. - ibc.core.channel.v1.IdentifiedChannel: + Since: cosmos-sdk 0.46 + cosmos.slashing.v1beta1.MsgUnjail: type: object properties: - state: - title: current state of the channel end + validator_addr: 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 + 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 - enum: - - ORDER_NONE_UNSPECIFIED - - ORDER_UNORDERED - - ORDER_ORDERED - default: ORDER_NONE_UNSPECIFIED + description: >- + authority is the address that controls the module (defaults to x/gov + unless overwritten). + params: 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 + params defines the x/slashing parameters to update. + + NOTE: All parameters must be supplied. type: object properties: - port_id: + signed_blocks_window: type: string - description: >- - port on the counterparty chain which owns the other end of the - channel. - channel_id: + format: int64 + min_signed_per_window: 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: + 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 - title: opaque channel version, which is agreed upon during the handshake - port_id: + format: int64 + min_signed_per_window: type: string - title: port identifier - channel_id: + format: byte + downtime_jail_duration: type: string - title: channel identifier - description: |- - IdentifiedChannel defines a channel with additional port and channel - identifier fields. - ibc.core.channel.v1.PacketState: + 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: - port_id: + rate: type: string - description: channel port identifier. - channel_id: + description: rate is the commission rate charged to delegators, as a fraction. + max_rate: type: string - description: channel unique identifier. - sequence: + description: >- + max_rate defines the maximum commission rate which validator can ever + charge, as a fraction. + max_change_rate: type: string - format: uint64 - description: packet sequence. - data: + 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 - format: byte - description: embedded data that represents packet state. - description: |- - PacketState defines the generic type necessary to retrieve and store - packet commitments, acknowledgements, and receipts. - Caller is responsible for knowing the context necessary to interpret this - state as a commitment, acknowledgement, or a receipt. - ibc.core.channel.v1.QueryChannelClientStateResponse: + 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: - identified_client_state: - title: client state associated with the channel + delegator_address: + type: string + validator_src_address: + type: string + validator_dst_address: + type: string + amount: type: object properties: - client_id: + denom: type: string - title: client identifier - client_state: - title: 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. - - - 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][]): + amount: + type: string + description: |- + Coin defines a token with a denomination and an amount. - { - "@type": "type.googleapis.com/google.protobuf.Duration", - "value": "1.212s" - } + 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: + type: object + 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: + type: string + validator_address: + type: string + amount: + type: object + properties: + denom: + type: string + amount: + type: string description: |- - IdentifiedClientState defines a client state with an additional client - identifier field. - proof: + 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: type: string - format: byte - title: merkle proof of existence - proof_height: - title: height at which the proof was retrieved + 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: 'Since: cosmos-sdk 0.46' + title: MsgCancelUnbondingDelegationResponse + cosmos.staking.v1beta1.MsgCreateValidator: + type: object + properties: + description: type: object properties: - revision_number: + moniker: type: string - format: uint64 - title: the revision that the client is currently on - revision_height: + description: moniker defines a human-readable name for the validator. + identity: type: string - format: uint64 - title: the height within the given revision + 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: >- - 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 + CommissionRates defines the initial commission rates to be used for + creating - breaking changes In these cases, the RevisionNumber is incremented so - that + a validator. + min_self_delegation: + type: string + delegator_address: + type: string + description: >- + Deprecated: Use of Delegator Address in MsgCreateValidator is + deprecated. - height continues to be monitonically increasing even as the - RevisionHeight + The validator address bytes and delegator address bytes refer to the + same account while creating validator (defer - gets reset - title: |- - QueryChannelClientStateResponse is the Response type for the - Query/QueryChannelClientState RPC method - ibc.core.channel.v1.QueryChannelConsensusStateResponse: - type: object - properties: - consensus_state: - title: consensus state associated with the channel + only in bech32 notation). + validator_address: + type: string + pubkey: type: object properties: '@type': @@ -99647,749 +25238,799 @@ definitions: "@type": "type.googleapis.com/google.protobuf.Duration", "value": "1.212s" } - client_id: + value: + 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: MsgCreateValidator defines a SDK message for creating a new validator. + cosmos.staking.v1beta1.MsgCreateValidatorResponse: + type: object + description: MsgCreateValidatorResponse defines the Msg/CreateValidator response type. + cosmos.staking.v1beta1.MsgDelegate: + type: object + properties: + delegator_address: type: string - title: client ID associated with the consensus state - proof: + validator_address: type: string - format: byte - title: merkle proof of existence - proof_height: - title: height at which the proof was retrieved + 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 - 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 + description: |- + Coin defines a token with a denomination and an amount. - gets reset - title: |- - QueryChannelClientStateResponse is the Response type for the - Query/QueryChannelClientState RPC method - ibc.core.channel.v1.QueryChannelResponse: + 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: + type: object + description: MsgDelegateResponse defines the Msg/Delegate response type. + cosmos.staking.v1beta1.MsgEditValidator: type: object properties: - channel: - title: channel associated with the request identifiers + description: type: object properties: - state: - title: current state of the channel end + moniker: 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 + description: moniker defines a human-readable name for the validator. + identity: 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: + description: >- + identity defines an optional identity signature (ex. UPort or + Keybase). + website: type: string - title: opaque channel version, which is agreed upon during the handshake - description: >- - Channel defines pipeline for exactly-once packet delivery between - specific + 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 - modules on separate blockchains, which has at least one end capable of + it's not mandatory to update. If not updated, the deserialized rate + will be - sending packets and one end capable of receiving packets. - proof: + zero with no way to distinguish if an update was intended. + + REF: #2373 + min_self_delegation: type: string - format: byte - title: merkle proof of existence - proof_height: - title: height at which the proof was retrieved + 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: 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 - 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 - description: >- - QueryChannelResponse is the response type for the Query/Channel RPC - method. - - Besides the Channel end, it includes a proof and the height from which the + description: |- + Coin defines a token with a denomination and an amount. - proof was retrieved. - ibc.core.channel.v1.QueryChannelsResponse: + 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: - channels: - type: array - items: - 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 - port_id: - type: string - title: port identifier - channel_id: - type: string - title: channel identifier - description: |- - IdentifiedChannel defines a channel with additional port and channel - identifier fields. - description: list of stored channels of the chain. - pagination: - title: pagination response + completion_time: + type: string + format: date-time + amount: type: object properties: - next_key: + denom: 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: + amount: type: string - format: uint64 - title: >- - total is total number of results available if - PageRequest.count_total + description: |- + Coin defines a token with a denomination and an amount. - was set, its value is undefined otherwise + 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: + type: string + description: >- + authority is the address that controls the module (defaults to x/gov + unless overwritten). + params: description: |- - PageResponse is to be embedded in gRPC response messages where the - corresponding request message has used PageRequest. + params defines the x/staking parameters to update. - message SomeResponse { - repeated Bar results = 1; - PageResponse page = 2; - } - height: - title: query block height + NOTE: All parameters must be supplied. type: object properties: - revision_number: + unbonding_time: type: string - format: uint64 - title: the revision that the client is currently on - revision_height: + 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 - 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 + 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. - height continues to be monitonically increasing even as the - RevisionHeight + Since: cosmos-sdk 0.47 + cosmos.staking.v1beta1.MsgUpdateParamsResponse: + type: object + description: |- + MsgUpdateParamsResponse defines the response structure for executing a + MsgUpdateParams message. - gets reset - description: >- - QueryChannelsResponse is the response type for the Query/Channels RPC - method. - ibc.core.channel.v1.QueryConnectionChannelsResponse: + 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: - channels: + recv_fee: type: array items: type: object properties: - state: - title: current state of the channel end + denom: 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 + amount: 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 + description: |- + Coin defines a token with a denomination and an amount. - this channel will travel - version: + 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 - title: >- - opaque channel version, which is agreed upon during the - handshake - port_id: + 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 - title: port identifier - channel_id: + amount: type: string - title: channel identifier description: |- - IdentifiedChannel defines a channel with additional port and channel - identifier fields. - description: list of channels associated with a connection. - pagination: - title: pagination response + 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: - 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 + 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. - 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; - } - height: - title: query block 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: 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 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. - 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 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 - gets reset - title: |- - QueryConnectionChannelsResponse is the Response type for the - Query/QueryConnectionChannels RPC method - ibc.core.channel.v1.QueryNextSequenceReceiveResponse: + 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: - next_sequence_receive: - type: string - format: uint64 - title: next sequence receive number - proof: - type: string - format: byte - title: merkle proof of existence - proof_height: - title: height at which the proof was retrieved + 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: |- - QuerySequenceResponse is the request type for the - Query/QueryNextSequenceReceiveResponse RPC method - ibc.core.channel.v1.QueryNextSequenceSendResponse: - type: object - properties: - next_sequence_send: - type: string - format: uint64 - title: next sequence send number - proof: - type: string - format: byte - title: merkle proof of existence - proof_height: - title: height at which the proof was retrieved - 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 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. - 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 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 - gets reset - title: |- - QueryNextSequenceSendResponse is the request type for the - Query/QueryNextSequenceSend RPC method - ibc.core.channel.v1.QueryPacketAcknowledgementResponse: + 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: - acknowledgement: + port_id: type: string - format: byte - title: packet associated with the request fields - proof: + title: unique port identifier + channel_id: type: string - format: byte - title: merkle proof of existence - proof_height: - title: height at which the proof was retrieved + 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: - 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: |- - QueryPacketAcknowledgementResponse defines the client query response for a - packet which also includes a proof and the height from which the - proof was retrieved - ibc.core.channel.v1.QueryPacketAcknowledgementsResponse: - type: object - properties: - acknowledgements: - type: array - items: - type: object - properties: - port_id: - type: string - description: channel port identifier. - channel_id: - type: string - description: channel unique identifier. - sequence: - type: string - format: uint64 - description: packet sequence. - data: - type: string - format: byte - description: embedded data that represents packet state. - description: >- - PacketState defines the generic type necessary to retrieve and store + 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. - packet commitments, acknowledgements, and receipts. - Caller is responsible for knowing the context necessary to interpret - this + NOTE: The amount field is an Int which implements the custom + method - state as a commitment, acknowledgement, or a receipt. - pagination: - title: pagination response + 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: object properties: - next_key: + type: type: string - format: byte + enum: + - TYPE_UNSPECIFIED + - TYPE_EXECUTE_TX + default: TYPE_UNSPECIFIED 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 + - TYPE_UNSPECIFIED: Default zero value enumeration + - TYPE_EXECUTE_TX: Execute a transaction on an interchain accounts host chain 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. + Type defines a classification of message issued from a controller + chain to its associated interchain accounts - message SomeResponse { - repeated Bar results = 1; - PageResponse page = 2; - } - height: - title: query block height - type: object - properties: - revision_number: + host + data: type: string - format: uint64 - title: the revision that the client is currently on - revision_height: + 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 - - breaking changes In these cases, the RevisionNumber is incremented so - that - - height continues to be monitonically increasing even as the - RevisionHeight + 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. - gets reset - title: |- - QueryPacketAcknowledgemetsResponse is the request type for the - Query/QueryPacketAcknowledgements RPC method - ibc.core.channel.v1.QueryPacketCommitmentResponse: + 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: - commitment: + sequence: type: string - format: byte - title: packet associated with the request fields - proof: + format: uint64 + title: MsgSendTxResponse defines the response for MsgSendTx + ibc.applications.interchain_accounts.controller.v1.MsgUpdateParams: + type: object + properties: + signer: type: string - format: byte - title: merkle proof of existence - proof_height: - title: height at which the proof was retrieved - 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 + title: signer address + params: 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 + params defines the 27-interchain-accounts/controller parameters to + update. - breaking changes In these cases, the RevisionNumber is incremented so - that - height continues to be monitonically increasing even as the - RevisionHeight + 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: >- + Type defines a classification of message issued from a controller + chain to its associated interchain accounts - gets reset + 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: >- - QueryPacketCommitmentResponse defines the client query response for a - packet + Type defines a classification of message issued from a controller chain to + its associated interchain accounts - which also includes a proof and the height from which the proof was + host + ibc.applications.interchain_accounts.host.v1.MsgUpdateParams: + type: object + properties: + signer: + type: string + title: signer address + params: + description: |- + params defines the 27-interchain-accounts/host parameters to update. - retrieved - ibc.core.channel.v1.QueryPacketCommitmentsResponse: + 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 + title: MsgUpdateParamsResponse defines the response for Msg/UpdateParams + ibc.applications.interchain_accounts.host.v1.Params: + 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: type: object properties: - commitments: - type: array - items: - type: object - properties: - port_id: - type: string - description: channel port identifier. - channel_id: - type: string - description: channel unique identifier. - sequence: - type: string - format: uint64 - description: packet sequence. - data: - type: string - format: byte - description: embedded data that represents packet state. - description: >- - PacketState defines the generic type necessary to retrieve and store - - packet commitments, acknowledgements, and receipts. - - Caller is responsible for knowing the context necessary to interpret - this - - state as a commitment, acknowledgement, or a receipt. - pagination: - title: pagination response + source_port: + type: string + title: the port on which the packet will be sent + source_channel: + type: string + title: the channel by which the packet will be sent + token: + title: the tokens to be transferred type: object properties: - next_key: + denom: 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: + amount: 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. + Coin defines a token with a denomination and an amount. - message SomeResponse { - repeated Bar results = 1; - PageResponse page = 2; - } - height: - title: query block height + NOTE: The amount field is an Int which implements the custom method + signatures required by gogoproto. + sender: + type: string + 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: @@ -100400,121 +26041,271 @@ 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 + title: >- + Height is a monotonically increasing data type - reset the height in certain conditions e.g. hard forks, state-machine + that can be compared against another Height for the purposes of + updating and - breaking changes In these cases, the RevisionNumber is incremented so - that + 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 - height continues to be monitonically increasing even as the - RevisionHeight + ICS20 enabled chains. See ICS Spec here: - gets reset - title: |- - QueryPacketCommitmentsResponse is the request type for the - Query/QueryPacketCommitments RPC method - ibc.core.channel.v1.QueryPacketReceiptResponse: + https://github.com/cosmos/ibc/tree/master/spec/app/ics-020-fungible-token-transfer#data-structures + ibc.applications.transfer.v1.MsgTransferResponse: type: object properties: - received: - type: boolean - title: success flag for if receipt exists - proof: + sequence: type: string - format: byte - title: merkle proof of existence - proof_height: - title: height at which the proof was retrieved + 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: + signer: + type: string + title: signer address + params: + description: |- + params defines the transfer parameters to update. + + NOTE: All parameters must be supplied. 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 + 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: >- - Normally the RevisionHeight is incremented at each height while - keeping + send_enabled enables or disables all cross-chain token transfers from + this - RevisionNumber the same. However some consensus algorithms may choose - to + chain. + receive_enabled: + type: boolean + description: >- + receive_enabled enables or disables all cross-chain token transfers to + this - reset the height in certain conditions e.g. hard forks, state-machine + chain. + description: >- + Params defines the set of IBC transfer parameters. - breaking changes In these cases, the RevisionNumber is incremented so - that + NOTE: To prevent a single token from being transferred, set the - height continues to be monitonically increasing even as the - RevisionHeight + TransfersEnabled parameter to true and then set the bank module's + SendEnabled - gets reset + 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: >- - QueryPacketReceiptResponse defines the client query response for a packet + Height is a monotonically increasing data type - receipt which also includes a proof, and the height from which the proof - was + that can be compared against another Height for the purposes of updating + and - retrieved - ibc.core.channel.v1.QueryUnreceivedAcksResponse: + freezing clients + ibc.core.channel.v1.Channel: type: object properties: - sequences: + 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 - format: uint64 - title: list of unreceived acknowledgement sequences - height: - title: query block height + 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. + ibc.core.channel.v1.Counterparty: + 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 + title: Counterparty defines a channel end counterparty + ibc.core.channel.v1.MsgAcknowledgement: + type: object + properties: + packet: type: object properties: - revision_number: + sequence: type: string format: uint64 - title: the revision that the client is currently on - revision_height: + 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 - format: uint64 - title: the height within the given revision - description: >- - Normally the RevisionHeight is incremented at each height while - keeping + 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 + 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 - title: |- - QueryUnreceivedAcksResponse is the response type for the - Query/UnreceivedAcks RPC method - ibc.core.channel.v1.QueryUnreceivedPacketsResponse: - type: object - properties: - sequences: - type: array - items: - type: string - format: uint64 - title: list of unreceived packet sequences - height: - title: query block height + 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: + type: string + format: byte + proof_acked: + type: string + format: byte + proof_height: type: object properties: revision_number: @@ -100540,188 +26331,46 @@ definitions: height continues to be monitonically increasing even as the RevisionHeight - gets reset - title: |- - QueryUnreceivedPacketsResponse is the response type for the - Query/UnreceivedPacketCommitments RPC method - ibc.core.client.v1.IdentifiedClientState: - type: object - properties: - client_id: - type: string - title: client identifier - client_state: - title: 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. - - - 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` + 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" - } - description: |- - IdentifiedClientState defines a client state with an additional client - identifier field. - ibc.core.client.v1.ConsensusStateWithHeight: + freezing clients + signer: + type: string + title: MsgAcknowledgement receives incoming IBC acknowledgement + ibc.core.channel.v1.MsgAcknowledgementResponse: type: object properties: - height: - title: consensus state height + 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: MsgAcknowledgementResponse defines the Msg/Acknowledgement response type. + ibc.core.channel.v1.MsgChannelCloseConfirm: + type: object + properties: + port_id: + type: string + channel_id: + type: string + proof_init: + type: string + format: byte + proof_height: type: object properties: revision_number: @@ -100748,389 +26397,326 @@ definitions: RevisionHeight gets reset - consensus_state: - title: consensus 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. - - - 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` + 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" - } + 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: >- - ConsensusStateWithHeight defines a consensus state with an additional - height + MsgChannelCloseConfirmResponse defines the Msg/ChannelCloseConfirm + response - field. - ibc.core.client.v1.Params: + type. + ibc.core.channel.v1.MsgChannelCloseInit: 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.client.v1.QueryClientParamsResponse: + port_id: + type: string + channel_id: + type: string + signer: + 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 - properties: - params: - description: params defines the parameters of the module. - 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: >- - QueryClientParamsResponse is the response type for the Query/ClientParams - RPC - - method. - ibc.core.client.v1.QueryClientStateResponse: + MsgChannelCloseInitResponse defines the Msg/ChannelCloseInit response + type. + ibc.core.channel.v1.MsgChannelOpenAck: type: object properties: - client_state: - title: client state associated with the request identifier + 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: - '@type': + revision_number: 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: {} + 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: >- - `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)) { - ... - } + Normally the RevisionHeight is incremented at each height while + keeping - Example 2: Pack and unpack a message in Java. + RevisionNumber the same. However some consensus algorithms may choose + to - 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()); - } + reset the height in certain conditions e.g. hard forks, state-machine - Example 3: Pack and unpack a message in Python. + breaking changes In these cases, the RevisionNumber is incremented so + that - foo = Foo(...) - any = Any() - any.Pack(foo) - ... - if any.Is(Foo.DESCRIPTOR): - any.Unpack(foo) - ... + height continues to be monitonically increasing even as the + RevisionHeight - Example 4: Pack and unpack a message in Go + gets reset + title: >- + Height is a monotonically increasing data type - foo := &pb.Foo{...} - any, err := anypb.New(foo) - if err != nil { - ... - } - ... - foo := &pb.Foo{} - if err := any.UnmarshalTo(foo); err != nil { - ... - } + that can be compared against another Height for the purposes of + updating and - The pack methods provided by protobuf library will by default use + freezing clients + signer: + type: string + description: >- + MsgChannelOpenAck defines a msg sent by a Relayer to Chain A to + acknowledge - 'type.googleapis.com/full.type.name' as the type URL and the unpack + 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: + 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 - methods only use the fully qualified type name after the last '/' + RevisionNumber the same. However some consensus algorithms may choose + to - in the type URL, for example "foo.bar.com/x/y.z" will yield type + reset the height in certain conditions e.g. hard forks, state-machine - name "y.z". + breaking changes In these cases, the RevisionNumber is incremented so + that + height continues to be monitonically increasing even as the + RevisionHeight - JSON + gets reset + title: >- + Height is a monotonically increasing data type - ==== + that can be compared against another Height for the purposes of + updating and - The JSON representation of an `Any` value uses the regular + freezing clients + signer: + 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: + type: object + description: |- + MsgChannelOpenConfirmResponse defines the Msg/ChannelOpenConfirm response + type. + ibc.core.channel.v1.MsgChannelOpenInit: + type: object + properties: + port_id: + type: string + 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. - representation of the deserialized, embedded message, with an + - 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 - additional field `@type` which contains the type URL. Example: + 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 - package google.profile; - message Person { - string first_name = 1; - string last_name = 2; - } + modules on separate blockchains, which has at least one end capable of - { - "@type": "type.googleapis.com/google.profile.Person", - "firstName": , - "lastName": - } + sending packets and one end capable of receiving packets. + signer: + type: string + description: >- + MsgChannelOpenInit defines an sdk.Msg to initialize a channel handshake. + It - If the embedded message type is well-known and has a custom JSON + is called by a relayer on Chain A. + ibc.core.channel.v1.MsgChannelOpenInitResponse: + type: object + properties: + channel_id: + type: string + version: + type: string + description: MsgChannelOpenInitResponse defines the Msg/ChannelOpenInit response type. + ibc.core.channel.v1.MsgChannelOpenTry: + type: object + properties: + port_id: + type: string + 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. - representation, that representation will be embedded adding a field + - 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 - `value` which holds the custom JSON in addition to the `@type` + 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 - field. Example (for message [google.protobuf.Duration][]): + modules on separate blockchains, which has at least one end capable of - { - "@type": "type.googleapis.com/google.protobuf.Duration", - "value": "1.212s" - } - proof: + sending packets and one end capable of receiving packets. + counterparty_version: + type: string + proof_init: type: string format: byte - title: merkle proof of existence proof_height: - title: height at which the proof was retrieved type: object properties: revision_number: @@ -101157,492 +26743,231 @@ definitions: RevisionHeight gets reset - description: >- - QueryClientStateResponse is the response type for the Query/ClientState - RPC - - method. Besides the client state, it includes a proof and the height from - - which the proof was retrieved. - ibc.core.client.v1.QueryClientStatesResponse: - type: object - properties: - client_states: - type: array - items: - type: object - properties: - client_id: - type: string - title: client identifier - client_state: - title: 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. - - - 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" - } - description: >- - IdentifiedClientState defines a client state with an additional - client - - identifier field. - description: list of stored ClientStates of the chain. - pagination: - title: pagination response - 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 + title: >- + Height is a monotonically increasing data type - 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. + that can be compared against another Height for the purposes of + updating and - message SomeResponse { - repeated Bar results = 1; - PageResponse page = 2; - } + freezing clients + signer: + type: string description: >- - QueryClientStatesResponse is the response type for the Query/ClientStates - RPC + 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 - method. - ibc.core.client.v1.QueryClientStatusResponse: + value will be ignored by core IBC. + ibc.core.channel.v1.MsgChannelOpenTryResponse: type: object properties: - status: + version: type: string - description: >- - QueryClientStatusResponse is the response type for the Query/ClientStatus - RPC - - method. It returns the current status of the IBC client. - ibc.core.client.v1.QueryConsensusStateHeightsResponse: + channel_id: + type: string + description: MsgChannelOpenTryResponse defines the Msg/ChannelOpenTry response type. + ibc.core.channel.v1.MsgRecvPacket: type: object properties: - consensus_state_heights: - type: array - items: - 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 - title: consensus state heights - pagination: - title: pagination response + packet: 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: + sequence: type: string format: uint64 - title: >- - total is total number of results available if - PageRequest.count_total + description: >- + number corresponds to the order of sends and receives, where a + Packet - 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. + with an earlier sequence number must be sent and received before a + Packet - message SomeResponse { - repeated Bar results = 1; - PageResponse page = 2; - } - title: |- - QueryConsensusStateHeightsResponse is the response type for the - Query/ConsensusStateHeights RPC method - ibc.core.client.v1.QueryConsensusStateResponse: - type: object - properties: - consensus_state: - title: >- - consensus state associated with the client identifier at the given - height - type: object - properties: - '@type': + 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: >- - 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 + Normally the RevisionHeight is incremented at each height while + keeping - type.googleapis.com. As of May 2023, there are no widely used type - server + RevisionNumber the same. However some consensus algorithms may + choose to - implementations and no plans to implement one. + reset the height in certain conditions e.g. hard forks, + state-machine + breaking changes In these cases, the RevisionNumber is incremented + so that - Schemes other than `http`, `https` (or the empty scheme) might be + height continues to be monitonically increasing even as the + RevisionHeight - used with implementation specific semantics. - additionalProperties: {} + 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: >- - `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 + Normally the RevisionHeight is incremented at each height while + keeping - name "y.z". + RevisionNumber the same. However some consensus algorithms may choose + to + reset the height in certain conditions e.g. hard forks, state-machine - JSON + breaking changes In these cases, the RevisionNumber is incremented so + that - ==== + height continues to be monitonically increasing even as the + RevisionHeight - The JSON representation of an `Any` value uses the regular + gets reset + title: >- + Height is a monotonically increasing data type - representation of the deserialized, embedded message, with an + that can be compared against another Height for the purposes of + updating and - additional field `@type` which contains the type URL. Example: + 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 - package google.profile; - message Person { - string first_name = 1; - string last_name = 2; - } + with an earlier sequence number must be sent and received before a + Packet - { - "@type": "type.googleapis.com/google.profile.Person", - "firstName": , - "lastName": - } + 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 - If the embedded message type is well-known and has a custom JSON + RevisionNumber the same. However some consensus algorithms may + choose to - representation, that representation will be embedded adding a field + reset the height in certain conditions e.g. hard forks, + state-machine - `value` which holds the custom JSON in addition to the `@type` + breaking changes In these cases, the RevisionNumber is incremented + so that - field. Example (for message [google.protobuf.Duration][]): + height continues to be monitonically increasing even as the + RevisionHeight - { - "@type": "type.googleapis.com/google.protobuf.Duration", - "value": "1.212s" - } - proof: + 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 - title: merkle proof of existence proof_height: - title: height at which the proof was retrieved type: object properties: revision_number: @@ -101669,433 +26994,331 @@ definitions: RevisionHeight gets reset - title: >- - QueryConsensusStateResponse is the response type for the - Query/ConsensusState + title: >- + Height is a monotonically increasing data type + + that can be compared against another Height for the purposes of + updating and - RPC method - ibc.core.client.v1.QueryConsensusStatesResponse: + 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: - consensus_states: - type: array - items: - type: object - properties: - height: - title: consensus state 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 - consensus_state: - title: consensus 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. - - - 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" - } - description: >- - ConsensusStateWithHeight defines a consensus state with an - additional height - - field. - title: consensus states associated with the identifier - pagination: - title: pagination response + packet: 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: + sequence: type: string format: uint64 - title: >- - total is total number of results available if - PageRequest.count_total + description: >- + number corresponds to the order of sends and receives, where a + Packet - 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. + with an earlier sequence number must be sent and received before a + Packet - message SomeResponse { - repeated Bar results = 1; - PageResponse page = 2; - } - title: |- - QueryConsensusStatesResponse is the response type for the - Query/ConsensusStates RPC method - ibc.core.client.v1.QueryUpgradedClientStateResponse: - type: object - properties: - upgraded_client_state: - title: client state associated with the request identifier - type: object - properties: - '@type': + 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: >- - 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 + Normally the RevisionHeight is incremented at each height while + keeping - type.googleapis.com. As of May 2023, there are no widely used type - server + RevisionNumber the same. However some consensus algorithms may + choose to - implementations and no plans to implement one. + reset the height in certain conditions e.g. hard forks, + state-machine + breaking changes In these cases, the RevisionNumber is incremented + so that - Schemes other than `http`, `https` (or the empty scheme) might be + height continues to be monitonically increasing even as the + RevisionHeight - used with implementation specific semantics. - additionalProperties: {} + 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: >- - `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++. + 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 + title: >- + Height is a monotonically increasing data type - Example 4: Pack and unpack a message in Go + that can be compared against another Height for the purposes of + updating and - foo := &pb.Foo{...} - any, err := anypb.New(foo) - if err != nil { - ... - } - ... - foo := &pb.Foo{} - if err := any.UnmarshalTo(foo); err != nil { - ... - } + 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: + 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: MsgTimeoutOnCloseResponse defines the Msg/TimeoutOnClose response type. + ibc.core.channel.v1.MsgTimeoutResponse: + 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: 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 - The pack methods provided by protobuf library will by default use + with an earlier sequence number must be sent and received before a + Packet - 'type.googleapis.com/full.type.name' as the type URL and the unpack + 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 - methods only use the fully qualified type name after the last '/' + RevisionNumber the same. However some consensus algorithms may choose + to - in the type URL, for example "foo.bar.com/x/y.z" will yield type + reset the height in certain conditions e.g. hard forks, state-machine - name "y.z". + breaking changes In these cases, the RevisionNumber is incremented so + that + height continues to be monitonically increasing even as the + RevisionHeight - JSON + 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 - The JSON representation of an `Any` value uses the regular + version of the software to apply any special "on-upgrade" commands + during - representation of the deserialized, embedded message, with an + the first BeginBlock method after the upgrade is applied. It is also + used - additional field `@type` which contains the type URL. Example: + to detect whether a software version can handle a given upgrade. If no - package google.profile; - message Person { - string first_name = 1; - string last_name = 2; - } + upgrade handler with this name has been set in the software, it will + be - { - "@type": "type.googleapis.com/google.profile.Person", - "firstName": , - "lastName": - } + assumed that the software is out-of-date when the upgrade Time or + Height is - If the embedded message type is well-known and has a custom JSON + reached and the software will exit. + time: + type: string + format: date-time + description: >- + Deprecated: Time based upgrades have been deprecated. Time based + upgrade logic - representation, that representation will be embedded adding a field + has been removed from the SDK. - `value` which holds the custom JSON in addition to the `@type` + 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: >- + Deprecated: UpgradedClientState field has been deprecated. IBC upgrade + logic has been - field. Example (for message [google.protobuf.Duration][]): + moved to the IBC module in the sub module 02-client. - { - "@type": "type.googleapis.com/google.protobuf.Duration", - "value": "1.212s" - } - description: |- - QueryUpgradedClientStateResponse is the response type for the - Query/UpgradedClientState RPC method. - ibc.core.client.v1.QueryUpgradedConsensusStateResponse: - type: object - properties: - upgraded_consensus_state: - title: Consensus state associated with the request identifier + If this field is not empty, an error will be thrown. type: object properties: '@type': @@ -102154,113 +27377,9 @@ 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" - } - description: |- - QueryUpgradedConsensusStateResponse is the response type for the - Query/UpgradedConsensusState RPC method. + description: >- + Plan specifies information about a planned upgrade and when it should + occur. ibc.core.client.v1.MsgCreateClient: type: object properties: @@ -102621,310 +27740,27 @@ definitions: 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 in the Cosmos SDK to allow for this logic to exist solely - in - - the 02-client module. - 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: {} - 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: - type: object - properties: - client_id: - type: string - title: client unique identifier - misbehaviour: - title: misbehaviour used for freezing the light client - 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. - - - 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" - } - 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 + 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 in the Cosmos SDK to allow for this logic to exist solely + in + + the 02-client module. type: object properties: '@type': @@ -102983,157 +27819,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" - } 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: + 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: MsgUpdateClientResponse defines the Msg/UpdateClient response type. - ibc.core.client.v1.MsgUpdateParams: + 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 - params: - description: |- - params defines the client parameters to update. - - 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 - - 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: + description: >- + MsgRecoverClient defines the message used to recover a frozen or expired + client. + ibc.core.client.v1.MsgRecoverClientResponse: type: object - description: MsgUpdateParamsResponse defines the MsgUpdateParams response type. - ibc.core.client.v1.MsgUpgradeClient: + description: MsgRecoverClientResponse defines the Msg/RecoverClient response type. + ibc.core.client.v1.MsgSubmitMisbehaviour: type: object properties: client_id: type: string title: client unique identifier - client_state: - title: upgraded client state + misbehaviour: + title: misbehaviour used for freezing the light client type: object properties: '@type': @@ -103296,12 +28024,26 @@ definitions: "@type": "type.googleapis.com/google.protobuf.Duration", "value": "1.212s" } - consensus_state: - title: >- - upgraded consensus state, only contains enough information to serve as - a - - basis of trust in update logic + 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 type: object properties: '@type': @@ -103464,515 +28206,221 @@ 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.commitment.v1.MerklePrefix: + description: |- + MsgUpdateClient defines an sdk.Msg to update a IBC client state using + the given client message. + ibc.core.client.v1.MsgUpdateClientResponse: 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.ConnectionEnd: + description: MsgUpdateClientResponse defines the Msg/UpdateClient response type. + ibc.core.client.v1.MsgUpdateParams: type: object properties: - client_id: + signer: type: string - description: client associated with this connection. - 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 - - the connection handshake. - description: >- - IBC version which can be utilised to determine encodings or protocols - for + title: signer address + params: + description: |- + params defines the client parameters to update. - channels or packets utilising this connection. - state: - description: current state of the connection end. - type: string - enum: - - STATE_UNINITIALIZED_UNSPECIFIED - - STATE_INIT - - STATE_TRYOPEN - - STATE_OPEN - default: STATE_UNINITIALIZED_UNSPECIFIED - counterparty: - description: counterparty chain associated with this connection. + NOTE: All parameters must be supplied. type: object properties: - client_id: - type: string - description: >- - identifies the client on the counterparty chain associated with a - given - - connection. - connection_id: - type: string + allowed_clients: + type: array + items: + 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...)) - delay_period: - type: string - format: uint64 - description: >- - delay period that must pass before a consensus state can be used for + allowed_clients defines the list of allowed client state types + which can be created - packet-verification NOTE: delay period logic is only implemented by - some + and interacted with. If a client type is removed from the allowed + clients list, usage - clients. - description: |- - ConnectionEnd defines a stateful object on a chain connected to another - separate one. - NOTE: there must only be 2 defined ConnectionEnds to establish - a connection between two chains. - ibc.core.connection.v1.Counterparty: + 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 - 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.IdentifiedConnection: + description: MsgUpdateParamsResponse defines the MsgUpdateParams response type. + ibc.core.client.v1.MsgUpgradeClient: type: object properties: - id: - type: string - description: connection identifier. client_id: type: string - description: client associated with this connection. - 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 - - the connection handshake. - title: >- - IBC version which can be utilised to determine encodings or protocols - for - - channels or packets utilising this connection - state: - description: current state of the connection end. - type: string - enum: - - STATE_UNINITIALIZED_UNSPECIFIED - - STATE_INIT - - STATE_TRYOPEN - - STATE_OPEN - default: STATE_UNINITIALIZED_UNSPECIFIED - counterparty: - description: counterparty chain associated with this connection. + title: client unique identifier + client_state: + title: upgraded client state type: object properties: - client_id: - type: string - description: >- - identifies the client on the counterparty chain associated with a - given - - connection. - connection_id: + '@type': 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...)) - delay_period: - type: string - format: uint64 - description: delay period associated with this connection. - description: |- - IdentifiedConnection defines a connection with additional connection - identifier field. - 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 - - conditions. A safe choice is 3-5x the expected time per block. - description: Params defines the set of Connection parameters. - ibc.core.connection.v1.QueryClientConnectionsResponse: - type: object - properties: - connection_paths: - type: array - items: - type: string - description: slice of all the connection paths associated with a client. - proof: - type: string - format: byte - title: merkle proof of existence - proof_height: - title: height at which the proof was generated - 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: |- - QueryClientConnectionsResponse is the response type for the - Query/ClientConnections RPC method - ibc.core.connection.v1.QueryConnectionClientStateResponse: - type: object - properties: - identified_client_state: - title: client state associated with the channel - type: object - properties: - client_id: - type: string - title: client identifier - client_state: - title: 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). + A URL/resource name that uniquely identifies the type of the + serialized + protocol buffer message. This string must contain at least - In practice, teams usually precompile into the binary all - types that they + one "/" character. The last segment of the URL's path must + represent - expect it to use in the context of Any. However, for URLs - which use the + the fully qualified name of the type (as in - scheme `http`, `https`, or no scheme, one can optionally set - up a type + `path/google.protobuf.Duration`). The name should be in a + canonical form - server that maps type URLs to message definitions as follows: + (e.g., leading "." is not accepted). - * If no scheme is provided, `https` is assumed. + In practice, teams usually precompile into the binary all types + that they - * 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.) + expect it to use in the context of Any. However, for URLs which + use the - Note: this functionality is not currently available in the - official + scheme `http`, `https`, or no scheme, one can optionally set up a + type - protobuf release, and it is not used for type URLs beginning - with + server that maps type URLs to message definitions as follows: - type.googleapis.com. As of May 2023, there are no widely used - type server - implementations and no plans to implement one. + * 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.) - Schemes other than `http`, `https` (or the empty scheme) might - be + Note: this functionality is not currently available in the + official - used with implementation specific semantics. - additionalProperties: {} - description: >- - `Any` contains an arbitrary serialized protocol buffer message - along with a + protobuf release, and it is not used for type URLs beginning with - URL that describes the type of the serialized message. + type.googleapis.com. As of May 2023, there are no widely used type + server + implementations and no plans to implement one. - Protobuf library provides support to pack/unpack Any values in the - form - of utility functions or additional generated methods of the Any - type. + 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 - Example 1: Pack and unpack a message in C++. + URL that describes the type of the serialized message. - Foo foo = ...; - Any any; - any.PackFrom(foo); - ... - if (any.UnpackTo(&foo)) { - ... - } - Example 2: Pack and unpack a message in Java. + Protobuf library provides support to pack/unpack Any values in the + form - 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()); - } + of utility functions or additional generated methods of the Any type. - 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 1: Pack and unpack a message in C++. - Example 4: Pack and unpack a message in Go + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } - foo := &pb.Foo{...} - any, err := anypb.New(foo) - if err != nil { - ... - } - ... - foo := &pb.Foo{} - if err := any.UnmarshalTo(foo); err != nil { - ... - } + Example 2: Pack and unpack a message in Java. - The pack methods provided by protobuf library will by default use + 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()); + } - 'type.googleapis.com/full.type.name' as the type URL and the - unpack + Example 3: Pack and unpack a message in Python. - methods only use the fully qualified type name after the last '/' + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... - in the type URL, for example "foo.bar.com/x/y.z" will yield type + Example 4: Pack and unpack a message in Go - name "y.z". + 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 - JSON + 'type.googleapis.com/full.type.name' as the type URL and the unpack - ==== + methods only use the fully qualified type name after the last '/' - The JSON representation of an `Any` value uses the regular + in the type URL, for example "foo.bar.com/x/y.z" will yield type - representation of the deserialized, embedded message, with an + name "y.z". - additional field `@type` which contains the type URL. Example: - package google.profile; - message Person { - string first_name = 1; - string last_name = 2; - } + JSON - { - "@type": "type.googleapis.com/google.profile.Person", - "firstName": , - "lastName": - } + ==== - If the embedded message type is well-known and has a custom JSON + The JSON representation of an `Any` value uses the regular - representation, that representation will be embedded adding a - field + representation of the deserialized, embedded message, with an - `value` which holds the custom JSON in addition to the `@type` + additional field `@type` which contains the type URL. Example: - field. Example (for message [google.protobuf.Duration][]): + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } - { - "@type": "type.googleapis.com/google.protobuf.Duration", - "value": "1.212s" - } - description: |- - IdentifiedClientState defines a client state with an additional client - identifier field. - proof: - type: string - format: byte - title: merkle proof of existence - proof_height: - title: height at which the proof was retrieved - 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 + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } - RevisionNumber the same. However some consensus algorithms may choose - to + If the embedded message type is well-known and has a custom JSON - reset the height in certain conditions e.g. hard forks, state-machine + representation, that representation will be embedded adding a field - breaking changes In these cases, the RevisionNumber is incremented so - that + `value` which holds the custom JSON in addition to the `@type` - height continues to be monitonically increasing even as the - RevisionHeight + field. Example (for message [google.protobuf.Duration][]): - gets reset - title: |- - QueryConnectionClientStateResponse is the response type for the - Query/ConnectionClientState RPC method - ibc.core.connection.v1.QueryConnectionConsensusStateResponse: - type: object - properties: + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } consensus_state: - title: consensus state associated with the channel + title: >- + upgraded consensus state, only contains enough information to serve as + a + + basis of trust in update logic type: object properties: '@type': @@ -104135,375 +28583,85 @@ definitions: "@type": "type.googleapis.com/google.protobuf.Duration", "value": "1.212s" } - client_id: + proof_upgrade_client: type: string - title: client ID associated with the consensus state - proof: + format: byte + title: proof that old chain committed to new client + proof_upgrade_consensus_state: type: string format: byte - title: merkle proof of existence - proof_height: - title: height at which the proof was retrieved - 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 + 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 - gets reset - title: |- - QueryConnectionConsensusStateResponse is the response type for the - Query/ConnectionConsensusState RPC method - ibc.core.connection.v1.QueryConnectionParamsResponse: + state + ibc.core.client.v1.MsgUpgradeClientResponse: type: object - properties: - params: - description: params defines the parameters of the module. - 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: >- - QueryConnectionParamsResponse is the response type for the - Query/ConnectionParams RPC method. - ibc.core.connection.v1.QueryConnectionResponse: + description: MsgUpgradeClientResponse defines the Msg/UpgradeClient response type. + ibc.core.client.v1.Params: type: object properties: - connection: - title: connection associated with the request identifier - type: object - properties: - client_id: - type: string - description: client associated with this connection. - 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 - - the connection handshake. - description: >- - IBC version which can be utilised to determine encodings or - protocols for - - channels or packets utilising this connection. - state: - description: current state of the connection end. - type: string - enum: - - STATE_UNINITIALIZED_UNSPECIFIED - - STATE_INIT - - STATE_TRYOPEN - - STATE_OPEN - default: STATE_UNINITIALIZED_UNSPECIFIED - counterparty: - description: counterparty chain associated with this connection. - 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...)) - delay_period: - type: string - format: uint64 - description: >- - delay period that must pass before a consensus state can be used - for - - packet-verification NOTE: delay period logic is only implemented - by some - - clients. + allowed_clients: + type: array + items: + type: string description: >- - ConnectionEnd defines a stateful object on a chain connected to - another - - separate one. + allowed_clients defines the list of allowed client state types which + can be created - NOTE: there must only be 2 defined ConnectionEnds to establish + and interacted with. If a client type is removed from the allowed + clients list, usage - a connection between two chains. - proof: + 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: merkle proof of existence - proof_height: - title: height at which the proof was retrieved - 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 - description: >- - QueryConnectionResponse is the response type for the Query/Connection RPC - - method. Besides the connection end, it includes a proof and the height - from - - which the proof was retrieved. - ibc.core.connection.v1.QueryConnectionsResponse: + 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: - connections: - type: array - items: - type: object - properties: - id: - type: string - description: connection identifier. - client_id: - type: string - description: client associated with this connection. - 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 - - the connection handshake. - title: >- - IBC version which can be utilised to determine encodings or - protocols for - - channels or packets utilising this connection - state: - description: current state of the connection end. - type: string - enum: - - STATE_UNINITIALIZED_UNSPECIFIED - - STATE_INIT - - STATE_TRYOPEN - - STATE_OPEN - default: STATE_UNINITIALIZED_UNSPECIFIED - counterparty: - description: counterparty chain associated with this connection. - 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. + client_id: + type: string + description: >- + identifies the client on the counterparty chain associated with a + given - The constructed key from the Path and the key will be - append(Path.KeyPath, + connection. + connection_id: + type: string + description: >- + identifies the connection end on the counterparty chain associated + with a - append(Path.KeyPrefix, key...)) - delay_period: - type: string - format: uint64 - description: delay period associated with this connection. - description: |- - IdentifiedConnection defines a connection with additional connection - identifier field. - description: list of stored connections of the chain. - pagination: - title: pagination response + 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 - - 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; - } - height: - title: query block 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 + title: >- + MerklePrefix is merkle path prefixed to the key. - height continues to be monitonically increasing even as the - RevisionHeight + The constructed key from the Path and the key will be + append(Path.KeyPath, - gets reset + append(Path.KeyPrefix, key...)) description: >- - QueryConnectionsResponse is the response type for the Query/Connections - RPC - - method. - ibc.core.connection.v1.State: - type: string - enum: - - STATE_UNINITIALIZED_UNSPECIFIED - - STATE_INIT - - STATE_TRYOPEN - - STATE_OPEN - default: STATE_UNINITIALIZED_UNSPECIFIED - description: |- - State defines if a connection is in one of the following states: - INIT, TRYOPEN, OPEN or UNINITIALIZED. - - - STATE_UNINITIALIZED_UNSPECIFIED: Default State - - STATE_INIT: A connection end has just started the opening handshake. - - STATE_TRYOPEN: A connection end has acknowledged the handshake step on the counterparty - chain. - - STATE_OPEN: A connection end has completed the handshake. - 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. + Counterparty defines the counterparty chain associated with a connection + end. ibc.core.connection.v1.MsgConnectionOpenAck: type: object properties: @@ -105267,7 +29425,36 @@ definitions: ibc.core.connection.v1.MsgUpdateParamsResponse: type: object description: MsgUpdateParamsResponse defines the MsgUpdateParams response type. - mycel.epochs.v1beta1.EpochInfo: + 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 + + 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. + mycel.epochs.v1.EpochInfo: type: object properties: identifier: @@ -105288,13 +29475,34 @@ definitions: current_epoch_start_height: type: string format: int64 - mycel.epochs.v1beta1.Params: - type: object - description: Params defines the parameters for the module. - mycel.epochs.v1beta1.QueryAllEpochInfoResponse: + mycel.epochs.v1.QueryCurrentEpochResponse: type: object properties: 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.v1.QueryEpochsInfoResponse: + type: object + properties: + epochs: type: array items: type: object @@ -105317,64 +29525,84 @@ definitions: current_epoch_start_height: type: string format: int64 - 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; - } - mycel.epochs.v1beta1.QueryGetEpochInfoResponse: + cosmos.base.query.v1beta1.PageRequest: type: object properties: - 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.QueryParamsResponse: + 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. + + 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 + + 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. + reverse: + type: boolean + description: >- + reverse is set to true if results are to be returned in the descending + order. + + + 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: - params: - description: params holds all the parameters of this module. - type: object - description: QueryParamsResponse is response type for the Query/Params RPC method. - mycel.furnace.v1beta1.BurnAmount: + 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.v1.BurnAmount: type: object properties: index: @@ -105412,7 +29640,7 @@ definitions: NOTE: The amount field is an Int which implements the custom method signatures required by gogoproto. - mycel.furnace.v1beta1.EpochBurnConfig: + mycel.furnace.v1.EpochBurnConfig: type: object properties: epoch_identifier: @@ -105426,10 +29654,10 @@ definitions: start_time: type: string format: date-time - mycel.furnace.v1beta1.Params: + mycel.furnace.v1.Params: type: object description: Params defines the parameters for the module. - mycel.furnace.v1beta1.QueryAllBurnAmountResponse: + mycel.furnace.v1.QueryAllBurnAmountResponse: type: object properties: burn_amount: @@ -105504,7 +29732,7 @@ definitions: repeated Bar results = 1; PageResponse page = 2; } - mycel.furnace.v1beta1.QueryGetBurnAmountResponse: + mycel.furnace.v1.QueryGetBurnAmountResponse: type: object properties: burn_amount: @@ -105551,7 +29779,7 @@ definitions: method signatures required by gogoproto. - mycel.furnace.v1beta1.QueryGetEpochBurnConfigResponse: + mycel.furnace.v1.QueryGetEpochBurnConfigResponse: type: object properties: epoch_burn_config: @@ -105568,14 +29796,14 @@ definitions: start_time: type: string format: date-time - mycel.furnace.v1beta1.QueryParamsResponse: + mycel.furnace.v1.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: + mycel.registry.v1.AccessControl: type: object properties: address: @@ -105587,7 +29815,40 @@ definitions: - OWNER - EDITOR default: NO_ROLE - mycel.registry.v1beta1.DomainOwnership: + mycel.registry.v1.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: string + mycel.registry.v1.DnsRecordType: + type: string + enum: + - NO_RECORD_TYPE + - A + - AAAA + - CNAME + - NS + - MX + - PTR + - SOA + - SRV + - TXT + default: NO_RECORD_TYPE + mycel.registry.v1.DomainOwnership: type: object properties: owner: @@ -105601,14 +29862,14 @@ definitions: type: string parent: type: string - mycel.registry.v1beta1.DomainRole: + mycel.registry.v1.DomainRole: type: string enum: - NO_ROLE - OWNER - EDITOR default: NO_ROLE - mycel.registry.v1beta1.FeeByLength: + mycel.registry.v1.FeeByLength: type: object properties: length: @@ -105628,7 +29889,7 @@ definitions: NOTE: The amount field is an Int which implements the custom method signatures required by gogoproto. - mycel.registry.v1beta1.FeeByName: + mycel.registry.v1.FeeByName: type: object properties: name: @@ -105647,14 +29908,72 @@ definitions: NOTE: The amount field is an Int which implements the custom method signatures required by gogoproto. - mycel.registry.v1beta1.OwnedDomain: + mycel.registry.v1.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.v1.OwnedDomain: type: object properties: name: type: string parent: type: string - mycel.registry.v1beta1.Params: + mycel.registry.v1.Params: type: object properties: staking_inflation_ratio: @@ -105664,7 +29983,7 @@ definitions: type: string format: int64 description: Params defines the parameters for the module. - mycel.registry.v1beta1.QueryAllDomainOwnershipResponse: + mycel.registry.v1.QueryAllDomainOwnershipResponse: type: object properties: domain_ownership: @@ -105709,7 +30028,104 @@ definitions: repeated Bar results = 1; PageResponse page = 2; } - mycel.registry.v1beta1.QueryAllSecondLevelDomainResponse: + mycel.registry.v1.QueryAllRecordsResponse: + 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 + mycel.registry.v1.QueryAllSecondLevelDomainResponse: type: object properties: second_level_domain: @@ -105750,7 +30166,7 @@ definitions: repeated Bar results = 1; PageResponse page = 2; } - mycel.registry.v1beta1.QueryAllTopLevelDomainResponse: + mycel.registry.v1.QueryAllTopLevelDomainResponse: type: object properties: top_level_domain: @@ -105915,7 +30331,29 @@ definitions: repeated Bar results = 1; PageResponse page = 2; } - mycel.registry.v1beta1.QueryDomainRegistrationFeeResponse: + mycel.registry.v1.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.v1.QueryDomainRegistrationFeeResponse: type: object properties: is_registrable: @@ -105942,7 +30380,7 @@ definitions: format: uint64 error_message: type: string - mycel.registry.v1beta1.QueryGetDomainOwnershipResponse: + mycel.registry.v1.QueryGetDomainOwnershipResponse: type: object properties: domain_ownership: @@ -105959,7 +30397,7 @@ definitions: type: string parent: type: string - mycel.registry.v1beta1.QueryGetSecondLevelDomainResponse: + mycel.registry.v1.QueryGetSecondLevelDomainResponse: type: object properties: second_level_domain: @@ -105972,7 +30410,7 @@ definitions: expiration_date: type: string format: date-time - mycel.registry.v1beta1.QueryGetTopLevelDomainResponse: + mycel.registry.v1.QueryGetTopLevelDomainResponse: type: object properties: top_level_domain: @@ -106109,7 +30547,7 @@ definitions: method signatures required by gogoproto. - mycel.registry.v1beta1.QueryParamsResponse: + mycel.registry.v1.QueryParamsResponse: type: object properties: params: @@ -106123,18 +30561,186 @@ definitions: type: string format: int64 description: QueryParamsResponse is response type for the Query/Params RPC method. - mycel.registry.v1beta1.QueryRoleResponse: + mycel.registry.v1.QueryRoleResponse: type: object properties: role: type: string - mycel.registry.v1beta1.RegistrationPolicyType: + mycel.registry.v1.QueryTextRecordResponse: + type: object + properties: + value: + type: object + properties: + key: + type: string + value: + type: string + mycel.registry.v1.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.v1.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: 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.v1.RegistrationPolicyType: type: string enum: - PRIVATE - PUBLIC default: PRIVATE - mycel.registry.v1beta1.SecondLevelDomainResponse: + mycel.registry.v1.SecondLevelDomainResponse: type: object properties: name: @@ -106144,7 +30750,7 @@ definitions: expiration_date: type: string format: date-time - mycel.registry.v1beta1.SubdomainConfig: + mycel.registry.v1.SubdomainConfig: type: object properties: max_subdomain_registrations: @@ -106234,7 +30840,7 @@ definitions: - PRIVATE - PUBLIC default: PRIVATE - mycel.registry.v1beta1.SubdomainRegistrationFees: + mycel.registry.v1.SubdomainRegistrationFees: type: object properties: fee_by_length: @@ -106298,7 +30904,14 @@ definitions: NOTE: The amount field is an Int which implements the custom method signatures required by gogoproto. - mycel.registry.v1beta1.TopLevelDomain: + mycel.registry.v1.TextRecord: + type: object + properties: + key: + type: string + value: + type: string + mycel.registry.v1.TopLevelDomain: type: object properties: name: @@ -106427,7 +31040,70 @@ definitions: NOTE: The amount field is an Int which implements the custom method signatures required by gogoproto. - mycel.registry.v1beta1.MsgExtendTopLevelDomainExpirationDate: + mycel.registry.v1.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.v1.MsgExtendTopLevelDomainExpirationDate: type: object properties: creator: @@ -106437,7 +31113,7 @@ definitions: extension_period_in_year: type: string format: uint64 - mycel.registry.v1beta1.MsgExtendTopLevelDomainExpirationDateResponse: + mycel.registry.v1.MsgExtendTopLevelDomainExpirationDateResponse: type: object properties: top_level_domain: @@ -106626,7 +31302,7 @@ definitions: method signatures required by gogoproto. - mycel.registry.v1beta1.MsgRegisterSecondLevelDomain: + mycel.registry.v1.MsgRegisterSecondLevelDomain: type: object properties: creator: @@ -106638,9 +31314,9 @@ definitions: registration_period_in_year: type: string format: uint64 - mycel.registry.v1beta1.MsgRegisterSecondLevelDomainResponse: + mycel.registry.v1.MsgRegisterSecondLevelDomainResponse: type: object - mycel.registry.v1beta1.MsgRegisterTopLevelDomain: + mycel.registry.v1.MsgRegisterTopLevelDomain: type: object properties: creator: @@ -106650,7 +31326,7 @@ definitions: registration_period_in_year: type: string format: uint64 - mycel.registry.v1beta1.MsgRegisterTopLevelDomainResponse: + mycel.registry.v1.MsgRegisterTopLevelDomainResponse: type: object properties: top_level_domain: @@ -106839,7 +31515,7 @@ definitions: method signatures required by gogoproto. - mycel.registry.v1beta1.MsgUpdateDnsRecord: + mycel.registry.v1.MsgUpdateDnsRecord: type: object properties: creator: @@ -106852,9 +31528,9 @@ definitions: type: string value: type: string - mycel.registry.v1beta1.MsgUpdateDnsRecordResponse: + mycel.registry.v1.MsgUpdateDnsRecordResponse: type: object - mycel.registry.v1beta1.MsgUpdateTextRecord: + mycel.registry.v1.MsgUpdateTextRecord: type: object properties: creator: @@ -106867,9 +31543,9 @@ definitions: type: string value: type: string - mycel.registry.v1beta1.MsgUpdateTextRecordResponse: + mycel.registry.v1.MsgUpdateTextRecordResponse: type: object - mycel.registry.v1beta1.MsgUpdateTopLevelDomainRegistrationPolicy: + mycel.registry.v1.MsgUpdateTopLevelDomainRegistrationPolicy: type: object properties: creator: @@ -106878,9 +31554,9 @@ definitions: type: string registration_policy: type: string - mycel.registry.v1beta1.MsgUpdateTopLevelDomainRegistrationPolicyResponse: + mycel.registry.v1.MsgUpdateTopLevelDomainRegistrationPolicyResponse: type: object - mycel.registry.v1beta1.MsgUpdateWalletRecord: + mycel.registry.v1.MsgUpdateWalletRecord: type: object properties: creator: @@ -106893,16 +31569,16 @@ definitions: type: string value: type: string - mycel.registry.v1beta1.MsgUpdateWalletRecordResponse: + mycel.registry.v1.MsgUpdateWalletRecordResponse: type: object - mycel.registry.v1beta1.MsgWithdrawRegistrationFee: + mycel.registry.v1.MsgWithdrawRegistrationFee: type: object properties: creator: type: string name: type: string - mycel.registry.v1beta1.MsgWithdrawRegistrationFeeResponse: + mycel.registry.v1.MsgWithdrawRegistrationFeeResponse: type: object properties: registration_fee: @@ -106919,7 +31595,7 @@ definitions: NOTE: The amount field is an Int which implements the custom method signatures required by gogoproto. - mycel.registry.v1beta1.TopLevelDomainFee: + mycel.registry.v1.TopLevelDomainFee: type: object properties: total_fee: @@ -106962,461 +31638,3 @@ definitions: NOTE: The amount field is an Int which implements the custom method signatures required by gogoproto. - 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: 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.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.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: 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.TextRecord: - type: object - properties: - key: - type: string - value: - type: string - 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.resolver.v1beta1.Params: - type: object - description: Params defines the parameters for the module. - mycel.resolver.v1beta1.QueryAllRecordsResponse: - 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 - mycel.resolver.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.resolver.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.resolver.v1beta1.QueryTextRecordResponse: - type: object - properties: - value: - type: object - properties: - key: - type: string - value: - type: string - mycel.resolver.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 diff --git a/go.mod b/go.mod index 89e87f2e..20e63b7a 100644 --- a/go.mod +++ b/go.mod @@ -2,20 +2,33 @@ module github.com/mycel-domain/mycel go 1.21 +replace ( + // fix upstream GHSA-h395-qcrw-5vmq vulnerability. + github.com/gin-gonic/gin => github.com/gin-gonic/gin v1.7.0 + // replace broken goleveldb + github.com/syndtr/goleveldb => github.com/syndtr/goleveldb v1.0.1-0.20210819022825-2ae1ddf74ef7 +) + require ( cosmossdk.io/api v0.7.2 cosmossdk.io/client/v2 v2.0.0-beta.1 + cosmossdk.io/core v0.11.0 + cosmossdk.io/depinject v1.0.0-alpha.4 cosmossdk.io/errors v1.0.1 + cosmossdk.io/log v1.3.0 cosmossdk.io/math v1.2.0 cosmossdk.io/store v1.0.2 + cosmossdk.io/tools/confix v0.1.1 + cosmossdk.io/x/circuit v0.1.0 cosmossdk.io/x/evidence v0.1.0 cosmossdk.io/x/feegrant v0.1.0 + cosmossdk.io/x/nft v0.1.0 + cosmossdk.io/x/tx v0.13.0 cosmossdk.io/x/upgrade v0.1.1 filippo.io/edwards25519 v1.0.0 - github.com/CosmWasm/wasmd v0.50.0 - github.com/btcsuite/btcutil v1.0.3-0.20201208143702-a53e38424cce - github.com/bufbuild/buf v1.29.0 + github.com/bufbuild/buf v1.28.1 github.com/cometbft/cometbft v0.38.5 + github.com/cosmos/cosmos-db v1.0.0 github.com/cosmos/cosmos-proto v1.0.0-beta.3 github.com/cosmos/cosmos-sdk v0.50.3 github.com/cosmos/gogoproto v1.4.11 @@ -24,79 +37,46 @@ require ( github.com/golang/protobuf v1.5.3 github.com/gorilla/mux v1.8.1 github.com/grpc-ecosystem/grpc-gateway v1.16.0 - github.com/grpc-ecosystem/grpc-gateway/v2 v2.19.1 - github.com/miekg/dns v1.1.56 - github.com/prometheus/client_golang v1.17.0 - github.com/spf13/cast v1.6.0 + github.com/grpc-ecosystem/grpc-gateway/v2 v2.18.1 + github.com/miekg/dns v1.1.43 github.com/spf13/cobra v1.8.0 github.com/spf13/pflag v1.0.5 + github.com/spf13/viper v1.18.2 github.com/stretchr/testify v1.8.4 - google.golang.org/genproto/googleapis/api v0.0.0-20240125205218-1f4bbc51befe - google.golang.org/grpc v1.61.0 - google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.1.0 + 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 + google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.3.0 google.golang.org/protobuf v1.32.0 gopkg.in/yaml.v2 v2.4.0 ) require ( - buf.build/gen/go/bufbuild/protovalidate/protocolbuffers/go v1.32.0-20231115204500-e097f827e652.1 // indirect - connectrpc.com/connect v1.14.0 // indirect - connectrpc.com/otelconnect v0.7.0 // indirect - github.com/Azure/go-ansiterm v0.0.0-20230124172434-306776ec8161 // indirect - github.com/Microsoft/go-winio v0.6.1 // indirect - github.com/antlr4-go/antlr/v4 v4.13.0 // indirect - github.com/bufbuild/protovalidate-go v0.5.0 // indirect - github.com/bufbuild/protoyaml-go v0.1.7 // indirect - github.com/cometbft/cometbft-db v0.9.1 // indirect - github.com/containerd/stargz-snapshotter/estargz v0.15.1 // indirect - github.com/creachadair/atomicfile v0.3.1 // indirect - github.com/creachadair/tomledit v0.0.24 // indirect - github.com/docker/cli v24.0.7+incompatible // indirect - github.com/docker/distribution v2.8.3+incompatible // indirect - github.com/docker/docker v25.0.0+incompatible // indirect - github.com/docker/docker-credential-helpers v0.8.1 // indirect - github.com/docker/go-units v0.5.0 // indirect - github.com/felixge/fgprof v0.9.3 // indirect - github.com/ghodss/yaml v1.0.0 // indirect - github.com/go-chi/chi/v5 v5.0.11 // indirect - github.com/gofrs/uuid/v5 v5.0.0 // indirect - github.com/google/cel-go v0.19.0 // indirect - github.com/google/go-containerregistry v0.18.0 // indirect - github.com/google/pprof v0.0.0-20240117000934-35fc243c5815 // indirect - github.com/jdx/go-netrc v1.0.0 // indirect - github.com/klauspost/pgzip v1.2.6 // indirect - github.com/moby/term v0.5.0 // indirect - github.com/morikuni/aec v1.0.0 // indirect - github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c // indirect - github.com/pkg/profile v1.7.0 // indirect - github.com/stoewer/go-strcase v1.3.0 // indirect - github.com/tetratelabs/wazero v1.6.0 // indirect - github.com/vbatts/tar-split v0.11.5 // indirect - go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.47.0 // indirect - go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.23.1 // indirect - go.opentelemetry.io/otel/metric v1.23.1 // indirect - go.opentelemetry.io/proto/otlp v1.1.0 // indirect - go.uber.org/atomic v1.11.0 // indirect - go.uber.org/zap v1.26.0 // indirect + // CosmWasm + github.com/CosmWasm/wasmd v0.50.0 + github.com/btcsuite/btcutil v1.0.3-0.20201208143702-a53e38424cce ) require ( - cloud.google.com/go v0.111.0 // indirect + buf.build/gen/go/bufbuild/protovalidate/protocolbuffers/go v1.31.0-20231106192134-1baebb0a1518.2 // indirect + buf.build/gen/go/bufbuild/registry/protocolbuffers/go v1.31.0-20231111212044-1119bf4b707e.2 // indirect + cloud.google.com/go v0.110.10 // indirect cloud.google.com/go/compute v1.23.3 // indirect cloud.google.com/go/compute/metadata v0.2.3 // indirect cloud.google.com/go/iam v1.1.5 // indirect cloud.google.com/go/storage v1.35.1 // indirect + connectrpc.com/connect v1.12.0 // indirect + connectrpc.com/otelconnect v0.6.0 // indirect cosmossdk.io/collections v0.4.0 // indirect - cosmossdk.io/core v0.11.0 - cosmossdk.io/depinject v1.0.0-alpha.4 // indirect - cosmossdk.io/log v1.3.0 - cosmossdk.io/tools/confix v0.1.1 - cosmossdk.io/x/tx v0.13.0 github.com/99designs/go-keychain v0.0.0-20191008050251-8e49817e8af4 // indirect github.com/99designs/keyring v1.2.1 // indirect + github.com/Azure/go-ansiterm v0.0.0-20230124172434-306776ec8161 // indirect github.com/CosmWasm/wasmvm v1.5.0 // indirect github.com/DataDog/datadog-go v3.2.0+incompatible // indirect github.com/DataDog/zstd v1.5.5 // indirect + github.com/Microsoft/go-winio v0.6.1 // indirect + github.com/antlr4-go/antlr/v4 v4.13.0 // indirect github.com/aws/aws-sdk-go v1.44.224 // indirect github.com/beorn7/perks v1.0.1 // indirect github.com/bgentry/go-netrc v0.0.0-20140422174119-9fd32a8b3d3d // indirect @@ -104,8 +84,9 @@ require ( github.com/bits-and-blooms/bitset v1.8.0 // indirect github.com/btcsuite/btcd/btcec/v2 v2.3.2 // indirect github.com/btcsuite/btcd/chaincfg/chainhash v1.0.1 // indirect - github.com/bufbuild/protocompile v0.8.0 // indirect - github.com/cenkalti/backoff/v4 v4.2.1 // indirect + github.com/bufbuild/protocompile v0.6.1-0.20231108163138-146b831231f7 // indirect + github.com/bufbuild/protovalidate-go v0.4.1 // indirect + github.com/cenkalti/backoff/v4 v4.1.3 // indirect github.com/cespare/xxhash v1.1.0 // indirect github.com/cespare/xxhash/v2 v2.2.0 // indirect github.com/chzyer/readline v1.5.1 // indirect @@ -115,15 +96,18 @@ require ( github.com/cockroachdb/pebble v0.0.0-20231102162011-844f0582c2eb // indirect github.com/cockroachdb/redact v1.1.5 // indirect github.com/cockroachdb/tokenbucket v0.0.0-20230807174530-cc333fc44b06 // indirect + github.com/cometbft/cometbft-db v0.9.1 // indirect + github.com/containerd/stargz-snapshotter/estargz v0.15.1 // indirect github.com/cosmos/btcutil v1.0.5 // indirect - github.com/cosmos/cosmos-db v1.0.0 github.com/cosmos/go-bip39 v1.0.0 // indirect github.com/cosmos/gogogateway v1.2.0 // indirect github.com/cosmos/iavl v1.0.0 // indirect github.com/cosmos/ics23/go v0.10.0 // indirect github.com/cosmos/ledger-cosmos-go v0.13.3 // indirect github.com/cpuguy83/go-md2man/v2 v2.0.3 // indirect - github.com/danieljoos/wincred v1.2.1 // indirect + github.com/creachadair/atomicfile v0.3.1 // indirect + github.com/creachadair/tomledit v0.0.24 // indirect + github.com/danieljoos/wincred v1.2.0 // indirect github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect github.com/decred/dcrd/dcrec/secp256k1/v4 v4.2.0 // indirect github.com/desertbit/timer v0.0.0-20180107155436-c41aec40b27f // indirect @@ -131,20 +115,29 @@ require ( github.com/dgraph-io/ristretto v0.1.1 // indirect github.com/dgryski/go-farm v0.0.0-20200201041132-a6ae2369ad13 // indirect github.com/distribution/reference v0.5.0 // indirect - github.com/docker/go-connections v0.5.0 // indirect + github.com/docker/cli v24.0.7+incompatible // indirect + github.com/docker/distribution v2.8.3+incompatible // indirect + github.com/docker/docker v24.0.7+incompatible // indirect + github.com/docker/docker-credential-helpers v0.8.0 // indirect + github.com/docker/go-connections v0.4.0 // indirect + github.com/docker/go-units v0.5.0 // indirect github.com/dustin/go-humanize v1.0.1 // indirect github.com/dvsekhvalnov/jose2go v1.5.0 // indirect github.com/emicklei/dot v1.6.0 // indirect github.com/fatih/color v1.15.0 // indirect + github.com/felixge/fgprof v0.9.3 // indirect github.com/felixge/httpsnoop v1.0.4 // indirect github.com/fsnotify/fsnotify v1.7.0 // indirect github.com/getsentry/sentry-go v0.25.0 // indirect + github.com/ghodss/yaml v1.0.0 // indirect + github.com/go-chi/chi/v5 v5.0.10 // indirect github.com/go-kit/kit v0.12.0 // indirect github.com/go-kit/log v0.2.1 // indirect github.com/go-logfmt/logfmt v0.6.0 // indirect - github.com/go-logr/logr v1.4.1 // indirect + github.com/go-logr/logr v1.3.0 // indirect github.com/go-logr/stdr v1.2.2 // indirect github.com/godbus/dbus v0.0.0-20190726142602-4481cbc300e2 // indirect + github.com/gofrs/uuid/v5 v5.0.0 // indirect github.com/gogo/googleapis v1.4.1 // indirect github.com/gogo/protobuf v1.3.2 // indirect github.com/golang/glog v1.2.0 // indirect @@ -152,9 +145,12 @@ require ( github.com/golang/mock v1.6.0 // indirect github.com/golang/snappy v0.0.4 // indirect github.com/google/btree v1.1.2 // indirect + github.com/google/cel-go v0.18.2 // indirect github.com/google/go-cmp v0.6.0 // indirect + github.com/google/go-containerregistry v0.16.1 // indirect github.com/google/gofuzz v1.2.0 // indirect github.com/google/orderedcode v0.0.1 // indirect + github.com/google/pprof v0.0.0-20231101202521-4ca4178f5c7a // indirect github.com/google/s2a-go v0.1.7 // indirect github.com/google/uuid v1.4.0 // indirect github.com/googleapis/enterprise-certificate-proxy v0.3.2 // indirect @@ -179,9 +175,11 @@ require ( github.com/iancoleman/strcase v0.3.0 // indirect github.com/improbable-eng/grpc-web v0.15.0 // indirect github.com/inconshreveable/mousetrap v1.1.0 // indirect + github.com/jdx/go-netrc v1.0.0 // indirect github.com/jmespath/go-jmespath v0.4.0 // indirect github.com/jmhodges/levigo v1.0.0 // indirect github.com/klauspost/compress v1.17.4 // indirect + github.com/klauspost/pgzip v1.2.6 // indirect github.com/kr/pretty v0.3.1 // indirect github.com/kr/text v0.2.0 // indirect github.com/lib/pq v1.10.7 // indirect @@ -196,17 +194,20 @@ require ( github.com/mitchellh/go-homedir v1.1.0 // indirect github.com/mitchellh/go-testing-interface v1.14.1 // indirect github.com/mitchellh/mapstructure v1.5.0 // indirect + github.com/moby/term v0.5.0 // indirect + github.com/morikuni/aec v1.0.0 // indirect github.com/mtibben/percent v0.2.1 // indirect github.com/oasisprotocol/curve25519-voi v0.0.0-20230904125328-1f23a7beb09a // indirect github.com/oklog/run v1.1.0 // indirect - github.com/onsi/gomega v1.27.6 // indirect github.com/opencontainers/go-digest v1.0.0 // indirect github.com/opencontainers/image-spec v1.1.0-rc5 // indirect - github.com/opencontainers/runc v1.1.7 // indirect github.com/pelletier/go-toml/v2 v2.1.0 // indirect github.com/petermattis/goid v0.0.0-20230904192822-1876fd5063bc // indirect + github.com/pkg/browser v0.0.0-20210911075715-681adbf594b8 // indirect github.com/pkg/errors v0.9.1 // indirect + github.com/pkg/profile v1.7.0 // indirect github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect + github.com/prometheus/client_golang v1.17.0 // indirect github.com/prometheus/client_model v0.5.0 // indirect github.com/prometheus/common v0.45.0 // indirect github.com/prometheus/procfs v0.12.0 // indirect @@ -221,35 +222,40 @@ require ( github.com/sirupsen/logrus v1.9.3 // indirect github.com/sourcegraph/conc v0.3.0 // indirect github.com/spf13/afero v1.11.0 // indirect - github.com/spf13/viper v1.18.2 // indirect + github.com/spf13/cast v1.6.0 // indirect + github.com/stoewer/go-strcase v1.3.0 // indirect github.com/subosito/gotenv v1.6.0 // indirect github.com/syndtr/goleveldb v1.0.1-0.20220721030215-126854af5e6d // indirect github.com/tendermint/go-amino v0.16.0 // indirect + github.com/tetratelabs/wazero v1.5.0 // indirect github.com/tidwall/btree v1.7.0 // indirect github.com/ulikunitz/xz v0.5.11 // indirect + github.com/vbatts/tar-split v0.11.5 // indirect github.com/zondax/hid v0.9.2 // indirect github.com/zondax/ledger-go v0.14.3 // indirect go.etcd.io/bbolt v1.3.8 // indirect go.opencensus.io v0.24.0 // indirect - go.opentelemetry.io/otel v1.23.1 // indirect - go.opentelemetry.io/otel/sdk v1.23.1 // indirect - go.opentelemetry.io/otel/trace v1.23.1 // indirect + go.opentelemetry.io/otel v1.20.0 // indirect + go.opentelemetry.io/otel/metric v1.20.0 // indirect + go.opentelemetry.io/otel/sdk v1.20.0 // indirect + go.opentelemetry.io/otel/trace v1.20.0 // indirect + go.uber.org/atomic v1.11.0 // indirect 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-20240112132812-db7319d0e0e3 // indirect golang.org/x/mod v0.14.0 // indirect golang.org/x/net v0.20.0 // indirect - golang.org/x/oauth2 v0.16.0 // indirect - golang.org/x/sync v0.6.0 // indirect + golang.org/x/oauth2 v0.15.0 // indirect + golang.org/x/sync v0.5.0 // indirect golang.org/x/sys v0.16.0 // indirect golang.org/x/term v0.16.0 // indirect golang.org/x/text v0.14.0 // indirect golang.org/x/time v0.5.0 // indirect - golang.org/x/tools v0.17.0 + golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect google.golang.org/api v0.153.0 // indirect google.golang.org/appengine v1.6.8 // indirect - google.golang.org/genproto v0.0.0-20240116215550-a9fa1716bcac // indirect - google.golang.org/genproto/googleapis/rpc v0.0.0-20240125205218-1f4bbc51befe // indirect + google.golang.org/genproto v0.0.0-20231211222908-989df2bf70f3 // indirect + google.golang.org/genproto/googleapis/rpc v0.0.0-20231212172506-995d672761c0 // indirect gopkg.in/ini.v1 v1.67.0 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect gotest.tools/v3 v3.5.1 // indirect @@ -257,5 +263,3 @@ require ( pgregory.net/rapid v1.1.0 // indirect sigs.k8s.io/yaml v1.4.0 // indirect ) - -replace github.com/syndtr/goleveldb => github.com/syndtr/goleveldb v1.0.1-0.20210819022825-2ae1ddf74ef7 diff --git a/go.sum b/go.sum index 09a5123c..46e31ede 100644 --- a/go.sum +++ b/go.sum @@ -1,5 +1,8 @@ -buf.build/gen/go/bufbuild/protovalidate/protocolbuffers/go v1.32.0-20231115204500-e097f827e652.1 h1:u0olL4yf2p7Tl5jfsAK5keaFi+JFJuv1CDHrbiXkxkk= -buf.build/gen/go/bufbuild/protovalidate/protocolbuffers/go v1.32.0-20231115204500-e097f827e652.1/go.mod h1:tiTMKD8j6Pd/D2WzREoweufjzaJKHZg35f/VGcZ2v3I= +buf.build/gen/go/bufbuild/protovalidate/protocolbuffers/go v1.31.0-20230914171853-63dfe56cc2c4.2/go.mod h1:xafc+XIsTxTy76GJQ1TKgvJWsSugFBqMaN27WhUblew= +buf.build/gen/go/bufbuild/protovalidate/protocolbuffers/go v1.31.0-20231106192134-1baebb0a1518.2 h1:iRWpWLm1nrsCHBVhibqPJQB3iIf3FRsAXioJVU8m6w0= +buf.build/gen/go/bufbuild/protovalidate/protocolbuffers/go v1.31.0-20231106192134-1baebb0a1518.2/go.mod h1:xafc+XIsTxTy76GJQ1TKgvJWsSugFBqMaN27WhUblew= +buf.build/gen/go/bufbuild/registry/protocolbuffers/go v1.31.0-20231111212044-1119bf4b707e.2 h1:tgXOEZtPifMR5kaQ6GB4t7pk0G3dai/OS3JFD9Zt+eE= +buf.build/gen/go/bufbuild/registry/protocolbuffers/go v1.31.0-20231111212044-1119bf4b707e.2/go.mod h1:3Ion4eJWjUDfJyrUXSgtB3zO5ZweZtyvNuEc+fyMBCk= cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.38.0/go.mod h1:990N+gfupTy94rShfmMCWGDn0LpTmnzTp2qbd1dvSRU= @@ -32,8 +35,8 @@ cloud.google.com/go v0.100.2/go.mod h1:4Xra9TjzAeYHrl5+oeLlzbM2k3mjVhZh4UqTZ//w9 cloud.google.com/go v0.102.0/go.mod h1:oWcCzKlqJ5zgHQt9YsaeTY9KzIvjyy0ArmiBUgpQ+nc= cloud.google.com/go v0.102.1/go.mod h1:XZ77E9qnTEnrgEOvr4xzfdX5TRo7fB4T2F4O6+34hIU= cloud.google.com/go v0.104.0/go.mod h1:OO6xxXdJyvuJPcEPBLN9BJPD+jep5G1+2U5B5gkRYtA= -cloud.google.com/go v0.111.0 h1:YHLKNupSD1KqjDbQ3+LVdQ81h/UJbJyZG203cEfnQgM= -cloud.google.com/go v0.111.0/go.mod h1:0mibmpKP1TyOOFYQY5izo0LnT+ecvOQ0Sg3OdmMiNRU= +cloud.google.com/go v0.110.10 h1:LXy9GEO+timppncPIAZoOj3l58LIU9k+kn48AN7IO3Y= +cloud.google.com/go v0.110.10/go.mod h1:v1OoFqYxiBkUrruItNM3eT4lLByNjxmJSV/xDKJNnic= cloud.google.com/go/aiplatform v1.22.0/go.mod h1:ig5Nct50bZlzV6NvKaTwmplLLddFx0YReh9WfTO5jKw= cloud.google.com/go/aiplatform v1.24.0/go.mod h1:67UUvRBKG6GTayHKV8DBv2RtR1t93YRu5B1P3x99mYY= cloud.google.com/go/analytics v0.11.0/go.mod h1:DjEWCu41bVbYcKyvlws9Er60YE4a//bK6mnhWvQeFNI= @@ -186,10 +189,10 @@ cloud.google.com/go/webrisk v1.4.0/go.mod h1:Hn8X6Zr+ziE2aNd8SliSDWpEnSS1u4R9+xX cloud.google.com/go/webrisk v1.5.0/go.mod h1:iPG6fr52Tv7sGk0H6qUFzmL3HHZev1htXuWDEEsqMTg= cloud.google.com/go/workflows v1.6.0/go.mod h1:6t9F5h/unJz41YqfBmqSASJSXccBLtD1Vwf+KmJENM0= cloud.google.com/go/workflows v1.7.0/go.mod h1:JhSrZuVZWuiDfKEFxU0/F1PQjmpnpcoISEXH2bcHC3M= -connectrpc.com/connect v1.14.0 h1:PDS+J7uoz5Oui2VEOMcfz6Qft7opQM9hPiKvtGC01pA= -connectrpc.com/connect v1.14.0/go.mod h1:uoAq5bmhhn43TwhaKdGKN/bZcGtzPW1v+ngDTn5u+8s= -connectrpc.com/otelconnect v0.7.0 h1:ZH55ZZtcJOTKWWLy3qmL4Pam4RzRWBJFOqTPyAqCXkY= -connectrpc.com/otelconnect v0.7.0/go.mod h1:Bt2ivBymHZHqxvo4HkJ0EwHuUzQN6k2l0oH+mp/8nwc= +connectrpc.com/connect v1.12.0 h1:HwKdOY0lGhhoHdsza+hW55aqHEC64pYpObRNoAgn70g= +connectrpc.com/connect v1.12.0/go.mod h1:3AGaO6RRGMx5IKFfqbe3hvK1NqLosFNP2BxDYTPmNPo= +connectrpc.com/otelconnect v0.6.0 h1:VJAdQL9+sgdUw9+7+J+jq8pQo/h1S7tSFv2+vDcR7bU= +connectrpc.com/otelconnect v0.6.0/go.mod h1:jdcs0uiwXQVmSMgTJ2dAaWR5VbpNd7QKNkuoH7n86RA= cosmossdk.io/api v0.7.2 h1:BO3i5fvKMKvfaUiMkCznxViuBEfyWA/k6w2eAF6q1C4= cosmossdk.io/api v0.7.2/go.mod h1:IcxpYS5fMemZGqyYtErK7OqvdM0C8kdW3dq8Q/XIG38= cosmossdk.io/client/v2 v2.0.0-beta.1 h1:XkHh1lhrLYIT9zKl7cIOXUXg2hdhtjTPBUfqERNA1/Q= @@ -306,20 +309,18 @@ github.com/btcsuite/goleveldb v0.0.0-20160330041536-7834afc9e8cd/go.mod h1:F+uVa github.com/btcsuite/snappy-go v0.0.0-20151229074030-0bdef8d06723/go.mod h1:8woku9dyThutzjeg+3xrA5iCpBRH8XEEg3lh6TiUghc= github.com/btcsuite/websocket v0.0.0-20150119174127-31079b680792/go.mod h1:ghJtEyQwv5/p4Mg4C0fgbePVuGr935/5ddU9Z3TmDRY= github.com/btcsuite/winsvc v1.0.0/go.mod h1:jsenWakMcC0zFBFurPLEAyrnc/teJEM1O46fmI40EZs= -github.com/bufbuild/buf v1.29.0 h1:llP6HqOcCaSGBxOfnrp/mwvcY1O/dciEOl1QaMEOB3M= -github.com/bufbuild/buf v1.29.0/go.mod h1:UTjvPXTObvKQiGqxod32wt9zRz70TJsMpaigpbIZGuc= -github.com/bufbuild/protocompile v0.8.0 h1:9Kp1q6OkS9L4nM3FYbr8vlJnEwtbpDPQlQOVXfR+78s= -github.com/bufbuild/protocompile v0.8.0/go.mod h1:+Etjg4guZoAqzVk2czwEQP12yaxLJ8DxuqCJ9qHdH94= -github.com/bufbuild/protovalidate-go v0.5.0 h1:xFery2RlLh07FQTvB7hlasKqPrDK2ug+uw6DUiuadjo= -github.com/bufbuild/protovalidate-go v0.5.0/go.mod h1:3XAwFeJ2x9sXyPLgkxufH9sts1tQRk8fdt1AW93NiUU= -github.com/bufbuild/protoyaml-go v0.1.7 h1:3uKIoNb/l5zrZ93u+Xzsg6cdAO06lveZE/K7UUbUQLw= -github.com/bufbuild/protoyaml-go v0.1.7/go.mod h1:R8vE2+l49bSiIExP4VJpxOXleHE+FDzZ6HVxr3cYunw= +github.com/bufbuild/buf v1.28.1 h1:JG+PjhaVz4bprGV1u//ZBDSxWwFnjrzjse2pmm4zBlI= +github.com/bufbuild/buf v1.28.1/go.mod h1:X/HDGbWUM2QiR5XvvsBfElUPblETOf96zq5H7FOUiP4= +github.com/bufbuild/protocompile v0.6.1-0.20231108163138-146b831231f7 h1:1pUks8VaLdprN9wrxAgshb06b08IzdYp0B7JgoDeUfw= +github.com/bufbuild/protocompile v0.6.1-0.20231108163138-146b831231f7/go.mod h1:9N39DyRmxAF5+5AjqXQKV6hyWDI0EeoX4TRMix2ZnPE= +github.com/bufbuild/protovalidate-go v0.4.1 h1:ye/8S72WbEklCeltPkSEeT8Eu1A7P/gmMsmapkwqTFk= +github.com/bufbuild/protovalidate-go v0.4.1/go.mod h1:+p5FXfOjSEgLz5WBDTOMPMdQPXqALEERbJZU7huDCtA= github.com/casbin/casbin/v2 v2.1.2/go.mod h1:YcPU1XXisHhLzuxH9coDNf2FbKpjGlbCg3n9yuLkIJQ= github.com/cenkalti/backoff v2.2.1+incompatible h1:tNowT99t7UNflLxfYYSlKYsBpXdEet03Pg2g16Swow4= github.com/cenkalti/backoff v2.2.1+incompatible/go.mod h1:90ReRw6GdpyfrHakVjL/QHaoyV4aDUVVkXQJJJ3NXXM= github.com/cenkalti/backoff/v4 v4.1.1/go.mod h1:scbssz8iZGpm3xbr14ovlUdkxfGXNInqkPWOWmG2CLw= -github.com/cenkalti/backoff/v4 v4.2.1 h1:y4OZtCnogmCPw98Zjyt5a6+QwPLGkiQsYW5oUqylYbM= -github.com/cenkalti/backoff/v4 v4.2.1/go.mod h1:Y3VNntkOUPxTVeUxJ/G5vcM//AlwfmyYozVcomhLiZE= +github.com/cenkalti/backoff/v4 v4.1.3 h1:cFAlzYUlVYDysBEH2T5hyJZMh3+5+WCBvSnK6Q8UtC4= +github.com/cenkalti/backoff/v4 v4.1.3/go.mod h1:scbssz8iZGpm3xbr14ovlUdkxfGXNInqkPWOWmG2CLw= github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= github.com/cespare/xxhash v1.1.0 h1:a6HrQnmkObjyL+Gs60czilIUGqrzKutQD6XZog3p+ko= github.com/cespare/xxhash v1.1.0/go.mod h1:XrSqR1VqqWfGrhpAt58auRo0WTKS1nRRg3ghfAqPWnc= @@ -371,8 +372,6 @@ github.com/cometbft/cometbft-db v0.9.1 h1:MIhVX5ja5bXNHF8EYrThkG9F7r9kSfv8BX4LWa github.com/cometbft/cometbft-db v0.9.1/go.mod h1:iliyWaoV0mRwBJoizElCwwRA9Tf7jZJOURcRZF9m60U= github.com/containerd/continuity v0.3.0 h1:nisirsYROK15TAMVukJOUyGJjz4BNQJBVsNvAXZJ/eg= github.com/containerd/continuity v0.3.0/go.mod h1:wJEAIwKOm/pBZuBd0JmeTvnLquTB1Ag8espWhkykbPM= -github.com/containerd/log v0.1.0 h1:TCJt7ioM2cr/tfR8GPbGf9/VRAX8D2B4PjzCpfX540I= -github.com/containerd/log v0.1.0/go.mod h1:VRRf09a7mHDIRezVKTRCrOq78v577GXq3bSa3EhrzVo= github.com/containerd/stargz-snapshotter/estargz v0.15.1 h1:eXJjw9RbkLFgioVaTG+G/ZW/0kEe2oEKCdS/ZxIyoCU= github.com/containerd/stargz-snapshotter/estargz v0.15.1/go.mod h1:gr2RNwukQ/S9Nv33Lt6UC7xEx58C+LHRdoqbEKjz1Kk= github.com/coreos/etcd v3.3.10+incompatible/go.mod h1:uF7uidLiAD3TWHmW31ZFd/JWoc32PjwdhPthX9715RE= @@ -418,8 +417,8 @@ github.com/creack/pty v1.1.7/go.mod h1:lj5s0c3V2DBrqTV7llrYr5NG6My20zk30Fl46Y7Do github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= github.com/creack/pty v1.1.18 h1:n56/Zwd5o6whRC5PMGretI4IdRLlmBXYNjScPaBgsbY= github.com/creack/pty v1.1.18/go.mod h1:MOBLtS5ELjhRRrroQr9kyvTxUAFNvYEK993ew/Vr4O4= -github.com/danieljoos/wincred v1.2.1 h1:dl9cBrupW8+r5250DYkYxocLeZ1Y4vB1kxgtjxw8GQs= -github.com/danieljoos/wincred v1.2.1/go.mod h1:uGaFL9fDn3OLTvzCGulzE+SzjEe5NGlh5FdCcyfPwps= +github.com/danieljoos/wincred v1.2.0 h1:ozqKHaLK0W/ii4KVbbvluM91W2H3Sh0BncbUNPS7jLE= +github.com/danieljoos/wincred v1.2.0/go.mod h1:FzQLLMKBFdvu+osBrnFODiv32YGwCfx0SkRa/eYHgec= github.com/davecgh/go-spew v0.0.0-20171005155431-ecdeabc65495/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= @@ -446,12 +445,12 @@ github.com/docker/cli v24.0.7+incompatible h1:wa/nIwYFW7BVTGa7SWPVyyXU9lgORqUb1x github.com/docker/cli v24.0.7+incompatible/go.mod h1:JLrzqnKDaYBop7H2jaqPtU4hHvMKP+vjCwu2uszcLI8= github.com/docker/distribution v2.8.3+incompatible h1:AtKxIZ36LoNK51+Z6RpzLpddBirtxJnzDrHLEKxTAYk= github.com/docker/distribution v2.8.3+incompatible/go.mod h1:J2gT2udsDAN96Uj4KfcMRqY0/ypR+oyYUYmja8H+y+w= -github.com/docker/docker v25.0.0+incompatible h1:g9b6wZTblhMgzOT2tspESstfw6ySZ9kdm94BLDKaZac= -github.com/docker/docker v25.0.0+incompatible/go.mod h1:eEKB0N0r5NX/I1kEveEz05bcu8tLC/8azJZsviup8Sk= -github.com/docker/docker-credential-helpers v0.8.1 h1:j/eKUktUltBtMzKqmfLB0PAgqYyMHOp5vfsD1807oKo= -github.com/docker/docker-credential-helpers v0.8.1/go.mod h1:P3ci7E3lwkZg6XiHdRKft1KckHiO9a2rNtyFbZ/ry9M= -github.com/docker/go-connections v0.5.0 h1:USnMq7hx7gwdVZq1L49hLXaFtUdTADjXGp+uj1Br63c= -github.com/docker/go-connections v0.5.0/go.mod h1:ov60Kzw0kKElRwhNs9UlUHAE/F9Fe6GLaXnqyDdmEXc= +github.com/docker/docker v24.0.7+incompatible h1:Wo6l37AuwP3JaMnZa226lzVXGA3F9Ig1seQen0cKYlM= +github.com/docker/docker v24.0.7+incompatible/go.mod h1:eEKB0N0r5NX/I1kEveEz05bcu8tLC/8azJZsviup8Sk= +github.com/docker/docker-credential-helpers v0.8.0 h1:YQFtbBQb4VrpoPxhFuzEBPQ9E16qz5SpHLS+uswaCp8= +github.com/docker/docker-credential-helpers v0.8.0/go.mod h1:UGFXcuoQ5TxPiB54nHOZ32AWRqQdECoh/Mg0AlEYb40= +github.com/docker/go-connections v0.4.0 h1:El9xVISelRB7BuFusrZozjnkIM5YnzCViNKohAFqRJQ= +github.com/docker/go-connections v0.4.0/go.mod h1:Gbd7IOopHjR8Iph03tsViu4nIes5XhDvyHbTtUxmeec= github.com/docker/go-units v0.5.0 h1:69rxXcBk27SvSaaxTtLh/8llcHD8vYHT7WSdRZ/jvr4= github.com/docker/go-units v0.5.0/go.mod h1:fgPhTUdO+D/Jk86RDLlptpiXQzgHJF7gydDDbaIK4Dk= github.com/dustin/go-humanize v0.0.0-20171111073723-bb3d318650d4/go.mod h1:HtrtbFcZ19U5GC7JDqmcUSB87Iq5E25KnS6fMYU6eOk= @@ -477,8 +476,8 @@ github.com/envoyproxy/go-control-plane v0.9.9-0.20210512163311-63b5d3c536b0/go.m github.com/envoyproxy/go-control-plane v0.9.10-0.20210907150352-cf90f659a021/go.mod h1:AFq3mo9L8Lqqiid3OhADV3RfLJnjiw63cSpi+fDTRC0= github.com/envoyproxy/go-control-plane v0.10.2-0.20220325020618-49ff273808a1/go.mod h1:KJwIaB5Mv44NWtYuAOFCVOjcI94vtpEz2JU/D2v6IjE= github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= -github.com/envoyproxy/protoc-gen-validate v1.0.4 h1:gVPz/FMfvh57HdSJQyvBtF00j8JU4zdyUgIUNhlgg0A= -github.com/envoyproxy/protoc-gen-validate v1.0.4/go.mod h1:qys6tmnRsYrQqIhm2bvKZH4Blx/1gTIZ2UKVY1M+Yew= +github.com/envoyproxy/protoc-gen-validate v1.0.2 h1:QkIBuU5k+x7/QXPvPPnWXWlCdaBFApVqftFV6k087DA= +github.com/envoyproxy/protoc-gen-validate v1.0.2/go.mod h1:GpiZQP3dDbg4JouG/NNS7QWXpgx6x8QiMKdmN72jogE= github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4= github.com/fatih/color v1.13.0/go.mod h1:kLAiJbzzSOZDVNGyDpeOxJ47H46qBXwg5ILebYFFOfk= github.com/fatih/color v1.15.0 h1:kOqh6YHBtK8aywxGerMG2Eq3H6Qgoqeo13Bk2Mv/nBs= @@ -503,11 +502,10 @@ github.com/ghodss/yaml v1.0.0 h1:wQHKEahhL6wmXdzwWG11gIVCkOv05bNOh+Rxn0yngAk= github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04= github.com/gin-contrib/sse v0.1.0 h1:Y/yl/+YNO8GZSjAhjMsSuLt29uWRFHdHYUb5lYOV9qE= github.com/gin-contrib/sse v0.1.0/go.mod h1:RHrZQHXnP2xjPF+u1gW/2HnVO7nvIa9PG3Gm+fLHvGI= -github.com/gin-gonic/gin v1.6.3/go.mod h1:75u5sXoLsGZoRN5Sgbi1eraJ4GU3++wFwWzhwvtwp4M= -github.com/gin-gonic/gin v1.8.1 h1:4+fr/el88TOO3ewCmQr8cx/CtZ/umlIRIs5M4NTNjf8= -github.com/gin-gonic/gin v1.8.1/go.mod h1:ji8BvRH1azfM+SYow9zQ6SZMvR8qOMZHmsCuWR9tTTk= -github.com/go-chi/chi/v5 v5.0.11 h1:BnpYbFZ3T3S1WMpD79r7R5ThWX40TaFB7L31Y8xqSwA= -github.com/go-chi/chi/v5 v5.0.11/go.mod h1:DslCQbL2OYiznFReuXYUmQ2hGd1aDpCnlMNITLSKoi8= +github.com/gin-gonic/gin v1.7.0 h1:jGB9xAJQ12AIGNB4HguylppmDK1Am9ppF7XnGXXJuoU= +github.com/gin-gonic/gin v1.7.0/go.mod h1:jD2toBW3GZUr5UMcdrwQA10I7RuaFOl/SGeDjXkfUtY= +github.com/go-chi/chi/v5 v5.0.10 h1:rLz5avzKpjqxrYwXNfmjkrYYXOyLJd37pz53UFHC6vk= +github.com/go-chi/chi/v5 v5.0.10/go.mod h1:DslCQbL2OYiznFReuXYUmQ2hGd1aDpCnlMNITLSKoi8= github.com/go-errors/errors v1.4.2 h1:J6MZopCL4uSllY1OfXM374weqZFFItUbrImctkmUxIA= github.com/go-errors/errors v1.4.2/go.mod h1:sIVyrIiJhuEF+Pj9Ebtd6P/rEYROXFi3BopGUQ5a5Og= github.com/go-gl/glfw v0.0.0-20190409004039-e6da0acd62b1/go.mod h1:vR7hzQXu2zJy9AVAgeJqvqgH9Q5CA+iKCZ2gyEVpxRU= @@ -527,8 +525,8 @@ github.com/go-logfmt/logfmt v0.5.0/go.mod h1:wCYkCAKZfumFQihp8CzCvQ3paCTfi41vtzG github.com/go-logfmt/logfmt v0.6.0 h1:wGYYu3uicYdqXVgoYbvnkrPVXkuLM1p1ifugDMEdRi4= github.com/go-logfmt/logfmt v0.6.0/go.mod h1:WYhtIu8zTZfxdn5+rREduYbwxfcBr/Vr6KEVveWlfTs= github.com/go-logr/logr v1.2.2/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A= -github.com/go-logr/logr v1.4.1 h1:pKouT5E8xu9zeFC39JXRDukb6JFQPXM5p5I91188VAQ= -github.com/go-logr/logr v1.4.1/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY= +github.com/go-logr/logr v1.3.0 h1:2y3SDp0ZXuc6/cjLSZ+Q3ir+QB9T/iG5yYRXqsagWSY= +github.com/go-logr/logr v1.3.0/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY= github.com/go-logr/stdr v1.2.2 h1:hSWxHoqTgW2S2qGc0LTAI563KZ5YKYRhT3MFKZMbjag= github.com/go-logr/stdr v1.2.2/go.mod h1:mMo/vtBO5dYbehREoey6XUKy/eSumjCCveDpRre4VKE= github.com/go-playground/assert/v2 v2.0.1/go.mod h1:VDjEfimB/XKnb+ZQfWdccd7VUvScMdVu0Titje2rxJ4= @@ -538,7 +536,7 @@ github.com/go-playground/locales v0.14.0/go.mod h1:sawfccIbzZTqEDETgFXqTho0QybSa github.com/go-playground/universal-translator v0.17.0/go.mod h1:UkSxE5sNxxRwHyU+Scu5vgOQjsIJAF8j9muTVoKLVtA= github.com/go-playground/universal-translator v0.18.0 h1:82dyy6p4OuJq4/CByFNOn/jYrnRPArHwAcmLoJZxyho= github.com/go-playground/universal-translator v0.18.0/go.mod h1:UvRDBj+xPUEGrFYl+lu/H90nyDXpg0fqeB/AQUGNTVA= -github.com/go-playground/validator/v10 v10.2.0/go.mod h1:uOYAAleCW8F/7oMFd6aG0GOhaH6EGOAJShg8Id5JGkI= +github.com/go-playground/validator/v10 v10.4.1/go.mod h1:nlOn6nFhuKACm19sB/8EGNn9GlaMV7XkbRSipzJ0Ii4= github.com/go-playground/validator/v10 v10.11.1 h1:prmOlTVv+YjZjmRmNSF3VmspqJIxJWXmqUsHwfTRRkQ= github.com/go-playground/validator/v10 v10.11.1/go.mod h1:i+3WkQ1FvaUjjxh1kSvIA4dMGDBiPU55YFDl0WbKdWU= github.com/go-sql-driver/mysql v1.4.0/go.mod h1:zAC/RDZ24gD3HViQzih4MyKcchzm+sOG5ZlKdlhCg5w= @@ -552,8 +550,6 @@ github.com/gobwas/pool v0.2.1/go.mod h1:q8bcK0KcYlCgd9e7WYLm9LpyS+YeLd8JVDW6Wezm github.com/gobwas/ws v1.0.2/go.mod h1:szmBTxLgaFppYjEmNtny/v3w89xOydFnnZMcgRRu/EM= github.com/gobwas/ws v1.2.1 h1:F2aeBZrm2NDsc7vbovKrWSogd4wvfAxg0FQ89/iqOTk= github.com/gobwas/ws v1.2.1/go.mod h1:hRKAFb8wOxFROYNsT1bqfWnhX+b5MFeJM9r2ZSwg/KY= -github.com/goccy/go-json v0.9.11 h1:/pAaQDLHEoCq/5FFmSKBswWmK6H0e8g4159Kc/X/nqk= -github.com/goccy/go-json v0.9.11/go.mod h1:6MelG93GURQebXPDq3khkgXZkazVtN9CRI+MGFi0w8I= github.com/godbus/dbus v0.0.0-20190726142602-4481cbc300e2 h1:ZpnhV/YsD2/4cESfV5+Hoeu/iUR3ruzNvZ+yQfO03a0= github.com/godbus/dbus v0.0.0-20190726142602-4481cbc300e2/go.mod h1:bBOAhwG1umN6/6ZUMtDFBMQR8jRg9O75tm9K00oMsK4= github.com/godbus/dbus/v5 v5.0.4/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA= @@ -618,8 +614,8 @@ github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c/go.mod h1:lNA+9X1NB3Z github.com/google/btree v1.0.0/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= github.com/google/btree v1.1.2 h1:xf4v41cLI2Z6FxbKm+8Bu+m8ifhj15JuZ9sa0jZCMUU= github.com/google/btree v1.1.2/go.mod h1:qOPhT0dTNdNzV6Z/lhRX0YXUafgPLFUh+gZMl761Gm4= -github.com/google/cel-go v0.19.0 h1:vVgaZoHPBDd1lXCYGQOh5A06L4EtuIfmqQ/qnSXSKiU= -github.com/google/cel-go v0.19.0/go.mod h1:kWcIzTsPX0zmQ+H3TirHstLLf9ep5QTsZBN9u4dOYLg= +github.com/google/cel-go v0.18.2 h1:L0B6sNBSVmt0OyECi8v6VOS74KOc9W/tLiWKfZABvf4= +github.com/google/cel-go v0.18.2/go.mod h1:kWcIzTsPX0zmQ+H3TirHstLLf9ep5QTsZBN9u4dOYLg= github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M= github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= @@ -637,8 +633,8 @@ github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeN github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= -github.com/google/go-containerregistry v0.18.0 h1:ShE7erKNPqRh5ue6Z9DUOlk04WsnFWPO6YGr3OxnfoQ= -github.com/google/go-containerregistry v0.18.0/go.mod h1:u0qB2l7mvtWVR5kNcbFIhFY1hLbf8eeGapA+vbFDCtQ= +github.com/google/go-containerregistry v0.16.1 h1:rUEt426sR6nyrL3gt+18ibRcvYpKYdpsa5ZW7MA08dQ= +github.com/google/go-containerregistry v0.16.1/go.mod h1:u0qB2l7mvtWVR5kNcbFIhFY1hLbf8eeGapA+vbFDCtQ= github.com/google/gofuzz v0.0.0-20170612174753-24818f796faf/go.mod h1:HP5RmnzzSNb993RKQDq4+1A4ia9nllfqcQFTQJedwGI= github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= github.com/google/gofuzz v1.2.0 h1:xRy4A+RhZaiKjJ1bPfwQ8sedCA+YS2YcCHW6ec7JMi0= @@ -667,8 +663,8 @@ github.com/google/pprof v0.0.0-20210601050228-01bbb1931b22/go.mod h1:kpwsk12EmLe github.com/google/pprof v0.0.0-20210609004039-a478d1d731e9/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= github.com/google/pprof v0.0.0-20210720184732-4bb14d4b1be1/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= github.com/google/pprof v0.0.0-20211214055906-6f57359322fd/go.mod h1:KgnwoLYCZ8IQu3XUZ8Nc/bM9CCZFOyjUNOSygVozoDg= -github.com/google/pprof v0.0.0-20240117000934-35fc243c5815 h1:WzfWbQz/Ze8v6l++GGbGNFZnUShVpP/0xffCPLL+ax8= -github.com/google/pprof v0.0.0-20240117000934-35fc243c5815/go.mod h1:czg5+yv1E0ZGTi6S6vVK1mke0fV+FaUhNGcd6VRS9Ik= +github.com/google/pprof v0.0.0-20231101202521-4ca4178f5c7a h1:fEBsGL/sjAuJrgah5XqmmYsTLzJp/TO9Lhy39gkverk= +github.com/google/pprof v0.0.0-20231101202521-4ca4178f5c7a/go.mod h1:czg5+yv1E0ZGTi6S6vVK1mke0fV+FaUhNGcd6VRS9Ik= github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI= github.com/google/s2a-go v0.1.7 h1:60BLSyTrOV4/haCDW4zb1guZItoSq8foHCXrAnjBo/o= github.com/google/s2a-go v0.1.7/go.mod h1:50CgR4k1jNlWBu4UfS4AcfhVe1r6pdZPygJ3R8F0Qdw= @@ -714,8 +710,8 @@ github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0/go.mod h1:8NvIoxWQoOIhqOTXgf github.com/grpc-ecosystem/grpc-gateway v1.9.5/go.mod h1:vNeuVxBJEsws4ogUvrchl83t/GYV9WGTSLVdBhOQFDY= github.com/grpc-ecosystem/grpc-gateway v1.16.0 h1:gmcG1KaJ57LophUzW0Hy8NmPhnMZb4M0+kPpLofRdBo= github.com/grpc-ecosystem/grpc-gateway v1.16.0/go.mod h1:BDjrQk3hbvj6Nolgz8mAMFbcEtjT1g+wF4CSlocrBnw= -github.com/grpc-ecosystem/grpc-gateway/v2 v2.19.1 h1:/c3QmbOGMGTOumP2iT/rCwB7b0QDGLKzqOmktBjT+Is= -github.com/grpc-ecosystem/grpc-gateway/v2 v2.19.1/go.mod h1:5SN9VR2LTsRFsrEC6FHgRbTWrTHu6tqPeKxEQv15giM= +github.com/grpc-ecosystem/grpc-gateway/v2 v2.18.1 h1:6UKoz5ujsI55KNpsJH3UwCq3T8kKbZwNZBNPuTTje8U= +github.com/grpc-ecosystem/grpc-gateway/v2 v2.18.1/go.mod h1:YvJ2f6MplWDhfxiUC3KpyTy76kYUZA4W3pTv/wdKQ9Y= github.com/gsterjov/go-libsecret v0.0.0-20161001094733-a6f4afe4910c h1:6rhixN/i8ZofjG1Y75iExal34USq5p+wiN1tpie8IrU= github.com/gsterjov/go-libsecret v0.0.0-20161001094733-a6f4afe4910c/go.mod h1:NMPJylDgVpX0MLRlPy15sqSwOFv/U1GZ2m21JhFfek0= github.com/hashicorp/consul/api v1.3.0/go.mod h1:MmDNSzIMUjNpY/mQ398R4bk2FnqQLoPndWW5VkKPlCE= @@ -786,8 +782,8 @@ github.com/influxdata/influxdb1-client v0.0.0-20191209144304-8bf82d3c094d/go.mod github.com/jdx/go-netrc v1.0.0 h1:QbLMLyCZGj0NA8glAhxUpf1zDg6cxnWgMBbjq40W0gQ= github.com/jdx/go-netrc v1.0.0/go.mod h1:Gh9eFQJnoTNIRHXl2j5bJXA1u84hQWJWgGh569zF3v8= github.com/jessevdk/go-flags v0.0.0-20141203071132-1679536dcc89/go.mod h1:4FA24M0QyGHXBuZZK/XkWh8h0e1EYbRYJSGM75WSRxI= -github.com/jhump/protoreflect v1.15.4 h1:mrwJhfQGGljwvR/jPEocli8KA6G9afbQpH8NY2wORcI= -github.com/jhump/protoreflect v1.15.4/go.mod h1:2B+zwrnMY3TTIqEK01OG/d3pyUycQBfDf+bx8fE2DNg= +github.com/jhump/protoreflect v1.15.3 h1:6SFRuqU45u9hIZPJAoZ8c28T3nK64BNdp9w6jFonzls= +github.com/jhump/protoreflect v1.15.3/go.mod h1:4ORHmSBmlCW8fh3xHmJMGyul1zNqZK4Elxc8qKP+p1k= github.com/jmespath/go-jmespath v0.0.0-20180206201540-c2b33e8439af/go.mod h1:Nht3zPeWKUH0NzdCt2Blrr5ys8VGpn0CEB0cQHVjt7k= github.com/jmespath/go-jmespath v0.4.0 h1:BEgLn5cpjn8UN1mAw4NjwDrS35OdebyEtFe+9YPoQUg= github.com/jmespath/go-jmespath v0.4.0/go.mod h1:T8mJZnbsbmF+m6zOOFylbeCJqk5+pHWvzYPziyZiYoo= @@ -869,8 +865,8 @@ github.com/matttproud/golang_protobuf_extensions v1.0.1/go.mod h1:D8He9yQNgCq6Z5 github.com/matttproud/golang_protobuf_extensions/v2 v2.0.0 h1:jWpvCLoY8Z/e3VKvlsiIGKtc+UG6U5vzxaoagmhXfyg= github.com/matttproud/golang_protobuf_extensions/v2 v2.0.0/go.mod h1:QUyp042oQthUoa9bqDv0ER0wrtXnBruoNd7aNjkbP+k= github.com/miekg/dns v1.0.14/go.mod h1:W1PPwlIAgtquWBMBEV9nkV9Cazfe8ScdGz/Lj7v3Nrg= -github.com/miekg/dns v1.1.56 h1:5imZaSeoRNvpM9SzWNhEcP9QliKiz20/dA2QabIGVnE= -github.com/miekg/dns v1.1.56/go.mod h1:cRm6Oo2C8TY9ZS/TqsSrseAcncm74lfK5G+ikN2SWWY= +github.com/miekg/dns v1.1.43 h1:JKfpVSCB84vrAmHzyrsxB5NAr5kLoMXZArPSw7Qlgyg= +github.com/miekg/dns v1.1.43/go.mod h1:+evo5L0630/F6ca/Z9+GAqzhjGyn8/c+TBaOyfEl0V4= github.com/minio/highwayhash v1.0.2 h1:Aak5U0nElisjDCfPSG79Tgzkn2gl66NxOMspRrKnA/g= github.com/minio/highwayhash v1.0.2/go.mod h1:BQskDq+xkJ12lmlUUi7U0M5Swg3EWR+dLTk+kldvVxY= github.com/mitchellh/cli v1.0.0/go.mod h1:hNIlj7HEI86fIcpObd7a0FcrxTWetlwJDGcceTlRvqc= @@ -930,15 +926,15 @@ github.com/onsi/ginkgo v1.16.4/go.mod h1:dX+/inL/fNMqNlz0e9LfyB9TswhZpCVdJM/Z6Vv github.com/onsi/gomega v1.4.3/go.mod h1:ex+gbHU/CVuBBDIJjb2X0qEXbFg53c61hWP/1CpauHY= github.com/onsi/gomega v1.7.1/go.mod h1:XdKZgCCFLUoM/7CFJVPcG8C1xQ1AJ0vpAezJrB7JYyY= github.com/onsi/gomega v1.10.1/go.mod h1:iN09h71vgCQne3DLsj+A5owkum+a2tYe+TOCB1ybHNo= -github.com/onsi/gomega v1.27.6 h1:ENqfyGeS5AX/rlXDd/ETokDz93u0YufY1Pgxuy/PvWE= -github.com/onsi/gomega v1.27.6/go.mod h1:PIQNjfQwkP3aQAH7lf7j87O/5FiNr+ZR8+ipb+qQlhg= +github.com/onsi/gomega v1.26.0 h1:03cDLK28U6hWvCAns6NeydX3zIm4SF3ci69ulidS32Q= +github.com/onsi/gomega v1.26.0/go.mod h1:r+zV744Re+DiYCIPRlYOTxn0YkOLcAnW8k1xXdMPGhM= github.com/op/go-logging v0.0.0-20160315200505-970db520ece7/go.mod h1:HzydrMdWErDVzsI23lYNej1Htcns9BCg93Dk0bBINWk= github.com/opencontainers/go-digest v1.0.0 h1:apOUWs51W5PlhuyGyz9FCeeBIOUDA/6nW8Oi/yOhh5U= github.com/opencontainers/go-digest v1.0.0/go.mod h1:0JzlMkj0TRzQZfJkVvzbP0HBR3IKzErnv2BNG4W4MAM= github.com/opencontainers/image-spec v1.1.0-rc5 h1:Ygwkfw9bpDvs+c9E34SdgGOj41dX/cbdlwvlWt0pnFI= github.com/opencontainers/image-spec v1.1.0-rc5/go.mod h1:X4pATf0uXsnn3g5aiGIsVnJBR4mxhKzfwmvK/B2NTm8= -github.com/opencontainers/runc v1.1.7 h1:y2EZDS8sNng4Ksf0GUYNhKbTShZJPJg1FiXJNH/uoCk= -github.com/opencontainers/runc v1.1.7/go.mod h1:CbUumNnWCuTGFukNXahoo/RFBZvDAgRh/smNYNOhA50= +github.com/opencontainers/runc v1.1.3 h1:vIXrkId+0/J2Ymu2m7VjGvbSlAId9XNRPhn2p4b+d8w= +github.com/opencontainers/runc v1.1.3/go.mod h1:1J5XiS+vdZ3wCyZybsuxXZWGrgSr8fFJHLXuG2PsnNg= github.com/opentracing-contrib/go-observer v0.0.0-20170622124052-a52f23424492/go.mod h1:Ngi6UdF0k5OKD5t5wlmGhe/EDKPoUM3BXZSSfIuJbis= github.com/opentracing/basictracer-go v1.0.0/go.mod h1:QfBfYuafItcjQuMwinw9GhYKwFXS9KnPs5lxoYwgW74= github.com/opentracing/opentracing-go v1.0.2/go.mod h1:UkNAQd3GIcIGf0SeVgPpRdFStlNbqXla1AfSYxPUl2o= @@ -965,8 +961,8 @@ github.com/pierrec/lz4 v1.0.2-0.20190131084431-473cd7ce01a1/go.mod h1:3/3N9NVKO0 github.com/pierrec/lz4 v2.0.5+incompatible/go.mod h1:pdkljMzZIN41W+lC3N2tnIh5sFi+IEE17M5jbnwPHcY= github.com/pingcap/errors v0.11.4 h1:lFuQV/oaUMGcD2tqt+01ROSmJs75VG1ToEOkZIZ4nE4= github.com/pingcap/errors v0.11.4/go.mod h1:Oi8TUi2kEtXXLMJk9l1cGmz20kV3TaQ0usTwv5KuLY8= -github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c h1:+mdjkGKdHQG3305AYmdv1U2eRNDiU2ErMBj1gwrq8eQ= -github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c/go.mod h1:7rwL4CYBLnjLxUqIJNnCWiEdr3bn6IUYi15bNlnbCCU= +github.com/pkg/browser v0.0.0-20210911075715-681adbf594b8 h1:KoWmjvw+nsYOo29YJK9vDA65RGE3NrOnUtO7a+RF9HU= +github.com/pkg/browser v0.0.0-20210911075715-681adbf594b8/go.mod h1:HKlIX3XHQyzLZPlr7++PzdhaXEj94dEiJgZDTsxEqUI= github.com/pkg/diff v0.0.0-20210226163009-20ebb0f2a09e/go.mod h1:pJLUxLENpZxwdsKMEsNbx1VGcRFpLqf3715MtcvvzbA= github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= @@ -1101,8 +1097,8 @@ github.com/syndtr/goleveldb v1.0.1-0.20210819022825-2ae1ddf74ef7 h1:epCh84lMvA70 github.com/syndtr/goleveldb v1.0.1-0.20210819022825-2ae1ddf74ef7/go.mod h1:q4W45IWZaF22tdD+VEXcAWRA037jwmWEB5VWYORlTpc= github.com/tendermint/go-amino v0.16.0 h1:GyhmgQKvqF82e2oZeuMSp9JTN0N09emoSZlb2lyGa2E= github.com/tendermint/go-amino v0.16.0/go.mod h1:TQU0M1i/ImAo+tYpZi73AU3V/dKeCoMC9Sphe2ZwGME= -github.com/tetratelabs/wazero v1.6.0 h1:z0H1iikCdP8t+q341xqepY4EWvHEw8Es7tlqiVzlP3g= -github.com/tetratelabs/wazero v1.6.0/go.mod h1:0U0G41+ochRKoPKCJlh0jMg1CHkyfK8kDqiirMmKY8A= +github.com/tetratelabs/wazero v1.5.0 h1:Yz3fZHivfDiZFUXnWMPUoiW7s8tC1sjdBtlJn08qYa0= +github.com/tetratelabs/wazero v1.5.0/go.mod h1:0U0G41+ochRKoPKCJlh0jMg1CHkyfK8kDqiirMmKY8A= github.com/tidwall/btree v1.7.0 h1:L1fkJH/AuEh5zBnnBbmTwQ5Lt+bRJ5A8EWecslvo9iI= github.com/tidwall/btree v1.7.0/go.mod h1:twD9XRA5jj9VUQGELzDO4HPQTNJsoWWfYEL+EUQ2cKY= github.com/tmc/grpc-websocket-proxy v0.0.0-20170815181823-89b8d40f7ca8/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U= @@ -1147,25 +1143,17 @@ go.opencensus.io v0.22.5/go.mod h1:5pWMHQbX5EPX2/62yrJeAkowc+lfs/XD7Uxpq3pI6kk= go.opencensus.io v0.23.0/go.mod h1:XItmlyltB5F7CS4xOC1DcqMoFqwtC6OG2xF7mCv7P7E= go.opencensus.io v0.24.0 h1:y73uSU6J157QMP2kn2r30vwW1A2W2WFwSCGnAVxeaD0= go.opencensus.io v0.24.0/go.mod h1:vNK8G9p7aAivkbmorf4v+7Hgx+Zs0yY+0fOtgBfjQKo= -go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.47.0 h1:sv9kVfal0MK0wBMCOGr+HeJm9v803BkJxGrk2au7j08= -go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.47.0/go.mod h1:SK2UL73Zy1quvRPonmOmRDiWk1KBV3LyIeeIxcEApWw= -go.opentelemetry.io/otel v1.23.1 h1:Za4UzOqJYS+MUczKI320AtqZHZb7EqxO00jAHE0jmQY= -go.opentelemetry.io/otel v1.23.1/go.mod h1:Td0134eafDLcTS4y+zQ26GE8u3dEuRBiBCTUIRHaikA= -go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.23.1 h1:o8iWeVFa1BcLtVEV0LzrCxV2/55tB3xLxADr6Kyoey4= -go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.23.1/go.mod h1:SEVfdK4IoBnbT2FXNM/k8yC08MrfbhWk3U4ljM8B3HE= -go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.22.0 h1:FyjCyI9jVEfqhUh2MoSkmolPjfh5fp2hnV0b0irxH4Q= -go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.22.0/go.mod h1:hYwym2nDEeZfG/motx0p7L7J1N1vyzIThemQsb4g2qY= -go.opentelemetry.io/otel/metric v1.23.1 h1:PQJmqJ9u2QaJLBOELl1cxIdPcpbwzbkjfEyelTl2rlo= -go.opentelemetry.io/otel/metric v1.23.1/go.mod h1:mpG2QPlAfnK8yNhNJAxDZruU9Y1/HubbC+KyH8FaCWI= -go.opentelemetry.io/otel/sdk v1.23.1 h1:O7JmZw0h76if63LQdsBMKQDWNb5oEcOThG9IrxscV+E= -go.opentelemetry.io/otel/sdk v1.23.1/go.mod h1:LzdEVR5am1uKOOwfBWFef2DCi1nu3SA8XQxx2IerWFk= +go.opentelemetry.io/otel v1.20.0 h1:vsb/ggIY+hUjD/zCAQHpzTmndPqv/ml2ArbsbfBYTAc= +go.opentelemetry.io/otel v1.20.0/go.mod h1:oUIGj3D77RwJdM6PPZImDpSZGDvkD9fhesHny69JFrs= +go.opentelemetry.io/otel/metric v1.20.0 h1:ZlrO8Hu9+GAhnepmRGhSU7/VkpjrNowxRN9GyKR4wzA= +go.opentelemetry.io/otel/metric v1.20.0/go.mod h1:90DRw3nfK4D7Sm/75yQ00gTJxtkBxX+wu6YaNymbpVM= +go.opentelemetry.io/otel/sdk v1.20.0 h1:5Jf6imeFZlZtKv9Qbo6qt2ZkmWtdWx/wzcCbNUlAWGM= +go.opentelemetry.io/otel/sdk v1.20.0/go.mod h1:rmkSx1cZCm/tn16iWDn1GQbLtsW/LvsdEEFzCSRM6V0= go.opentelemetry.io/otel/sdk/metric v1.19.0 h1:EJoTO5qysMsYCa+w4UghwFV/ptQgqSL/8Ni+hx+8i1k= go.opentelemetry.io/otel/sdk/metric v1.19.0/go.mod h1:XjG0jQyFJrv2PbMvwND7LwCEhsJzCzV5210euduKcKY= -go.opentelemetry.io/otel/trace v1.23.1 h1:4LrmmEd8AU2rFvU1zegmvqW7+kWarxtNOPyeL6HmYY8= -go.opentelemetry.io/otel/trace v1.23.1/go.mod h1:4IpnpJFwr1mo/6HL8XIPJaE9y0+u1KcVmuW7dwFSVrI= +go.opentelemetry.io/otel/trace v1.20.0 h1:+yxVAPZPbQhbC3OfAkeIVTky6iTFpcr4SiY9om7mXSQ= +go.opentelemetry.io/otel/trace v1.20.0/go.mod h1:HJSK7F/hA5RlzpZ0zKDCHCDHm556LCDtKaAo6JmBFUU= go.opentelemetry.io/proto/otlp v0.7.0/go.mod h1:PqfVotwruBrMGOCsRd/89rSnXhoiJIqeYNgFYFoEGnI= -go.opentelemetry.io/proto/otlp v1.1.0 h1:2Di21piLrCqJ3U3eXGCTPHE9R8Nh+0uglSnOyxikMeI= -go.opentelemetry.io/proto/otlp v1.1.0/go.mod h1:GpBHCBWiqvVLDqmHZsoMM3C5ySeKTC7ej/RNTae6MdY= go.uber.org/atomic v1.3.2/go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE= go.uber.org/atomic v1.4.0/go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE= go.uber.org/atomic v1.5.0/go.mod h1:sABNBOSYdrvTF6hTgEIbc7YasKWGhgEQZyfxyTvoXHQ= @@ -1212,8 +1200,8 @@ golang.org/x/exp v0.0.0-20200119233911-0405dc783f0a/go.mod h1:2RIsYlXP63K8oxa1u0 golang.org/x/exp v0.0.0-20200207192155-f17229e696bd/go.mod h1:J/WKrq2StrnmMY6+EHIKF9dgMWnmCNThgcyBT1FY9mM= golang.org/x/exp v0.0.0-20200224162631-6cc2880d07d6/go.mod h1:3jZMyOhIsHpP37uCMkUooju7aAi5cS1Q23tOzKc+0MU= golang.org/x/exp v0.0.0-20200331195152-e8c3332aa8e5/go.mod h1:4M0jN8W1tt0AVLNr8HDosyJCDCDuyL9N9+3m7wDWgKw= -golang.org/x/exp v0.0.0-20240112132812-db7319d0e0e3 h1:hNQpMuAJe5CtcUqCXaWga3FHu+kQvCqcsoVaQgSV60o= -golang.org/x/exp v0.0.0-20240112132812-db7319d0e0e3/go.mod h1:idGWGoKP1toJGkd5/ig9ZLuPcZBC3ewk7SzmH0uou08= +golang.org/x/exp v0.0.0-20231110203233-9a3e6036ecaa h1:FRnLl4eNAQl8hwxVVC17teOw8kdjVDVAiFMtgUdTSRQ= +golang.org/x/exp v0.0.0-20231110203233-9a3e6036ecaa/go.mod h1:zk2irFbV9DP96SEBUUAy67IdHUaZuSnrz1n472HUCLE= golang.org/x/image v0.0.0-20190227222117-0694c2d4d067/go.mod h1:kZ7UVZpmo3dzQBMxlp+ypCbDeSB+sBbTgSJuh5dn5js= golang.org/x/image v0.0.0-20190802002840-cff245a6509b/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0= golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= @@ -1328,8 +1316,8 @@ golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094/go.mod h1:h4gKUeWbJ4rQPri golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= golang.org/x/oauth2 v0.0.0-20221014153046-6fdb5e3db783/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= golang.org/x/oauth2 v0.1.0/go.mod h1:G9FE4dLTsbXUu90h/Pf85g4w1D+SSAgR+q46nJZ8M4A= -golang.org/x/oauth2 v0.16.0 h1:aDkGMBSYxElaoP81NpoUoz2oo2R2wHdZpGToUxfyQrQ= -golang.org/x/oauth2 v0.16.0/go.mod h1:hqZ+0LWXsiVoZpeld6jVt06P3adbS2Uu911W1SsJv2o= +golang.org/x/oauth2 v0.15.0 h1:s8pnnxNVzjWyrvYdFUQq5llS1PX2zhPXmccZv99h7uQ= +golang.org/x/oauth2 v0.15.0/go.mod h1:q48ptWNTY5XWf+JNten23lcvHpLJ0ZSxF5ttTHKVCAM= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -1344,8 +1332,8 @@ golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJ golang.org/x/sync v0.0.0-20220601150217-0de741cfad7f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20220929204114-8fcdb60fdcc0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.6.0 h1:5BMeUDZ7vkXGfEr1x9B4bRcTH4lpkTkpdh0T/J+qjbQ= -golang.org/x/sync v0.6.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= +golang.org/x/sync v0.5.0 h1:60k92dhOjHxJkrqnwsfl8KuaHbn/5dl0lUPUklKo3qE= +golang.org/x/sync v0.5.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= golang.org/x/sys v0.0.0-20180823144017-11551d06cbcc/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= @@ -1402,6 +1390,7 @@ golang.org/x/sys v0.0.0-20201201145000-ef89a241ccb3/go.mod h1:h1NjWce9XRLGQEsW7w golang.org/x/sys v0.0.0-20210104204734-6f8348627aad/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210119212857-b64e53b001e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210220050731-9a76102bfb43/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210303074136-134d130e1a04/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210305230114-8fe3ee5dd75b/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210315160823-c6e025ad8005/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210320140829-1e4c9ba3b0c4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= @@ -1411,6 +1400,7 @@ golang.org/x/sys v0.0.0-20210510120138-977fb7262007/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/sys v0.0.0-20210514084401-e8d321eab015/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210603125802-9665404d3644/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20210616045830-e2b7044e8c71/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210616094352-59db8d763f22/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210806184541-e5e7981a1069/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= @@ -1532,8 +1522,8 @@ golang.org/x/tools v0.1.3/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= golang.org/x/tools v0.1.4/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= golang.org/x/tools v0.1.5/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc= -golang.org/x/tools v0.17.0 h1:FvmRgNOcs3kOa+T20R1uhfP9F6HgG2mfxDv1vrx1Htc= -golang.org/x/tools v0.17.0/go.mod h1:xsh6VxdV005rRVaS6SSAf9oiAqljS7UZUacMZ8Bnsps= +golang.org/x/tools v0.15.0 h1:zdAyfUGbYmuVokhzVmghFl2ZJh5QhcfebBgmVPFYA+8= +golang.org/x/tools v0.15.0/go.mod h1:hpksKq4dtpQWS1uQ61JkdqWM3LscIS6Slf+VVkm+wQk= golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= @@ -1710,12 +1700,12 @@ google.golang.org/genproto v0.0.0-20221010155953-15ba04fc1c0e/go.mod h1:3526vdqw google.golang.org/genproto v0.0.0-20221014173430-6e2ab493f96b/go.mod h1:1vXfmgAz9N9Jx0QA82PqRVauvCz1SGSz739p0f183jM= google.golang.org/genproto v0.0.0-20221014213838-99cd37c6964a/go.mod h1:1vXfmgAz9N9Jx0QA82PqRVauvCz1SGSz739p0f183jM= google.golang.org/genproto v0.0.0-20221025140454-527a21cfbd71/go.mod h1:9qHF0xnpdSfF6knlcsnpzUu5y+rpwgbvsyGAZPBMg4s= -google.golang.org/genproto v0.0.0-20240116215550-a9fa1716bcac h1:ZL/Teoy/ZGnzyrqK/Optxxp2pmVh+fmJ97slxSRyzUg= -google.golang.org/genproto v0.0.0-20240116215550-a9fa1716bcac/go.mod h1:+Rvu7ElI+aLzyDQhpHMFMMltsD6m7nqpuWDd2CwJw3k= -google.golang.org/genproto/googleapis/api v0.0.0-20240125205218-1f4bbc51befe h1:0poefMBYvYbs7g5UkjS6HcxBPaTRAmznle9jnxYoAI8= -google.golang.org/genproto/googleapis/api v0.0.0-20240125205218-1f4bbc51befe/go.mod h1:4jWUdICTdgc3Ibxmr8nAJiiLHwQBY0UI0XZcEMaFKaA= -google.golang.org/genproto/googleapis/rpc v0.0.0-20240125205218-1f4bbc51befe h1:bQnxqljG/wqi4NTXu2+DJ3n7APcEA882QZ1JvhQAq9o= -google.golang.org/genproto/googleapis/rpc v0.0.0-20240125205218-1f4bbc51befe/go.mod h1:PAREbraiVEVGVdTZsVWjSbbTtSyGbAgIIvni8a8CD5s= +google.golang.org/genproto v0.0.0-20231211222908-989df2bf70f3 h1:1hfbdAfFbkmpg41000wDVqr7jUpK/Yo+LPnIxxGzmkg= +google.golang.org/genproto v0.0.0-20231211222908-989df2bf70f3/go.mod h1:5RBcpGRxr25RbDzY5w+dmaqpSEvl8Gwl1x2CICf60ic= +google.golang.org/genproto/googleapis/api v0.0.0-20231120223509-83a465c0220f h1:2yNACc1O40tTnrsbk9Cv6oxiW8pxI/pXj0wRtdlYmgY= +google.golang.org/genproto/googleapis/api v0.0.0-20231120223509-83a465c0220f/go.mod h1:Uy9bTZJqmfrw2rIBxgGLnamc78euZULUBrLZ9XTITKI= +google.golang.org/genproto/googleapis/rpc v0.0.0-20231212172506-995d672761c0 h1:/jFB8jK5R3Sq3i/lmeZO0cATSzFfZaJq1J2Euan3XKU= +google.golang.org/genproto/googleapis/rpc v0.0.0-20231212172506-995d672761c0/go.mod h1:FUoWkonphQm3RhTS+kOEhF8h0iDpm4tdXolVCeZ9KKA= google.golang.org/grpc v1.17.0/go.mod h1:6QZJwpn2B+Zp71q/5VxRsJ6NXXVCE5NRUHRo+f3cWCs= google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= google.golang.org/grpc v1.20.0/go.mod h1:chYK+tFQF0nDUGJgXMSgLCQk3phJEuONr2DCgLDdAQM= @@ -1757,10 +1747,11 @@ google.golang.org/grpc v1.48.0/go.mod h1:vN9eftEi1UMyUsIF80+uQXhHjbXYbm0uXoFCACu google.golang.org/grpc v1.49.0/go.mod h1:ZgQEeidpAuNRZ8iRrlBKXZQP1ghovWIVhdJRyCDK+GI= google.golang.org/grpc v1.50.0/go.mod h1:ZgQEeidpAuNRZ8iRrlBKXZQP1ghovWIVhdJRyCDK+GI= google.golang.org/grpc v1.50.1/go.mod h1:ZgQEeidpAuNRZ8iRrlBKXZQP1ghovWIVhdJRyCDK+GI= -google.golang.org/grpc v1.61.0 h1:TOvOcuXn30kRao+gfcvsebNEa5iZIiLkisYEkf7R7o0= -google.golang.org/grpc v1.61.0/go.mod h1:VUbo7IFqmF1QtCAstipjG0GIoq49KvMe9+h1jFLBNJs= -google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.1.0 h1:M1YKkFIboKNieVO5DLUEVzQfGwJD30Nv2jfUgzb5UcE= +google.golang.org/grpc v1.60.1 h1:26+wFr+cNqSGFcOXcabYC0lUVJVRa2Sb2ortSK7VrEU= +google.golang.org/grpc v1.60.1/go.mod h1:OlCHIeLYqSSsLi6i49B5QGdzaMZK9+M7LXN2FKz4eGM= google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.1.0/go.mod h1:6Kw0yEErY5E/yWrBtf03jp27GLLJujG4z/JK95pnjjw= +google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.3.0 h1:rNBFJjBCOgVr9pWD7rs/knKL4FRTKgpZmsRfV214zcA= +google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.3.0/go.mod h1:Dk1tviKTvMCz5tvh7t+fh94dhmQVHuCt2OzJB3CTW9Y= google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8= google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0= google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM= @@ -1776,6 +1767,7 @@ google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQ google.golang.org/protobuf v1.27.1/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= google.golang.org/protobuf v1.28.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= google.golang.org/protobuf v1.28.1/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= +google.golang.org/protobuf v1.31.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= google.golang.org/protobuf v1.32.0 h1:pPC6BG5ex8PDFnkbrGU3EixyhKcQ2aDuBS36lqK/C7I= google.golang.org/protobuf v1.32.0/go.mod h1:c6P6GXX6sHbq/GpV6MGZEdwhWPcYBgnhAHhKbcUYpos= gopkg.in/alecthomas/kingpin.v2 v2.2.6/go.mod h1:FMv+mEhP44yOT+4EoQTLFTRgOQ1FBLkstjWtayDeSgw= diff --git a/proto/buf.gen.pulsar.yaml b/proto/buf.gen.pulsar.yaml index b4bfe241..e8fffdb2 100644 --- a/proto/buf.gen.pulsar.yaml +++ b/proto/buf.gen.pulsar.yaml @@ -12,7 +12,6 @@ managed: - buf.build/googleapis/googleapis - buf.build/cosmos/gogo-proto - buf.build/cosmos/cosmos-proto - - buf.build/mycel/mycel override: plugins: - name: go-pulsar diff --git a/proto/buf.yaml b/proto/buf.yaml index 309d9a0c..b51264a9 100644 --- a/proto/buf.yaml +++ b/proto/buf.yaml @@ -12,6 +12,7 @@ deps: - buf.build/cosmos/gogo-proto - buf.build/googleapis/googleapis - buf.build/cosmos/ics23 + - buf.build/cosmwasm/wasmd breaking: use: - FILE 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/epoch_info.proto b/proto/mycel/epochs/v1/epoch_info.proto similarity index 96% rename from proto/mycel/epochs/v1beta1/epoch_info.proto rename to proto/mycel/epochs/v1/epoch_info.proto index 4576d6cd..3cb35ad2 100644 --- a/proto/mycel/epochs/v1beta1/epoch_info.proto +++ b/proto/mycel/epochs/v1/epoch_info.proto @@ -1,5 +1,5 @@ syntax = "proto3"; -package mycel.epochs.v1beta1; +package mycel.epochs.v1; import "gogoproto/gogo.proto"; import "google/protobuf/duration.proto"; diff --git a/proto/mycel/epochs/v1beta1/genesis.proto b/proto/mycel/epochs/v1/genesis.proto similarity index 77% rename from proto/mycel/epochs/v1beta1/genesis.proto rename to proto/mycel/epochs/v1/genesis.proto index a7640be4..7ae26486 100644 --- a/proto/mycel/epochs/v1beta1/genesis.proto +++ b/proto/mycel/epochs/v1/genesis.proto @@ -1,8 +1,8 @@ syntax = "proto3"; -package mycel.epochs.v1beta1; +package mycel.epochs.v1; import "gogoproto/gogo.proto"; -import "mycel/epochs/v1beta1/epoch_info.proto"; +import "mycel/epochs/v1/epoch_info.proto"; option go_package = "github.com/mycel-domain/mycel/x/epochs/types"; diff --git a/proto/mycel/epochs/v1/query.proto b/proto/mycel/epochs/v1/query.proto new file mode 100644 index 00000000..2af11200 --- /dev/null +++ b/proto/mycel/epochs/v1/query.proto @@ -0,0 +1,34 @@ +syntax = "proto3"; +package mycel.epochs.v1; + +import "gogoproto/gogo.proto"; +import "google/api/annotations.proto"; +import "mycel/epochs/v1/epoch_info.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 { + // EpochInfos provide running epochInfos + rpc EpochInfos(QueryEpochsInfoRequest) returns (QueryEpochsInfoResponse) { + option (google.api.http).get = "/mycel/epochs/v1/epochs"; + } + // CurrentEpoch provide current epoch of specified identifier + rpc CurrentEpoch(QueryCurrentEpochRequest) + returns (QueryCurrentEpochResponse) { + option (google.api.http).get = "/mycel/epochs/v1/current_epoch"; + } +} + +message QueryEpochsInfoRequest {} +message QueryEpochsInfoResponse { + repeated EpochInfo epochs = 1 [ (gogoproto.nullable) = false ]; +} + +message QueryCurrentEpochRequest { + string identifier = 1; +} +message QueryCurrentEpochResponse { + EpochInfo epoch_info = 1 [ (gogoproto.nullable) = false ]; +} diff --git a/proto/mycel/epochs/v1/tx.proto b/proto/mycel/epochs/v1/tx.proto new file mode 100644 index 00000000..30911ba5 --- /dev/null +++ b/proto/mycel/epochs/v1/tx.proto @@ -0,0 +1,15 @@ +syntax = "proto3"; +package mycel.epochs.v1; + +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 { + option (cosmos.msg.v1.service) = true; +} + 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 deleted file mode 100644 index 53c240a5..00000000 --- a/proto/mycel/epochs/v1beta1/query.proto +++ /dev/null @@ -1,52 +0,0 @@ -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. -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}"; - } - rpc EpochInfoAll(QueryAllEpochInfoRequest) - returns (QueryAllEpochInfoResponse) { - option (google.api.http).get = "/mycel/epochs/v1beta1/epoch_info"; - } -} - -// 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 QueryAllEpochInfoRequest { - cosmos.base.query.v1beta1.PageRequest pagination = 1; -} - -message QueryAllEpochInfoResponse { - repeated EpochInfo epoch_info = 1 [ (gogoproto.nullable) = false ]; - cosmos.base.query.v1beta1.PageResponse pagination = 2; -} diff --git a/proto/mycel/epochs/v1beta1/tx.proto b/proto/mycel/epochs/v1beta1/tx.proto deleted file mode 100644 index bb6ec908..00000000 --- a/proto/mycel/epochs/v1beta1/tx.proto +++ /dev/null @@ -1,7 +0,0 @@ -syntax = "proto3"; -package mycel.epochs.v1beta1; - -option go_package = "github.com/mycel-domain/mycel/x/epochs/types"; - -// Msg defines the Msg service. -service Msg {} 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/furnace/v1beta1/burn_amount.proto b/proto/mycel/furnace/v1/burn_amount.proto similarity index 93% rename from proto/mycel/furnace/v1beta1/burn_amount.proto rename to proto/mycel/furnace/v1/burn_amount.proto index ef20aaad..8d4f5f65 100644 --- a/proto/mycel/furnace/v1beta1/burn_amount.proto +++ b/proto/mycel/furnace/v1/burn_amount.proto @@ -1,5 +1,5 @@ syntax = "proto3"; -package mycel.furnace.v1beta1; +package mycel.furnace.v1; import "cosmos/base/v1beta1/coin.proto"; import "gogoproto/gogo.proto"; diff --git a/proto/mycel/furnace/v1beta1/epoch_burn_config.proto b/proto/mycel/furnace/v1/epoch_burn_config.proto similarity index 93% rename from proto/mycel/furnace/v1beta1/epoch_burn_config.proto rename to proto/mycel/furnace/v1/epoch_burn_config.proto index 44143450..b0939bda 100644 --- a/proto/mycel/furnace/v1beta1/epoch_burn_config.proto +++ b/proto/mycel/furnace/v1/epoch_burn_config.proto @@ -1,5 +1,5 @@ syntax = "proto3"; -package mycel.furnace.v1beta1; +package mycel.furnace.v1; import "gogoproto/gogo.proto"; import "google/protobuf/timestamp.proto"; diff --git a/proto/mycel/furnace/v1beta1/genesis.proto b/proto/mycel/furnace/v1/genesis.proto similarity index 69% rename from proto/mycel/furnace/v1beta1/genesis.proto rename to proto/mycel/furnace/v1/genesis.proto index 5a484ab3..09681bd8 100644 --- a/proto/mycel/furnace/v1beta1/genesis.proto +++ b/proto/mycel/furnace/v1/genesis.proto @@ -1,10 +1,10 @@ syntax = "proto3"; -package mycel.furnace.v1beta1; +package mycel.furnace.v1; import "gogoproto/gogo.proto"; -import "mycel/furnace/v1beta1/burn_amount.proto"; -import "mycel/furnace/v1beta1/epoch_burn_config.proto"; -import "mycel/furnace/v1beta1/params.proto"; +import "mycel/furnace/v1/burn_amount.proto"; +import "mycel/furnace/v1/epoch_burn_config.proto"; +import "mycel/furnace/v1/params.proto"; option go_package = "github.com/mycel-domain/mycel/x/furnace/types"; diff --git a/proto/mycel/furnace/v1beta1/params.proto b/proto/mycel/furnace/v1/params.proto similarity index 88% rename from proto/mycel/furnace/v1beta1/params.proto rename to proto/mycel/furnace/v1/params.proto index 9f4c4236..b4aeca9f 100644 --- a/proto/mycel/furnace/v1beta1/params.proto +++ b/proto/mycel/furnace/v1/params.proto @@ -1,5 +1,5 @@ syntax = "proto3"; -package mycel.furnace.v1beta1; +package mycel.furnace.v1; import "gogoproto/gogo.proto"; diff --git a/proto/mycel/furnace/v1beta1/query.proto b/proto/mycel/furnace/v1/query.proto similarity index 79% rename from proto/mycel/furnace/v1beta1/query.proto rename to proto/mycel/furnace/v1/query.proto index 6d8b4835..1ea2ee91 100644 --- a/proto/mycel/furnace/v1beta1/query.proto +++ b/proto/mycel/furnace/v1/query.proto @@ -1,12 +1,12 @@ syntax = "proto3"; -package mycel.furnace.v1beta1; +package mycel.furnace.v1; -import "cosmos/base/query/v1beta1/pagination.proto"; import "gogoproto/gogo.proto"; import "google/api/annotations.proto"; -import "mycel/furnace/v1beta1/burn_amount.proto"; -import "mycel/furnace/v1beta1/epoch_burn_config.proto"; -import "mycel/furnace/v1beta1/params.proto"; +import "cosmos/base/query/v1beta1/pagination.proto"; +import "mycel/furnace/v1/burn_amount.proto"; +import "mycel/furnace/v1/epoch_burn_config.proto"; +import "mycel/furnace/v1/params.proto"; option go_package = "github.com/mycel-domain/mycel/x/furnace/types"; @@ -14,26 +14,26 @@ option go_package = "github.com/mycel-domain/mycel/x/furnace/types"; service Query { // Parameters queries the parameters of the module. rpc Params(QueryParamsRequest) returns (QueryParamsResponse) { - option (google.api.http).get = "/mycel-domain/mycel/furnace/v1beta1/params"; + option (google.api.http).get = "/mycel/furnace/v1/params"; } // Queries a EpochBurnConfig by index. rpc EpochBurnConfig(QueryGetEpochBurnConfigRequest) returns (QueryGetEpochBurnConfigResponse) { option (google.api.http).get = - "/mycel-domain/mycel/furnace/v1beta1/epoch_burn_config"; + "/mycel/furnace/v1/epoch_burn_config"; } // Queries a list of BurnAmount items. rpc BurnAmount(QueryGetBurnAmountRequest) returns (QueryGetBurnAmountResponse) { option (google.api.http).get = - "/mycel-domain/mycel/furnace/v1beta1/burn_amount/{index}"; + "/mycel/furnace/v1/burn_amount/{index}"; } rpc BurnAmountAll(QueryAllBurnAmountRequest) returns (QueryAllBurnAmountResponse) { option (google.api.http).get = - "/mycel-domain/mycel/furnace/v1beta1/burn_amount"; + "/mycel/furnace/v1/burn_amount"; } } diff --git a/proto/mycel/furnace/v1beta1/tx.proto b/proto/mycel/furnace/v1/tx.proto similarity index 50% rename from proto/mycel/furnace/v1beta1/tx.proto rename to proto/mycel/furnace/v1/tx.proto index 94ace8b5..3945d8bf 100644 --- a/proto/mycel/furnace/v1beta1/tx.proto +++ b/proto/mycel/furnace/v1/tx.proto @@ -1,7 +1,11 @@ syntax = "proto3"; -package mycel.furnace.v1beta1; +package mycel.furnace.v1; + +import "cosmos/msg/v1/msg.proto"; option go_package = "github.com/mycel-domain/mycel/x/furnace/types"; // Msg defines the Msg service. -service Msg {} +service Msg { + option (cosmos.msg.v1.service) = true; +} 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/proto/mycel/registry/v1beta1/access_control.proto b/proto/mycel/registry/v1/access_control.proto similarity index 87% rename from proto/mycel/registry/v1beta1/access_control.proto rename to proto/mycel/registry/v1/access_control.proto index 300de370..3df297cc 100644 --- a/proto/mycel/registry/v1beta1/access_control.proto +++ b/proto/mycel/registry/v1/access_control.proto @@ -1,5 +1,5 @@ syntax = "proto3"; -package mycel.registry.v1beta1; +package mycel.registry.v1; option go_package = "github.com/mycel-domain/mycel/x/registry/types"; diff --git a/proto/mycel/registry/v1beta1/dns_record.proto b/proto/mycel/registry/v1/dns_record.proto similarity index 87% rename from proto/mycel/registry/v1beta1/dns_record.proto rename to proto/mycel/registry/v1/dns_record.proto index 30ebe803..bbdbe08f 100644 --- a/proto/mycel/registry/v1beta1/dns_record.proto +++ b/proto/mycel/registry/v1/dns_record.proto @@ -1,5 +1,5 @@ syntax = "proto3"; -package mycel.registry.v1beta1; +package mycel.registry.v1; option go_package = "github.com/mycel-domain/mycel/x/registry/types"; diff --git a/proto/mycel/registry/v1beta1/domain_ownership.proto b/proto/mycel/registry/v1/domain_ownership.proto similarity index 91% rename from proto/mycel/registry/v1beta1/domain_ownership.proto rename to proto/mycel/registry/v1/domain_ownership.proto index 54818f62..27aeded8 100644 --- a/proto/mycel/registry/v1beta1/domain_ownership.proto +++ b/proto/mycel/registry/v1/domain_ownership.proto @@ -1,5 +1,5 @@ syntax = "proto3"; -package mycel.registry.v1beta1; +package mycel.registry.v1; import "cosmos_proto/cosmos.proto"; diff --git a/proto/mycel/registry/v1beta1/genesis.proto b/proto/mycel/registry/v1/genesis.proto similarity index 68% rename from proto/mycel/registry/v1beta1/genesis.proto rename to proto/mycel/registry/v1/genesis.proto index 6e2cc895..3ae35022 100644 --- a/proto/mycel/registry/v1beta1/genesis.proto +++ b/proto/mycel/registry/v1/genesis.proto @@ -1,11 +1,11 @@ syntax = "proto3"; -package mycel.registry.v1beta1; +package mycel.registry.v1; import "gogoproto/gogo.proto"; -import "mycel/registry/v1beta1/domain_ownership.proto"; -import "mycel/registry/v1beta1/params.proto"; -import "mycel/registry/v1beta1/second_level_domain.proto"; -import "mycel/registry/v1beta1/top_level_domain.proto"; +import "mycel/registry/v1/domain_ownership.proto"; +import "mycel/registry/v1/params.proto"; +import "mycel/registry/v1/second_level_domain.proto"; +import "mycel/registry/v1/top_level_domain.proto"; option go_package = "github.com/mycel-domain/mycel/x/registry/types"; diff --git a/proto/mycel/registry/v1beta1/network_name.proto b/proto/mycel/registry/v1/network_name.proto similarity index 97% rename from proto/mycel/registry/v1beta1/network_name.proto rename to proto/mycel/registry/v1/network_name.proto index 666c6f1c..266b48d7 100644 --- a/proto/mycel/registry/v1beta1/network_name.proto +++ b/proto/mycel/registry/v1/network_name.proto @@ -1,5 +1,5 @@ syntax = "proto3"; -package mycel.registry.v1beta1; +package mycel.registry.v1; option go_package = "github.com/mycel-domain/mycel/x/registry/types"; diff --git a/proto/mycel/registry/v1beta1/params.proto b/proto/mycel/registry/v1/params.proto similarity index 90% rename from proto/mycel/registry/v1beta1/params.proto rename to proto/mycel/registry/v1/params.proto index 736be6ec..22f00143 100644 --- a/proto/mycel/registry/v1beta1/params.proto +++ b/proto/mycel/registry/v1/params.proto @@ -1,5 +1,5 @@ syntax = "proto3"; -package mycel.registry.v1beta1; +package mycel.registry.v1; import "gogoproto/gogo.proto"; diff --git a/proto/mycel/registry/v1beta1/query.proto b/proto/mycel/registry/v1/query.proto similarity index 64% rename from proto/mycel/registry/v1beta1/query.proto rename to proto/mycel/registry/v1/query.proto index 22fa4e12..0b8d39e7 100644 --- a/proto/mycel/registry/v1beta1/query.proto +++ b/proto/mycel/registry/v1/query.proto @@ -1,15 +1,16 @@ syntax = "proto3"; -package mycel.registry.v1beta1; +package mycel.registry.v1; import "cosmos/base/query/v1beta1/pagination.proto"; import "cosmos/base/v1beta1/coin.proto"; import "gogoproto/gogo.proto"; import "google/api/annotations.proto"; import "google/protobuf/timestamp.proto"; -import "mycel/registry/v1beta1/domain_ownership.proto"; -import "mycel/registry/v1beta1/params.proto"; -import "mycel/registry/v1beta1/top_level_domain.proto"; +import "mycel/registry/v1/domain_ownership.proto"; +import "mycel/registry/v1/params.proto"; +import "mycel/registry/v1/top_level_domain.proto"; +import "mycel/registry/v1/second_level_domain.proto"; option go_package = "github.com/mycel-domain/mycel/x/registry/types"; @@ -18,57 +19,85 @@ service Query { // Parameters queries the parameters of the module. rpc Params(QueryParamsRequest) returns (QueryParamsResponse) { - option (google.api.http).get = "/mycel/registry/v1beta1/params"; + option (google.api.http).get = "/mycel/registry/v1/params"; } // Queries a list of TopLevelDomain items. rpc TopLevelDomain(QueryGetTopLevelDomainRequest) returns (QueryGetTopLevelDomainResponse) { option (google.api.http).get = - "/mycel-domain/mycel/registry/v1beta1/top_level_domain/{name}"; + "/mycel/registry/v1/top_level_domain/{name}"; } rpc TopLevelDomainAll(QueryAllTopLevelDomainRequest) returns (QueryAllTopLevelDomainResponse) { option (google.api.http).get = - "/mycel-domain/mycel/registry/v1beta1/top_level_domain"; + "/mycel/registry/v1/top_level_domain"; } // Queries a list of SecondLevelDomain items. rpc SecondLevelDomain(QueryGetSecondLevelDomainRequest) returns (QueryGetSecondLevelDomainResponse) { option (google.api.http).get = - "/mycel/registry/v1beta1/second_level_domain/{name}/{parent}"; + "/mycel/registry/v1/second_level_domain/{name}/{parent}"; } rpc SecondLevelDomainAll(QueryAllSecondLevelDomainRequest) returns (QueryAllSecondLevelDomainResponse) { option (google.api.http).get = - "/mycel/registry/v1beta1/second_level_domain"; + "/mycel/registry/v1/second_level_domain"; } // Queries a list of DomainOwnership items. rpc DomainOwnership(QueryGetDomainOwnershipRequest) returns (QueryGetDomainOwnershipResponse) { option (google.api.http).get = - "/mycel-domain/mycel/registry/v1beta1/domain_ownership/{owner}"; + "/mycel/registry/v1/domain_ownership/{owner}"; } rpc DomainOwnershipAll(QueryAllDomainOwnershipRequest) returns (QueryAllDomainOwnershipResponse) { option (google.api.http).get = - "/mycel-domain/mycel/registry/v1beta1/domain_ownership"; + "/mycel/registry/v1/domain_ownership"; } // Queries a list of DomainRegistrationFee items. rpc DomainRegistrationFee(QueryDomainRegistrationFeeRequest) returns (QueryDomainRegistrationFeeResponse) { option (google.api.http).get = - "/mycel-domain/mycel/registry/v1beta1/domain_registration_fee/{name}/" + "/mycel/registry/v1/domain_registration_fee/{name}/" "{parent}/{registerer}"; } // Queries a list of Role items. rpc Role(QueryRoleRequest) returns (QueryRoleResponse) { option (google.api.http).get = - "/mycel-domain/mycel/registry/v1beta1/role/{domain_name}/{address}"; + "/mycel/registry/v1/role/{domain_name}/{address}"; + } + + // Queries a list of QueryWalletRecord items. + rpc WalletRecord(QueryWalletRecordRequest) + returns (QueryWalletRecordResponse) { + option (google.api.http).get = + "/mycel/resolver/v1/wallet_record/{domain_name}/" + "{domain_parent}/{wallet_record_type}"; + } + + // Queries a list of DnsRecord items. + rpc DnsRecord(QueryDnsRecordRequest) returns (QueryDnsRecordResponse) { + option (google.api.http).get = + "/mycel/resolver/v1/dns_record/{domain_name}/" + "{domain_parent}/{dns_record_type}"; + } + + // Queries a list of AllRecord items. + rpc AllRecords(QueryAllRecordsRequest) returns (QueryAllRecordsResponse) { + option (google.api.http).get = "/mycel/resolver/v1/" + "all_records/{domain_name}/{domain_parent}"; + } + + // Queries a list of TextRecord items. + rpc TextRecord(QueryTextRecordRequest) returns (QueryTextRecordResponse) { + option (google.api.http).get = + "/mycel/resolver/v1/text_record/{domain_name}/" + "{domain_parent}/{key}"; } } // QueryParamsRequest is request type for the Query/Params RPC method. @@ -163,3 +192,36 @@ message QueryRoleRequest { } message QueryRoleResponse { string role = 1; } + +message QueryWalletRecordRequest { + string domain_name = 1; + string domain_parent = 2; + string wallet_record_type = 3; +} + +message QueryWalletRecordResponse { WalletRecord value = 1; } + +message QueryDnsRecordRequest { + string domain_name = 1; + string domain_parent = 2; + string dns_record_type = 3; +} + +message QueryDnsRecordResponse { DnsRecord value = 1; } + +message QueryAllRecordsRequest { + string domain_name = 1; + string domain_parent = 2; +} + +message QueryAllRecordsResponse { + map values = 1; +} + +message QueryTextRecordRequest { + string domain_name = 1; + string domain_parent = 2; + string key = 3; +} + +message QueryTextRecordResponse { TextRecord value = 1; } diff --git a/proto/mycel/registry/v1beta1/second_level_domain.proto b/proto/mycel/registry/v1/second_level_domain.proto similarity index 81% rename from proto/mycel/registry/v1beta1/second_level_domain.proto rename to proto/mycel/registry/v1/second_level_domain.proto index 7c10c0d8..1174287d 100644 --- a/proto/mycel/registry/v1beta1/second_level_domain.proto +++ b/proto/mycel/registry/v1/second_level_domain.proto @@ -1,11 +1,11 @@ syntax = "proto3"; -package mycel.registry.v1beta1; +package mycel.registry.v1; import "gogoproto/gogo.proto"; import "google/protobuf/timestamp.proto"; -import "mycel/registry/v1beta1/dns_record.proto"; -import "mycel/registry/v1beta1/network_name.proto"; -import "mycel/registry/v1beta1/access_control.proto"; +import "mycel/registry/v1/dns_record.proto"; +import "mycel/registry/v1/network_name.proto"; +import "mycel/registry/v1/access_control.proto"; option go_package = "github.com/mycel-domain/mycel/x/registry/types"; diff --git a/proto/mycel/registry/v1beta1/subdomain_config.proto b/proto/mycel/registry/v1/subdomain_config.proto similarity index 90% rename from proto/mycel/registry/v1beta1/subdomain_config.proto rename to proto/mycel/registry/v1/subdomain_config.proto index 0e68fc85..d3a4e9f6 100644 --- a/proto/mycel/registry/v1beta1/subdomain_config.proto +++ b/proto/mycel/registry/v1/subdomain_config.proto @@ -1,8 +1,8 @@ syntax = "proto3"; -package mycel.registry.v1beta1; +package mycel.registry.v1; import "cosmos/base/v1beta1/coin.proto"; -import "mycel/registry/v1beta1/access_control.proto"; +import "mycel/registry/v1/access_control.proto"; option go_package = "github.com/mycel-domain/mycel/x/registry/types"; diff --git a/proto/mycel/registry/v1beta1/top_level_domain.proto b/proto/mycel/registry/v1/top_level_domain.proto similarity index 89% rename from proto/mycel/registry/v1beta1/top_level_domain.proto rename to proto/mycel/registry/v1/top_level_domain.proto index 27f7b34f..5e0a5924 100644 --- a/proto/mycel/registry/v1beta1/top_level_domain.proto +++ b/proto/mycel/registry/v1/top_level_domain.proto @@ -1,11 +1,11 @@ syntax = "proto3"; -package mycel.registry.v1beta1; +package mycel.registry.v1; import "cosmos/base/v1beta1/coin.proto"; import "gogoproto/gogo.proto"; import "google/protobuf/timestamp.proto"; -import "mycel/registry/v1beta1/access_control.proto"; -import "mycel/registry/v1beta1/subdomain_config.proto"; +import "mycel/registry/v1/access_control.proto"; +import "mycel/registry/v1/subdomain_config.proto"; option go_package = "github.com/mycel-domain/mycel/x/registry/types"; diff --git a/proto/mycel/registry/v1beta1/tx.proto b/proto/mycel/registry/v1/tx.proto similarity index 82% rename from proto/mycel/registry/v1beta1/tx.proto rename to proto/mycel/registry/v1/tx.proto index e248fdcd..c2bd3774 100644 --- a/proto/mycel/registry/v1beta1/tx.proto +++ b/proto/mycel/registry/v1/tx.proto @@ -1,15 +1,17 @@ syntax = "proto3"; -package mycel.registry.v1beta1; +package mycel.registry.v1; import "cosmos/base/v1beta1/coin.proto"; +import "cosmos/msg/v1/msg.proto"; import "gogoproto/gogo.proto"; -import "mycel/registry/v1beta1/top_level_domain.proto"; +import "mycel/registry/v1/top_level_domain.proto"; option go_package = "github.com/mycel-domain/mycel/x/registry/types"; // Msg defines the Msg service. service Msg { + option (cosmos.msg.v1.service) = true; rpc UpdateWalletRecord(MsgUpdateWalletRecord) returns (MsgUpdateWalletRecordResponse); rpc UpdateDnsRecord(MsgUpdateDnsRecord) returns (MsgUpdateDnsRecordResponse); @@ -28,6 +30,7 @@ service Msg { returns (MsgUpdateTopLevelDomainRegistrationPolicyResponse); } message MsgUpdateWalletRecord { + option (cosmos.msg.v1.signer) = "creator"; string creator = 1; string name = 2; string parent = 3; @@ -38,6 +41,7 @@ message MsgUpdateWalletRecord { message MsgUpdateWalletRecordResponse {} message MsgUpdateDnsRecord { + option (cosmos.msg.v1.signer) = "creator"; string creator = 1; string name = 2; string parent = 3; @@ -48,6 +52,7 @@ message MsgUpdateDnsRecord { message MsgUpdateDnsRecordResponse {} message MsgRegisterSecondLevelDomain { + option (cosmos.msg.v1.signer) = "creator"; string creator = 1; string name = 2; string parent = 3; @@ -57,6 +62,7 @@ message MsgRegisterSecondLevelDomain { message MsgRegisterSecondLevelDomainResponse {} message MsgRegisterTopLevelDomain { + option (cosmos.msg.v1.signer) = "creator"; string creator = 1; string name = 2; uint64 registration_period_in_year = 3; @@ -68,18 +74,20 @@ message MsgRegisterTopLevelDomainResponse { } message MsgWithdrawRegistrationFee { + option (cosmos.msg.v1.signer) = "creator"; string creator = 1; string name = 2; } message MsgWithdrawRegistrationFeeResponse { - repeated cosmos.base.v1beta1.Coin registration_fee = 7 [ + repeated cosmos.base.v1beta1.Coin registration_fee = 1 [ (gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins" ]; } message MsgExtendTopLevelDomainExpirationDate { + option (cosmos.msg.v1.signer) = "creator"; string creator = 1; string name = 2; uint64 extension_period_in_year = 3; @@ -91,6 +99,7 @@ message MsgExtendTopLevelDomainExpirationDateResponse { } message MsgUpdateTextRecord { + option (cosmos.msg.v1.signer) = "creator"; string creator = 1; string name = 2; string parent = 3; @@ -101,6 +110,7 @@ message MsgUpdateTextRecord { message MsgUpdateTextRecordResponse {} message MsgUpdateTopLevelDomainRegistrationPolicy { + option (cosmos.msg.v1.signer) = "creator"; string creator = 1; string name = 2; string registration_policy = 3; diff --git a/proto/mycel/resolver/module/v1/module.proto b/proto/mycel/resolver/module/v1/module.proto deleted file mode 100644 index 1804cda2..00000000 --- a/proto/mycel/resolver/module/v1/module.proto +++ /dev/null @@ -1,14 +0,0 @@ -syntax = "proto3"; - -package mycel.resolver.module.v1; - -import "cosmos/app/v1alpha1/module.proto"; - -option go_package = "github.com/mycel-domain/mycel/x/resolver"; - -// Module is the config object of the resolver module. -message Module { - option (cosmos.app.v1alpha1.module) = { - go_import : "github.com/mycel-domain/mycel/x/resolver" - }; -} diff --git a/proto/mycel/resolver/v1beta1/genesis.proto b/proto/mycel/resolver/v1beta1/genesis.proto deleted file mode 100644 index 4207ae52..00000000 --- a/proto/mycel/resolver/v1beta1/genesis.proto +++ /dev/null @@ -1,10 +0,0 @@ -syntax = "proto3"; -package mycel.resolver.v1beta1; - -import "gogoproto/gogo.proto"; -import "mycel/resolver/v1beta1/params.proto"; - -option go_package = "github.com/mycel-domain/mycel/x/resolver/types"; - -// GenesisState defines the resolver module's genesis state. -message GenesisState { Params params = 1 [ (gogoproto.nullable) = false ]; } diff --git a/proto/mycel/resolver/v1beta1/params.proto b/proto/mycel/resolver/v1beta1/params.proto deleted file mode 100644 index 9d1819d5..00000000 --- a/proto/mycel/resolver/v1beta1/params.proto +++ /dev/null @@ -1,9 +0,0 @@ -syntax = "proto3"; -package mycel.resolver.v1beta1; - -import "gogoproto/gogo.proto"; - -option go_package = "github.com/mycel-domain/mycel/x/resolver/types"; - -// Params defines the parameters for the module. -message Params { option (gogoproto.goproto_stringer) = false; } diff --git a/proto/mycel/resolver/v1beta1/query.proto b/proto/mycel/resolver/v1beta1/query.proto deleted file mode 100644 index 189745bd..00000000 --- a/proto/mycel/resolver/v1beta1/query.proto +++ /dev/null @@ -1,90 +0,0 @@ -syntax = "proto3"; - -package mycel.resolver.v1beta1; - -import "gogoproto/gogo.proto"; -import "google/api/annotations.proto"; -import "mycel/registry/v1beta1/second_level_domain.proto"; -import "mycel/resolver/v1beta1/params.proto"; - -option go_package = "github.com/mycel-domain/mycel/x/resolver/types"; - -// 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-domain/mycel/resolver/v1beta1/params"; - } - - // Queries a list of QueryWalletRecord items. - rpc WalletRecord(QueryWalletRecordRequest) - returns (QueryWalletRecordResponse) { - option (google.api.http).get = - "/mycel-domain/mycel/resolver/v1beta1/wallet_record/{domain_name}/" - "{domain_parent}/{wallet_record_type}"; - } - - // Queries a list of DnsRecord items. - rpc DnsRecord(QueryDnsRecordRequest) returns (QueryDnsRecordResponse) { - option (google.api.http).get = - "/mycel-domain/mycel/resolver/v1beta1/dns_record/{domain_name}/" - "{domain_parent}/{dns_record_type}"; - } - - // Queries a list of AllRecord items. - rpc AllRecords(QueryAllRecordsRequest) returns (QueryAllRecordsResponse) { - option (google.api.http).get = "/mycel-domain/mycel/resolver/v1beta1/" - "all_records/{domain_name}/{domain_parent}"; - } - - // Queries a list of TextRecord items. - rpc TextRecord(QueryTextRecordRequest) returns (QueryTextRecordResponse) { - option (google.api.http).get = - "/mycel-domain/mycel/resolver/v1beta1/text_record/{domain_name}/" - "{domain_parent}/{key}"; - } -} -// 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 QueryWalletRecordRequest { - string domain_name = 1; - string domain_parent = 2; - string wallet_record_type = 3; -} - -message QueryWalletRecordResponse { mycel.registry.v1beta1.WalletRecord value = 1; } - -message QueryDnsRecordRequest { - string domain_name = 1; - string domain_parent = 2; - string dns_record_type = 3; -} - -message QueryDnsRecordResponse { mycel.registry.v1beta1.DnsRecord value = 1; } - -message QueryAllRecordsRequest { - string domain_name = 1; - string domain_parent = 2; -} - -message QueryAllRecordsResponse { - map values = 1; -} - -message QueryTextRecordRequest { - string domain_name = 1; - string domain_parent = 2; - string key = 3; -} - -message QueryTextRecordResponse { mycel.registry.v1beta1.TextRecord value = 1; } diff --git a/proto/mycel/resolver/v1beta1/tx.proto b/proto/mycel/resolver/v1beta1/tx.proto deleted file mode 100644 index 765cc41f..00000000 --- a/proto/mycel/resolver/v1beta1/tx.proto +++ /dev/null @@ -1,7 +0,0 @@ -syntax = "proto3"; -package mycel.resolver.v1beta1; - -option go_package = "github.com/mycel-domain/mycel/x/resolver/types"; - -// Msg defines the Msg service. -service Msg {} diff --git a/testutil/keeper/epochs.go b/testutil/keeper/epochs.go index 9cd89be6..f4a107de 100644 --- a/testutil/keeper/epochs.go +++ b/testutil/keeper/epochs.go @@ -16,8 +16,10 @@ import ( "github.com/cosmos/cosmos-sdk/codec" codectypes "github.com/cosmos/cosmos-sdk/codec/types" + "github.com/cosmos/cosmos-sdk/runtime" sdk "github.com/cosmos/cosmos-sdk/types" - typesparams "github.com/cosmos/cosmos-sdk/x/params/types" + authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" + govtypes "github.com/cosmos/cosmos-sdk/x/gov/types" "github.com/mycel-domain/mycel/x/epochs/keeper" "github.com/mycel-domain/mycel/x/epochs/types" @@ -27,34 +29,24 @@ func EpochsKeeper(tb testing.TB) (*keeper.Keeper, sdk.Context) { tb.Helper() storeKey := storetypes.NewKVStoreKey(types.StoreKey) - memStoreKey := storetypes.NewMemoryStoreKey(types.MemStoreKey) db := tmdb.NewMemDB() stateStore := store.NewCommitMultiStore(db, log.NewNopLogger(), metrics.NewNoOpMetrics()) stateStore.MountStoreWithDB(storeKey, storetypes.StoreTypeIAVL, db) - stateStore.MountStoreWithDB(memStoreKey, storetypes.StoreTypeMemory, nil) require.NoError(tb, stateStore.LoadLatestVersion()) registry := codectypes.NewInterfaceRegistry() cdc := codec.NewProtoCodec(registry) + authority := authtypes.NewModuleAddress(govtypes.ModuleName) - paramsSubspace := typesparams.NewSubspace(cdc, - types.Amino, - storeKey, - memStoreKey, - "EpochsParams", - ) k := keeper.NewKeeper( cdc, - storeKey, - memStoreKey, - paramsSubspace, + runtime.NewKVStoreService(storeKey), + log.NewNopLogger(), + authority.String(), ) ctx := sdk.NewContext(stateStore, tmproto.Header{}, false, log.NewNopLogger()) - // Initialize params - k.SetParams(ctx, types.DefaultParams()) - return k, ctx } diff --git a/testutil/keeper/furnace.go b/testutil/keeper/furnace.go index b631b39d..6d78e7e3 100644 --- a/testutil/keeper/furnace.go +++ b/testutil/keeper/furnace.go @@ -16,8 +16,10 @@ import ( "github.com/cosmos/cosmos-sdk/codec" codectypes "github.com/cosmos/cosmos-sdk/codec/types" + "github.com/cosmos/cosmos-sdk/runtime" sdk "github.com/cosmos/cosmos-sdk/types" - typesparams "github.com/cosmos/cosmos-sdk/x/params/types" + authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" + govtypes "github.com/cosmos/cosmos-sdk/x/gov/types" "github.com/mycel-domain/mycel/x/furnace/keeper" "github.com/mycel-domain/mycel/x/furnace/types" @@ -27,28 +29,21 @@ func FurnaceKeeper(tb testing.TB) (*keeper.Keeper, sdk.Context) { tb.Helper() storeKey := storetypes.NewKVStoreKey(types.StoreKey) - memStoreKey := storetypes.NewMemoryStoreKey(types.MemStoreKey) db := tmdb.NewMemDB() stateStore := store.NewCommitMultiStore(db, log.NewNopLogger(), metrics.NewNoOpMetrics()) stateStore.MountStoreWithDB(storeKey, storetypes.StoreTypeIAVL, db) - stateStore.MountStoreWithDB(memStoreKey, storetypes.StoreTypeMemory, nil) require.NoError(tb, stateStore.LoadLatestVersion()) registry := codectypes.NewInterfaceRegistry() cdc := codec.NewProtoCodec(registry) + authority := authtypes.NewModuleAddress(govtypes.ModuleName) - paramsSubspace := typesparams.NewSubspace(cdc, - types.Amino, - storeKey, - memStoreKey, - "FurnaceParams", - ) k := keeper.NewKeeper( cdc, - storeKey, - memStoreKey, - paramsSubspace, + runtime.NewKVStoreService(storeKey), + log.NewNopLogger(), + authority.String(), nil, nil, ) diff --git a/testutil/keeper/registry.go b/testutil/keeper/registry.go index ea0b2770..e40ea3a5 100644 --- a/testutil/keeper/registry.go +++ b/testutil/keeper/registry.go @@ -16,8 +16,10 @@ import ( "github.com/cosmos/cosmos-sdk/codec" codectypes "github.com/cosmos/cosmos-sdk/codec/types" + "github.com/cosmos/cosmos-sdk/runtime" sdk "github.com/cosmos/cosmos-sdk/types" - typesparams "github.com/cosmos/cosmos-sdk/x/params/types" + authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" + govtypes "github.com/cosmos/cosmos-sdk/x/gov/types" "github.com/mycel-domain/mycel/x/registry/keeper" "github.com/mycel-domain/mycel/x/registry/types" @@ -27,29 +29,21 @@ func RegistryKeeper(tb testing.TB) (*keeper.Keeper, sdk.Context) { tb.Helper() storeKey := storetypes.NewKVStoreKey(types.StoreKey) - memStoreKey := storetypes.NewMemoryStoreKey(types.MemStoreKey) db := tmdb.NewMemDB() stateStore := store.NewCommitMultiStore(db, log.NewNopLogger(), metrics.NewNoOpMetrics()) stateStore.MountStoreWithDB(storeKey, storetypes.StoreTypeIAVL, db) - stateStore.MountStoreWithDB(memStoreKey, storetypes.StoreTypeMemory, nil) require.NoError(tb, stateStore.LoadLatestVersion()) registry := codectypes.NewInterfaceRegistry() cdc := codec.NewProtoCodec(registry) + authority := authtypes.NewModuleAddress(govtypes.ModuleName) - paramsSubspace := typesparams.NewSubspace(cdc, - types.Amino, - storeKey, - memStoreKey, - "RegistryParams", - ) k := keeper.NewKeeper( cdc, - storeKey, - memStoreKey, - paramsSubspace, - nil, + runtime.NewKVStoreService(storeKey), + log.NewNopLogger(), + authority.String(), nil, nil, nil, diff --git a/testutil/keeper/resolver.go b/testutil/keeper/resolver.go deleted file mode 100644 index 96a41425..00000000 --- a/testutil/keeper/resolver.go +++ /dev/null @@ -1,61 +0,0 @@ -package keeper - -import ( - "testing" - - "github.com/stretchr/testify/require" - - tmproto "github.com/cometbft/cometbft/proto/tendermint/types" - - tmdb "github.com/cosmos/cosmos-db" - - "cosmossdk.io/log" - "cosmossdk.io/store" - "cosmossdk.io/store/metrics" - storetypes "cosmossdk.io/store/types" - - "github.com/cosmos/cosmos-sdk/codec" - codectypes "github.com/cosmos/cosmos-sdk/codec/types" - sdk "github.com/cosmos/cosmos-sdk/types" - typesparams "github.com/cosmos/cosmos-sdk/x/params/types" - - "github.com/mycel-domain/mycel/x/resolver/keeper" - "github.com/mycel-domain/mycel/x/resolver/types" -) - -func ResolverKeeper(tb testing.TB) (*keeper.Keeper, sdk.Context) { - tb.Helper() - - storeKey := storetypes.NewKVStoreKey(types.StoreKey) - memStoreKey := storetypes.NewMemoryStoreKey(types.MemStoreKey) - - db := tmdb.NewMemDB() - stateStore := store.NewCommitMultiStore(db, log.NewNopLogger(), metrics.NewNoOpMetrics()) - stateStore.MountStoreWithDB(storeKey, storetypes.StoreTypeIAVL, db) - stateStore.MountStoreWithDB(memStoreKey, storetypes.StoreTypeMemory, nil) - require.NoError(tb, stateStore.LoadLatestVersion()) - - registry := codectypes.NewInterfaceRegistry() - cdc := codec.NewProtoCodec(registry) - - paramsSubspace := typesparams.NewSubspace(cdc, - types.Amino, - storeKey, - memStoreKey, - "ResolverParams", - ) - k := keeper.NewKeeper( - cdc, - storeKey, - memStoreKey, - paramsSubspace, - nil, - ) - - ctx := sdk.NewContext(stateStore, tmproto.Header{}, false, log.NewNopLogger()) - - // Initialize params - k.SetParams(ctx, types.DefaultParams()) - - return k, ctx -} 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/abci_test.go b/x/epochs/keeper/abci_test.go index d2dd12b1..0e24351c 100644 --- a/x/epochs/keeper/abci_test.go +++ b/x/epochs/keeper/abci_test.go @@ -4,7 +4,7 @@ import ( "fmt" "time" - "github.com/mycel-domain/mycel/x/epochs" + "github.com/mycel-domain/mycel/x/epochs/module" "github.com/mycel-domain/mycel/x/epochs/types" ) diff --git a/x/epochs/keeper/epoch_info.go b/x/epochs/keeper/epoch_info.go index 931d7187..e4212d11 100644 --- a/x/epochs/keeper/epoch_info.go +++ b/x/epochs/keeper/epoch_info.go @@ -1,17 +1,20 @@ package keeper import ( + "context" + "cosmossdk.io/store/prefix" storetypes "cosmossdk.io/store/types" - sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/cosmos/cosmos-sdk/runtime" "github.com/mycel-domain/mycel/x/epochs/types" ) // 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)) +func (k Keeper) SetEpochInfo(goCtx context.Context, epochInfo types.EpochInfo) { + storeAdapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(goCtx)) + store := prefix.NewStore(storeAdapter, types.KeyPrefix(types.EpochInfoKeyPrefix)) b := k.cdc.MustMarshal(&epochInfo) store.Set(types.EpochInfoKey( epochInfo.Identifier, @@ -20,10 +23,11 @@ func (k Keeper) SetEpochInfo(ctx sdk.Context, epochInfo types.EpochInfo) { // GetEpochInfo returns a epochInfo from its index func (k Keeper) GetEpochInfo( - ctx sdk.Context, + goCtx context.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(goCtx)) + store := prefix.NewStore(storeAdapter, types.KeyPrefix(types.EpochInfoKeyPrefix)) b := store.Get(types.EpochInfoKey( identifier, @@ -38,18 +42,22 @@ func (k Keeper) GetEpochInfo( // RemoveEpochInfo removes a epochInfo from the store func (k Keeper) RemoveEpochInfo( - ctx sdk.Context, + goCtx context.Context, identifier string, ) { - store := prefix.NewStore(ctx.KVStore(k.storeKey), types.KeyPrefix(types.EpochInfoKeyPrefix)) + storeAdapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(goCtx)) + store := prefix.NewStore(storeAdapter, types.KeyPrefix(types.EpochInfoKeyPrefix)) + store.Delete(types.EpochInfoKey( identifier, )) } // 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)) +func (k Keeper) GetAllEpochInfo(goCtx context.Context) (list []types.EpochInfo) { + storeAdapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(goCtx)) + store := prefix.NewStore(storeAdapter, types.KeyPrefix(types.EpochInfoKeyPrefix)) + iterator := storetypes.KVStorePrefixIterator(store, []byte{}) defer iterator.Close() @@ -64,8 +72,9 @@ 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)) +func (k Keeper) IterateEpochInfo(goCtx context.Context, fn func(index int64, epochInfo types.EpochInfo) (stop bool)) { + storeAdapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(goCtx)) + store := prefix.NewStore(storeAdapter, types.KeyPrefix(types.EpochInfoKeyPrefix)) iterator := storetypes.KVStorePrefixIterator(store, nil) defer iterator.Close() diff --git a/x/epochs/keeper/epoch_info_test.go b/x/epochs/keeper/epoch_info_test.go index 21f64324..9b1a16a1 100644 --- a/x/epochs/keeper/epoch_info_test.go +++ b/x/epochs/keeper/epoch_info_test.go @@ -1,6 +1,7 @@ package keeper_test import ( + "context" "strconv" "testing" @@ -17,7 +18,7 @@ import ( // Prevent strconv unused error var _ = strconv.IntSize -func createNEpochInfo(keeper *keeper.Keeper, ctx sdk.Context, n int) []types.EpochInfo { +func createNEpochInfo(keeper *keeper.Keeper, ctx context.Context, n int) []types.EpochInfo { items := make([]types.EpochInfo, n) for i := range items { items[i].Identifier = strconv.Itoa(i) 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..4566a6d6 100644 --- a/x/epochs/keeper/keeper.go +++ b/x/epochs/keeper/keeper.go @@ -3,42 +3,40 @@ 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 +59,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_epoch_info_test.go b/x/epochs/keeper/query_epoch_info_test.go index 4ef91cbf..99eeec2d 100644 --- a/x/epochs/keeper/query_epoch_info_test.go +++ b/x/epochs/keeper/query_epoch_info_test.go @@ -9,7 +9,7 @@ import ( "google.golang.org/grpc/status" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/query" + // "github.com/cosmos/cosmos-sdk/types/query" keepertest "github.com/mycel-domain/mycel/testutil/keeper" "github.com/mycel-domain/mycel/testutil/nullify" @@ -25,27 +25,27 @@ func TestEpochInfoQuerySingle(t *testing.T) { msgs := createNEpochInfo(keeper, ctx, 2) for _, tc := range []struct { desc string - request *types.QueryGetEpochInfoRequest - response *types.QueryGetEpochInfoResponse + request *types.QueryCurrentEpochRequest + response *types.QueryCurrentEpochResponse err error }{ { desc: "First", - request: &types.QueryGetEpochInfoRequest{ + request: &types.QueryCurrentEpochRequest{ Identifier: msgs[0].Identifier, }, - response: &types.QueryGetEpochInfoResponse{EpochInfo: msgs[0]}, + response: &types.QueryCurrentEpochResponse{EpochInfo: msgs[0]}, }, { desc: "Second", - request: &types.QueryGetEpochInfoRequest{ + request: &types.QueryCurrentEpochRequest{ Identifier: msgs[1].Identifier, }, - response: &types.QueryGetEpochInfoResponse{EpochInfo: msgs[1]}, + response: &types.QueryCurrentEpochResponse{EpochInfo: msgs[1]}, }, { desc: "KeyNotFound", - request: &types.QueryGetEpochInfoRequest{ + request: &types.QueryCurrentEpochRequest{ Identifier: strconv.Itoa(100000), }, err: status.Error(codes.NotFound, "not found"), @@ -56,7 +56,7 @@ func TestEpochInfoQuerySingle(t *testing.T) { }, } { t.Run(tc.desc, func(t *testing.T) { - response, err := keeper.EpochInfo(wctx, tc.request) + response, err := keeper.CurrentEpoch(wctx, tc.request) if tc.err != nil { require.ErrorIs(t, err, tc.err) } else { @@ -70,58 +70,59 @@ func TestEpochInfoQuerySingle(t *testing.T) { } } -func TestEpochInfoQueryPaginated(t *testing.T) { - keeper, ctx := keepertest.EpochsKeeper(t) - wctx := sdk.WrapSDKContext(ctx) - msgs := createNEpochInfo(keeper, ctx, 5) - - request := func(next []byte, offset, limit uint64, total bool) *types.QueryAllEpochInfoRequest { - return &types.QueryAllEpochInfoRequest{ - Pagination: &query.PageRequest{ - Key: next, - Offset: offset, - Limit: limit, - CountTotal: total, - }, - } - } - t.Run("ByOffset", func(t *testing.T) { - step := 2 - for i := 0; i < len(msgs); i += step { - resp, err := keeper.EpochInfoAll(wctx, request(nil, uint64(i), uint64(step), false)) - require.NoError(t, err) - require.LessOrEqual(t, len(resp.EpochInfo), step) - require.Subset(t, - nullify.Fill(msgs), - nullify.Fill(resp.EpochInfo), - ) - } - }) - t.Run("ByKey", func(t *testing.T) { - step := 2 - var next []byte - for i := 0; i < len(msgs); i += step { - resp, err := keeper.EpochInfoAll(wctx, request(next, 0, uint64(step), false)) - require.NoError(t, err) - require.LessOrEqual(t, len(resp.EpochInfo), step) - require.Subset(t, - nullify.Fill(msgs), - nullify.Fill(resp.EpochInfo), - ) - next = resp.Pagination.NextKey - } - }) - t.Run("Total", func(t *testing.T) { - resp, err := keeper.EpochInfoAll(wctx, request(nil, 0, 0, true)) - require.NoError(t, err) - require.Equal(t, len(msgs), int(resp.Pagination.Total)) - require.ElementsMatch(t, - nullify.Fill(msgs), - nullify.Fill(resp.EpochInfo), - ) - }) - t.Run("InvalidRequest", func(t *testing.T) { - _, err := keeper.EpochInfoAll(wctx, nil) - require.ErrorIs(t, err, status.Error(codes.InvalidArgument, "invalid request")) - }) -} +// +// func TestEpochInfoQueryPaginated(t *testing.T) { +// keeper, ctx := keepertest.EpochsKeeper(t) +// wctx := sdk.WrapSDKContext(ctx) +// msgs := createNEpochInfo(keeper, ctx, 5) +// +// request := func(next []byte, offset, limit uint64, total bool) *types.QueryEpochsInfoRequest { +// return &types.QueryEpochsInfoRequest{ +// Pagination: &query.PageRequest{ +// Key: next, +// Offset: offset, +// Limit: limit, +// CountTotal: total, +// }, +// } +// } +// t.Run("ByOffset", func(t *testing.T) { +// step := 2 +// for i := 0; i < len(msgs); i += step { +// resp, err := keeper.EpochInfos(wctx, request(nil, uint64(i), uint64(step), false)) +// require.NoError(t, err) +// require.LessOrEqual(t, len(resp.EpochInfo), step) +// require.Subset(t, +// nullify.Fill(msgs), +// nullify.Fill(resp.EpochInfo), +// ) +// } +// }) +// t.Run("ByKey", func(t *testing.T) { +// step := 2 +// var next []byte +// for i := 0; i < len(msgs); i += step { +// resp, err := keeper.EpochInfos(wctx, request(next, 0, uint64(step), false)) +// require.NoError(t, err) +// require.LessOrEqual(t, len(resp.Epochs), step) +// require.Subset(t, +// nullify.Fill(msgs), +// nullify.Fill(resp.Epochs), +// ) +// next = resp.Pagination.NextKey +// } +// }) +// t.Run("Total", func(t *testing.T) { +// resp, err := keeper.EpochInfos(wctx, request(nil, 0, 0, true)) +// require.NoError(t, err) +// require.Equal(t, len(msgs), int(resp.Pagination.Total)) +// require.ElementsMatch(t, +// nullify.Fill(msgs), +// nullify.Fill(resp.Epochs), +// ) +// }) +// t.Run("InvalidRequest", func(t *testing.T) { +// _, err := keeper.EpochInfos(wctx, nil) +// require.ErrorIs(t, err, status.Error(codes.InvalidArgument, "invalid request")) +// }) +// } 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/keeper/setup_test.go b/x/epochs/keeper/setup_test.go index a36dfbf2..3f8ebce3 100644 --- a/x/epochs/keeper/setup_test.go +++ b/x/epochs/keeper/setup_test.go @@ -7,6 +7,8 @@ import ( "github.com/cosmos/cosmos-sdk/baseapp" sdk "github.com/cosmos/cosmos-sdk/types" + authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" + banktypes "github.com/cosmos/cosmos-sdk/x/bank/types" mycelapp "github.com/mycel-domain/mycel/app" "github.com/mycel-domain/mycel/x/epochs/types" @@ -32,10 +34,12 @@ func (suite *KeeperTestSuite) SetupTest() { app := mycelapp.Setup(suite.T(), false) ctx := app.BaseApp.NewContext(false) + app.BankKeeper.SetParams(ctx, banktypes.DefaultParams()) + suite.app = app suite.ctx = ctx - queryHelper := baseapp.NewQueryServerTestHelper(suite.ctx, suite.app.InterfaceRegistry()) + queryHelper := baseapp.NewQueryServerTestHelper(suite.ctx, suite.app.AppCodec().InterfaceRegistry()) types.RegisterQueryServer(queryHelper, suite.app.EpochsKeeper) suite.queryClient = types.NewQueryClient(queryHelper) } diff --git a/x/epochs/module/autocli.go b/x/epochs/module/autocli.go new file mode 100644 index 00000000..dd1502fb --- /dev/null +++ b/x/epochs/module/autocli.go @@ -0,0 +1,37 @@ +package epochs + +import ( + autocliv1 "cosmossdk.io/api/cosmos/autocli/v1" + + modulev1 "github.com/mycel-domain/mycel/api/mycel/epochs/v1" +) + +// AutoCLIOptions implements the autocli.HasAutoCLIConfig interface. +func (am AppModule) AutoCLIOptions() *autocliv1.ModuleOptions { + return &autocliv1.ModuleOptions{ + Query: &autocliv1.ServiceCommandDescriptor{ + Service: modulev1.Query_ServiceDesc.ServiceName, + RpcCommandOptions: []*autocliv1.RpcCommandOptions{ + { + 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 + }, + }, + Tx: &autocliv1.ServiceCommandDescriptor{ + Service: modulev1.Msg_ServiceDesc.ServiceName, + EnhanceCustomCommand: true, // only required if you want to use the custom command + RpcCommandOptions: []*autocliv1.RpcCommandOptions{ + // this line is used by ignite scaffolding # autocli/tx + }, + }, + } +} diff --git a/x/epochs/genesis.go b/x/epochs/module/genesis.go similarity index 100% rename from x/epochs/genesis.go rename to x/epochs/module/genesis.go diff --git a/x/epochs/genesis_test.go b/x/epochs/module/genesis_test.go similarity index 94% rename from x/epochs/genesis_test.go rename to x/epochs/module/genesis_test.go index a154ae0e..09f1b25a 100644 --- a/x/epochs/genesis_test.go +++ b/x/epochs/module/genesis_test.go @@ -7,7 +7,7 @@ import ( keepertest "github.com/mycel-domain/mycel/testutil/keeper" "github.com/mycel-domain/mycel/testutil/nullify" - "github.com/mycel-domain/mycel/x/epochs" + "github.com/mycel-domain/mycel/x/epochs/module" "github.com/mycel-domain/mycel/x/epochs/types" ) diff --git a/x/epochs/module.go b/x/epochs/module/module.go similarity index 53% rename from x/epochs/module.go rename to x/epochs/module/module.go index 9ed2d18d..4bed3817 100644 --- a/x/epochs/module.go +++ b/x/epochs/module/module.go @@ -4,13 +4,16 @@ import ( "context" "encoding/json" "fmt" - "log" + "sort" "time" "github.com/grpc-ecosystem/grpc-gateway/runtime" - "github.com/spf13/cobra" + "golang.org/x/exp/maps" "cosmossdk.io/core/appmodule" + "cosmossdk.io/core/store" + "cosmossdk.io/depinject" + "cosmossdk.io/log" "github.com/cosmos/cosmos-sdk/client" "github.com/cosmos/cosmos-sdk/codec" @@ -18,28 +21,32 @@ import ( "github.com/cosmos/cosmos-sdk/telemetry" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/module" + authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" + govtypes "github.com/cosmos/cosmos-sdk/x/gov/types" - "github.com/mycel-domain/mycel/x/epochs/client/cli" + modulev1 "github.com/mycel-domain/mycel/api/mycel/epochs/module/v1" "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 } @@ -48,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 { @@ -77,24 +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 { - log.Printf("%v", err) + 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 // ---------------------------------------------------------------------------- @@ -122,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)) @@ -137,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 @@ -153,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 @@ -162,3 +153,107 @@ func (am AppModule) BeginBlock(ctx context.Context) error { am.keeper.BeginBlocker(sdk.UnwrapSDKContext(ctx)) 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 +// ---------------------------------------------------------------------------- + +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 + + StoreService store.KVStoreService + Cdc codec.Codec + Config *modulev1.Module + Logger log.Logger + + AccountKeeper types.AccountKeeper + BankKeeper types.BankKeeper +} + +type ModuleOutputs struct { + depinject.Out + + EpochsKeeper keeper.Keeper + Module appmodule.AppModule +} + +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.StoreService, + in.Logger, + authority.String(), + ) + m := NewAppModule( + in.Cdc, + *k, + in.AccountKeeper, + in.BankKeeper, + ) + + return ModuleOutputs{EpochsKeeper: *k, Module: m} +} diff --git a/x/epochs/module_simulation.go b/x/epochs/module/simulation.go similarity index 68% rename from x/epochs/module_simulation.go rename to x/epochs/module/simulation.go index 740b948f..1917a8df 100644 --- a/x/epochs/module_simulation.go +++ b/x/epochs/module/simulation.go @@ -3,7 +3,7 @@ package epochs import ( "math/rand" - "github.com/cosmos/cosmos-sdk/baseapp" + 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" @@ -15,18 +15,18 @@ import ( // avoid unused import issue var ( - _ = sample.AccAddress _ = epochssimulation.FindAccount - _ = simulation.MsgEntryKind - _ = baseapp.Paramspace _ = 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 +// 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 { @@ -39,8 +39,11 @@ func (AppModule) GenerateGenesisState(simState *module.SimulationState) { simState.GenState[types.ModuleName] = simState.Cdc.MustMarshalJSON(&epochsGenesis) } -// ProposalMsgs doesn't return any content functions for governance proposals -func (AppModule) ProposalMsgs(simState module.SimulationState) []simtypes.WeightedProposalMsg { +// 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 } @@ -52,3 +55,10 @@ func (am AppModule) WeightedOperations(simState module.SimulationState) []simtyp 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/epoch_info.pb.go b/x/epochs/types/epoch_info.pb.go index 43442712..1d8c0ec2 100644 --- a/x/epochs/types/epoch_info.pb.go +++ b/x/epochs/types/epoch_info.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: mycel/epochs/v1beta1/epoch_info.proto +// source: mycel/epochs/v1/epoch_info.proto package types @@ -42,7 +42,7 @@ func (m *EpochInfo) Reset() { *m = EpochInfo{} } func (m *EpochInfo) String() string { return proto.CompactTextString(m) } func (*EpochInfo) ProtoMessage() {} func (*EpochInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_33d4570779b75db9, []int{0} + return fileDescriptor_eab2d4b918df5a32, []int{0} } func (m *EpochInfo) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -121,43 +121,40 @@ func (m *EpochInfo) GetCurrentEpochStartHeight() int64 { } func init() { - proto.RegisterType((*EpochInfo)(nil), "mycel.epochs.v1beta1.EpochInfo") + proto.RegisterType((*EpochInfo)(nil), "mycel.epochs.v1.EpochInfo") } -func init() { - proto.RegisterFile("mycel/epochs/v1beta1/epoch_info.proto", fileDescriptor_33d4570779b75db9) -} +func init() { proto.RegisterFile("mycel/epochs/v1/epoch_info.proto", fileDescriptor_eab2d4b918df5a32) } -var fileDescriptor_33d4570779b75db9 = []byte{ - // 435 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x92, 0xbf, 0x8f, 0x94, 0x40, - 0x14, 0xc7, 0x19, 0xef, 0x3c, 0x6f, 0x47, 0x8d, 0x71, 0xb2, 0x2a, 0x92, 0x38, 0x10, 0x8c, 0x09, - 0x89, 0x27, 0x64, 0xd5, 0x4a, 0xbb, 0xf5, 0x47, 0xb4, 0xe5, 0x2c, 0x8c, 0x0d, 0xe1, 0xc7, 0x00, - 0x93, 0xec, 0xcc, 0x10, 0x18, 0x8c, 0x74, 0xd6, 0x56, 0x57, 0xfa, 0x27, 0x5d, 0x79, 0xa5, 0x15, - 0x9a, 0xdd, 0xce, 0xf2, 0xfe, 0x02, 0xc3, 0x0c, 0x9c, 0xab, 0xa7, 0xb9, 0x8e, 0xf7, 0xbe, 0x9f, - 0xf7, 0xfd, 0xf2, 0x5e, 0x06, 0x3e, 0x60, 0x5d, 0x4a, 0x56, 0x01, 0xa9, 0x44, 0x5a, 0x36, 0xc1, - 0xc7, 0x45, 0x42, 0x64, 0xbc, 0xd0, 0x65, 0x44, 0x79, 0x2e, 0xfc, 0xaa, 0x16, 0x52, 0xa0, 0xb9, - 0xc2, 0x7c, 0x8d, 0xf9, 0x23, 0x66, 0xcd, 0x0b, 0x51, 0x08, 0x05, 0x04, 0xc3, 0x97, 0x66, 0x2d, - 0x5c, 0x08, 0x51, 0xac, 0x48, 0xa0, 0xaa, 0xa4, 0xcd, 0x83, 0xac, 0xad, 0x63, 0x49, 0x05, 0x1f, - 0x75, 0xfb, 0x6f, 0x5d, 0x52, 0x46, 0x1a, 0x19, 0xb3, 0x4a, 0x03, 0xee, 0x97, 0x5d, 0x38, 0x7b, - 0x35, 0x24, 0xbd, 0xe5, 0xb9, 0x40, 0x18, 0x42, 0x9a, 0x11, 0x2e, 0x69, 0x4e, 0x49, 0x6d, 0x02, - 0x07, 0x78, 0xb3, 0x70, 0xab, 0x83, 0xde, 0x43, 0xd8, 0xc8, 0xb8, 0x96, 0xd1, 0x60, 0x63, 0x5e, - 0x72, 0x80, 0x77, 0xf5, 0xb1, 0xe5, 0xeb, 0x0c, 0x7f, 0xca, 0xf0, 0xdf, 0x4d, 0x19, 0xcb, 0x7b, - 0xc7, 0xbd, 0x6d, 0x9c, 0xf6, 0xf6, 0xcd, 0x2e, 0x66, 0xab, 0x67, 0xee, 0xef, 0x59, 0xf7, 0xe8, - 0xbb, 0x0d, 0xc2, 0x99, 0x6a, 0x0c, 0x38, 0x2a, 0xe1, 0xfe, 0xf4, 0xeb, 0xe6, 0x8e, 0xf2, 0xbd, - 0x7b, 0xce, 0xf7, 0xe5, 0x08, 0x2c, 0x17, 0x83, 0xed, 0xcf, 0xde, 0x46, 0xd3, 0xc8, 0x81, 0x60, - 0x54, 0x12, 0x56, 0xc9, 0xee, 0xb4, 0xb7, 0x6f, 0xe8, 0xb0, 0x49, 0x73, 0xbf, 0x0e, 0x51, 0x67, - 0xee, 0xe8, 0x3e, 0xbc, 0x9e, 0xb6, 0x75, 0x4d, 0xb8, 0x8c, 0xd4, 0x89, 0xcd, 0x5d, 0x07, 0x78, - 0x3b, 0xe1, 0xb5, 0xb1, 0xa9, 0x8e, 0x81, 0x3e, 0x03, 0x68, 0xfe, 0x41, 0x45, 0x5b, 0x7b, 0x5f, - 0xbe, 0x70, 0xef, 0x87, 0xe3, 0xde, 0xb6, 0xfe, 0x95, 0xff, 0x39, 0xe9, 0x2b, 0xdc, 0xda, 0x4e, - 0x3e, 0x3c, 0xbb, 0xc8, 0x53, 0x78, 0x5b, 0xf3, 0xa9, 0x68, 0xb9, 0xa4, 0xbc, 0xd0, 0x83, 0x24, - 0x33, 0xf7, 0x1c, 0xe0, 0xed, 0x87, 0x73, 0xa5, 0xbe, 0x18, 0xc5, 0x43, 0xad, 0xa1, 0xe7, 0xd0, - 0xfa, 0x57, 0x5a, 0x49, 0x68, 0x51, 0x4a, 0xf3, 0x8a, 0x5a, 0xf5, 0xce, 0xb9, 0xc0, 0x37, 0x4a, - 0x5e, 0xbe, 0x3e, 0x5e, 0x63, 0x70, 0xb2, 0xc6, 0xe0, 0xc7, 0x1a, 0x83, 0xa3, 0x0d, 0x36, 0x4e, - 0x36, 0xd8, 0xf8, 0xb6, 0xc1, 0xc6, 0x87, 0x83, 0x82, 0xca, 0xb2, 0x4d, 0xfc, 0x54, 0xb0, 0x40, - 0x3d, 0xcf, 0x47, 0x99, 0x60, 0x31, 0xe5, 0xba, 0x08, 0x3e, 0x4d, 0x8f, 0x5a, 0x76, 0x15, 0x69, - 0x92, 0x3d, 0x75, 0x92, 0x27, 0xbf, 0x02, 0x00, 0x00, 0xff, 0xff, 0x61, 0xc4, 0xf4, 0x73, 0xf1, - 0x02, 0x00, 0x00, +var fileDescriptor_eab2d4b918df5a32 = []byte{ + // 431 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x92, 0x3f, 0x6f, 0xd4, 0x30, + 0x18, 0xc6, 0x63, 0x5a, 0x4a, 0xcf, 0x80, 0x2a, 0xac, 0x02, 0x21, 0x12, 0x4e, 0x14, 0x96, 0x48, + 0x94, 0x44, 0x07, 0x4c, 0xb0, 0x1d, 0x7f, 0x04, 0x6b, 0xca, 0x80, 0x58, 0xa2, 0x5c, 0xe2, 0x24, + 0x96, 0xce, 0x76, 0x94, 0x38, 0x15, 0xd9, 0x98, 0x99, 0x3a, 0xf2, 0x91, 0x3a, 0x76, 0x64, 0x0a, + 0xe8, 0x6e, 0x63, 0xbc, 0x4f, 0x80, 0x62, 0x27, 0xc7, 0xc1, 0x81, 0xd8, 0xec, 0xf7, 0x79, 0xde, + 0xe7, 0xe7, 0xf7, 0x95, 0xa1, 0xc3, 0xda, 0x84, 0x2c, 0x02, 0x52, 0x8a, 0xa4, 0xa8, 0x83, 0xb3, + 0xa9, 0x3e, 0x45, 0x94, 0x67, 0xc2, 0x2f, 0x2b, 0x21, 0x05, 0x3a, 0x52, 0x0e, 0x5f, 0x3b, 0xfc, + 0xb3, 0xa9, 0x75, 0x9c, 0x8b, 0x5c, 0x28, 0x2d, 0xe8, 0x4f, 0xda, 0x66, 0xe1, 0x5c, 0x88, 0x7c, + 0x41, 0x02, 0x75, 0x9b, 0x37, 0x59, 0x90, 0x36, 0x55, 0x2c, 0xa9, 0xe0, 0x83, 0x6e, 0xff, 0xa9, + 0x4b, 0xca, 0x48, 0x2d, 0x63, 0x56, 0x6a, 0x83, 0xfb, 0x79, 0x1f, 0x4e, 0x5e, 0xf5, 0x90, 0xb7, + 0x3c, 0x13, 0x08, 0x43, 0x48, 0x53, 0xc2, 0x25, 0xcd, 0x28, 0xa9, 0x4c, 0xe0, 0x00, 0x6f, 0x12, + 0x6e, 0x55, 0xd0, 0x7b, 0x08, 0x6b, 0x19, 0x57, 0x32, 0xea, 0x63, 0xcc, 0x2b, 0x0e, 0xf0, 0xae, + 0x3f, 0xb6, 0x7c, 0xcd, 0xf0, 0x47, 0x86, 0xff, 0x6e, 0x64, 0xcc, 0xee, 0x5f, 0x74, 0xb6, 0xb1, + 0xee, 0xec, 0x5b, 0x6d, 0xcc, 0x16, 0xcf, 0xdc, 0x5f, 0xbd, 0xee, 0xf9, 0x37, 0x1b, 0x84, 0x13, + 0x55, 0xe8, 0xed, 0xa8, 0x80, 0x87, 0xe3, 0xd3, 0xcd, 0x3d, 0x95, 0x7b, 0x6f, 0x27, 0xf7, 0xe5, + 0x60, 0x98, 0x4d, 0xfb, 0xd8, 0x1f, 0x9d, 0x8d, 0xc6, 0x96, 0x13, 0xc1, 0xa8, 0x24, 0xac, 0x94, + 0xed, 0xba, 0xb3, 0x8f, 0x34, 0x6c, 0xd4, 0xdc, 0x2f, 0x3d, 0x6a, 0x93, 0x8e, 0x1e, 0xc0, 0x9b, + 0x49, 0x53, 0x55, 0x84, 0xcb, 0x48, 0x6d, 0xd7, 0xdc, 0x77, 0x80, 0xb7, 0x17, 0xde, 0x18, 0x8a, + 0x6a, 0x19, 0xe8, 0x13, 0x80, 0xe6, 0x6f, 0xae, 0x68, 0x6b, 0xee, 0xab, 0xff, 0x9d, 0xfb, 0xe1, + 0x30, 0xb7, 0xad, 0x9f, 0xf2, 0xaf, 0x24, 0xbd, 0x85, 0xdb, 0xdb, 0xe4, 0xd3, 0xcd, 0x46, 0x9e, + 0xc2, 0x3b, 0xda, 0x9f, 0x88, 0x86, 0x4b, 0xca, 0x73, 0xdd, 0x48, 0x52, 0xf3, 0xc0, 0x01, 0xde, + 0x61, 0x78, 0xac, 0xd4, 0x17, 0x83, 0x78, 0xaa, 0x35, 0xf4, 0x1c, 0x5a, 0x7f, 0xa3, 0x15, 0x84, + 0xe6, 0x85, 0x34, 0xaf, 0xa9, 0x51, 0xef, 0xee, 0x00, 0xdf, 0x28, 0x79, 0xf6, 0xfa, 0x62, 0x89, + 0xc1, 0xe5, 0x12, 0x83, 0xef, 0x4b, 0x0c, 0xce, 0x57, 0xd8, 0xb8, 0x5c, 0x61, 0xe3, 0xeb, 0x0a, + 0x1b, 0x1f, 0x4e, 0x72, 0x2a, 0x8b, 0x66, 0xee, 0x27, 0x82, 0x05, 0xea, 0x67, 0x3e, 0x4a, 0x05, + 0x8b, 0x29, 0xd7, 0x97, 0xe0, 0xe3, 0xf8, 0x95, 0x65, 0x5b, 0x92, 0x7a, 0x7e, 0xa0, 0x56, 0xf2, + 0xe4, 0x67, 0x00, 0x00, 0x00, 0xff, 0xff, 0x3a, 0xc7, 0x08, 0xae, 0xe7, 0x02, 0x00, 0x00, } func (m *EpochInfo) Marshal() (dAtA []byte, err error) { 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/genesis.pb.go b/x/epochs/types/genesis.pb.go index b0f9d27e..cc732b4d 100644 --- a/x/epochs/types/genesis.pb.go +++ b/x/epochs/types/genesis.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: mycel/epochs/v1beta1/genesis.proto +// source: mycel/epochs/v1/genesis.proto package types @@ -32,7 +32,7 @@ func (m *GenesisState) Reset() { *m = GenesisState{} } func (m *GenesisState) String() string { return proto.CompactTextString(m) } func (*GenesisState) ProtoMessage() {} func (*GenesisState) Descriptor() ([]byte, []int) { - return fileDescriptor_f39ef1445cd18fe5, []int{0} + return fileDescriptor_bd4f61365130f681, []int{0} } func (m *GenesisState) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -69,28 +69,26 @@ func (m *GenesisState) GetEpochs() []EpochInfo { } func init() { - proto.RegisterType((*GenesisState)(nil), "mycel.epochs.v1beta1.GenesisState") + proto.RegisterType((*GenesisState)(nil), "mycel.epochs.v1.GenesisState") } -func init() { - proto.RegisterFile("mycel/epochs/v1beta1/genesis.proto", fileDescriptor_f39ef1445cd18fe5) -} +func init() { proto.RegisterFile("mycel/epochs/v1/genesis.proto", fileDescriptor_bd4f61365130f681) } -var fileDescriptor_f39ef1445cd18fe5 = []byte{ - // 207 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0xca, 0xad, 0x4c, 0x4e, - 0xcd, 0xd1, 0x4f, 0x2d, 0xc8, 0x4f, 0xce, 0x28, 0xd6, 0x2f, 0x33, 0x4c, 0x4a, 0x2d, 0x49, 0x34, - 0xd4, 0x4f, 0x4f, 0xcd, 0x4b, 0x2d, 0xce, 0x2c, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, - 0x01, 0xab, 0xd1, 0x83, 0xa8, 0xd1, 0x83, 0xaa, 0x91, 0x12, 0x49, 0xcf, 0x4f, 0xcf, 0x07, 0x2b, - 0xd0, 0x07, 0xb1, 0x20, 0x6a, 0xa5, 0x54, 0xb1, 0x9a, 0x07, 0xe6, 0xc6, 0x67, 0xe6, 0xa5, 0x41, - 0x95, 0x29, 0xf9, 0x72, 0xf1, 0xb8, 0x43, 0xec, 0x08, 0x2e, 0x49, 0x2c, 0x49, 0x15, 0xb2, 0xe5, - 0x62, 0x83, 0x68, 0x91, 0x60, 0x54, 0x60, 0xd6, 0xe0, 0x36, 0x92, 0xd7, 0xc3, 0x66, 0xa7, 0x9e, - 0x2b, 0x88, 0xeb, 0x99, 0x97, 0x96, 0xef, 0xc4, 0x72, 0xe2, 0x9e, 0x3c, 0x43, 0x10, 0x54, 0x93, - 0x93, 0xdb, 0x89, 0x47, 0x72, 0x8c, 0x17, 0x1e, 0xc9, 0x31, 0x3e, 0x78, 0x24, 0xc7, 0x38, 0xe1, - 0xb1, 0x1c, 0xc3, 0x85, 0xc7, 0x72, 0x0c, 0x37, 0x1e, 0xcb, 0x31, 0x44, 0xe9, 0xa4, 0x67, 0x96, - 0x64, 0x94, 0x26, 0xe9, 0x25, 0xe7, 0xe7, 0xea, 0x83, 0x8d, 0xd4, 0x4d, 0xc9, 0xcf, 0x4d, 0xcc, - 0xcc, 0x83, 0x70, 0xf4, 0x2b, 0x60, 0x2e, 0x2d, 0xa9, 0x2c, 0x48, 0x2d, 0x4e, 0x62, 0x03, 0xbb, - 0xce, 0x18, 0x10, 0x00, 0x00, 0xff, 0xff, 0x2b, 0x74, 0xe7, 0x7b, 0x16, 0x01, 0x00, 0x00, +var fileDescriptor_bd4f61365130f681 = []byte{ + // 202 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, 0xd4, 0x4f, 0x4f, 0xcd, 0x4b, + 0x2d, 0xce, 0x2c, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x07, 0x4b, 0xeb, 0x41, 0xa4, + 0xf5, 0xca, 0x0c, 0xa5, 0x44, 0xd2, 0xf3, 0xd3, 0xf3, 0xc1, 0x72, 0xfa, 0x20, 0x16, 0x44, 0x99, + 0x94, 0x02, 0xba, 0x29, 0x60, 0x56, 0x7c, 0x66, 0x5e, 0x1a, 0x54, 0x85, 0x92, 0x07, 0x17, 0x8f, + 0x3b, 0xc4, 0xe4, 0xe0, 0x92, 0xc4, 0x92, 0x54, 0x21, 0x0b, 0x2e, 0x36, 0x88, 0x6a, 0x09, 0x46, + 0x05, 0x66, 0x0d, 0x6e, 0x23, 0x29, 0x3d, 0x34, 0x9b, 0xf4, 0x5c, 0x41, 0x2c, 0xcf, 0xbc, 0xb4, + 0x7c, 0x27, 0x96, 0x13, 0xf7, 0xe4, 0x19, 0x82, 0xa0, 0xea, 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, 0x6c, 0x9a, 0x6e, 0x4a, 0x7e, 0x6e, 0x62, 0x66, 0x1e, 0x84, 0xa3, 0x5f, 0x01, + 0x73, 0x5f, 0x49, 0x65, 0x41, 0x6a, 0x71, 0x12, 0x1b, 0xd8, 0x61, 0xc6, 0x80, 0x00, 0x00, 0x00, + 0xff, 0xff, 0xae, 0x24, 0x06, 0x04, 0x02, 0x01, 0x00, 0x00, } func (m *GenesisState) Marshal() (dAtA []byte, err error) { 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..8839488d 100644 --- a/x/epochs/types/query.pb.go +++ b/x/epochs/types/query.pb.go @@ -1,12 +1,11 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: mycel/epochs/v1beta1/query.proto +// source: mycel/epochs/v1/query.proto 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) { - return fileDescriptor_8f0c3cbfdf3661af, []int{0} +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_605784814c472255, []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) { - return fileDescriptor_8f0c3cbfdf3661af, []int{1} +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_605784814c472255, []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) { - return fileDescriptor_8f0c3cbfdf3661af, []int{2} +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_605784814c472255, []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) { - return fileDescriptor_8f0c3cbfdf3661af, []int{3} +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_605784814c472255, []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,60 @@ 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") -} - -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, + proto.RegisterType((*QueryEpochsInfoRequest)(nil), "mycel.epochs.v1.QueryEpochsInfoRequest") + proto.RegisterType((*QueryEpochsInfoResponse)(nil), "mycel.epochs.v1.QueryEpochsInfoResponse") + proto.RegisterType((*QueryCurrentEpochRequest)(nil), "mycel.epochs.v1.QueryCurrentEpochRequest") + proto.RegisterType((*QueryCurrentEpochResponse)(nil), "mycel.epochs.v1.QueryCurrentEpochResponse") +} + +func init() { proto.RegisterFile("mycel/epochs/v1/query.proto", fileDescriptor_605784814c472255) } + +var fileDescriptor_605784814c472255 = []byte{ + // 381 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x92, 0x41, 0x4b, 0xf3, 0x30, + 0x1c, 0xc6, 0x9b, 0xbd, 0xef, 0x3b, 0x58, 0x5e, 0x41, 0x08, 0xe2, 0xba, 0x2a, 0x59, 0xe9, 0x41, + 0xa7, 0x68, 0xcb, 0xe6, 0x45, 0xbc, 0x08, 0x13, 0x05, 0x8f, 0xce, 0x9b, 0x08, 0xa3, 0xeb, 0xb2, + 0x2e, 0xb0, 0x25, 0x5d, 0x93, 0x0e, 0x77, 0x13, 0xef, 0x82, 0xe0, 0xcd, 0x4f, 0xb4, 0xe3, 0xc0, + 0x8b, 0x27, 0x91, 0xcd, 0x0f, 0x22, 0x4b, 0x3b, 0x1d, 0x5b, 0xc1, 0xdd, 0xc2, 0xff, 0x79, 0x9e, + 0xdf, 0xff, 0x49, 0x5a, 0xb8, 0xd5, 0x1d, 0x78, 0xa4, 0xe3, 0x90, 0x80, 0x7b, 0x6d, 0xe1, 0xf4, + 0xcb, 0x4e, 0x2f, 0x22, 0xe1, 0xc0, 0x0e, 0x42, 0x2e, 0x39, 0x5a, 0x57, 0xa2, 0x1d, 0x8b, 0x76, + 0xbf, 0x6c, 0x6c, 0xf8, 0xdc, 0xe7, 0x4a, 0x73, 0xa6, 0xa7, 0xd8, 0x66, 0x6c, 0xfb, 0x9c, 0xfb, + 0x1d, 0xe2, 0xb8, 0x01, 0x75, 0x5c, 0xc6, 0xb8, 0x74, 0x25, 0xe5, 0x4c, 0x24, 0xaa, 0xb9, 0xb8, + 0x41, 0x9d, 0xea, 0x94, 0xb5, 0x92, 0xbc, 0xa5, 0xc3, 0xcd, 0xab, 0xe9, 0xd6, 0x73, 0x65, 0xb9, + 0x64, 0x2d, 0x5e, 0x23, 0xbd, 0x88, 0x08, 0x69, 0x5d, 0xc3, 0xfc, 0x92, 0x22, 0x02, 0xce, 0x04, + 0x41, 0xc7, 0x30, 0x1b, 0x23, 0x75, 0x60, 0xfe, 0x29, 0xfd, 0xaf, 0x18, 0xf6, 0x42, 0x59, 0x5b, + 0x85, 0xa6, 0x99, 0xea, 0xdf, 0xe1, 0x7b, 0x51, 0xab, 0x25, 0x7e, 0xeb, 0x04, 0xea, 0x0a, 0x7a, + 0x16, 0x85, 0x21, 0x61, 0x52, 0xd9, 0x92, 0x85, 0x08, 0x43, 0x48, 0x9b, 0x84, 0x49, 0xda, 0xa2, + 0x24, 0xd4, 0x81, 0x09, 0x4a, 0xb9, 0xda, 0xdc, 0xc4, 0xba, 0x85, 0x85, 0x94, 0x6c, 0x52, 0xe9, + 0x14, 0xc2, 0x9f, 0xbb, 0xa9, 0xf0, 0x2a, 0xb5, 0x72, 0x64, 0x36, 0xa8, 0xbc, 0x64, 0xe0, 0x3f, + 0x85, 0x47, 0xf7, 0x00, 0xc2, 0x6f, 0xa3, 0x40, 0xbb, 0x4b, 0x94, 0xf4, 0x07, 0x33, 0x4a, 0xbf, + 0x1b, 0xe3, 0xb2, 0x56, 0xf1, 0xe1, 0xf5, 0xf3, 0x39, 0x53, 0x40, 0x79, 0x27, 0xf5, 0xfb, 0x08, + 0xf4, 0x08, 0xe0, 0xda, 0xfc, 0x35, 0xd1, 0x5e, 0x3a, 0x3b, 0xe5, 0x19, 0x8d, 0xfd, 0x55, 0xac, + 0x49, 0x91, 0x1d, 0x55, 0xc4, 0x44, 0x78, 0xa9, 0x88, 0x17, 0xdb, 0xeb, 0x6a, 0x52, 0xbd, 0x18, + 0x8e, 0x31, 0x18, 0x8d, 0x31, 0xf8, 0x18, 0x63, 0xf0, 0x34, 0xc1, 0xda, 0x68, 0x82, 0xb5, 0xb7, + 0x09, 0xd6, 0x6e, 0x0e, 0x7c, 0x2a, 0xdb, 0x51, 0xc3, 0xf6, 0x78, 0x37, 0x66, 0x1c, 0x36, 0x79, + 0xd7, 0xa5, 0x2c, 0x01, 0xde, 0xcd, 0x90, 0x72, 0x10, 0x10, 0xd1, 0xc8, 0xaa, 0x9f, 0xee, 0xe8, + 0x2b, 0x00, 0x00, 0xff, 0xff, 0xe5, 0x08, 0x12, 0x92, 0xfa, 0x02, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -356,11 +246,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 +260,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.v1.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.v1.Query/CurrentEpoch", in, out, opts...) if err != nil { return nil, err } @@ -400,107 +280,81 @@ 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) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).Params(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/mycel.epochs.v1beta1.Query/Params", - } - 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: "/mycel.epochs.v1beta1.Query/EpochInfo", + FullMethod: "/mycel.epochs.v1.Query/EpochInfos", } 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: "/mycel.epochs.v1beta1.Query/EpochInfoAll", + FullMethod: "/mycel.epochs.v1.Query/CurrentEpoch", } 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) } var _Query_serviceDesc = grpc.ServiceDesc{ - ServiceName: "mycel.epochs.v1beta1.Query", + ServiceName: "mycel.epochs.v1.Query", 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", + Metadata: "mycel/epochs/v1/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 +364,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 +377,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 +387,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 +424,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 +444,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 +454,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 +477,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 +488,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 +497,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 +525,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 +536,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 +565,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 +592,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 +615,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 +650,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 +676,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 +699,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 +758,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 +781,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 +841,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..748b1895 100644 --- a/x/epochs/types/query.pb.gw.go +++ b/x/epochs/types/query.pb.gw.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-grpc-gateway. DO NOT EDIT. -// source: mycel/epochs/v1beta1/query.proto +// source: mycel/epochs/v1/query.proto /* Package types is a reverse proxy. @@ -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", "v1"}, "", 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", "v1", "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..f582f1f2 100644 --- a/x/epochs/types/tx.pb.go +++ b/x/epochs/types/tx.pb.go @@ -1,11 +1,15 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: mycel/epochs/v1beta1/tx.proto +// source: mycel/epochs/v1/tx.proto 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" @@ -23,19 +27,22 @@ var _ = math.Inf // proto package needs to be updated. const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package -func init() { proto.RegisterFile("mycel/epochs/v1beta1/tx.proto", fileDescriptor_4797237f7b5a9350) } +func init() { proto.RegisterFile("mycel/epochs/v1/tx.proto", fileDescriptor_56b8aa43db691e30) } -var fileDescriptor_4797237f7b5a9350 = []byte{ - // 137 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, +var fileDescriptor_56b8aa43db691e30 = []byte{ + // 191 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0xc8, 0xad, 0x4c, 0x4e, + 0xcd, 0xd1, 0x4f, 0x2d, 0xc8, 0x4f, 0xce, 0x28, 0xd6, 0x2f, 0x33, 0xd4, 0x2f, 0xa9, 0xd0, 0x2b, + 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x07, 0xcb, 0xe8, 0x41, 0x64, 0xf4, 0xca, 0x0c, 0xa5, 0x04, + 0x13, 0x73, 0x33, 0xf3, 0xf2, 0xf5, 0xc1, 0x24, 0x44, 0x8d, 0x94, 0x78, 0x72, 0x7e, 0x71, 0x6e, + 0x7e, 0xb1, 0x7e, 0x6e, 0x71, 0x3a, 0x48, 0x6f, 0x6e, 0x71, 0x3a, 0x54, 0x42, 0x12, 0x22, 0x11, + 0x0f, 0xe6, 0xe9, 0x43, 0x38, 0x50, 0x29, 0x91, 0xf4, 0xfc, 0xf4, 0x7c, 0x88, 0x38, 0x88, 0x05, + 0x11, 0x35, 0xe2, 0xe1, 0x62, 0xf6, 0x2d, 0x4e, 0x97, 0x62, 0x6d, 0x78, 0xbe, 0x41, 0x8b, 0xd1, + 0xc9, 0xed, 0xc4, 0x23, 0x39, 0xc6, 0x0b, 0x8f, 0xe4, 0x18, 0x1f, 0x3c, 0x92, 0x63, 0x9c, 0xf0, + 0x58, 0x8e, 0xe1, 0xc2, 0x63, 0x39, 0x86, 0x1b, 0x8f, 0xe5, 0x18, 0xa2, 0x74, 0xd2, 0x33, 0x4b, + 0x32, 0x4a, 0x93, 0xf4, 0x92, 0xf3, 0x73, 0xf5, 0xc1, 0x0e, 0xd4, 0x4d, 0xc9, 0xcf, 0x4d, 0xcc, + 0xcc, 0x83, 0x70, 0xf4, 0x2b, 0x60, 0x3e, 0x29, 0xa9, 0x2c, 0x48, 0x2d, 0x4e, 0x62, 0x03, 0x1b, + 0x6e, 0x0c, 0x08, 0x00, 0x00, 0xff, 0xff, 0x8c, 0x6f, 0x28, 0x40, 0xe6, 0x00, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -73,9 +80,9 @@ func RegisterMsgServer(s grpc1.Server, srv MsgServer) { } var _Msg_serviceDesc = grpc.ServiceDesc{ - ServiceName: "mycel.epochs.v1beta1.Msg", + ServiceName: "mycel.epochs.v1.Msg", HandlerType: (*MsgServer)(nil), Methods: []grpc.MethodDesc{}, Streams: []grpc.StreamDesc{}, - Metadata: "mycel/epochs/v1beta1/tx.proto", + Metadata: "mycel/epochs/v1/tx.proto", } diff --git a/x/furnace/client/cli/query.go b/x/furnace/client/cli/query.go deleted file mode 100644 index 280e5faa..00000000 --- a/x/furnace/client/cli/query.go +++ /dev/null @@ -1,31 +0,0 @@ -package cli - -import ( - "fmt" - - "github.com/spf13/cobra" - - "github.com/cosmos/cosmos-sdk/client" - - "github.com/mycel-domain/mycel/x/furnace/types" -) - -// GetQueryCmd returns the cli query commands for this module -func GetQueryCmd(queryRoute string) *cobra.Command { - // Group furnace 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(CmdShowEpochBurnConfig()) - cmd.AddCommand(CmdListBurnAmount()) - cmd.AddCommand(CmdShowBurnAmount()) - // this line is used by starport scaffolding # 1 - - return cmd -} diff --git a/x/furnace/client/cli/query_burn_amount.go b/x/furnace/client/cli/query_burn_amount.go deleted file mode 100644 index b0755568..00000000 --- a/x/furnace/client/cli/query_burn_amount.go +++ /dev/null @@ -1,83 +0,0 @@ -package cli - -import ( - "github.com/spf13/cast" - "github.com/spf13/cobra" - - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/client/flags" - - "github.com/mycel-domain/mycel/x/furnace/types" -) - -func CmdListBurnAmount() *cobra.Command { - cmd := &cobra.Command{ - Use: "list-burn-amount", - Short: "list all burnAmount", - RunE: func(cmd *cobra.Command, args []string) error { - clientCtx, err := client.GetClientQueryContext(cmd) - if err != nil { - return err - } - - pageReq, err := client.ReadPageRequest(cmd.Flags()) - if err != nil { - return err - } - - queryClient := types.NewQueryClient(clientCtx) - - params := &types.QueryAllBurnAmountRequest{ - Pagination: pageReq, - } - - res, err := queryClient.BurnAmountAll(cmd.Context(), params) - if err != nil { - return err - } - - return clientCtx.PrintProto(res) - }, - } - - flags.AddPaginationFlagsToCmd(cmd, cmd.Use) - flags.AddQueryFlagsToCmd(cmd) - - return cmd -} - -func CmdShowBurnAmount() *cobra.Command { - cmd := &cobra.Command{ - Use: "show-burn-amount [index]", - Short: "shows a burnAmount", - Args: cobra.ExactArgs(1), - RunE: func(cmd *cobra.Command, args []string) (err error) { - clientCtx, err := client.GetClientQueryContext(cmd) - if err != nil { - return err - } - - queryClient := types.NewQueryClient(clientCtx) - - argIndex, err := cast.ToUint64E(args[0]) - if err != nil { - return err - } - - params := &types.QueryGetBurnAmountRequest{ - Index: argIndex, - } - - res, err := queryClient.BurnAmount(cmd.Context(), params) - if err != nil { - return err - } - - return clientCtx.PrintProto(res) - }, - } - - flags.AddQueryFlagsToCmd(cmd) - - return cmd -} diff --git a/x/furnace/client/cli/query_burn_amount_test.go b/x/furnace/client/cli/query_burn_amount_test.go deleted file mode 100644 index 3f59fa53..00000000 --- a/x/furnace/client/cli/query_burn_amount_test.go +++ /dev/null @@ -1,163 +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/furnace/client/cli" - "github.com/mycel-domain/mycel/x/furnace/types" -) - -// Prevent strconv unused error -var _ = strconv.IntSize - -func networkWithBurnAmountObjects(t *testing.T, n int) (*network.Network, []types.BurnAmount) { - t.Helper() - cfg := network.DefaultConfig() - state := types.GenesisState{} - for i := 0; i < n; i++ { - burnAmount := types.BurnAmount{ - Index: uint64(i), - } - nullify.Fill(&burnAmount) - state.BurnAmounts = append(state.BurnAmounts, burnAmount) - } - buf, err := cfg.Codec.MarshalJSON(&state) - require.NoError(t, err) - cfg.GenesisState[types.ModuleName] = buf - return network.New(t, cfg), state.BurnAmounts -} - -func TestShowBurnAmount(t *testing.T) { - net, objs := networkWithBurnAmountObjects(t, 2) - - ctx := net.Validators[0].ClientCtx - common := []string{ - fmt.Sprintf("--%s=json", tmcli.OutputFlag), - } - tests := []struct { - desc string - idIndex uint64 - - args []string - err error - obj types.BurnAmount - }{ - { - desc: "found", - idIndex: objs[0].Index, - - args: common, - obj: objs[0], - }, - { - desc: "not found", - idIndex: 100000, - - args: common, - err: status.Error(codes.NotFound, "not found"), - }, - } - for i := range tests { - tc := tests[i] - t.Run(tc.desc, func(t *testing.T) { - args := []string{ - strconv.Itoa(int(tc.idIndex)), - } - args = append(args, tc.args...) - out, err := clitestutil.ExecTestCLICmd(ctx, cli.CmdShowBurnAmount(), 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.QueryGetBurnAmountResponse - require.NoError(t, net.Config.Codec.UnmarshalJSON(out.Bytes(), &resp)) - require.NotNil(t, resp.BurnAmount) - require.Equal(t, - nullify.Fill(&tc.obj), - nullify.Fill(&resp.BurnAmount), - ) - } - }) - } -} - -func TestListBurnAmount(t *testing.T) { - net, objs := networkWithBurnAmountObjects(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.CmdListBurnAmount(), args) - require.NoError(t, err) - var resp types.QueryAllBurnAmountResponse - require.NoError(t, net.Config.Codec.UnmarshalJSON(out.Bytes(), &resp)) - require.LessOrEqual(t, len(resp.BurnAmount), step) - require.Subset(t, - nullify.Fill(objs), - nullify.Fill(resp.BurnAmount), - ) - } - }) - 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.CmdListBurnAmount(), args) - require.NoError(t, err) - var resp types.QueryAllBurnAmountResponse - require.NoError(t, net.Config.Codec.UnmarshalJSON(out.Bytes(), &resp)) - require.LessOrEqual(t, len(resp.BurnAmount), step) - require.Subset(t, - nullify.Fill(objs), - nullify.Fill(resp.BurnAmount), - ) - 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.CmdListBurnAmount(), args) - require.NoError(t, err) - var resp types.QueryAllBurnAmountResponse - require.NoError(t, net.Config.Codec.UnmarshalJSON(out.Bytes(), &resp)) - require.NoError(t, err) - require.Equal(t, len(objs), int(resp.Pagination.Total)) - require.ElementsMatch(t, - nullify.Fill(objs), - nullify.Fill(resp.BurnAmount), - ) - }) -} diff --git a/x/furnace/client/cli/query_epoch_burn_config.go b/x/furnace/client/cli/query_epoch_burn_config.go deleted file mode 100644 index 4d3eb764..00000000 --- a/x/furnace/client/cli/query_epoch_burn_config.go +++ /dev/null @@ -1,39 +0,0 @@ -package cli - -import ( - "github.com/spf13/cobra" - - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/client/flags" - - "github.com/mycel-domain/mycel/x/furnace/types" -) - -func CmdShowEpochBurnConfig() *cobra.Command { - cmd := &cobra.Command{ - Use: "show-epoch-burn-config", - Short: "shows epochBurnConfig", - Args: cobra.NoArgs, - RunE: func(cmd *cobra.Command, args []string) error { - clientCtx, err := client.GetClientQueryContext(cmd) - if err != nil { - return err - } - - queryClient := types.NewQueryClient(clientCtx) - - params := &types.QueryGetEpochBurnConfigRequest{} - - res, err := queryClient.EpochBurnConfig(cmd.Context(), params) - if err != nil { - return err - } - - return clientCtx.PrintProto(res) - }, - } - - flags.AddQueryFlagsToCmd(cmd) - - return cmd -} diff --git a/x/furnace/client/cli/query_epoch_burn_config_test.go b/x/furnace/client/cli/query_epoch_burn_config_test.go deleted file mode 100644 index 7ebfda45..00000000 --- a/x/furnace/client/cli/query_epoch_burn_config_test.go +++ /dev/null @@ -1,69 +0,0 @@ -package cli_test - -import ( - "fmt" - "testing" - - "github.com/stretchr/testify/require" - "google.golang.org/grpc/status" - - tmcli "github.com/cometbft/cometbft/libs/cli" - - 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/furnace/client/cli" - "github.com/mycel-domain/mycel/x/furnace/types" -) - -func networkWithEpochBurnConfigObjects(t *testing.T) (*network.Network, types.EpochBurnConfig) { - t.Helper() - cfg := network.DefaultConfig() - state := types.GenesisState{} - epochBurnConfig := &types.EpochBurnConfig{} - nullify.Fill(&epochBurnConfig) - state.EpochBurnConfig = *epochBurnConfig - buf, err := cfg.Codec.MarshalJSON(&state) - require.NoError(t, err) - cfg.GenesisState[types.ModuleName] = buf - return network.New(t, cfg), state.EpochBurnConfig -} - -func TestShowEpochBurnConfig(t *testing.T) { - net, obj := networkWithEpochBurnConfigObjects(t) - - ctx := net.Validators[0].ClientCtx - common := []string{ - fmt.Sprintf("--%s=json", tmcli.OutputFlag), - } - tests := []struct { - desc string - args []string - err error - obj types.EpochBurnConfig - }{ - { - desc: "get", - args: common, - obj: obj, - }, - } - for _, tc := range tests { - t.Run(tc.desc, func(t *testing.T) { - var args []string - args = append(args, tc.args...) - out, err := clitestutil.ExecTestCLICmd(ctx, cli.CmdShowEpochBurnConfig(), 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.QueryGetEpochBurnConfigResponse - require.NoError(t, net.Config.Codec.UnmarshalJSON(out.Bytes(), &resp)) - require.NotNil(t, resp.EpochBurnConfig) - } - }) - } -} diff --git a/x/furnace/client/cli/query_params.go b/x/furnace/client/cli/query_params.go deleted file mode 100644 index f862d25e..00000000 --- a/x/furnace/client/cli/query_params.go +++ /dev/null @@ -1,37 +0,0 @@ -package cli - -import ( - "github.com/spf13/cobra" - - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/client/flags" - - "github.com/mycel-domain/mycel/x/furnace/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, err := client.GetClientQueryContext(cmd) - if err != nil { - return err - } - - queryClient := types.NewQueryClient(clientCtx) - - res, err := queryClient.Params(cmd.Context(), &types.QueryParamsRequest{}) - if err != nil { - return err - } - - return clientCtx.PrintProto(res) - }, - } - - flags.AddQueryFlagsToCmd(cmd) - - return cmd -} diff --git a/x/furnace/client/cli/tx.go b/x/furnace/client/cli/tx.go deleted file mode 100644 index 8c2a0d84..00000000 --- a/x/furnace/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/furnace/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/furnace/keeper/burn_amount.go b/x/furnace/keeper/burn_amount.go index 114d35a9..3289c48b 100644 --- a/x/furnace/keeper/burn_amount.go +++ b/x/furnace/keeper/burn_amount.go @@ -1,10 +1,13 @@ package keeper import ( + "context" + errorsmod "cosmossdk.io/errors" "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/app/params" @@ -12,8 +15,9 @@ import ( ) // SetBurnAmount set a specific burnAmount in the store from its index -func (k Keeper) SetBurnAmount(ctx sdk.Context, burnAmount types.BurnAmount) { - store := prefix.NewStore(ctx.KVStore(k.storeKey), types.KeyPrefix(types.BurnAmountKeyPrefix)) +func (k Keeper) SetBurnAmount(goCtx context.Context, burnAmount types.BurnAmount) { + storeAdapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(goCtx)) + store := prefix.NewStore(storeAdapter, types.KeyPrefix(types.BurnAmountKeyPrefix)) b := k.cdc.MustMarshal(&burnAmount) store.Set(types.BurnAmountKey( burnAmount.Index, @@ -22,10 +26,11 @@ func (k Keeper) SetBurnAmount(ctx sdk.Context, burnAmount types.BurnAmount) { // GetBurnAmount returns a burnAmount from its index func (k Keeper) GetBurnAmount( - ctx sdk.Context, + goCtx context.Context, index uint64, ) (val types.BurnAmount, found bool) { - store := prefix.NewStore(ctx.KVStore(k.storeKey), types.KeyPrefix(types.BurnAmountKeyPrefix)) + storeAdapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(goCtx)) + store := prefix.NewStore(storeAdapter, types.KeyPrefix(types.BurnAmountKeyPrefix)) b := store.Get(types.BurnAmountKey( index, @@ -40,18 +45,21 @@ func (k Keeper) GetBurnAmount( // RemoveBurnAmount removes a burnAmount from the store func (k Keeper) RemoveBurnAmount( - ctx sdk.Context, + goCtx context.Context, index uint64, ) { - store := prefix.NewStore(ctx.KVStore(k.storeKey), types.KeyPrefix(types.BurnAmountKeyPrefix)) + storeAdapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(goCtx)) + store := prefix.NewStore(storeAdapter, types.KeyPrefix(types.BurnAmountKeyPrefix)) + store.Delete(types.BurnAmountKey( index, )) } // GetAllBurnAmount returns all burnAmount -func (k Keeper) GetAllBurnAmount(ctx sdk.Context) (list []types.BurnAmount) { - store := prefix.NewStore(ctx.KVStore(k.storeKey), types.KeyPrefix(types.BurnAmountKeyPrefix)) +func (k Keeper) GetAllBurnAmount(goCtx context.Context) (list []types.BurnAmount) { + storeAdapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(goCtx)) + store := prefix.NewStore(storeAdapter, types.KeyPrefix(types.BurnAmountKeyPrefix)) iterator := storetypes.KVStorePrefixIterator(store, []byte{}) defer iterator.Close() @@ -61,52 +69,51 @@ func (k Keeper) GetAllBurnAmount(ctx sdk.Context) (list []types.BurnAmount) { k.cdc.MustUnmarshal(iterator.Value(), &val) list = append(list, val) } - return } // Create a next burnAmount -func (k Keeper) NewBurnAmount(ctx sdk.Context, config types.EpochBurnConfig, index uint64) (burnAmount types.BurnAmount) { +func (k Keeper) NewBurnAmount(goCtx context.Context, config types.EpochBurnConfig, index uint64) (burnAmount types.BurnAmount) { // Create burn amount burnAmount = types.NewBurnAmount(config, index) - k.SetBurnAmount(ctx, burnAmount) + k.SetBurnAmount(goCtx, burnAmount) // Emit event - EmitBurnAmountCreatedEvent(ctx, &burnAmount) + EmitBurnAmountCreatedEvent(goCtx, &burnAmount) return burnAmount } // Add to total burn BurnAmount -func (k Keeper) AddToTotalBurnAmount(ctx sdk.Context, index uint64, amount sdk.Coin) (newBurnAmount types.BurnAmount) { +func (k Keeper) AddToTotalBurnAmount(goCtx context.Context, index uint64, amount sdk.Coin) (newBurnAmount types.BurnAmount) { // Get burn amount - burnAmount, found := k.GetBurnAmount(ctx, index) + burnAmount, found := k.GetBurnAmount(goCtx, index) if !found { panic("burn amount not found") } // Update burn amount burnAmount.TotalBurnAmount = burnAmount.TotalBurnAmount.Add(amount) - k.SetBurnAmount(ctx, burnAmount) + k.SetBurnAmount(goCtx, burnAmount) return burnAmount } // Add registration fee to burnAmounts -func (k Keeper) AddRegistrationFeeToBurnAmounts(ctx sdk.Context, registrationPeriodInYear uint64, amount sdk.Coin) (burnAmounts []types.BurnAmount, err error) { +func (k Keeper) AddRegistrationFeeToBurnAmounts(goCtx context.Context, registrationPeriodInYear uint64, amount sdk.Coin) (burnAmounts []types.BurnAmount, err error) { // Check registrationPeriodInYear if registrationPeriodInYear == 0 { return nil, errorsmod.Wrapf(types.ErrInvalidRegistrationPeriod, "%d", registrationPeriodInYear) } - epochBurnConfig, found := k.GetEpochBurnConfig(ctx) + epochBurnConfig, found := k.GetEpochBurnConfig(goCtx) if !found { panic("epoch burn config not found") } remainDays := registrationPeriodInYear * params.OneYearInDays for i := epochBurnConfig.CurrentBurnAmountIndex + 1; remainDays > 0; i++ { - burnAmount, found := k.GetBurnAmount(ctx, i) + burnAmount, found := k.GetBurnAmount(goCtx, i) // Create new burn amount if not found if !found { - burnAmount = k.NewBurnAmount(ctx, epochBurnConfig, i) + burnAmount = k.NewBurnAmount(goCtx, epochBurnConfig, i) } burnAmounts = append(burnAmounts, burnAmount) @@ -129,7 +136,7 @@ func (k Keeper) AddRegistrationFeeToBurnAmounts(ctx sdk.Context, registrationPer amount = sdk.NewCoin(amount.Denom, quotient) } burnAmounts[i].TotalBurnAmount = amount - k.AddToTotalBurnAmount(ctx, burnAmount.Index, amount) + k.AddToTotalBurnAmount(goCtx, burnAmount.Index, amount) } return burnAmounts, err } diff --git a/x/furnace/keeper/burn_amount_test.go b/x/furnace/keeper/burn_amount_test.go index a7a1d264..f7dba1a9 100644 --- a/x/furnace/keeper/burn_amount_test.go +++ b/x/furnace/keeper/burn_amount_test.go @@ -1,6 +1,7 @@ package keeper_test import ( + "context" "fmt" "strconv" "testing" @@ -21,7 +22,7 @@ import ( // Prevent strconv unused error var _ = strconv.IntSize -func createNBurnAmount(keeper *keeper.Keeper, ctx sdk.Context, n int) []types.BurnAmount { +func createNBurnAmount(keeper *keeper.Keeper, ctx context.Context, n int) []types.BurnAmount { items := make([]types.BurnAmount, n) for i := range items { items[i].Index = uint64(i) diff --git a/x/furnace/keeper/epoch_burn_config.go b/x/furnace/keeper/epoch_burn_config.go index ba19d392..75b9acad 100644 --- a/x/furnace/keeper/epoch_burn_config.go +++ b/x/furnace/keeper/epoch_burn_config.go @@ -1,23 +1,28 @@ package keeper import ( + "context" + "cosmossdk.io/store/prefix" - sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/cosmos/cosmos-sdk/runtime" "github.com/mycel-domain/mycel/x/furnace/types" ) // SetEpochBurnConfig set epochBurnConfig in the store -func (k Keeper) SetEpochBurnConfig(ctx sdk.Context, epochBurnConfig types.EpochBurnConfig) { - store := prefix.NewStore(ctx.KVStore(k.storeKey), types.KeyPrefix(types.EpochBurnConfigKey)) +func (k Keeper) SetEpochBurnConfig(goCtx context.Context, epochBurnConfig types.EpochBurnConfig) { + storeAdapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(goCtx)) + store := prefix.NewStore(storeAdapter, types.KeyPrefix(types.BurnAmountKeyPrefix)) + b := k.cdc.MustMarshal(&epochBurnConfig) store.Set([]byte{0}, b) } // GetEpochBurnConfig returns epochBurnConfig -func (k Keeper) GetEpochBurnConfig(ctx sdk.Context) (val types.EpochBurnConfig, found bool) { - store := prefix.NewStore(ctx.KVStore(k.storeKey), types.KeyPrefix(types.EpochBurnConfigKey)) +func (k Keeper) GetEpochBurnConfig(goCtx context.Context) (val types.EpochBurnConfig, found bool) { + storeAdapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(goCtx)) + store := prefix.NewStore(storeAdapter, types.KeyPrefix(types.BurnAmountKeyPrefix)) b := store.Get([]byte{0}) if b == nil { @@ -29,7 +34,9 @@ func (k Keeper) GetEpochBurnConfig(ctx sdk.Context) (val types.EpochBurnConfig, } // RemoveEpochBurnConfig removes epochBurnConfig from the store -func (k Keeper) RemoveEpochBurnConfig(ctx sdk.Context) { - store := prefix.NewStore(ctx.KVStore(k.storeKey), types.KeyPrefix(types.EpochBurnConfigKey)) +func (k Keeper) RemoveEpochBurnConfig(goCtx context.Context) { + storeAdapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(goCtx)) + store := prefix.NewStore(storeAdapter, types.KeyPrefix(types.BurnAmountKeyPrefix)) + store.Delete([]byte{0}) } diff --git a/x/furnace/keeper/epoch_burn_config_test.go b/x/furnace/keeper/epoch_burn_config_test.go index dc9ed518..6627c111 100644 --- a/x/furnace/keeper/epoch_burn_config_test.go +++ b/x/furnace/keeper/epoch_burn_config_test.go @@ -1,19 +1,18 @@ package keeper_test import ( + "context" "testing" "github.com/stretchr/testify/require" - sdk "github.com/cosmos/cosmos-sdk/types" - keepertest "github.com/mycel-domain/mycel/testutil/keeper" "github.com/mycel-domain/mycel/testutil/nullify" "github.com/mycel-domain/mycel/x/furnace/keeper" "github.com/mycel-domain/mycel/x/furnace/types" ) -func createTestEpochBurnConfig(keeper *keeper.Keeper, ctx sdk.Context) types.EpochBurnConfig { //nolint:unparam +func createTestEpochBurnConfig(keeper *keeper.Keeper, ctx context.Context) types.EpochBurnConfig { //nolint:unparam item := types.EpochBurnConfig{} keeper.SetEpochBurnConfig(ctx, item) return item diff --git a/x/furnace/keeper/events.go b/x/furnace/keeper/events.go index 9b4d4e14..7fda66bc 100644 --- a/x/furnace/keeper/events.go +++ b/x/furnace/keeper/events.go @@ -1,6 +1,8 @@ package keeper import ( + "context" + "cosmossdk.io/math" sdk "github.com/cosmos/cosmos-sdk/types" @@ -8,7 +10,8 @@ import ( "github.com/mycel-domain/mycel/x/furnace/types" ) -func EmitEpochBurnEvent(ctx sdk.Context, epochIdentifier string, epochNumber int64, burnAmount *types.BurnAmount, burnt sdk.Coin) { +func EmitEpochBurnEvent(goCtx context.Context, epochIdentifier string, epochNumber int64, burnAmount *types.BurnAmount, burnt sdk.Coin) { + ctx := sdk.UnwrapSDKContext(goCtx) ctx.EventManager().EmitEvent( sdk.NewEvent( types.EventTypeEpochBurn, @@ -24,7 +27,8 @@ func EmitEpochBurnEvent(ctx sdk.Context, epochIdentifier string, epochNumber int ) } -func EmitBurnAmountCreatedEvent(ctx sdk.Context, burnAmount *types.BurnAmount) { +func EmitBurnAmountCreatedEvent(goCtx context.Context, burnAmount *types.BurnAmount) { + ctx := sdk.UnwrapSDKContext(goCtx) ctx.EventManager().EmitEvent( sdk.NewEvent( types.EventTypeBurnAmountCreated, diff --git a/x/furnace/keeper/keeper.go b/x/furnace/keeper/keeper.go index 8818bc00..271b37ee 100644 --- a/x/furnace/keeper/keeper.go +++ b/x/furnace/keeper/keeper.go @@ -3,22 +3,21 @@ 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/furnace/types" ) type ( Keeper struct { - cdc codec.BinaryCodec - storeKey storetypes.StoreKey - memKey storetypes.StoreKey - paramstore paramtypes.Subspace + cdc codec.BinaryCodec + storeService store.KVStoreService + logger log.Logger + authority string bankKeeper types.BankKeeper epochsKeeper types.EpochsKeeper @@ -27,29 +26,30 @@ type ( func NewKeeper( cdc codec.BinaryCodec, - storeKey, - memKey storetypes.StoreKey, - ps paramtypes.Subspace, + storeService store.KVStoreService, + logger log.Logger, + authority string, bankKeeper types.BankKeeper, epochsKeeper types.EpochsKeeper, ) *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, - - bankKeeper: bankKeeper, - epochsKeeper: epochsKeeper, + cdc: cdc, + storeService: storeService, + authority: authority, + logger: logger, } } 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/furnace/keeper/params.go b/x/furnace/keeper/params.go index b3e5bc90..4a28bbe4 100644 --- a/x/furnace/keeper/params.go +++ b/x/furnace/keeper/params.go @@ -1,17 +1,33 @@ package keeper import ( - sdk "github.com/cosmos/cosmos-sdk/types" + "context" + + "github.com/cosmos/cosmos-sdk/runtime" "github.com/mycel-domain/mycel/x/furnace/types" ) // GetParams get all parameters as types.Params -func (k Keeper) GetParams(ctx sdk.Context) types.Params { - return types.NewParams() +func (k Keeper) GetParams(ctx context.Context) (params types.Params) { + store := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) + bz := store.Get(types.ParamsKey) + if bz == nil { + return params + } + + k.cdc.MustUnmarshal(bz, ¶ms) + return params } // SetParams set the params -func (k Keeper) SetParams(ctx sdk.Context, params types.Params) { - k.paramstore.SetParamSet(ctx, ¶ms) +func (k Keeper) SetParams(ctx context.Context, params types.Params) error { + store := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) + bz, err := k.cdc.Marshal(¶ms) + if err != nil { + return err + } + store.Set(types.ParamsKey, bz) + + return nil } diff --git a/x/furnace/keeper/query_burn_amount.go b/x/furnace/keeper/query_burn_amount.go index 3766dc05..ef688165 100644 --- a/x/furnace/keeper/query_burn_amount.go +++ b/x/furnace/keeper/query_burn_amount.go @@ -8,21 +8,20 @@ import ( "cosmossdk.io/store/prefix" - sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/cosmos/cosmos-sdk/runtime" "github.com/cosmos/cosmos-sdk/types/query" "github.com/mycel-domain/mycel/x/furnace/types" ) -func (k Keeper) BurnAmountAll(goCtx context.Context, req *types.QueryAllBurnAmountRequest) (*types.QueryAllBurnAmountResponse, error) { +func (k Keeper) BurnAmountAll(ctx context.Context, req *types.QueryAllBurnAmountRequest) (*types.QueryAllBurnAmountResponse, error) { if req == nil { return nil, status.Error(codes.InvalidArgument, "invalid request") } var burnAmounts []types.BurnAmount - ctx := sdk.UnwrapSDKContext(goCtx) - store := ctx.KVStore(k.storeKey) + store := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) burnAmountStore := prefix.NewStore(store, types.KeyPrefix(types.BurnAmountKeyPrefix)) pageRes, err := query.Paginate(burnAmountStore, req.Pagination, func(key []byte, value []byte) error { @@ -41,11 +40,10 @@ func (k Keeper) BurnAmountAll(goCtx context.Context, req *types.QueryAllBurnAmou return &types.QueryAllBurnAmountResponse{BurnAmount: burnAmounts, Pagination: pageRes}, nil } -func (k Keeper) BurnAmount(goCtx context.Context, req *types.QueryGetBurnAmountRequest) (*types.QueryGetBurnAmountResponse, error) { +func (k Keeper) BurnAmount(ctx context.Context, req *types.QueryGetBurnAmountRequest) (*types.QueryGetBurnAmountResponse, error) { if req == nil { return nil, status.Error(codes.InvalidArgument, "invalid request") } - ctx := sdk.UnwrapSDKContext(goCtx) val, found := k.GetBurnAmount( ctx, diff --git a/x/furnace/keeper/query_epoch_burn_config.go b/x/furnace/keeper/query_epoch_burn_config.go index dfdb35f8..fdbcf897 100644 --- a/x/furnace/keeper/query_epoch_burn_config.go +++ b/x/furnace/keeper/query_epoch_burn_config.go @@ -6,16 +6,13 @@ import ( "google.golang.org/grpc/codes" "google.golang.org/grpc/status" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/mycel-domain/mycel/x/furnace/types" ) -func (k Keeper) EpochBurnConfig(goCtx context.Context, req *types.QueryGetEpochBurnConfigRequest) (*types.QueryGetEpochBurnConfigResponse, error) { +func (k Keeper) EpochBurnConfig(ctx context.Context, req *types.QueryGetEpochBurnConfigRequest) (*types.QueryGetEpochBurnConfigResponse, error) { if req == nil { return nil, status.Error(codes.InvalidArgument, "invalid request") } - ctx := sdk.UnwrapSDKContext(goCtx) val, found := k.GetEpochBurnConfig(ctx) if !found { diff --git a/x/furnace/keeper/setup_test.go b/x/furnace/keeper/setup_test.go index a36dfbf2..9d98358d 100644 --- a/x/furnace/keeper/setup_test.go +++ b/x/furnace/keeper/setup_test.go @@ -35,7 +35,7 @@ func (suite *KeeperTestSuite) SetupTest() { suite.app = app suite.ctx = ctx - queryHelper := baseapp.NewQueryServerTestHelper(suite.ctx, suite.app.InterfaceRegistry()) + queryHelper := baseapp.NewQueryServerTestHelper(suite.ctx, suite.app.AppCodec().InterfaceRegistry()) types.RegisterQueryServer(queryHelper, suite.app.EpochsKeeper) suite.queryClient = types.NewQueryClient(queryHelper) } diff --git a/x/furnace/module/autocli.go b/x/furnace/module/autocli.go new file mode 100644 index 00000000..7e6c3b13 --- /dev/null +++ b/x/furnace/module/autocli.go @@ -0,0 +1,47 @@ +package furnace + +import ( + autocliv1 "cosmossdk.io/api/cosmos/autocli/v1" + + modulev1 "github.com/mycel-domain/mycel/api/mycel/furnace/v1" +) + +// AutoCLIOptions implements the autocli.HasAutoCLIConfig interface. +func (am AppModule) AutoCLIOptions() *autocliv1.ModuleOptions { + return &autocliv1.ModuleOptions{ + Query: &autocliv1.ServiceCommandDescriptor{ + Service: modulev1.Query_ServiceDesc.ServiceName, + RpcCommandOptions: []*autocliv1.RpcCommandOptions{ + { + RpcMethod: "Params", + Use: "params", + Short: "Shows the parameters of the module", + }, + { + RpcMethod: "BurnAmountAll", + Use: "burn-amounts", + Short: "Shows the burn amounts", + }, + { + RpcMethod: "BurnAmount", + Use: "burn-amount [index]", + Short: "Shows the burn amount", + PositionalArgs: []*autocliv1.PositionalArgDescriptor{{ProtoField: "index"}}, + }, + { + RpcMethod: "EpochBurnConfig", + Use: "epoch-burn-config", + Short: "Shows the epoch burn config", + }, + // this line is used by ignite scaffolding # autocli/query + }, + }, + Tx: &autocliv1.ServiceCommandDescriptor{ + Service: modulev1.Msg_ServiceDesc.ServiceName, + EnhanceCustomCommand: true, // only required if you want to use the custom command + RpcCommandOptions: []*autocliv1.RpcCommandOptions{ + // this line is used by ignite scaffolding # autocli/tx + }, + }, + } +} diff --git a/x/furnace/genesis.go b/x/furnace/module/genesis.go similarity index 100% rename from x/furnace/genesis.go rename to x/furnace/module/genesis.go diff --git a/x/furnace/genesis_test.go b/x/furnace/module/genesis_test.go similarity index 95% rename from x/furnace/genesis_test.go rename to x/furnace/module/genesis_test.go index 486a83a3..19167f60 100644 --- a/x/furnace/genesis_test.go +++ b/x/furnace/module/genesis_test.go @@ -7,7 +7,7 @@ import ( keepertest "github.com/mycel-domain/mycel/testutil/keeper" "github.com/mycel-domain/mycel/testutil/nullify" - "github.com/mycel-domain/mycel/x/furnace" + "github.com/mycel-domain/mycel/x/furnace/module" "github.com/mycel-domain/mycel/x/furnace/types" ) diff --git a/x/furnace/module.go b/x/furnace/module/module.go similarity index 57% rename from x/furnace/module.go rename to x/furnace/module/module.go index 83a0ed2a..8e76bbf7 100644 --- a/x/furnace/module.go +++ b/x/furnace/module/module.go @@ -4,40 +4,46 @@ import ( "context" "encoding/json" "fmt" - "log" "github.com/grpc-ecosystem/grpc-gateway/runtime" - "github.com/spf13/cobra" "cosmossdk.io/core/appmodule" + "cosmossdk.io/core/store" + "cosmossdk.io/depinject" + "cosmossdk.io/log" "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" + authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" + govtypes "github.com/cosmos/cosmos-sdk/x/gov/types" - "github.com/mycel-domain/mycel/x/furnace/client/cli" + // this line is used by starport scaffolding # 1 + modulev1 "github.com/mycel-domain/mycel/api/mycel/furnace/module/v1" "github.com/mycel-domain/mycel/x/furnace/keeper" "github.com/mycel-domain/mycel/x/furnace/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 } @@ -46,27 +52,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 { @@ -75,24 +81,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 { - log.Printf("%v", err) + 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 // ---------------------------------------------------------------------------- @@ -104,6 +99,7 @@ type AppModule struct { keeper keeper.Keeper accountKeeper types.AccountKeeper bankKeeper types.BankKeeper + epochsKeeper types.EpochsKeeper } func NewAppModule( @@ -111,21 +107,17 @@ func NewAppModule( keeper keeper.Keeper, accountKeeper types.AccountKeeper, bankKeeper types.BankKeeper, + epochsKeeper types.EpochsKeeper, ) AppModule { return AppModule{ AppModuleBasic: NewAppModuleBasic(cdc), keeper: keeper, accountKeeper: accountKeeper, bankKeeper: bankKeeper, + epochsKeeper: epochsKeeper, } } -// 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)) @@ -150,10 +142,80 @@ 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 -func (am AppModule) BeginBlock(_ context.Context) error { +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 +// ---------------------------------------------------------------------------- + +func init() { + appmodule.Register( + &modulev1.Module{}, + appmodule.Provide(ProvideModule), + ) +} + +type ModuleInputs struct { + depinject.In + + StoreService store.KVStoreService + Cdc codec.Codec + Config *modulev1.Module + Logger log.Logger + + AccountKeeper types.AccountKeeper + BankKeeper types.BankKeeper + EpochsKeeper types.EpochsKeeper +} + +type ModuleOutputs struct { + depinject.Out + + FurnaceKeeper keeper.Keeper + Module appmodule.AppModule +} + +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.StoreService, + in.Logger, + authority.String(), + in.BankKeeper, + in.EpochsKeeper, + ) + m := NewAppModule( + in.Cdc, + *k, + in.AccountKeeper, + in.BankKeeper, + in.EpochsKeeper, + ) + + return ModuleOutputs{FurnaceKeeper: *k, Module: m} +} diff --git a/x/furnace/module_simulation.go b/x/furnace/module/simulation.go similarity index 77% rename from x/furnace/module_simulation.go rename to x/furnace/module/simulation.go index 5c36163a..4224db39 100644 --- a/x/furnace/module_simulation.go +++ b/x/furnace/module/simulation.go @@ -3,7 +3,7 @@ package furnace import ( "math/rand" - "github.com/cosmos/cosmos-sdk/baseapp" + 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" @@ -15,11 +15,11 @@ import ( // avoid unused import issue var ( - _ = sample.AccAddress _ = furnacesimulation.FindAccount - _ = simulation.MsgEntryKind - _ = baseapp.Paramspace _ = rand.Rand{} + _ = sample.AccAddress + _ = sdk.AccAddress{} + _ = simulation.MsgEntryKind ) const ( @@ -33,12 +33,21 @@ func (AppModule) GenerateGenesisState(simState *module.SimulationState) { accs[i] = acc.Address.String() } furnaceGenesis := types.GenesisState{ - Params: types.DefaultParams(), + EpochBurnConfig: types.DefaultGenesis().GetEpochBurnConfig(), + BurnAmounts: types.DefaultGenesis().BurnAmounts, // this line is used by starport scaffolding # simapp/module/genesisState } simState.GenState[types.ModuleName] = simState.Cdc.MustMarshalJSON(&furnaceGenesis) } +// 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) diff --git a/x/furnace/types/burn_amount.pb.go b/x/furnace/types/burn_amount.pb.go index abd2bb9a..6e8f5605 100644 --- a/x/furnace/types/burn_amount.pb.go +++ b/x/furnace/types/burn_amount.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: mycel/furnace/v1beta1/burn_amount.proto +// source: mycel/furnace/v1/burn_amount.proto package types @@ -37,7 +37,7 @@ func (m *BurnAmount) Reset() { *m = BurnAmount{} } func (m *BurnAmount) String() string { return proto.CompactTextString(m) } func (*BurnAmount) ProtoMessage() {} func (*BurnAmount) Descriptor() ([]byte, []int) { - return fileDescriptor_b99a364454e8a693, []int{0} + return fileDescriptor_21aef228c5838da2, []int{0} } func (m *BurnAmount) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -109,36 +109,36 @@ func (m *BurnAmount) GetCumulativeBurntAmount() types.Coin { } func init() { - proto.RegisterType((*BurnAmount)(nil), "mycel.furnace.v1beta1.BurnAmount") + proto.RegisterType((*BurnAmount)(nil), "mycel.furnace.v1.BurnAmount") } func init() { - proto.RegisterFile("mycel/furnace/v1beta1/burn_amount.proto", fileDescriptor_b99a364454e8a693) + proto.RegisterFile("mycel/furnace/v1/burn_amount.proto", fileDescriptor_21aef228c5838da2) } -var fileDescriptor_b99a364454e8a693 = []byte{ +var fileDescriptor_21aef228c5838da2 = []byte{ // 337 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x91, 0xc1, 0x4e, 0x32, 0x31, - 0x14, 0x85, 0xa7, 0xfc, 0x40, 0xfe, 0x14, 0x8c, 0x71, 0x02, 0x71, 0x64, 0x51, 0x51, 0x17, 0xb2, - 0xa1, 0x0d, 0xfa, 0x04, 0x62, 0x8c, 0x0b, 0x77, 0xb8, 0x30, 0x71, 0x43, 0x3a, 0xa5, 0xc2, 0x24, - 0x4c, 0x4b, 0x3a, 0x2d, 0x81, 0xb7, 0xf0, 0x5d, 0x7c, 0x09, 0x96, 0x2c, 0x5d, 0x19, 0x03, 0x2f, - 0x62, 0xe6, 0x76, 0x10, 0x96, 0xee, 0xee, 0x3d, 0xf9, 0xce, 0x69, 0x4f, 0x2e, 0xbe, 0x4e, 0x97, - 0x42, 0x4e, 0xd9, 0x9b, 0x33, 0x8a, 0x0b, 0xc9, 0xe6, 0xbd, 0x58, 0x5a, 0xde, 0x63, 0xb1, 0x33, - 0x6a, 0xc8, 0x53, 0xed, 0x94, 0xa5, 0x33, 0xa3, 0xad, 0x0e, 0x9b, 0x00, 0xd2, 0x02, 0xa4, 0x05, - 0xd8, 0x22, 0x42, 0x67, 0xa9, 0xce, 0x58, 0xcc, 0xb3, 0xbd, 0x5b, 0xe8, 0x44, 0x79, 0x5b, 0xab, - 0x31, 0xd6, 0x63, 0x0d, 0x23, 0xcb, 0x27, 0xaf, 0x5e, 0x7e, 0x94, 0x30, 0xee, 0x3b, 0xa3, 0xee, - 0xe0, 0x85, 0xb0, 0x81, 0x2b, 0x89, 0x1a, 0xc9, 0x45, 0x84, 0xda, 0xa8, 0x53, 0x1e, 0xf8, 0x25, - 0xbc, 0xc0, 0x75, 0xf8, 0x46, 0x66, 0xb9, 0xb1, 0x72, 0x14, 0x95, 0xda, 0xa8, 0xf3, 0x7f, 0x50, - 0xcb, 0xb5, 0x67, 0x2f, 0xe5, 0x88, 0xd5, 0x96, 0x4f, 0x87, 0x72, 0xa6, 0xc5, 0x24, 0x8b, 0xfe, - 0x81, 0xbf, 0x06, 0xda, 0x03, 0x48, 0xe1, 0x15, 0x3e, 0x12, 0xce, 0x18, 0xa9, 0xac, 0x87, 0xa2, - 0x32, 0x30, 0xf5, 0x42, 0x04, 0x2a, 0x7c, 0xc2, 0x27, 0x3e, 0xe7, 0xa0, 0x77, 0x54, 0x69, 0xa3, - 0x4e, 0xed, 0xe6, 0x8c, 0xfa, 0x86, 0x34, 0x6f, 0xb8, 0xab, 0x4d, 0xef, 0x75, 0xa2, 0xfa, 0xe5, - 0xd5, 0xd7, 0x79, 0x30, 0x38, 0x06, 0xe7, 0x41, 0x9b, 0x17, 0x7c, 0x2a, 0x5c, 0xea, 0xa6, 0xdc, - 0x26, 0x73, 0x09, 0x89, 0x76, 0x17, 0x59, 0xfd, 0x5b, 0x64, 0x73, 0xef, 0xcf, 0x73, 0xad, 0x0f, - 0xee, 0x3f, 0xae, 0x36, 0x04, 0xad, 0x37, 0x04, 0x7d, 0x6f, 0x08, 0x7a, 0xdf, 0x92, 0x60, 0xbd, - 0x25, 0xc1, 0xe7, 0x96, 0x04, 0xaf, 0xdd, 0x71, 0x62, 0x27, 0x2e, 0xa6, 0x42, 0xa7, 0x0c, 0xee, - 0xd4, 0x1d, 0xe9, 0x94, 0x27, 0xca, 0x2f, 0x6c, 0xf1, 0x7b, 0x5f, 0xbb, 0x9c, 0xc9, 0x2c, 0xae, - 0xc2, 0x15, 0x6e, 0x7f, 0x02, 0x00, 0x00, 0xff, 0xff, 0x5a, 0xdb, 0xb1, 0x3b, 0xfd, 0x01, 0x00, + 0x14, 0x85, 0x67, 0xf8, 0x81, 0xfc, 0x29, 0x18, 0x75, 0x82, 0x71, 0x64, 0x51, 0x11, 0x37, 0x6c, + 0x68, 0x83, 0x3e, 0x81, 0x18, 0xe3, 0xc2, 0x1d, 0x2e, 0x4c, 0xdc, 0x90, 0x4e, 0xa9, 0x30, 0x09, + 0xd3, 0x92, 0xce, 0x2d, 0x81, 0xb7, 0xf0, 0x5d, 0x7c, 0x09, 0x96, 0x2c, 0x5d, 0x19, 0x03, 0x2f, + 0x62, 0xe6, 0x16, 0x95, 0xa5, 0xbb, 0xde, 0x93, 0x73, 0xbe, 0xf4, 0xe4, 0x90, 0x76, 0xb6, 0x94, + 0x6a, 0xca, 0x5f, 0x9c, 0xd5, 0x42, 0x2a, 0x3e, 0xef, 0xf1, 0xc4, 0x59, 0x3d, 0x14, 0x99, 0x71, + 0x1a, 0xd8, 0xcc, 0x1a, 0x30, 0xd1, 0x11, 0x7a, 0xd8, 0xce, 0xc3, 0xe6, 0xbd, 0x26, 0x95, 0x26, + 0xcf, 0x4c, 0xce, 0x13, 0x91, 0x17, 0x99, 0x44, 0x81, 0xe8, 0x71, 0x69, 0x52, 0xed, 0x13, 0xcd, + 0xc6, 0xd8, 0x8c, 0x0d, 0x3e, 0x79, 0xf1, 0xf2, 0x6a, 0xfb, 0xad, 0x44, 0x48, 0xdf, 0x59, 0x7d, + 0x83, 0xf0, 0xa8, 0x41, 0x2a, 0xa9, 0x1e, 0xa9, 0x45, 0x1c, 0xb6, 0xc2, 0x4e, 0x79, 0xe0, 0x8f, + 0xe8, 0x82, 0xd4, 0xf1, 0x07, 0x39, 0x08, 0x0b, 0x6a, 0x14, 0x97, 0x5a, 0x61, 0xe7, 0xff, 0xa0, + 0x56, 0x68, 0x8f, 0x5e, 0x2a, 0x2c, 0x60, 0x40, 0x4c, 0x87, 0x6a, 0x66, 0xe4, 0x24, 0x8f, 0xff, + 0x61, 0xbe, 0x86, 0xda, 0x1d, 0x4a, 0xd1, 0x25, 0x39, 0x90, 0xce, 0x5a, 0xa5, 0xc1, 0x9b, 0xe2, + 0x32, 0x7a, 0xea, 0x3b, 0x11, 0x5d, 0xd1, 0x03, 0x39, 0xf6, 0x9c, 0xbd, 0xca, 0x71, 0xa5, 0x15, + 0x76, 0x6a, 0x57, 0x67, 0xcc, 0x37, 0x64, 0x45, 0x43, 0xb6, 0x6b, 0xc8, 0x6e, 0x4d, 0xaa, 0xfb, + 0xe5, 0xd5, 0xc7, 0x79, 0x30, 0x38, 0xc4, 0xe4, 0x5e, 0x9b, 0x27, 0x72, 0x2a, 0x5d, 0xe6, 0xa6, + 0x02, 0xd2, 0xb9, 0x42, 0x22, 0x7c, 0x23, 0xab, 0x7f, 0x43, 0x9e, 0xfc, 0xe6, 0x0b, 0x2e, 0x78, + 0x70, 0xff, 0x7e, 0xb5, 0xa1, 0xe1, 0x7a, 0x43, 0xc3, 0xcf, 0x0d, 0x0d, 0x5f, 0xb7, 0x34, 0x58, + 0x6f, 0x69, 0xf0, 0xbe, 0xa5, 0xc1, 0x73, 0x77, 0x9c, 0xc2, 0xc4, 0x25, 0x4c, 0x9a, 0x8c, 0xe3, + 0x44, 0xdd, 0x91, 0xc9, 0x44, 0xaa, 0xfd, 0xc1, 0x17, 0x3f, 0xab, 0xc2, 0x72, 0xa6, 0xf2, 0xa4, + 0x8a, 0x2b, 0x5c, 0x7f, 0x05, 0x00, 0x00, 0xff, 0xff, 0x6c, 0xf6, 0xfe, 0x3a, 0xf3, 0x01, 0x00, 0x00, } diff --git a/x/furnace/types/epoch_burn_config.pb.go b/x/furnace/types/epoch_burn_config.pb.go index 23460b82..9e7f9b31 100644 --- a/x/furnace/types/epoch_burn_config.pb.go +++ b/x/furnace/types/epoch_burn_config.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: mycel/furnace/v1beta1/epoch_burn_config.proto +// source: mycel/furnace/v1/epoch_burn_config.proto package types @@ -38,7 +38,7 @@ func (m *EpochBurnConfig) Reset() { *m = EpochBurnConfig{} } func (m *EpochBurnConfig) String() string { return proto.CompactTextString(m) } func (*EpochBurnConfig) ProtoMessage() {} func (*EpochBurnConfig) Descriptor() ([]byte, []int) { - return fileDescriptor_11af49042c46d8ce, []int{0} + return fileDescriptor_d45b357be5533ccd, []int{0} } func (m *EpochBurnConfig) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -96,38 +96,37 @@ func (m *EpochBurnConfig) GetStartTime() time.Time { } func init() { - proto.RegisterType((*EpochBurnConfig)(nil), "mycel.furnace.v1beta1.EpochBurnConfig") + proto.RegisterType((*EpochBurnConfig)(nil), "mycel.furnace.v1.EpochBurnConfig") } func init() { - proto.RegisterFile("mycel/furnace/v1beta1/epoch_burn_config.proto", fileDescriptor_11af49042c46d8ce) + proto.RegisterFile("mycel/furnace/v1/epoch_burn_config.proto", fileDescriptor_d45b357be5533ccd) } -var fileDescriptor_11af49042c46d8ce = []byte{ - // 353 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x44, 0x91, 0xb1, 0x4e, 0xf3, 0x30, - 0x14, 0x85, 0xe3, 0xfe, 0xd5, 0x2f, 0x35, 0x0c, 0x85, 0xa8, 0xa0, 0x50, 0x89, 0xa4, 0xea, 0x54, - 0x86, 0xc6, 0x14, 0x26, 0xd8, 0x28, 0x42, 0xa8, 0x6b, 0xd5, 0x01, 0xb1, 0x44, 0x4e, 0xe2, 0xa4, - 0x96, 0x12, 0x3b, 0x72, 0xae, 0x51, 0x3b, 0xf3, 0x02, 0x7d, 0xac, 0x8e, 0x1d, 0x99, 0x0a, 0x6a, - 0xdf, 0x80, 0x27, 0x40, 0x71, 0xd2, 0xb2, 0xf9, 0xde, 0xf3, 0x5d, 0x9f, 0x7b, 0x6c, 0x73, 0x98, - 0x2d, 0x43, 0x9a, 0xe2, 0x58, 0x49, 0x4e, 0x42, 0x8a, 0xdf, 0x47, 0x01, 0x05, 0x32, 0xc2, 0x34, - 0x17, 0xe1, 0xdc, 0x0f, 0x94, 0xe4, 0x7e, 0x28, 0x78, 0xcc, 0x12, 0x2f, 0x97, 0x02, 0x84, 0x75, - 0xae, 0x71, 0xaf, 0xc6, 0xbd, 0x1a, 0xef, 0x76, 0x12, 0x91, 0x08, 0x4d, 0xe0, 0xf2, 0x54, 0xc1, - 0x5d, 0x37, 0x11, 0x22, 0x49, 0x29, 0xd6, 0x55, 0xa0, 0x62, 0x0c, 0x2c, 0xa3, 0x05, 0x90, 0x2c, - 0xaf, 0x80, 0xfe, 0x47, 0xc3, 0x6c, 0x3f, 0x97, 0x4e, 0x63, 0x25, 0xf9, 0x93, 0xf6, 0xb1, 0xae, - 0xcd, 0xd3, 0xca, 0x9c, 0x45, 0x94, 0x03, 0x8b, 0x19, 0x95, 0x36, 0xea, 0xa1, 0x41, 0x6b, 0xda, - 0xd6, 0xfd, 0xc9, 0xb1, 0x6d, 0xdd, 0x9b, 0x97, 0xa1, 0x92, 0x92, 0x72, 0xa8, 0x36, 0x25, 0x99, - 0x50, 0x1c, 0x7c, 0xc6, 0x23, 0xba, 0xb0, 0x1b, 0x3d, 0x34, 0x68, 0x4e, 0x2f, 0x6a, 0xa0, 0x34, - 0x78, 0xd4, 0xf2, 0xa4, 0x54, 0xad, 0x1b, 0xb3, 0x13, 0xd1, 0x98, 0xa8, 0x14, 0x7c, 0x10, 0x40, - 0x52, 0x5f, 0xdf, 0x5d, 0xd8, 0xff, 0xf4, 0x94, 0x55, 0x6b, 0xb3, 0x52, 0xd2, 0x0b, 0x16, 0xd6, - 0xab, 0x69, 0x16, 0x40, 0x24, 0xf8, 0x65, 0x08, 0xbb, 0xd9, 0x43, 0x83, 0x93, 0xdb, 0xae, 0x57, - 0x25, 0xf4, 0x0e, 0x09, 0xbd, 0xd9, 0x21, 0xe1, 0xf8, 0x6a, 0xbd, 0x75, 0x8d, 0x9f, 0xad, 0x7b, - 0xb6, 0x24, 0x59, 0xfa, 0xd0, 0xff, 0x9b, 0xed, 0xaf, 0xbe, 0x5c, 0x34, 0x6d, 0xe9, 0x46, 0x89, - 0x8f, 0x5f, 0xd6, 0x3b, 0x07, 0x6d, 0x76, 0x0e, 0xfa, 0xde, 0x39, 0x68, 0xb5, 0x77, 0x8c, 0xcd, - 0xde, 0x31, 0x3e, 0xf7, 0x8e, 0xf1, 0x36, 0x4c, 0x18, 0xcc, 0x55, 0xe0, 0x85, 0x22, 0xc3, 0xfa, - 0xe1, 0x87, 0x91, 0xc8, 0x08, 0xe3, 0x55, 0x81, 0x17, 0xc7, 0x6f, 0x83, 0x65, 0x4e, 0x8b, 0xe0, - 0xbf, 0x5e, 0xe3, 0xee, 0x37, 0x00, 0x00, 0xff, 0xff, 0x6b, 0xe7, 0x35, 0x5a, 0xd4, 0x01, 0x00, - 0x00, +var fileDescriptor_d45b357be5533ccd = []byte{ + // 350 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x44, 0x91, 0xb1, 0x6e, 0xea, 0x30, + 0x14, 0x86, 0x63, 0x2e, 0xba, 0x12, 0xb9, 0x03, 0xdc, 0x08, 0x55, 0x29, 0x52, 0x13, 0xc4, 0x94, + 0x0e, 0xc4, 0xa5, 0x9d, 0xda, 0xad, 0x54, 0x55, 0xc5, 0x8a, 0x18, 0xaa, 0x2e, 0x91, 0x93, 0x38, + 0xc1, 0x52, 0x6c, 0x47, 0x8e, 0x8d, 0x60, 0xee, 0x0b, 0xf0, 0x58, 0x8c, 0x8c, 0x9d, 0x68, 0x05, + 0x6f, 0xd0, 0x27, 0xa8, 0xec, 0x00, 0xdd, 0x7c, 0xce, 0xff, 0x1d, 0xff, 0xe7, 0xb7, 0xed, 0x80, + 0xae, 0x12, 0x5c, 0xc0, 0x4c, 0x09, 0x86, 0x12, 0x0c, 0x17, 0x23, 0x88, 0x4b, 0x9e, 0xcc, 0xa3, + 0x58, 0x09, 0x16, 0x25, 0x9c, 0x65, 0x24, 0x0f, 0x4b, 0xc1, 0x25, 0x77, 0x3a, 0x86, 0x0c, 0x8f, + 0x64, 0xb8, 0x18, 0xf5, 0xba, 0x39, 0xcf, 0xb9, 0x11, 0xa1, 0x3e, 0xd5, 0x5c, 0xcf, 0xcf, 0x39, + 0xcf, 0x0b, 0x0c, 0x4d, 0x15, 0xab, 0x0c, 0x4a, 0x42, 0x71, 0x25, 0x11, 0x2d, 0x6b, 0x60, 0xf0, + 0xde, 0xb0, 0xdb, 0xcf, 0xda, 0x64, 0xac, 0x04, 0x7b, 0x32, 0x16, 0xce, 0xb5, 0xdd, 0xa9, 0x7d, + 0x49, 0x8a, 0x99, 0x24, 0x19, 0xc1, 0xc2, 0x05, 0x7d, 0x10, 0xb4, 0xa6, 0x6d, 0xd3, 0x9f, 0x9c, + 0xdb, 0xce, 0xbd, 0x7d, 0x99, 0x28, 0x21, 0x30, 0x93, 0xf5, 0x92, 0x88, 0x72, 0xc5, 0x64, 0x44, + 0x58, 0x8a, 0x97, 0x6e, 0xa3, 0x0f, 0x82, 0xe6, 0xf4, 0xe2, 0x08, 0x68, 0x83, 0x47, 0x23, 0x4f, + 0xb4, 0xea, 0xdc, 0xd8, 0xdd, 0x14, 0x67, 0x48, 0x15, 0x32, 0x92, 0x5c, 0xa2, 0x22, 0x32, 0x77, + 0x57, 0xee, 0x1f, 0x33, 0xe5, 0x1c, 0xb5, 0x99, 0x96, 0xcc, 0x82, 0x95, 0xf3, 0x6a, 0xdb, 0x95, + 0x44, 0x42, 0x46, 0x3a, 0x84, 0xdb, 0xec, 0x83, 0xe0, 0xdf, 0x6d, 0x2f, 0xac, 0x13, 0x86, 0xa7, + 0x84, 0xe1, 0xec, 0x94, 0x70, 0x7c, 0xb5, 0xd9, 0xf9, 0xd6, 0xf7, 0xce, 0xff, 0xbf, 0x42, 0xb4, + 0x78, 0x18, 0xfc, 0xce, 0x0e, 0xd6, 0x9f, 0x3e, 0x98, 0xb6, 0x4c, 0x43, 0xe3, 0xe3, 0x97, 0xcd, + 0xde, 0x03, 0xdb, 0xbd, 0x07, 0xbe, 0xf6, 0x1e, 0x58, 0x1f, 0x3c, 0x6b, 0x7b, 0xf0, 0xac, 0x8f, + 0x83, 0x67, 0xbd, 0x0d, 0x73, 0x22, 0xe7, 0x2a, 0x0e, 0x13, 0x4e, 0xa1, 0x79, 0xf3, 0x61, 0xca, + 0x29, 0x22, 0xac, 0x2e, 0xe0, 0xf2, 0xfc, 0x59, 0x72, 0x55, 0xe2, 0x2a, 0xfe, 0x6b, 0xd6, 0xb8, + 0xfb, 0x09, 0x00, 0x00, 0xff, 0xff, 0x3a, 0x68, 0xc3, 0x54, 0xca, 0x01, 0x00, 0x00, } func (m *EpochBurnConfig) Marshal() (dAtA []byte, err error) { diff --git a/x/furnace/types/expected_keepers.go b/x/furnace/types/expected_keepers.go index 6d6c2928..e480c7ba 100644 --- a/x/furnace/types/expected_keepers.go +++ b/x/furnace/types/expected_keepers.go @@ -10,7 +10,7 @@ import ( type EpochsKeeper interface { // Methods imported from epochs should be defined here - GetEpochInfo(ctx sdk.Context, identifier string) (val epochstypes.EpochInfo, found bool) + GetEpochInfo(ctx context.Context, identifier string) (val epochstypes.EpochInfo, found bool) } // AccountKeeper defines the expected account keeper used for simulations (noalias) diff --git a/x/furnace/types/genesis.pb.go b/x/furnace/types/genesis.pb.go index cebec5ae..2acba1c7 100644 --- a/x/furnace/types/genesis.pb.go +++ b/x/furnace/types/genesis.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: mycel/furnace/v1beta1/genesis.proto +// source: mycel/furnace/v1/genesis.proto package types @@ -34,7 +34,7 @@ func (m *GenesisState) Reset() { *m = GenesisState{} } func (m *GenesisState) String() string { return proto.CompactTextString(m) } func (*GenesisState) ProtoMessage() {} func (*GenesisState) Descriptor() ([]byte, []int) { - return fileDescriptor_51a23f82e53314cb, []int{0} + return fileDescriptor_139f509fc1d111b2, []int{0} } func (m *GenesisState) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -85,34 +85,32 @@ func (m *GenesisState) GetBurnAmounts() []BurnAmount { } func init() { - proto.RegisterType((*GenesisState)(nil), "mycel.furnace.v1beta1.GenesisState") + proto.RegisterType((*GenesisState)(nil), "mycel.furnace.v1.GenesisState") } -func init() { - proto.RegisterFile("mycel/furnace/v1beta1/genesis.proto", fileDescriptor_51a23f82e53314cb) -} +func init() { proto.RegisterFile("mycel/furnace/v1/genesis.proto", fileDescriptor_139f509fc1d111b2) } -var fileDescriptor_51a23f82e53314cb = []byte{ - // 301 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0xd0, 0xcf, 0x4a, 0xc3, 0x30, - 0x1c, 0xc0, 0xf1, 0xc6, 0xc9, 0x0e, 0xed, 0x40, 0x2c, 0x0a, 0x65, 0x60, 0x9c, 0x13, 0x74, 0x97, - 0x26, 0x6c, 0x1e, 0x3d, 0x59, 0x91, 0x81, 0x27, 0xd1, 0x8b, 0x78, 0x19, 0x69, 0xcd, 0xba, 0x82, - 0x4d, 0x4a, 0xfe, 0x88, 0x7b, 0x0b, 0x1f, 0x6b, 0xc7, 0x1d, 0x3d, 0x89, 0xb4, 0x4f, 0xe0, 0x1b, - 0x48, 0xd3, 0x30, 0x14, 0xbb, 0x5b, 0x1b, 0x3e, 0xf9, 0xf2, 0xcb, 0xcf, 0x3d, 0xcd, 0x97, 0x09, - 0x7d, 0xc1, 0x73, 0x2d, 0x18, 0x49, 0x28, 0x7e, 0x1d, 0xc7, 0x54, 0x91, 0x31, 0x4e, 0x29, 0xa3, - 0x32, 0x93, 0xa8, 0x10, 0x5c, 0x71, 0xff, 0xd0, 0x20, 0x64, 0x11, 0xb2, 0xa8, 0x7f, 0x90, 0xf2, - 0x94, 0x1b, 0x81, 0xeb, 0xaf, 0x06, 0xf7, 0xcf, 0xdb, 0x8b, 0xb1, 0x16, 0x6c, 0x46, 0x72, 0xae, - 0x99, 0xb2, 0x30, 0x6c, 0x87, 0xb4, 0xe0, 0xc9, 0x62, 0x66, 0x78, 0xc2, 0xd9, 0x3c, 0x4b, 0x2d, - 0x1f, 0xb6, 0xf3, 0x82, 0x08, 0x92, 0xdb, 0x41, 0x87, 0xdf, 0xc0, 0xed, 0x4d, 0x9b, 0xd1, 0x1f, - 0x14, 0x51, 0xd4, 0xbf, 0x74, 0xbb, 0x0d, 0x08, 0xc0, 0x00, 0x8c, 0xbc, 0xc9, 0x11, 0x6a, 0x7d, - 0x0a, 0xba, 0x33, 0x28, 0xda, 0x5d, 0x7d, 0x1e, 0x3b, 0xf7, 0xf6, 0x8a, 0xff, 0xe8, 0xee, 0xff, - 0x1b, 0x26, 0xd8, 0x31, 0x9d, 0xb3, 0x2d, 0x9d, 0x9b, 0xda, 0x47, 0x5a, 0xb0, 0x6b, 0xa3, 0x6d, - 0x70, 0x8f, 0xfe, 0x3d, 0xf6, 0x6f, 0xdd, 0xde, 0xaf, 0x7d, 0xc8, 0xa0, 0x33, 0xe8, 0x8c, 0xbc, - 0xc9, 0xc9, 0x96, 0x68, 0x7d, 0xf1, 0xca, 0x48, 0xdb, 0xf3, 0xe2, 0xcd, 0x89, 0x8c, 0xa6, 0xab, - 0x12, 0x82, 0x75, 0x09, 0xc1, 0x57, 0x09, 0xc1, 0x7b, 0x05, 0x9d, 0x75, 0x05, 0x9d, 0x8f, 0x0a, - 0x3a, 0x4f, 0x61, 0x9a, 0xa9, 0x85, 0x8e, 0x51, 0xc2, 0x73, 0x6c, 0xca, 0xe1, 0x33, 0xcf, 0x49, - 0xc6, 0x9a, 0x1f, 0xfc, 0xb6, 0xd9, 0xa5, 0x5a, 0x16, 0x54, 0xc6, 0x5d, 0xb3, 0xc3, 0x8b, 0x9f, - 0x00, 0x00, 0x00, 0xff, 0xff, 0xa7, 0xc1, 0x23, 0x6e, 0x13, 0x02, 0x00, 0x00, +var fileDescriptor_139f509fc1d111b2 = []byte{ + // 291 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x64, 0x90, 0x4f, 0x4b, 0xc3, 0x30, + 0x18, 0xc6, 0x1b, 0x27, 0x3b, 0xb4, 0x03, 0xb5, 0x78, 0x28, 0x43, 0xe3, 0xdc, 0xa9, 0x97, 0x25, + 0x6c, 0x82, 0x77, 0x2b, 0x63, 0x57, 0x71, 0x37, 0x2f, 0x23, 0xad, 0x59, 0x57, 0xb0, 0x49, 0xc9, + 0x9f, 0xe1, 0xbe, 0x85, 0x1f, 0x6b, 0xc7, 0x1d, 0x3d, 0x89, 0xb4, 0x5f, 0x44, 0x9a, 0x86, 0xa1, + 0xe6, 0x96, 0xbc, 0xcf, 0x2f, 0x3f, 0x9e, 0xbc, 0x3e, 0x2c, 0x77, 0x19, 0x7d, 0xc3, 0x6b, 0x2d, + 0x18, 0xc9, 0x28, 0xde, 0x4e, 0x71, 0x4e, 0x19, 0x95, 0x85, 0x44, 0x95, 0xe0, 0x8a, 0x87, 0xe7, + 0x26, 0x47, 0x36, 0x47, 0xdb, 0xe9, 0xf0, 0x32, 0xe7, 0x39, 0x37, 0x21, 0x6e, 0x4f, 0x1d, 0x37, + 0x1c, 0x3b, 0x9e, 0x54, 0x0b, 0xb6, 0x22, 0x25, 0xd7, 0x4c, 0x59, 0x26, 0x76, 0x18, 0x5a, 0xf1, + 0x6c, 0xb3, 0x32, 0x64, 0xc6, 0xd9, 0xba, 0xc8, 0x2d, 0x79, 0xed, 0x90, 0x15, 0x11, 0xa4, 0xb4, + 0xa5, 0xc6, 0x35, 0xf0, 0x07, 0x8b, 0xae, 0xe6, 0x52, 0x11, 0x45, 0xc3, 0x7b, 0xbf, 0xdf, 0x01, + 0x11, 0x18, 0x81, 0x38, 0x98, 0x45, 0xe8, 0x7f, 0x6d, 0xf4, 0x64, 0xf2, 0xe4, 0x74, 0xff, 0x75, + 0xe3, 0x3d, 0x5b, 0x3a, 0x5c, 0xfa, 0x17, 0x4e, 0x85, 0xe8, 0xc4, 0x28, 0x6e, 0x5d, 0xc5, 0xbc, + 0x45, 0x13, 0x2d, 0xd8, 0xa3, 0x01, 0xad, 0xeb, 0x8c, 0xfe, 0x1d, 0x87, 0x73, 0x7f, 0xf0, 0xeb, + 0xef, 0x32, 0xea, 0x8d, 0x7a, 0x71, 0x30, 0xbb, 0x72, 0x7d, 0xed, 0x9b, 0x07, 0x03, 0x59, 0x55, + 0x90, 0x1e, 0x27, 0x32, 0x59, 0xec, 0x6b, 0x08, 0x0e, 0x35, 0x04, 0xdf, 0x35, 0x04, 0x1f, 0x0d, + 0xf4, 0x0e, 0x0d, 0xf4, 0x3e, 0x1b, 0xe8, 0xbd, 0x4c, 0xf2, 0x42, 0x6d, 0x74, 0x8a, 0x32, 0x5e, + 0x62, 0x23, 0x9d, 0xbc, 0xf2, 0x92, 0x14, 0xac, 0xbb, 0xe0, 0xf7, 0xe3, 0xde, 0xd4, 0xae, 0xa2, + 0x32, 0xed, 0x9b, 0xa5, 0xdd, 0xfd, 0x04, 0x00, 0x00, 0xff, 0xff, 0xcf, 0x1c, 0x1e, 0x15, 0xeb, + 0x01, 0x00, 0x00, } func (m *GenesisState) Marshal() (dAtA []byte, err error) { diff --git a/x/furnace/types/keys.go b/x/furnace/types/keys.go index 688a05f1..66492e89 100644 --- a/x/furnace/types/keys.go +++ b/x/furnace/types/keys.go @@ -18,6 +18,8 @@ func KeyPrefix(p string) []byte { return []byte(p) } +var ParamsKey = []byte("p_furnace") + const ( EpochBurnConfigKey = "EpochBurnConfig/value/" ) diff --git a/x/furnace/types/params.pb.go b/x/furnace/types/params.pb.go index fc02e1d9..d07c067e 100644 --- a/x/furnace/types/params.pb.go +++ b/x/furnace/types/params.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: mycel/furnace/v1beta1/params.proto +// source: mycel/furnace/v1/params.proto package types @@ -30,7 +30,7 @@ type Params struct { func (m *Params) Reset() { *m = Params{} } func (*Params) ProtoMessage() {} func (*Params) Descriptor() ([]byte, []int) { - return fileDescriptor_cd619409a494fc7a, []int{0} + return fileDescriptor_9db9515ff62d1896, []int{0} } func (m *Params) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -60,26 +60,23 @@ func (m *Params) XXX_DiscardUnknown() { var xxx_messageInfo_Params proto.InternalMessageInfo func init() { - proto.RegisterType((*Params)(nil), "mycel.furnace.v1beta1.Params") + proto.RegisterType((*Params)(nil), "mycel.furnace.v1.Params") } -func init() { - proto.RegisterFile("mycel/furnace/v1beta1/params.proto", fileDescriptor_cd619409a494fc7a) -} +func init() { proto.RegisterFile("mycel/furnace/v1/params.proto", fileDescriptor_9db9515ff62d1896) } -var fileDescriptor_cd619409a494fc7a = []byte{ - // 162 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0xca, 0xad, 0x4c, 0x4e, - 0xcd, 0xd1, 0x4f, 0x2b, 0x2d, 0xca, 0x4b, 0x4c, 0x4e, 0xd5, 0x2f, 0x33, 0x4c, 0x4a, 0x2d, 0x49, - 0x34, 0xd4, 0x2f, 0x48, 0x2c, 0x4a, 0xcc, 0x2d, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, - 0x05, 0xab, 0xd1, 0x83, 0xaa, 0xd1, 0x83, 0xaa, 0x91, 0x12, 0x49, 0xcf, 0x4f, 0xcf, 0x07, 0xab, - 0xd0, 0x07, 0xb1, 0x20, 0x8a, 0x95, 0xf8, 0xb8, 0xd8, 0x02, 0xc0, 0x9a, 0xad, 0x58, 0x66, 0x2c, - 0x90, 0x67, 0x70, 0x72, 0x3f, 0xf1, 0x48, 0x8e, 0xf1, 0xc2, 0x23, 0x39, 0xc6, 0x07, 0x8f, 0xe4, - 0x18, 0x27, 0x3c, 0x96, 0x63, 0xb8, 0xf0, 0x58, 0x8e, 0xe1, 0xc6, 0x63, 0x39, 0x86, 0x28, 0xdd, - 0xf4, 0xcc, 0x92, 0x8c, 0xd2, 0x24, 0xbd, 0xe4, 0xfc, 0x5c, 0x7d, 0xb0, 0x0d, 0xba, 0x29, 0xf9, - 0xb9, 0x89, 0x99, 0x79, 0x10, 0x8e, 0x7e, 0x05, 0xdc, 0x51, 0x25, 0x95, 0x05, 0xa9, 0xc5, 0x49, - 0x6c, 0x60, 0xf3, 0x8d, 0x01, 0x01, 0x00, 0x00, 0xff, 0xff, 0x9c, 0x5e, 0xaf, 0xe4, 0xb2, 0x00, - 0x00, 0x00, +var fileDescriptor_9db9515ff62d1896 = []byte{ + // 156 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0xcd, 0xad, 0x4c, 0x4e, + 0xcd, 0xd1, 0x4f, 0x2b, 0x2d, 0xca, 0x4b, 0x4c, 0x4e, 0xd5, 0x2f, 0x33, 0xd4, 0x2f, 0x48, 0x2c, + 0x4a, 0xcc, 0x2d, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, 0x00, 0x4b, 0xeb, 0x41, 0xa5, + 0xf5, 0xca, 0x0c, 0xa5, 0x44, 0xd2, 0xf3, 0xd3, 0xf3, 0xc1, 0x92, 0xfa, 0x20, 0x16, 0x44, 0x9d, + 0x12, 0x1f, 0x17, 0x5b, 0x00, 0x58, 0x9f, 0x15, 0xcb, 0x8c, 0x05, 0xf2, 0x0c, 0x4e, 0xee, 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, 0x9b, 0x9e, 0x59, 0x92, 0x51, 0x9a, + 0xa4, 0x97, 0x9c, 0x9f, 0xab, 0x0f, 0x36, 0x5c, 0x37, 0x25, 0x3f, 0x37, 0x31, 0x33, 0x0f, 0xc2, + 0xd1, 0xaf, 0x80, 0x3b, 0xa5, 0xa4, 0xb2, 0x20, 0xb5, 0x38, 0x89, 0x0d, 0x6c, 0xbe, 0x31, 0x20, + 0x00, 0x00, 0xff, 0xff, 0xfe, 0x54, 0xd1, 0x36, 0xa8, 0x00, 0x00, 0x00, } func (m *Params) Marshal() (dAtA []byte, err error) { diff --git a/x/furnace/types/query.pb.go b/x/furnace/types/query.pb.go index dca93864..e8fe3280 100644 --- a/x/furnace/types/query.pb.go +++ b/x/furnace/types/query.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: mycel/furnace/v1beta1/query.proto +// source: mycel/furnace/v1/query.proto package types @@ -38,7 +38,7 @@ func (m *QueryParamsRequest) Reset() { *m = QueryParamsRequest{} } func (m *QueryParamsRequest) String() string { return proto.CompactTextString(m) } func (*QueryParamsRequest) ProtoMessage() {} func (*QueryParamsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_781f6e2e484d56b5, []int{0} + return fileDescriptor_0fe488eb9523d22f, []int{0} } func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -77,7 +77,7 @@ func (m *QueryParamsResponse) Reset() { *m = QueryParamsResponse{} } func (m *QueryParamsResponse) String() string { return proto.CompactTextString(m) } func (*QueryParamsResponse) ProtoMessage() {} func (*QueryParamsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_781f6e2e484d56b5, []int{1} + return fileDescriptor_0fe488eb9523d22f, []int{1} } func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -120,7 +120,7 @@ func (m *QueryGetEpochBurnConfigRequest) Reset() { *m = QueryGetEpochBur func (m *QueryGetEpochBurnConfigRequest) String() string { return proto.CompactTextString(m) } func (*QueryGetEpochBurnConfigRequest) ProtoMessage() {} func (*QueryGetEpochBurnConfigRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_781f6e2e484d56b5, []int{2} + return fileDescriptor_0fe488eb9523d22f, []int{2} } func (m *QueryGetEpochBurnConfigRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -157,7 +157,7 @@ func (m *QueryGetEpochBurnConfigResponse) Reset() { *m = QueryGetEpochBu func (m *QueryGetEpochBurnConfigResponse) String() string { return proto.CompactTextString(m) } func (*QueryGetEpochBurnConfigResponse) ProtoMessage() {} func (*QueryGetEpochBurnConfigResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_781f6e2e484d56b5, []int{3} + return fileDescriptor_0fe488eb9523d22f, []int{3} } func (m *QueryGetEpochBurnConfigResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -201,7 +201,7 @@ func (m *QueryGetBurnAmountRequest) Reset() { *m = QueryGetBurnAmountReq func (m *QueryGetBurnAmountRequest) String() string { return proto.CompactTextString(m) } func (*QueryGetBurnAmountRequest) ProtoMessage() {} func (*QueryGetBurnAmountRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_781f6e2e484d56b5, []int{4} + return fileDescriptor_0fe488eb9523d22f, []int{4} } func (m *QueryGetBurnAmountRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -245,7 +245,7 @@ func (m *QueryGetBurnAmountResponse) Reset() { *m = QueryGetBurnAmountRe func (m *QueryGetBurnAmountResponse) String() string { return proto.CompactTextString(m) } func (*QueryGetBurnAmountResponse) ProtoMessage() {} func (*QueryGetBurnAmountResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_781f6e2e484d56b5, []int{5} + return fileDescriptor_0fe488eb9523d22f, []int{5} } func (m *QueryGetBurnAmountResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -289,7 +289,7 @@ func (m *QueryAllBurnAmountRequest) Reset() { *m = QueryAllBurnAmountReq func (m *QueryAllBurnAmountRequest) String() string { return proto.CompactTextString(m) } func (*QueryAllBurnAmountRequest) ProtoMessage() {} func (*QueryAllBurnAmountRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_781f6e2e484d56b5, []int{6} + return fileDescriptor_0fe488eb9523d22f, []int{6} } func (m *QueryAllBurnAmountRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -334,7 +334,7 @@ func (m *QueryAllBurnAmountResponse) Reset() { *m = QueryAllBurnAmountRe func (m *QueryAllBurnAmountResponse) String() string { return proto.CompactTextString(m) } func (*QueryAllBurnAmountResponse) ProtoMessage() {} func (*QueryAllBurnAmountResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_781f6e2e484d56b5, []int{7} + return fileDescriptor_0fe488eb9523d22f, []int{7} } func (m *QueryAllBurnAmountResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -378,58 +378,57 @@ func (m *QueryAllBurnAmountResponse) GetPagination() *query.PageResponse { } func init() { - proto.RegisterType((*QueryParamsRequest)(nil), "mycel.furnace.v1beta1.QueryParamsRequest") - proto.RegisterType((*QueryParamsResponse)(nil), "mycel.furnace.v1beta1.QueryParamsResponse") - proto.RegisterType((*QueryGetEpochBurnConfigRequest)(nil), "mycel.furnace.v1beta1.QueryGetEpochBurnConfigRequest") - proto.RegisterType((*QueryGetEpochBurnConfigResponse)(nil), "mycel.furnace.v1beta1.QueryGetEpochBurnConfigResponse") - proto.RegisterType((*QueryGetBurnAmountRequest)(nil), "mycel.furnace.v1beta1.QueryGetBurnAmountRequest") - proto.RegisterType((*QueryGetBurnAmountResponse)(nil), "mycel.furnace.v1beta1.QueryGetBurnAmountResponse") - proto.RegisterType((*QueryAllBurnAmountRequest)(nil), "mycel.furnace.v1beta1.QueryAllBurnAmountRequest") - proto.RegisterType((*QueryAllBurnAmountResponse)(nil), "mycel.furnace.v1beta1.QueryAllBurnAmountResponse") -} - -func init() { proto.RegisterFile("mycel/furnace/v1beta1/query.proto", fileDescriptor_781f6e2e484d56b5) } - -var fileDescriptor_781f6e2e484d56b5 = []byte{ - // 594 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x94, 0xcd, 0x6e, 0xd3, 0x40, - 0x10, 0xc7, 0xe3, 0xd2, 0xe4, 0xb0, 0x15, 0xaa, 0x58, 0x82, 0x04, 0x16, 0xb8, 0xad, 0x0f, 0x14, - 0x22, 0xe2, 0x25, 0x41, 0x25, 0x42, 0x08, 0xa1, 0x04, 0x41, 0x38, 0x42, 0x4e, 0x88, 0x4b, 0xb5, - 0x76, 0x37, 0xae, 0x25, 0x7b, 0xd7, 0xf5, 0x07, 0x6a, 0x54, 0x71, 0xe1, 0x09, 0x90, 0xfa, 0x1c, - 0x08, 0x89, 0x17, 0xe0, 0xc2, 0xa1, 0xc7, 0x4a, 0x5c, 0x38, 0x21, 0x94, 0xf0, 0x20, 0x28, 0xbb, - 0xd3, 0x7c, 0xda, 0x69, 0xc2, 0x6d, 0x33, 0xf9, 0xff, 0x67, 0x7e, 0xb3, 0x3b, 0x63, 0xb4, 0x13, - 0xf4, 0x1c, 0xe6, 0x93, 0x6e, 0x1a, 0x71, 0xea, 0x30, 0xf2, 0xa1, 0x66, 0xb3, 0x84, 0xd6, 0xc8, - 0x51, 0xca, 0xa2, 0x9e, 0x15, 0x46, 0x22, 0x11, 0xf8, 0x86, 0x94, 0x58, 0x20, 0xb1, 0x40, 0xa2, - 0x57, 0x1c, 0x11, 0x07, 0x22, 0x26, 0x36, 0x8d, 0x99, 0xd2, 0x8f, 0xdc, 0x21, 0x75, 0x3d, 0x4e, - 0x13, 0x4f, 0x70, 0x95, 0x42, 0x2f, 0xbb, 0xc2, 0x15, 0xf2, 0x48, 0x86, 0x27, 0x88, 0xde, 0x76, - 0x85, 0x70, 0x7d, 0x46, 0x68, 0xe8, 0x11, 0xca, 0xb9, 0x48, 0xa4, 0x25, 0x86, 0x7f, 0x77, 0xb3, - 0xc9, 0xec, 0x34, 0xe2, 0xfb, 0x34, 0x10, 0x29, 0x4f, 0x40, 0x58, 0xcd, 0x16, 0xb2, 0x50, 0x38, - 0x87, 0xfb, 0x52, 0xee, 0x08, 0xde, 0xf5, 0x5c, 0x90, 0x9b, 0xd9, 0xf2, 0x90, 0x46, 0x34, 0x80, - 0xda, 0x66, 0x19, 0xe1, 0xb7, 0xc3, 0x8e, 0xde, 0xc8, 0x60, 0x87, 0x1d, 0xa5, 0x2c, 0x4e, 0xcc, - 0x0e, 0xba, 0x3e, 0x15, 0x8d, 0x43, 0xc1, 0x63, 0x86, 0x9f, 0xa2, 0x92, 0x32, 0xdf, 0xd4, 0xb6, - 0xb5, 0x7b, 0x1b, 0xf5, 0x3b, 0x56, 0xe6, 0x85, 0x59, 0xca, 0xd6, 0x5a, 0x3f, 0xfb, 0xbd, 0x55, - 0xe8, 0x80, 0xc5, 0xdc, 0x46, 0x86, 0xcc, 0xd9, 0x66, 0xc9, 0xcb, 0x21, 0x70, 0x2b, 0x8d, 0xf8, - 0x0b, 0x89, 0x7b, 0x51, 0xf5, 0x04, 0x6d, 0xe5, 0x2a, 0x80, 0xe0, 0x1d, 0xba, 0x36, 0xd7, 0x2d, - 0xc0, 0xdc, 0xcd, 0x81, 0x99, 0x49, 0x05, 0x54, 0x9b, 0x6c, 0x3a, 0x6c, 0xd6, 0xd0, 0xad, 0x8b, - 0xe2, 0xc3, 0x68, 0x53, 0xde, 0x3b, 0x90, 0xe1, 0x32, 0x2a, 0x7a, 0xfc, 0x80, 0x1d, 0xcb, 0x52, - 0xeb, 0x1d, 0xf5, 0xc3, 0xec, 0x22, 0x3d, 0xcb, 0x02, 0xa8, 0xaf, 0xd1, 0xc6, 0xc4, 0x0b, 0x02, - 0xe4, 0x4e, 0x0e, 0xe4, 0xd8, 0x0f, 0x7c, 0xc8, 0x1e, 0x45, 0x4c, 0x07, 0xd0, 0x9a, 0xbe, 0x3f, - 0x8f, 0xf6, 0x0a, 0xa1, 0xf1, 0x10, 0x8e, 0xae, 0x42, 0x4d, 0xac, 0x35, 0x9c, 0x58, 0x4b, 0x4d, - 0xf8, 0xf8, 0x6d, 0x5c, 0x06, 0xde, 0xce, 0x84, 0xd3, 0xfc, 0xaa, 0x41, 0x37, 0x33, 0x55, 0xf2, - 0xba, 0xb9, 0xf2, 0x9f, 0xdd, 0xe0, 0xf6, 0x14, 0xf0, 0x9a, 0x04, 0xde, 0xbd, 0x14, 0x58, 0x61, - 0x4c, 0x12, 0xd7, 0x7f, 0x14, 0x51, 0x51, 0x12, 0xe3, 0x53, 0x0d, 0x95, 0xd4, 0xcc, 0xe1, 0xfb, - 0x39, 0x48, 0xf3, 0x43, 0xae, 0x57, 0x96, 0x91, 0xaa, 0xba, 0x66, 0xfd, 0xd3, 0xcf, 0xbf, 0xa7, - 0x6b, 0x0f, 0x70, 0x85, 0x48, 0x4f, 0xf5, 0x40, 0x04, 0xd4, 0xe3, 0x64, 0xd1, 0x82, 0xe1, 0xef, - 0x1a, 0xda, 0x9c, 0x19, 0x3e, 0xbc, 0xb7, 0xa8, 0x66, 0xee, 0x66, 0xe8, 0x8f, 0x57, 0xb5, 0x01, - 0xf6, 0x33, 0x89, 0xdd, 0xc0, 0x7b, 0xcb, 0x60, 0xcf, 0x2d, 0x16, 0xfe, 0xa6, 0x21, 0x34, 0x7e, - 0x4b, 0xfc, 0xf0, 0x12, 0x8a, 0xb9, 0xe1, 0xd4, 0x6b, 0x2b, 0x38, 0x00, 0xf9, 0xb9, 0x44, 0x7e, - 0x82, 0x1b, 0xcb, 0x20, 0x4f, 0x8c, 0x24, 0x39, 0x91, 0x4b, 0xf9, 0x11, 0x7f, 0xd1, 0xd0, 0xd5, - 0x71, 0xde, 0xa6, 0xef, 0x2f, 0xe6, 0xce, 0x5a, 0xaa, 0xc5, 0xdc, 0x99, 0x0b, 0x62, 0x36, 0x24, - 0x77, 0x0d, 0x93, 0x15, 0xb9, 0x5b, 0xed, 0xb3, 0xbe, 0xa1, 0x9d, 0xf7, 0x0d, 0xed, 0x4f, 0xdf, - 0xd0, 0x3e, 0x0f, 0x8c, 0xc2, 0xf9, 0xc0, 0x28, 0xfc, 0x1a, 0x18, 0x85, 0xf7, 0x55, 0xd7, 0x4b, - 0x0e, 0x53, 0xdb, 0x72, 0x44, 0x90, 0x95, 0xf4, 0x78, 0x94, 0x36, 0xe9, 0x85, 0x2c, 0xb6, 0x4b, - 0xf2, 0x8b, 0xfe, 0xe8, 0x5f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x43, 0xfa, 0x55, 0x1f, 0xe9, 0x06, - 0x00, 0x00, + proto.RegisterType((*QueryParamsRequest)(nil), "mycel.furnace.v1.QueryParamsRequest") + proto.RegisterType((*QueryParamsResponse)(nil), "mycel.furnace.v1.QueryParamsResponse") + proto.RegisterType((*QueryGetEpochBurnConfigRequest)(nil), "mycel.furnace.v1.QueryGetEpochBurnConfigRequest") + proto.RegisterType((*QueryGetEpochBurnConfigResponse)(nil), "mycel.furnace.v1.QueryGetEpochBurnConfigResponse") + proto.RegisterType((*QueryGetBurnAmountRequest)(nil), "mycel.furnace.v1.QueryGetBurnAmountRequest") + proto.RegisterType((*QueryGetBurnAmountResponse)(nil), "mycel.furnace.v1.QueryGetBurnAmountResponse") + proto.RegisterType((*QueryAllBurnAmountRequest)(nil), "mycel.furnace.v1.QueryAllBurnAmountRequest") + proto.RegisterType((*QueryAllBurnAmountResponse)(nil), "mycel.furnace.v1.QueryAllBurnAmountResponse") +} + +func init() { proto.RegisterFile("mycel/furnace/v1/query.proto", fileDescriptor_0fe488eb9523d22f) } + +var fileDescriptor_0fe488eb9523d22f = []byte{ + // 588 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x94, 0xcd, 0x6e, 0xd3, 0x4e, + 0x14, 0xc5, 0xe3, 0xfe, 0xd3, 0x2c, 0xa6, 0xfa, 0xab, 0x30, 0x64, 0x11, 0xac, 0xd4, 0x09, 0x86, + 0xd0, 0x8a, 0x12, 0x0f, 0x2e, 0x12, 0xfb, 0xa4, 0x82, 0xac, 0x90, 0x4a, 0xd8, 0xb1, 0xa9, 0xc6, + 0xee, 0xd4, 0xb5, 0x64, 0xcf, 0xb8, 0xfe, 0x08, 0x8d, 0x10, 0x1b, 0x9e, 0x00, 0x84, 0xc4, 0x0b, + 0xb0, 0xe3, 0x49, 0xba, 0xac, 0xd4, 0x0d, 0x2b, 0x84, 0x12, 0x1e, 0x04, 0x65, 0xe6, 0xb6, 0xf9, + 0x70, 0xdc, 0xd0, 0x5d, 0x72, 0xe7, 0xdc, 0x7b, 0x7e, 0xd7, 0x3e, 0x63, 0x54, 0x0f, 0x87, 0x2e, + 0x0b, 0xc8, 0x71, 0x16, 0x73, 0xea, 0x32, 0x32, 0xb0, 0xc9, 0x69, 0xc6, 0xe2, 0xa1, 0x15, 0xc5, + 0x22, 0x15, 0xf8, 0x8e, 0x3c, 0xb5, 0xe0, 0xd4, 0x1a, 0xd8, 0x7a, 0xd5, 0x13, 0x9e, 0x90, 0x87, + 0x64, 0xf2, 0x4b, 0xe9, 0xf4, 0xba, 0x27, 0x84, 0x17, 0x30, 0x42, 0x23, 0x9f, 0x50, 0xce, 0x45, + 0x4a, 0x53, 0x5f, 0xf0, 0x04, 0x4e, 0x9f, 0xb8, 0x22, 0x09, 0x45, 0x42, 0x1c, 0x9a, 0x30, 0x35, + 0x9e, 0x0c, 0x6c, 0x87, 0xa5, 0xd4, 0x26, 0x11, 0xf5, 0x7c, 0x2e, 0xc5, 0xa0, 0x35, 0x73, 0x3c, + 0x4e, 0x16, 0xf3, 0x43, 0x1a, 0x8a, 0x8c, 0xa7, 0xa0, 0xd9, 0xc9, 0x69, 0x58, 0x24, 0xdc, 0x93, + 0x43, 0xa9, 0x74, 0x05, 0x3f, 0xf6, 0x3d, 0x50, 0x6e, 0xe5, 0x94, 0x11, 0x8d, 0x69, 0x08, 0x60, + 0x66, 0x15, 0xe1, 0x37, 0x13, 0x9c, 0x03, 0x59, 0xec, 0xb3, 0xd3, 0x8c, 0x25, 0xa9, 0xf9, 0x1a, + 0xdd, 0x9b, 0xab, 0x26, 0x91, 0xe0, 0x09, 0xc3, 0x2f, 0x50, 0x45, 0x35, 0xd7, 0xb4, 0xa6, 0xb6, + 0xb3, 0xb1, 0x57, 0xb3, 0x16, 0x1f, 0x8e, 0xa5, 0x3a, 0xba, 0xe5, 0xf3, 0x5f, 0x8d, 0x52, 0x1f, + 0xd4, 0x66, 0x13, 0x19, 0x72, 0x5c, 0x8f, 0xa5, 0x2f, 0x27, 0x98, 0xdd, 0x2c, 0xe6, 0xfb, 0x12, + 0xf2, 0xca, 0x70, 0x80, 0x1a, 0x85, 0x0a, 0x30, 0x7f, 0x8b, 0xee, 0xe6, 0x76, 0x04, 0x8e, 0x07, + 0x79, 0x8e, 0x85, 0x29, 0x00, 0xb4, 0xc9, 0xe6, 0xcb, 0xa6, 0x8d, 0xee, 0x5f, 0xf9, 0x4e, 0xaa, + 0x1d, 0xf9, 0x8c, 0x01, 0x0a, 0x57, 0xd1, 0xba, 0xcf, 0x8f, 0xd8, 0x99, 0x74, 0x29, 0xf7, 0xd5, + 0x1f, 0x93, 0x22, 0x7d, 0x59, 0x0b, 0x50, 0xee, 0xa3, 0x8d, 0x99, 0xb7, 0x05, 0x7c, 0xf5, 0x3c, + 0xdf, 0xb4, 0x15, 0xd0, 0x90, 0x73, 0x5d, 0x31, 0x5d, 0xa0, 0xea, 0x04, 0x41, 0x9e, 0xea, 0x15, + 0x42, 0xd3, 0xc8, 0x80, 0xc1, 0x63, 0x4b, 0xe5, 0xcb, 0x9a, 0xe4, 0xcb, 0x52, 0xf1, 0x85, 0x7c, + 0x59, 0x07, 0xd4, 0x63, 0xd0, 0xdb, 0x9f, 0xe9, 0x34, 0x7f, 0x68, 0xb0, 0xc8, 0x82, 0x4b, 0xd1, + 0x22, 0xff, 0xdd, 0x7e, 0x11, 0xdc, 0x9b, 0x63, 0x5d, 0x93, 0xac, 0xdb, 0x2b, 0x59, 0x15, 0xc1, + 0x2c, 0xec, 0xde, 0x65, 0x19, 0xad, 0x4b, 0x58, 0xfc, 0x1e, 0x55, 0x54, 0xc6, 0xf0, 0xa3, 0x3c, + 0x4c, 0x3e, 0xca, 0x7a, 0x6b, 0x85, 0x4a, 0x99, 0x99, 0xcd, 0x4f, 0x97, 0x7f, 0xbe, 0xae, 0xe9, + 0xb8, 0x46, 0x0a, 0xee, 0x0b, 0xfe, 0xae, 0xa1, 0xcd, 0x85, 0x54, 0xe1, 0x67, 0x05, 0xc3, 0x0b, + 0x83, 0xae, 0xdb, 0xb7, 0xe8, 0x00, 0xb4, 0x5d, 0x89, 0xd6, 0xc2, 0x0f, 0xc9, 0xea, 0x4b, 0x8f, + 0xbf, 0x69, 0x08, 0x4d, 0x5f, 0x09, 0xde, 0x2d, 0xb6, 0xcb, 0x25, 0x4b, 0x7f, 0xfa, 0x6f, 0x62, + 0xc0, 0x6a, 0x4b, 0xac, 0x6d, 0xdc, 0x22, 0x37, 0x7d, 0xaf, 0xc8, 0x07, 0x79, 0x6b, 0x3e, 0xe2, + 0x2f, 0x1a, 0xfa, 0x7f, 0x3a, 0xa5, 0x13, 0x04, 0x85, 0x6c, 0xcb, 0x52, 0x5f, 0xc8, 0xb6, 0x34, + 0xbc, 0x66, 0x4b, 0xb2, 0x35, 0xf0, 0xd6, 0x8d, 0x6c, 0xdd, 0xde, 0xf9, 0xc8, 0xd0, 0x2e, 0x46, + 0x86, 0xf6, 0x7b, 0x64, 0x68, 0x9f, 0xc7, 0x46, 0xe9, 0x62, 0x6c, 0x94, 0x7e, 0x8e, 0x8d, 0xd2, + 0xbb, 0xb6, 0xe7, 0xa7, 0x27, 0x99, 0x63, 0xb9, 0x22, 0x54, 0x23, 0xda, 0x47, 0x22, 0xa4, 0x3e, + 0x87, 0x79, 0x67, 0xd7, 0x13, 0xd3, 0x61, 0xc4, 0x12, 0xa7, 0x22, 0x3f, 0xa6, 0xcf, 0xff, 0x06, + 0x00, 0x00, 0xff, 0xff, 0x21, 0x7c, 0x3c, 0xb4, 0x4b, 0x06, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -463,7 +462,7 @@ func NewQueryClient(cc grpc1.ClientConn) QueryClient { func (c *queryClient) Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) { out := new(QueryParamsResponse) - err := c.cc.Invoke(ctx, "/mycel.furnace.v1beta1.Query/Params", in, out, opts...) + err := c.cc.Invoke(ctx, "/mycel.furnace.v1.Query/Params", in, out, opts...) if err != nil { return nil, err } @@ -472,7 +471,7 @@ func (c *queryClient) Params(ctx context.Context, in *QueryParamsRequest, opts . func (c *queryClient) EpochBurnConfig(ctx context.Context, in *QueryGetEpochBurnConfigRequest, opts ...grpc.CallOption) (*QueryGetEpochBurnConfigResponse, error) { out := new(QueryGetEpochBurnConfigResponse) - err := c.cc.Invoke(ctx, "/mycel.furnace.v1beta1.Query/EpochBurnConfig", in, out, opts...) + err := c.cc.Invoke(ctx, "/mycel.furnace.v1.Query/EpochBurnConfig", in, out, opts...) if err != nil { return nil, err } @@ -481,7 +480,7 @@ func (c *queryClient) EpochBurnConfig(ctx context.Context, in *QueryGetEpochBurn func (c *queryClient) BurnAmount(ctx context.Context, in *QueryGetBurnAmountRequest, opts ...grpc.CallOption) (*QueryGetBurnAmountResponse, error) { out := new(QueryGetBurnAmountResponse) - err := c.cc.Invoke(ctx, "/mycel.furnace.v1beta1.Query/BurnAmount", in, out, opts...) + err := c.cc.Invoke(ctx, "/mycel.furnace.v1.Query/BurnAmount", in, out, opts...) if err != nil { return nil, err } @@ -490,7 +489,7 @@ func (c *queryClient) BurnAmount(ctx context.Context, in *QueryGetBurnAmountRequ func (c *queryClient) BurnAmountAll(ctx context.Context, in *QueryAllBurnAmountRequest, opts ...grpc.CallOption) (*QueryAllBurnAmountResponse, error) { out := new(QueryAllBurnAmountResponse) - err := c.cc.Invoke(ctx, "/mycel.furnace.v1beta1.Query/BurnAmountAll", in, out, opts...) + err := c.cc.Invoke(ctx, "/mycel.furnace.v1.Query/BurnAmountAll", in, out, opts...) if err != nil { return nil, err } @@ -539,7 +538,7 @@ func _Query_Params_Handler(srv interface{}, ctx context.Context, dec func(interf } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mycel.furnace.v1beta1.Query/Params", + FullMethod: "/mycel.furnace.v1.Query/Params", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).Params(ctx, req.(*QueryParamsRequest)) @@ -557,7 +556,7 @@ func _Query_EpochBurnConfig_Handler(srv interface{}, ctx context.Context, dec fu } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mycel.furnace.v1beta1.Query/EpochBurnConfig", + FullMethod: "/mycel.furnace.v1.Query/EpochBurnConfig", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).EpochBurnConfig(ctx, req.(*QueryGetEpochBurnConfigRequest)) @@ -575,7 +574,7 @@ func _Query_BurnAmount_Handler(srv interface{}, ctx context.Context, dec func(in } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mycel.furnace.v1beta1.Query/BurnAmount", + FullMethod: "/mycel.furnace.v1.Query/BurnAmount", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).BurnAmount(ctx, req.(*QueryGetBurnAmountRequest)) @@ -593,7 +592,7 @@ func _Query_BurnAmountAll_Handler(srv interface{}, ctx context.Context, dec func } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mycel.furnace.v1beta1.Query/BurnAmountAll", + FullMethod: "/mycel.furnace.v1.Query/BurnAmountAll", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).BurnAmountAll(ctx, req.(*QueryAllBurnAmountRequest)) @@ -602,7 +601,7 @@ func _Query_BurnAmountAll_Handler(srv interface{}, ctx context.Context, dec func } var _Query_serviceDesc = grpc.ServiceDesc{ - ServiceName: "mycel.furnace.v1beta1.Query", + ServiceName: "mycel.furnace.v1.Query", HandlerType: (*QueryServer)(nil), Methods: []grpc.MethodDesc{ { @@ -623,7 +622,7 @@ var _Query_serviceDesc = grpc.ServiceDesc{ }, }, Streams: []grpc.StreamDesc{}, - Metadata: "mycel/furnace/v1beta1/query.proto", + Metadata: "mycel/furnace/v1/query.proto", } func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error) { diff --git a/x/furnace/types/query.pb.gw.go b/x/furnace/types/query.pb.gw.go index 29f2cd29..84213d1e 100644 --- a/x/furnace/types/query.pb.gw.go +++ b/x/furnace/types/query.pb.gw.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-grpc-gateway. DO NOT EDIT. -// source: mycel/furnace/v1beta1/query.proto +// source: mycel/furnace/v1/query.proto /* Package types is a reverse proxy. @@ -382,13 +382,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, 2, 4}, []string{"mycel-domain", "mycel", "furnace", "v1beta1", "params"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_Params_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"mycel", "furnace", "v1", "params"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_EpochBurnConfig_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4}, []string{"mycel-domain", "mycel", "furnace", "v1beta1", "epoch_burn_config"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_EpochBurnConfig_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"mycel", "furnace", "v1", "epoch_burn_config"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_BurnAmount_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4, 1, 0, 4, 1, 5, 5}, []string{"mycel-domain", "mycel", "furnace", "v1beta1", "burn_amount", "index"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_BurnAmount_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"mycel", "furnace", "v1", "burn_amount", "index"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_BurnAmountAll_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4}, []string{"mycel-domain", "mycel", "furnace", "v1beta1", "burn_amount"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_BurnAmountAll_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"mycel", "furnace", "v1", "burn_amount"}, "", runtime.AssumeColonVerbOpt(false))) ) var ( diff --git a/x/furnace/types/tx.pb.go b/x/furnace/types/tx.pb.go index b60827b0..4b78d5aa 100644 --- a/x/furnace/types/tx.pb.go +++ b/x/furnace/types/tx.pb.go @@ -1,11 +1,12 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: mycel/furnace/v1beta1/tx.proto +// source: mycel/furnace/v1/tx.proto package types import ( context "context" fmt "fmt" + _ "github.com/cosmos/cosmos-sdk/types/msgservice" grpc1 "github.com/cosmos/gogoproto/grpc" proto "github.com/cosmos/gogoproto/proto" grpc "google.golang.org/grpc" @@ -23,19 +24,20 @@ var _ = math.Inf // proto package needs to be updated. const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package -func init() { proto.RegisterFile("mycel/furnace/v1beta1/tx.proto", fileDescriptor_05edf4bed6d6ee12) } +func init() { proto.RegisterFile("mycel/furnace/v1/tx.proto", fileDescriptor_3dc99cfa92ecb1ae) } -var fileDescriptor_05edf4bed6d6ee12 = []byte{ - // 138 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0xcb, 0xad, 0x4c, 0x4e, - 0xcd, 0xd1, 0x4f, 0x2b, 0x2d, 0xca, 0x4b, 0x4c, 0x4e, 0xd5, 0x2f, 0x33, 0x4c, 0x4a, 0x2d, 0x49, - 0x34, 0xd4, 0x2f, 0xa9, 0xd0, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, 0x05, 0xcb, 0xeb, 0x41, - 0xe5, 0xf5, 0xa0, 0xf2, 0x46, 0xac, 0x5c, 0xcc, 0xbe, 0xc5, 0xe9, 0x4e, 0xee, 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, 0x9b, 0x9e, 0x59, 0x92, 0x51, 0x9a, 0xa4, 0x97, - 0x9c, 0x9f, 0xab, 0x0f, 0x36, 0x42, 0x37, 0x25, 0x3f, 0x37, 0x31, 0x33, 0x0f, 0xc2, 0xd1, 0xaf, - 0x80, 0xdb, 0x58, 0x52, 0x59, 0x90, 0x5a, 0x9c, 0xc4, 0x06, 0xb6, 0xcd, 0x18, 0x10, 0x00, 0x00, - 0xff, 0xff, 0xfb, 0x04, 0xbd, 0x32, 0x8f, 0x00, 0x00, 0x00, +var fileDescriptor_3dc99cfa92ecb1ae = []byte{ + // 160 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0xcc, 0xad, 0x4c, 0x4e, + 0xcd, 0xd1, 0x4f, 0x2b, 0x2d, 0xca, 0x4b, 0x4c, 0x4e, 0xd5, 0x2f, 0x33, 0xd4, 0x2f, 0xa9, 0xd0, + 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, 0x00, 0x4b, 0xe9, 0x41, 0xa5, 0xf4, 0xca, 0x0c, 0xa5, + 0xc4, 0x93, 0xf3, 0x8b, 0x73, 0xf3, 0x8b, 0xf5, 0x73, 0x8b, 0xd3, 0x41, 0x2a, 0x73, 0x8b, 0xd3, + 0x21, 0x4a, 0x8d, 0x78, 0xb8, 0x98, 0x7d, 0x8b, 0xd3, 0xa5, 0x58, 0x1b, 0x9e, 0x6f, 0xd0, 0x62, + 0x74, 0x72, 0x3f, 0xf1, 0x48, 0x8e, 0xf1, 0xc2, 0x23, 0x39, 0xc6, 0x07, 0x8f, 0xe4, 0x18, 0x27, + 0x3c, 0x96, 0x63, 0xb8, 0xf0, 0x58, 0x8e, 0xe1, 0xc6, 0x63, 0x39, 0x86, 0x28, 0xdd, 0xf4, 0xcc, + 0x92, 0x8c, 0xd2, 0x24, 0xbd, 0xe4, 0xfc, 0x5c, 0x7d, 0xb0, 0xe9, 0xba, 0x29, 0xf9, 0xb9, 0x89, + 0x99, 0x79, 0x10, 0x8e, 0x7e, 0x05, 0xdc, 0x1d, 0x25, 0x95, 0x05, 0xa9, 0xc5, 0x49, 0x6c, 0x60, + 0xd3, 0x8d, 0x01, 0x01, 0x00, 0x00, 0xff, 0xff, 0x29, 0x6e, 0x5d, 0x22, 0xa5, 0x00, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -73,9 +75,9 @@ func RegisterMsgServer(s grpc1.Server, srv MsgServer) { } var _Msg_serviceDesc = grpc.ServiceDesc{ - ServiceName: "mycel.furnace.v1beta1.Msg", + ServiceName: "mycel.furnace.v1.Msg", HandlerType: (*MsgServer)(nil), Methods: []grpc.MethodDesc{}, Streams: []grpc.StreamDesc{}, - Metadata: "mycel/furnace/v1beta1/tx.proto", + Metadata: "mycel/furnace/v1/tx.proto", } diff --git a/x/registry/client/cli/query.go b/x/registry/client/cli/query.go deleted file mode 100644 index 30110aa7..00000000 --- a/x/registry/client/cli/query.go +++ /dev/null @@ -1,39 +0,0 @@ -package cli - -import ( - "fmt" - - "github.com/spf13/cobra" - - "github.com/cosmos/cosmos-sdk/client" - - "github.com/mycel-domain/mycel/x/registry/types" -) - -// GetQueryCmd returns the cli query commands for this module -func GetQueryCmd(queryRoute string) *cobra.Command { - // Group registry 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(CmdListTopLevelDomain()) - cmd.AddCommand(CmdShowTopLevelDomain()) - cmd.AddCommand(CmdListSecondLevelDomain()) - cmd.AddCommand(CmdShowSecondLevelDomain()) - cmd.AddCommand(CmdListDomainOwnership()) - cmd.AddCommand(CmdShowDomainOwnership()) - cmd.AddCommand(CmdDomainRegistrationFee()) - cmd.AddCommand(CmdListTopLevelDomain()) - cmd.AddCommand(CmdShowTopLevelDomain()) - cmd.AddCommand(CmdRole()) - - // this line is used by starport scaffolding # 1 - - return cmd -} diff --git a/x/registry/client/cli/query_domain_ownership.go b/x/registry/client/cli/query_domain_ownership.go deleted file mode 100644 index 7a698330..00000000 --- a/x/registry/client/cli/query_domain_ownership.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/registry/types" -) - -func CmdListDomainOwnership() *cobra.Command { - cmd := &cobra.Command{ - Use: "list-domain-ownership", - Short: "list all domainOwnership", - 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.QueryAllDomainOwnershipRequest{ - Pagination: pageReq, - } - - res, err := queryClient.DomainOwnershipAll(context.Background(), params) - if err != nil { - return err - } - - return clientCtx.PrintProto(res) - }, - } - - flags.AddPaginationFlagsToCmd(cmd, cmd.Use) - flags.AddQueryFlagsToCmd(cmd) - - return cmd -} - -func CmdShowDomainOwnership() *cobra.Command { - cmd := &cobra.Command{ - Use: "show-domain-ownership [owner]", - Short: "shows a domainOwnership", - Args: cobra.ExactArgs(1), - RunE: func(cmd *cobra.Command, args []string) (err error) { - clientCtx := client.GetClientContextFromCmd(cmd) - - queryClient := types.NewQueryClient(clientCtx) - - argOwner := args[0] - - params := &types.QueryGetDomainOwnershipRequest{ - Owner: argOwner, - } - - res, err := queryClient.DomainOwnership(context.Background(), params) - if err != nil { - return err - } - - return clientCtx.PrintProto(res) - }, - } - - flags.AddQueryFlagsToCmd(cmd) - - return cmd -} diff --git a/x/registry/client/cli/query_domain_ownership_test.go b/x/registry/client/cli/query_domain_ownership_test.go deleted file mode 100644 index d9dd748f..00000000 --- a/x/registry/client/cli/query_domain_ownership_test.go +++ /dev/null @@ -1,165 +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/registry/client/cli" - "github.com/mycel-domain/mycel/x/registry/types" -) - -// Prevent strconv unused error -var _ = strconv.IntSize - -func networkWithDomainOwnershipObjects(t *testing.T, n int) (*network.Network, []types.DomainOwnership) { - 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++ { - domainOwnership := types.DomainOwnership{ - Owner: strconv.Itoa(i), - } - nullify.Fill(&domainOwnership) - state.DomainOwnerships = append(state.DomainOwnerships, domainOwnership) - } - buf, err := cfg.Codec.MarshalJSON(&state) - require.NoError(t, err) - cfg.GenesisState[types.ModuleName] = buf - return network.New(t, cfg), state.DomainOwnerships -} - -func TestShowDomainOwnership(t *testing.T) { - net, objs := networkWithDomainOwnershipObjects(t, 2) - - ctx := net.Validators[0].ClientCtx - common := []string{ - fmt.Sprintf("--%s=json", tmcli.OutputFlag), - } - tests := []struct { - desc string - idOwner string - - args []string - err error - obj types.DomainOwnership - }{ - { - desc: "found", - idOwner: objs[0].Owner, - - args: common, - obj: objs[0], - }, - { - desc: "not found", - idOwner: strconv.Itoa(100000), - - args: common, - err: status.Error(codes.NotFound, "not found"), - }, - } - for i := range tests { - tc := tests[i] - t.Run(tc.desc, func(t *testing.T) { - args := []string{ - tc.idOwner, - } - args = append(args, tc.args...) - out, err := clitestutil.ExecTestCLICmd(ctx, cli.CmdShowDomainOwnership(), 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.QueryGetDomainOwnershipResponse - require.NoError(t, net.Config.Codec.UnmarshalJSON(out.Bytes(), &resp)) - require.NotNil(t, resp.DomainOwnership) - require.Equal(t, - nullify.Fill(&tc.obj), - nullify.Fill(&resp.DomainOwnership), - ) - } - }) - } -} - -func TestListDomainOwnership(t *testing.T) { - net, objs := networkWithDomainOwnershipObjects(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.CmdListDomainOwnership(), args) - require.NoError(t, err) - var resp types.QueryAllDomainOwnershipResponse - require.NoError(t, net.Config.Codec.UnmarshalJSON(out.Bytes(), &resp)) - require.LessOrEqual(t, len(resp.DomainOwnership), step) - require.Subset(t, - nullify.Fill(objs), - nullify.Fill(resp.DomainOwnership), - ) - } - }) - 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.CmdListDomainOwnership(), args) - require.NoError(t, err) - var resp types.QueryAllDomainOwnershipResponse - require.NoError(t, net.Config.Codec.UnmarshalJSON(out.Bytes(), &resp)) - require.LessOrEqual(t, len(resp.DomainOwnership), step) - require.Subset(t, - nullify.Fill(objs), - nullify.Fill(resp.DomainOwnership), - ) - 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.CmdListDomainOwnership(), args) - require.NoError(t, err) - var resp types.QueryAllDomainOwnershipResponse - require.NoError(t, net.Config.Codec.UnmarshalJSON(out.Bytes(), &resp)) - require.NoError(t, err) - require.Equal(t, len(objs), int(resp.Pagination.Total)) - require.ElementsMatch(t, - nullify.Fill(objs), - nullify.Fill(resp.DomainOwnership), - ) - }) -} diff --git a/x/registry/client/cli/query_domain_registration_fee.go b/x/registry/client/cli/query_domain_registration_fee.go deleted file mode 100644 index 810db877..00000000 --- a/x/registry/client/cli/query_domain_registration_fee.go +++ /dev/null @@ -1,55 +0,0 @@ -package cli - -import ( - "strconv" - - "github.com/spf13/cast" - "github.com/spf13/cobra" - - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/client/flags" - - "github.com/mycel-domain/mycel/x/registry/types" -) - -var _ = strconv.Itoa(0) - -func CmdDomainRegistrationFee() *cobra.Command { - cmd := &cobra.Command{ - Use: "domain-registration-fee [name] [parent] [registration-period-in-year]", - Short: "query domain registration fee", - Args: cobra.ExactArgs(3), - RunE: func(cmd *cobra.Command, args []string) (err error) { - reqName := args[0] - reqParent := args[1] - reqRegistrationPeriodInYear, err := cast.ToUint64E(args[2]) - if err != nil { - return err - } - - clientCtx, err := client.GetClientQueryContext(cmd) - if err != nil { - return err - } - - queryClient := types.NewQueryClient(clientCtx) - - params := &types.QueryDomainRegistrationFeeRequest{ - Name: reqName, - Parent: reqParent, - RegistrationPeriodInYear: reqRegistrationPeriodInYear, - } - - res, err := queryClient.DomainRegistrationFee(cmd.Context(), params) - if err != nil { - return err - } - - return clientCtx.PrintProto(res) - }, - } - - flags.AddQueryFlagsToCmd(cmd) - - return cmd -} diff --git a/x/registry/client/cli/query_params.go b/x/registry/client/cli/query_params.go deleted file mode 100644 index 6bdc8b6c..00000000 --- a/x/registry/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/registry/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/registry/client/cli/query_role.go b/x/registry/client/cli/query_role.go deleted file mode 100644 index 72e767b8..00000000 --- a/x/registry/client/cli/query_role.go +++ /dev/null @@ -1,49 +0,0 @@ -package cli - -import ( - "strconv" - - "github.com/spf13/cobra" - - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/client/flags" - - "github.com/mycel-domain/mycel/x/registry/types" -) - -var _ = strconv.Itoa(0) - -func CmdRole() *cobra.Command { - cmd := &cobra.Command{ - Use: "role [domain-name] [address]", - Short: "Query role", - Args: cobra.ExactArgs(2), - RunE: func(cmd *cobra.Command, args []string) (err error) { - reqDomainName := args[0] - reqAddress := args[1] - - clientCtx, err := client.GetClientQueryContext(cmd) - if err != nil { - return err - } - - queryClient := types.NewQueryClient(clientCtx) - - params := &types.QueryRoleRequest{ - DomainName: reqDomainName, - Address: reqAddress, - } - - res, err := queryClient.Role(cmd.Context(), params) - if err != nil { - return err - } - - return clientCtx.PrintProto(res) - }, - } - - flags.AddQueryFlagsToCmd(cmd) - - return cmd -} diff --git a/x/registry/client/cli/query_second_level_domain.go b/x/registry/client/cli/query_second_level_domain.go deleted file mode 100644 index 16648d51..00000000 --- a/x/registry/client/cli/query_second_level_domain.go +++ /dev/null @@ -1,77 +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/registry/types" -) - -func CmdListSecondLevelDomain() *cobra.Command { - cmd := &cobra.Command{ - Use: "list-second-level-domain", - Short: "list all secondLevelDomains", - 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.QueryAllSecondLevelDomainRequest{ - Pagination: pageReq, - } - - res, err := queryClient.SecondLevelDomainAll(context.Background(), params) - if err != nil { - return err - } - - return clientCtx.PrintProto(res) - }, - } - - flags.AddPaginationFlagsToCmd(cmd, cmd.Use) - flags.AddQueryFlagsToCmd(cmd) - - return cmd -} - -func CmdShowSecondLevelDomain() *cobra.Command { - cmd := &cobra.Command{ - Use: "show-second-level-domain [name] [parent]", - Short: "shows a secondLevelDomain", - Args: cobra.ExactArgs(2), - RunE: func(cmd *cobra.Command, args []string) (err error) { - clientCtx := client.GetClientContextFromCmd(cmd) - - queryClient := types.NewQueryClient(clientCtx) - - argName := args[0] - argParent := args[1] - - params := &types.QueryGetSecondLevelDomainRequest{ - Name: argName, - Parent: argParent, - } - - res, err := queryClient.SecondLevelDomain(context.Background(), params) - if err != nil { - return err - } - - return clientCtx.PrintProto(res) - }, - } - - flags.AddQueryFlagsToCmd(cmd) - - return cmd -} diff --git a/x/registry/client/cli/query_second_level_domain_test.go b/x/registry/client/cli/query_second_level_domain_test.go deleted file mode 100644 index ff88cf36..00000000 --- a/x/registry/client/cli/query_second_level_domain_test.go +++ /dev/null @@ -1,179 +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/registry/client/cli" - "github.com/mycel-domain/mycel/x/registry/types" -) - -// Prevent strconv unused error -var _ = strconv.IntSize - -func networkWithSecondLevelDomainObjects(t *testing.T, n int) (*network.Network, []types.SecondLevelDomainResponse) { - 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++ { - secondLevelDomain := types.SecondLevelDomain{ - Name: strconv.Itoa(i), - Parent: strconv.Itoa(i), - Records: []*types.Record{}, - AccessControl: []*types.AccessControl{}, - } - nullify.Fill(&secondLevelDomain) - state.SecondLevelDomains = append(state.SecondLevelDomains, secondLevelDomain) - } - buf, err := cfg.Codec.MarshalJSON(&state) - require.NoError(t, err) - cfg.GenesisState[types.ModuleName] = buf - - objs := make([]types.SecondLevelDomainResponse, n) - for i := range state.SecondLevelDomains { - objs[i].Name = state.SecondLevelDomains[i].Name - objs[i].Parent = state.SecondLevelDomains[i].Parent - objs[i].ExpirationDate = state.SecondLevelDomains[i].ExpirationDate - } - return network.New(t, cfg), objs -} - -func TestShowSecondLevelDomain(t *testing.T) { - net, objs := networkWithSecondLevelDomainObjects(t, 2) - - ctx := net.Validators[0].ClientCtx - common := []string{ - fmt.Sprintf("--%s=json", tmcli.OutputFlag), - } - tests := []struct { - desc string - idName string - idParent string - - args []string - err error - obj types.SecondLevelDomainResponse - }{ - { - desc: "found", - idName: objs[0].Name, - idParent: objs[0].Parent, - - args: common, - obj: objs[0], - }, - { - desc: "not found", - idName: strconv.Itoa(100000), - idParent: strconv.Itoa(100000), - - args: common, - err: status.Error(codes.NotFound, "not found"), - }, - } - for i := range tests { - tc := tests[i] - t.Run(tc.desc, func(t *testing.T) { - args := []string{ - tc.idName, - tc.idParent, - } - args = append(args, tc.args...) - out, err := clitestutil.ExecTestCLICmd(ctx, cli.CmdShowSecondLevelDomain(), 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.QueryGetSecondLevelDomainResponse - require.NoError(t, net.Config.Codec.UnmarshalJSON(out.Bytes(), &resp)) - require.NotNil(t, resp.SecondLevelDomain) - require.Equal(t, - nullify.Fill(&tc.obj), - nullify.Fill(&resp.SecondLevelDomain), - ) - } - }) - } -} - -func TestListSecondLevelDomain(t *testing.T) { - net, objs := networkWithSecondLevelDomainObjects(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.CmdListSecondLevelDomain(), args) - require.NoError(t, err) - var resp types.QueryAllSecondLevelDomainResponse - require.NoError(t, net.Config.Codec.UnmarshalJSON(out.Bytes(), &resp)) - require.LessOrEqual(t, len(resp.SecondLevelDomain), step) - require.Subset(t, - nullify.Fill(objs), - nullify.Fill(resp.SecondLevelDomain), - ) - } - }) - 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.CmdListSecondLevelDomain(), args) - require.NoError(t, err) - var resp types.QueryAllSecondLevelDomainResponse - require.NoError(t, net.Config.Codec.UnmarshalJSON(out.Bytes(), &resp)) - require.LessOrEqual(t, len(resp.SecondLevelDomain), step) - require.Subset(t, - nullify.Fill(objs), - nullify.Fill(resp.SecondLevelDomain), - ) - 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.CmdListSecondLevelDomain(), args) - require.NoError(t, err) - var resp types.QueryAllSecondLevelDomainResponse - require.NoError(t, net.Config.Codec.UnmarshalJSON(out.Bytes(), &resp)) - require.NoError(t, err) - require.Equal(t, len(objs), int(resp.Pagination.Total)) - require.ElementsMatch(t, - nullify.Fill(objs), - nullify.Fill(resp.SecondLevelDomain), - ) - }) -} diff --git a/x/registry/client/cli/query_top_level_domain.go b/x/registry/client/cli/query_top_level_domain.go deleted file mode 100644 index 699fc61a..00000000 --- a/x/registry/client/cli/query_top_level_domain.go +++ /dev/null @@ -1,79 +0,0 @@ -package cli - -import ( - "github.com/spf13/cobra" - - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/client/flags" - - "github.com/mycel-domain/mycel/x/registry/types" -) - -func CmdListTopLevelDomain() *cobra.Command { - cmd := &cobra.Command{ - Use: "list-top-level-domain", - Short: "list all topLevelDomain", - RunE: func(cmd *cobra.Command, args []string) error { - clientCtx, err := client.GetClientQueryContext(cmd) - if err != nil { - return err - } - - pageReq, err := client.ReadPageRequest(cmd.Flags()) - if err != nil { - return err - } - - queryClient := types.NewQueryClient(clientCtx) - - params := &types.QueryAllTopLevelDomainRequest{ - Pagination: pageReq, - } - - res, err := queryClient.TopLevelDomainAll(cmd.Context(), params) - if err != nil { - return err - } - - return clientCtx.PrintProto(res) - }, - } - - flags.AddPaginationFlagsToCmd(cmd, cmd.Use) - flags.AddQueryFlagsToCmd(cmd) - - return cmd -} - -func CmdShowTopLevelDomain() *cobra.Command { - cmd := &cobra.Command{ - Use: "show-top-level-domain [name]", - Short: "shows a topLevelDomain", - Args: cobra.ExactArgs(1), - RunE: func(cmd *cobra.Command, args []string) (err error) { - clientCtx, err := client.GetClientQueryContext(cmd) - if err != nil { - return err - } - - queryClient := types.NewQueryClient(clientCtx) - - argName := args[0] - - params := &types.QueryGetTopLevelDomainRequest{ - Name: argName, - } - - res, err := queryClient.TopLevelDomain(cmd.Context(), params) - if err != nil { - return err - } - - return clientCtx.PrintProto(res) - }, - } - - flags.AddQueryFlagsToCmd(cmd) - - return cmd -} diff --git a/x/registry/client/cli/query_top_level_domain_test.go b/x/registry/client/cli/query_top_level_domain_test.go deleted file mode 100644 index 4cba9084..00000000 --- a/x/registry/client/cli/query_top_level_domain_test.go +++ /dev/null @@ -1,164 +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/registry/client/cli" - "github.com/mycel-domain/mycel/x/registry/types" -) - -// Prevent strconv unused error -var _ = strconv.IntSize - -func networkWithTopLevelDomainObjects(t *testing.T, n int) (*network.Network, []types.TopLevelDomain) { - t.Helper() - cfg := network.DefaultConfig() - state := types.GenesisState{} - for i := 0; i < n; i++ { - topLevelDomain := types.TopLevelDomain{ - Name: strconv.Itoa(i), - AccessControl: []*types.AccessControl{}, - } - nullify.Fill(&topLevelDomain) - state.TopLevelDomains = append(state.TopLevelDomains, topLevelDomain) - } - buf, err := cfg.Codec.MarshalJSON(&state) - require.NoError(t, err) - cfg.GenesisState[types.ModuleName] = buf - return network.New(t, cfg), state.TopLevelDomains -} - -func TestShowTopLevelDomain(t *testing.T) { - net, objs := networkWithTopLevelDomainObjects(t, 2) - - ctx := net.Validators[0].ClientCtx - common := []string{ - fmt.Sprintf("--%s=json", tmcli.OutputFlag), - } - tests := []struct { - desc string - idName string - - args []string - err error - obj types.TopLevelDomain - }{ - { - desc: "found", - idName: objs[0].Name, - - args: common, - obj: objs[0], - }, - { - desc: "not found", - idName: strconv.Itoa(100000), - - args: common, - err: status.Error(codes.NotFound, "not found"), - }, - } - for i := range tests { - tc := tests[i] - t.Run(tc.desc, func(t *testing.T) { - args := []string{ - tc.idName, - } - args = append(args, tc.args...) - out, err := clitestutil.ExecTestCLICmd(ctx, cli.CmdShowTopLevelDomain(), 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.QueryGetTopLevelDomainResponse - require.NoError(t, net.Config.Codec.UnmarshalJSON(out.Bytes(), &resp)) - require.NotNil(t, resp.TopLevelDomain) - require.Equal(t, - nullify.Fill(&tc.obj), - nullify.Fill(&resp.TopLevelDomain), - ) - } - }) - } -} - -func TestListTopLevelDomain(t *testing.T) { - net, objs := networkWithTopLevelDomainObjects(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.CmdListTopLevelDomain(), args) - require.NoError(t, err) - var resp types.QueryAllTopLevelDomainResponse - require.NoError(t, net.Config.Codec.UnmarshalJSON(out.Bytes(), &resp)) - require.LessOrEqual(t, len(resp.TopLevelDomain), step) - require.Subset(t, - nullify.Fill(objs), - nullify.Fill(resp.TopLevelDomain), - ) - } - }) - 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.CmdListTopLevelDomain(), args) - require.NoError(t, err) - var resp types.QueryAllTopLevelDomainResponse - require.NoError(t, net.Config.Codec.UnmarshalJSON(out.Bytes(), &resp)) - require.LessOrEqual(t, len(resp.TopLevelDomain), step) - require.Subset(t, - nullify.Fill(objs), - nullify.Fill(resp.TopLevelDomain), - ) - 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.CmdListTopLevelDomain(), args) - require.NoError(t, err) - var resp types.QueryAllTopLevelDomainResponse - require.NoError(t, net.Config.Codec.UnmarshalJSON(out.Bytes(), &resp)) - require.NoError(t, err) - require.Equal(t, len(objs), int(resp.Pagination.Total)) - require.ElementsMatch(t, - nullify.Fill(objs), - nullify.Fill(resp.TopLevelDomain), - ) - }) -} diff --git a/x/registry/client/cli/tx.go b/x/registry/client/cli/tx.go deleted file mode 100644 index 727d7dcd..00000000 --- a/x/registry/client/cli/tx.go +++ /dev/null @@ -1,43 +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/registry/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, - } - - cmd.AddCommand(CmdUpdateWalletRecord()) - cmd.AddCommand(CmdUpdateDnsRecord()) - cmd.AddCommand(CmdRegisterDomain()) - cmd.AddCommand(CmdRegisterTopLevelDomain()) - cmd.AddCommand(CmdWithdrawRegistrationFee()) - cmd.AddCommand(CmdExtendTopLevelDomainExpirationDate()) - cmd.AddCommand(CmdUpdateTextRecord()) - cmd.AddCommand(CmdUpdateTopLevelDomainRegistrationPolicy()) - // this line is used by starport scaffolding # 1 - - return cmd -} diff --git a/x/registry/client/cli/tx_extend_top_level_domain_expiration_date.go b/x/registry/client/cli/tx_extend_top_level_domain_expiration_date.go deleted file mode 100644 index 18dbe681..00000000 --- a/x/registry/client/cli/tx_extend_top_level_domain_expiration_date.go +++ /dev/null @@ -1,50 +0,0 @@ -package cli - -import ( - "strconv" - - "github.com/spf13/cast" - "github.com/spf13/cobra" - - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/client/flags" - "github.com/cosmos/cosmos-sdk/client/tx" - - "github.com/mycel-domain/mycel/x/registry/types" -) - -var _ = strconv.Itoa(0) - -func CmdExtendTopLevelDomainExpirationDate() *cobra.Command { - cmd := &cobra.Command{ - Use: "extend-top-level-domain-expiration-date [name] [extension-period-in-year]", - Short: "Broadcast message extendTopLevelDomainExpirationDate", - Args: cobra.ExactArgs(2), - RunE: func(cmd *cobra.Command, args []string) (err error) { - argName := args[0] - argExtensionPeriodInYear, err := cast.ToUint64E(args[1]) - if err != nil { - return err - } - - clientCtx, err := client.GetClientTxContext(cmd) - if err != nil { - return err - } - - msg := types.NewMsgExtendTopLevelDomainExpirationDate( - clientCtx.GetFromAddress().String(), - argName, - argExtensionPeriodInYear, - ) - if err := msg.ValidateBasic(); err != nil { - return err - } - return tx.GenerateOrBroadcastTxCLI(clientCtx, cmd.Flags(), msg) - }, - } - - flags.AddTxFlagsToCmd(cmd) - - return cmd -} diff --git a/x/registry/client/cli/tx_register_second_level_domain.go b/x/registry/client/cli/tx_register_second_level_domain.go deleted file mode 100644 index 52cbfc97..00000000 --- a/x/registry/client/cli/tx_register_second_level_domain.go +++ /dev/null @@ -1,52 +0,0 @@ -package cli - -import ( - "strconv" - - "github.com/spf13/cast" - "github.com/spf13/cobra" - - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/client/flags" - "github.com/cosmos/cosmos-sdk/client/tx" - - "github.com/mycel-domain/mycel/x/registry/types" -) - -var _ = strconv.Itoa(0) - -func CmdRegisterDomain() *cobra.Command { - cmd := &cobra.Command{ - Use: "register-second-level-domain [name] [parent] [registration-period-in-year]", - Short: "Broadcast message registerSecondLevelDomain", - Args: cobra.ExactArgs(3), - RunE: func(cmd *cobra.Command, args []string) (err error) { - argName := args[0] - argParent := args[1] - argRegistrationPeriodInYear, err := cast.ToUint64E(args[2]) - if err != nil { - return err - } - - clientCtx, err := client.GetClientTxContext(cmd) - if err != nil { - return err - } - - msg := types.NewMsgRegisterSecondLevelDomain( - clientCtx.GetFromAddress().String(), - argName, - argParent, - argRegistrationPeriodInYear, - ) - if err := msg.ValidateBasic(); err != nil { - return err - } - return tx.GenerateOrBroadcastTxCLI(clientCtx, cmd.Flags(), msg) - }, - } - - flags.AddTxFlagsToCmd(cmd) - - return cmd -} diff --git a/x/registry/client/cli/tx_register_top_level_domain.go b/x/registry/client/cli/tx_register_top_level_domain.go deleted file mode 100644 index 8dcf25d0..00000000 --- a/x/registry/client/cli/tx_register_top_level_domain.go +++ /dev/null @@ -1,50 +0,0 @@ -package cli - -import ( - "strconv" - - "github.com/spf13/cast" - "github.com/spf13/cobra" - - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/client/flags" - "github.com/cosmos/cosmos-sdk/client/tx" - - "github.com/mycel-domain/mycel/x/registry/types" -) - -var _ = strconv.Itoa(0) - -func CmdRegisterTopLevelDomain() *cobra.Command { - cmd := &cobra.Command{ - Use: "register-top-level-domain [name] [registration-period-in-year]", - Short: "Broadcast message registerTopLevelDomain", - Args: cobra.ExactArgs(2), - RunE: func(cmd *cobra.Command, args []string) (err error) { - argName := args[0] - argRegistrationPeriodInYear, err := cast.ToUint64E(args[1]) - if err != nil { - return err - } - - clientCtx, err := client.GetClientTxContext(cmd) - if err != nil { - return err - } - - msg := types.NewMsgRegisterTopLevelDomain( - clientCtx.GetFromAddress().String(), - argName, - argRegistrationPeriodInYear, - ) - if err := msg.ValidateBasic(); err != nil { - return err - } - return tx.GenerateOrBroadcastTxCLI(clientCtx, cmd.Flags(), msg) - }, - } - - flags.AddTxFlagsToCmd(cmd) - - return cmd -} diff --git a/x/registry/client/cli/tx_update_dns_record.go b/x/registry/client/cli/tx_update_dns_record.go deleted file mode 100644 index a9f50c2b..00000000 --- a/x/registry/client/cli/tx_update_dns_record.go +++ /dev/null @@ -1,50 +0,0 @@ -package cli - -import ( - "strconv" - - "github.com/spf13/cobra" - - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/client/flags" - "github.com/cosmos/cosmos-sdk/client/tx" - - "github.com/mycel-domain/mycel/x/registry/types" -) - -var _ = strconv.Itoa(0) - -func CmdUpdateDnsRecord() *cobra.Command { - cmd := &cobra.Command{ - Use: "update-dns-record [name] [parent] [dns-record-type] [value]", - Short: "Broadcast message updateDnsRecord", - Args: cobra.ExactArgs(4), - RunE: func(cmd *cobra.Command, args []string) (err error) { - argName := args[0] - argParent := args[1] - argDnsRecordType := args[2] - argValue := args[3] - - clientCtx, err := client.GetClientTxContext(cmd) - if err != nil { - return err - } - - msg := types.NewMsgUpdateDnsRecord( - clientCtx.GetFromAddress().String(), - argName, - argParent, - argDnsRecordType, - argValue, - ) - if err := msg.ValidateBasic(); err != nil { - return err - } - return tx.GenerateOrBroadcastTxCLI(clientCtx, cmd.Flags(), msg) - }, - } - - flags.AddTxFlagsToCmd(cmd) - - return cmd -} diff --git a/x/registry/client/cli/tx_update_text_record.go b/x/registry/client/cli/tx_update_text_record.go deleted file mode 100644 index d7f7edc2..00000000 --- a/x/registry/client/cli/tx_update_text_record.go +++ /dev/null @@ -1,50 +0,0 @@ -package cli - -import ( - "strconv" - - "github.com/spf13/cobra" - - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/client/flags" - "github.com/cosmos/cosmos-sdk/client/tx" - - "github.com/mycel-domain/mycel/x/registry/types" -) - -var _ = strconv.Itoa(0) - -func CmdUpdateTextRecord() *cobra.Command { - cmd := &cobra.Command{ - Use: "update-text-record [name] [parent] [key] [value]", - Short: "Broadcast message updateTextRecord", - Args: cobra.ExactArgs(4), - RunE: func(cmd *cobra.Command, args []string) (err error) { - argName := args[0] - argParent := args[1] - argKey := args[2] - argValue := args[3] - - clientCtx, err := client.GetClientTxContext(cmd) - if err != nil { - return err - } - - msg := types.NewMsgUpdateTextRecord( - clientCtx.GetFromAddress().String(), - argName, - argParent, - argKey, - argValue, - ) - if err := msg.ValidateBasic(); err != nil { - return err - } - return tx.GenerateOrBroadcastTxCLI(clientCtx, cmd.Flags(), msg) - }, - } - - flags.AddTxFlagsToCmd(cmd) - - return cmd -} diff --git a/x/registry/client/cli/tx_update_top_level_domain_registration_policy.go b/x/registry/client/cli/tx_update_top_level_domain_registration_policy.go deleted file mode 100644 index ed778850..00000000 --- a/x/registry/client/cli/tx_update_top_level_domain_registration_policy.go +++ /dev/null @@ -1,46 +0,0 @@ -package cli - -import ( - "strconv" - - "github.com/spf13/cobra" - - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/client/flags" - "github.com/cosmos/cosmos-sdk/client/tx" - - "github.com/mycel-domain/mycel/x/registry/types" -) - -var _ = strconv.Itoa(0) - -func CmdUpdateTopLevelDomainRegistrationPolicy() *cobra.Command { - cmd := &cobra.Command{ - Use: "update-top-level-domain-registration-policy [name] [registration-policy]", - Short: "Broadcast message update-top-level-domain-registration-policy", - Args: cobra.ExactArgs(2), - RunE: func(cmd *cobra.Command, args []string) (err error) { - argName := args[0] - argRegistrationPolicy := args[1] - - clientCtx, err := client.GetClientTxContext(cmd) - if err != nil { - return err - } - - msg := types.NewMsgUpdateTopLevelDomainRegistrationPolicy( - clientCtx.GetFromAddress().String(), - argName, - argRegistrationPolicy, - ) - if err := msg.ValidateBasic(); err != nil { - return err - } - return tx.GenerateOrBroadcastTxCLI(clientCtx, cmd.Flags(), msg) - }, - } - - flags.AddTxFlagsToCmd(cmd) - - return cmd -} diff --git a/x/registry/client/cli/tx_update_wallet_record.go b/x/registry/client/cli/tx_update_wallet_record.go deleted file mode 100644 index 52054d9f..00000000 --- a/x/registry/client/cli/tx_update_wallet_record.go +++ /dev/null @@ -1,50 +0,0 @@ -package cli - -import ( - "strconv" - - "github.com/spf13/cobra" - - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/client/flags" - "github.com/cosmos/cosmos-sdk/client/tx" - - "github.com/mycel-domain/mycel/x/registry/types" -) - -var _ = strconv.Itoa(0) - -func CmdUpdateWalletRecord() *cobra.Command { - cmd := &cobra.Command{ - Use: "update-wallet-record [name] [parent] [wallet-record-type] [value]", - Short: "Broadcast message updateWalletRecord", - Args: cobra.ExactArgs(4), - RunE: func(cmd *cobra.Command, args []string) (err error) { - argName := args[0] - argParent := args[1] - argWalletRecordType := args[2] - argValue := args[3] - - clientCtx, err := client.GetClientTxContext(cmd) - if err != nil { - return err - } - - msg := types.NewMsgUpdateWalletRecord( - clientCtx.GetFromAddress().String(), - argName, - argParent, - argWalletRecordType, - argValue, - ) - if err := msg.ValidateBasic(); err != nil { - return err - } - return tx.GenerateOrBroadcastTxCLI(clientCtx, cmd.Flags(), msg) - }, - } - - flags.AddTxFlagsToCmd(cmd) - - return cmd -} diff --git a/x/registry/client/cli/tx_withdraw_registration_fee.go b/x/registry/client/cli/tx_withdraw_registration_fee.go deleted file mode 100644 index 11094ba6..00000000 --- a/x/registry/client/cli/tx_withdraw_registration_fee.go +++ /dev/null @@ -1,44 +0,0 @@ -package cli - -import ( - "strconv" - - "github.com/spf13/cobra" - - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/client/flags" - "github.com/cosmos/cosmos-sdk/client/tx" - - "github.com/mycel-domain/mycel/x/registry/types" -) - -var _ = strconv.Itoa(0) - -func CmdWithdrawRegistrationFee() *cobra.Command { - cmd := &cobra.Command{ - Use: "withdraw-registration-fee [name]", - Short: "Broadcast message withdrawRegistrationFee", - Args: cobra.ExactArgs(1), - RunE: func(cmd *cobra.Command, args []string) (err error) { - argName := args[0] - - clientCtx, err := client.GetClientTxContext(cmd) - if err != nil { - return err - } - - msg := types.NewMsgWithdrawRegistrationFee( - clientCtx.GetFromAddress().String(), - argName, - ) - if err := msg.ValidateBasic(); err != nil { - return err - } - return tx.GenerateOrBroadcastTxCLI(clientCtx, cmd.Flags(), msg) - }, - } - - flags.AddTxFlagsToCmd(cmd) - - return cmd -} diff --git a/x/registry/keeper/domain_ownership.go b/x/registry/keeper/domain_ownership.go index 7883fe21..ea39dbe4 100644 --- a/x/registry/keeper/domain_ownership.go +++ b/x/registry/keeper/domain_ownership.go @@ -1,17 +1,21 @@ package keeper import ( + "context" + "cosmossdk.io/store/prefix" storetypes "cosmossdk.io/store/types" - sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/cosmos/cosmos-sdk/runtime" "github.com/mycel-domain/mycel/x/registry/types" ) // SetDomainOwnership set a specific domainOwnership in the store from its index -func (k Keeper) SetDomainOwnership(ctx sdk.Context, domainOwnership types.DomainOwnership) { - store := prefix.NewStore(ctx.KVStore(k.storeKey), types.KeyPrefix(types.DomainOwnershipKeyPrefix)) +func (k Keeper) SetDomainOwnership(goCtx context.Context, domainOwnership types.DomainOwnership) { + storeAdapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(goCtx)) + store := prefix.NewStore(storeAdapter, types.KeyPrefix(types.DomainOwnershipKeyPrefix)) + b := k.cdc.MustMarshal(&domainOwnership) store.Set(types.DomainOwnershipKey( domainOwnership.Owner, @@ -20,10 +24,11 @@ func (k Keeper) SetDomainOwnership(ctx sdk.Context, domainOwnership types.Domain // GetDomainOwnership returns a domainOwnership from its index func (k Keeper) GetDomainOwnership( - ctx sdk.Context, + goCtx context.Context, owner string, ) (val types.DomainOwnership, found bool) { - store := prefix.NewStore(ctx.KVStore(k.storeKey), types.KeyPrefix(types.DomainOwnershipKeyPrefix)) + storeAdapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(goCtx)) + store := prefix.NewStore(storeAdapter, types.KeyPrefix(types.DomainOwnershipKeyPrefix)) b := store.Get(types.DomainOwnershipKey( owner, @@ -38,18 +43,21 @@ func (k Keeper) GetDomainOwnership( // RemoveDomainOwnership removes a domainOwnership from the store func (k Keeper) RemoveDomainOwnership( - ctx sdk.Context, + goCtx context.Context, owner string, ) { - store := prefix.NewStore(ctx.KVStore(k.storeKey), types.KeyPrefix(types.DomainOwnershipKeyPrefix)) + storeAdapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(goCtx)) + store := prefix.NewStore(storeAdapter, types.KeyPrefix(types.DomainOwnershipKeyPrefix)) + store.Delete(types.DomainOwnershipKey( owner, )) } // GetAllDomainOwnership returns all domainOwnership -func (k Keeper) GetAllDomainOwnership(ctx sdk.Context) (list []types.DomainOwnership) { - store := prefix.NewStore(ctx.KVStore(k.storeKey), types.KeyPrefix(types.DomainOwnershipKeyPrefix)) +func (k Keeper) GetAllDomainOwnership(goCtx context.Context) (list []types.DomainOwnership) { + storeAdapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(goCtx)) + store := prefix.NewStore(storeAdapter, types.KeyPrefix(types.DomainOwnershipKeyPrefix)) iterator := storetypes.KVStorePrefixIterator(store, []byte{}) defer iterator.Close() @@ -64,12 +72,12 @@ func (k Keeper) GetAllDomainOwnership(ctx sdk.Context) (list []types.DomainOwner } // Append to owned domain -func (k Keeper) AppendToOwnedDomain(ctx sdk.Context, owner string, name string, parent string) { - domainOwnership, found := k.GetDomainOwnership(ctx, owner) +func (k Keeper) AppendToOwnedDomain(goCtx context.Context, owner string, name string, parent string) { + domainOwnership, found := k.GetDomainOwnership(goCtx, owner) if found { domainOwnership.Domains = append(domainOwnership.Domains, &types.OwnedDomain{Name: name, Parent: parent}) - k.SetDomainOwnership(ctx, domainOwnership) + k.SetDomainOwnership(goCtx, domainOwnership) } else { - k.SetDomainOwnership(ctx, types.DomainOwnership{Owner: owner, Domains: []*types.OwnedDomain{{Name: name, Parent: parent}}}) + k.SetDomainOwnership(goCtx, types.DomainOwnership{Owner: owner, Domains: []*types.OwnedDomain{{Name: name, Parent: parent}}}) } } diff --git a/x/registry/keeper/domain_ownership_test.go b/x/registry/keeper/domain_ownership_test.go index 5548007d..511e0661 100644 --- a/x/registry/keeper/domain_ownership_test.go +++ b/x/registry/keeper/domain_ownership_test.go @@ -1,13 +1,12 @@ package keeper_test import ( + "context" "strconv" "testing" "github.com/stretchr/testify/require" - sdk "github.com/cosmos/cosmos-sdk/types" - keepertest "github.com/mycel-domain/mycel/testutil/keeper" "github.com/mycel-domain/mycel/testutil/nullify" "github.com/mycel-domain/mycel/x/registry/keeper" @@ -17,7 +16,7 @@ import ( // Prevent strconv unused error var _ = strconv.IntSize -func createNDomainOwnership(keeper *keeper.Keeper, ctx sdk.Context, n int) []types.DomainOwnership { +func createNDomainOwnership(keeper *keeper.Keeper, ctx context.Context, n int) []types.DomainOwnership { items := make([]types.DomainOwnership, n) for i := range items { items[i].Owner = strconv.Itoa(i) diff --git a/x/registry/keeper/events.go b/x/registry/keeper/events.go index 8be2aef7..8e708400 100644 --- a/x/registry/keeper/events.go +++ b/x/registry/keeper/events.go @@ -1,6 +1,7 @@ package keeper import ( + "context" "fmt" sdk "github.com/cosmos/cosmos-sdk/types" @@ -9,7 +10,8 @@ import ( ) // Register top-level-domain event -func EmitRegisterTopLevelDomainEvent(ctx sdk.Context, domain types.TopLevelDomain, fee types.TopLevelDomainFee) { +func EmitRegisterTopLevelDomainEvent(goCtx context.Context, domain types.TopLevelDomain, fee types.TopLevelDomainFee) { + ctx := sdk.UnwrapSDKContext(goCtx) ctx.EventManager().EmitEvent( sdk.NewEvent( types.EventTypeRegisterTopLevelDomain, @@ -25,7 +27,8 @@ func EmitRegisterTopLevelDomainEvent(ctx sdk.Context, domain types.TopLevelDomai } // Register second-level-domain event -func EmitRegisterSecondLevelDomainEvent(ctx sdk.Context, domain types.SecondLevelDomain, fee sdk.Coin) { +func EmitRegisterSecondLevelDomainEvent(goCtx context.Context, domain types.SecondLevelDomain, fee sdk.Coin) { + ctx := sdk.UnwrapSDKContext(goCtx) ctx.EventManager().EmitEvent( sdk.NewEvent(types.EventTypeRegisterSecondLevelDomain, sdk.NewAttribute(types.AttributeRegisterSecondLevelDomainEventName, domain.Name), @@ -37,7 +40,8 @@ func EmitRegisterSecondLevelDomainEvent(ctx sdk.Context, domain types.SecondLeve } // Update wallet record event -func EmitUpdateWalletRecordEvent(ctx sdk.Context, msg types.MsgUpdateWalletRecord) { +func EmitUpdateWalletRecordEvent(goCtx context.Context, msg types.MsgUpdateWalletRecord) { + ctx := sdk.UnwrapSDKContext(goCtx) ctx.EventManager().EmitEvent( sdk.NewEvent(types.EventTypeUpdateWalletRecord, sdk.NewAttribute(types.AttributeUpdateWalletRecordEventDomainName, msg.Name), @@ -49,7 +53,8 @@ func EmitUpdateWalletRecordEvent(ctx sdk.Context, msg types.MsgUpdateWalletRecor } // Update dns record event -func EmitUpdateDnsRecordEvent(ctx sdk.Context, msg types.MsgUpdateDnsRecord) { +func EmitUpdateDnsRecordEvent(goCtx context.Context, msg types.MsgUpdateDnsRecord) { + ctx := sdk.UnwrapSDKContext(goCtx) ctx.EventManager().EmitEvent( sdk.NewEvent(types.EventTypeUpdateDnsRecord, sdk.NewAttribute(types.AttributeUpdateDnsRecordEventDomainName, msg.Name), @@ -61,7 +66,8 @@ func EmitUpdateDnsRecordEvent(ctx sdk.Context, msg types.MsgUpdateDnsRecord) { } // Update dns record event -func EmitUpdateTextRecordEvent(ctx sdk.Context, msg types.MsgUpdateTextRecord) { +func EmitUpdateTextRecordEvent(goCtx context.Context, msg types.MsgUpdateTextRecord) { + ctx := sdk.UnwrapSDKContext(goCtx) ctx.EventManager().EmitEvent( sdk.NewEvent(types.EventTypeUpdateTextRecord, sdk.NewAttribute(types.AttributeUpdateTextRecordEventDomainName, msg.Name), @@ -73,7 +79,8 @@ func EmitUpdateTextRecordEvent(ctx sdk.Context, msg types.MsgUpdateTextRecord) { } // Withdraw fees event -func EmitWithdrawRegistrationFeeEvent(ctx sdk.Context, msg types.MsgWithdrawRegistrationFee, fee sdk.Coins) { +func EmitWithdrawRegistrationFeeEvent(goCtx context.Context, msg types.MsgWithdrawRegistrationFee, fee sdk.Coins) { + ctx := sdk.UnwrapSDKContext(goCtx) ctx.EventManager().EmitEvent( sdk.NewEvent(types.EventTypeWithdrawRegistrationFee, sdk.NewAttribute(types.AttributeWithdrawRegistrationFeeEventDomainName, msg.Name), @@ -83,7 +90,8 @@ func EmitWithdrawRegistrationFeeEvent(ctx sdk.Context, msg types.MsgWithdrawRegi } // Extend top-level-domain expiration date event -func EmitExtendTopLevelDomainExpirationDateEvent(ctx sdk.Context, domain types.TopLevelDomain, fee types.TopLevelDomainFee) { +func EmitExtendTopLevelDomainExpirationDateEvent(goCtx context.Context, domain types.TopLevelDomain, fee types.TopLevelDomainFee) { + ctx := sdk.UnwrapSDKContext(goCtx) ctx.EventManager().EmitEvent( sdk.NewEvent(types.EventTypeExtendTopLevelDomainExpirationDate, sdk.NewAttribute(types.AttributeExtendTopLevelDomainExpirationDateEventDomainName, domain.Name), @@ -97,7 +105,8 @@ func EmitExtendTopLevelDomainExpirationDateEvent(ctx sdk.Context, domain types.T } // Update top-level-domain registration policy -func EmitUpdateTopLevelDomainRegistrationPolicyEvent(ctx sdk.Context, domain types.TopLevelDomain) { +func EmitUpdateTopLevelDomainRegistrationPolicyEvent(goCtx context.Context, domain types.TopLevelDomain) { + ctx := sdk.UnwrapSDKContext(goCtx) ctx.EventManager().EmitEvent( sdk.NewEvent(types.EventTypeUpdateTopLevelDomainRegistrationPolicy, sdk.NewAttribute(types.AttributeUpdateTopLevelDomainRegistrationPolicyEventDomainName, domain.Name), diff --git a/x/registry/keeper/keeper.go b/x/registry/keeper/keeper.go index fcb4b7a5..67a47d8b 100644 --- a/x/registry/keeper/keeper.go +++ b/x/registry/keeper/keeper.go @@ -3,58 +3,53 @@ 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/registry/types" ) type ( Keeper struct { - cdc codec.BinaryCodec - storeKey storetypes.StoreKey - memKey storetypes.StoreKey - paramstore paramtypes.Subspace + cdc codec.BinaryCodec + storeService store.KVStoreService + logger log.Logger + authority string bankKeeper types.BankKeeper distributionKeeper types.DistributionKeeper mintKeeper types.MintKeeper - mintKeeperMinter types.MintKeeperMinter furnaceKeeper types.FurnaceKeeper } ) func NewKeeper( cdc codec.BinaryCodec, - storeKey, - memKey storetypes.StoreKey, - ps paramtypes.Subspace, + storeService store.KVStoreService, + logger log.Logger, + authority string, bankKeeper types.BankKeeper, distributionKeeper types.DistributionKeeper, mintKeeper types.MintKeeper, - mintKeeperMinter types.MintKeeperMinter, furnaceKeeper types.FurnaceKeeper, ) *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, bankKeeper: bankKeeper, distributionKeeper: distributionKeeper, mintKeeper: mintKeeper, - mintKeeperMinter: mintKeeperMinter, furnaceKeeper: furnaceKeeper, } } @@ -62,3 +57,8 @@ func NewKeeper( 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/registry/keeper/msg_server_test.go b/x/registry/keeper/msg_server_test.go index 66e24392..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" "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/keeper/params.go b/x/registry/keeper/params.go index 6c017c04..444cab63 100644 --- a/x/registry/keeper/params.go +++ b/x/registry/keeper/params.go @@ -1,17 +1,33 @@ package keeper import ( - sdk "github.com/cosmos/cosmos-sdk/types" + "context" + + "github.com/cosmos/cosmos-sdk/runtime" "github.com/mycel-domain/mycel/x/registry/types" ) // GetParams get all parameters as types.Params -func (k Keeper) GetParams(ctx sdk.Context) types.Params { - return types.NewParams() +func (k Keeper) GetParams(ctx context.Context) (params types.Params) { + store := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) + bz := store.Get(types.ParamsKey) + if bz == nil { + return params + } + + k.cdc.MustUnmarshal(bz, ¶ms) + return params } // SetParams set the params -func (k Keeper) SetParams(ctx sdk.Context, params types.Params) { - k.paramstore.SetParamSet(ctx, ¶ms) +func (k Keeper) SetParams(ctx context.Context, params types.Params) error { + store := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) + bz, err := k.cdc.Marshal(¶ms) + if err != nil { + return err + } + store.Set(types.ParamsKey, bz) + + return nil } diff --git a/x/registry/keeper/query_domain_ownership.go b/x/registry/keeper/query_domain_ownership.go index c9328aa9..1245c4ac 100644 --- a/x/registry/keeper/query_domain_ownership.go +++ b/x/registry/keeper/query_domain_ownership.go @@ -8,21 +8,20 @@ import ( "cosmossdk.io/store/prefix" - sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/cosmos/cosmos-sdk/runtime" "github.com/cosmos/cosmos-sdk/types/query" "github.com/mycel-domain/mycel/x/registry/types" ) -func (k Keeper) DomainOwnershipAll(goCtx context.Context, req *types.QueryAllDomainOwnershipRequest) (*types.QueryAllDomainOwnershipResponse, error) { +func (k Keeper) DomainOwnershipAll(ctx context.Context, req *types.QueryAllDomainOwnershipRequest) (*types.QueryAllDomainOwnershipResponse, error) { if req == nil { return nil, status.Error(codes.InvalidArgument, "invalid request") } var domainOwnerships []types.DomainOwnership - ctx := sdk.UnwrapSDKContext(goCtx) - store := ctx.KVStore(k.storeKey) + store := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) domainOwnershipStore := prefix.NewStore(store, types.KeyPrefix(types.DomainOwnershipKeyPrefix)) pageRes, err := query.Paginate(domainOwnershipStore, req.Pagination, func(key []byte, value []byte) error { @@ -41,11 +40,10 @@ func (k Keeper) DomainOwnershipAll(goCtx context.Context, req *types.QueryAllDom return &types.QueryAllDomainOwnershipResponse{DomainOwnership: domainOwnerships, Pagination: pageRes}, nil } -func (k Keeper) DomainOwnership(goCtx context.Context, req *types.QueryGetDomainOwnershipRequest) (*types.QueryGetDomainOwnershipResponse, error) { +func (k Keeper) DomainOwnership(ctx context.Context, req *types.QueryGetDomainOwnershipRequest) (*types.QueryGetDomainOwnershipResponse, error) { if req == nil { return nil, status.Error(codes.InvalidArgument, "invalid request") } - ctx := sdk.UnwrapSDKContext(goCtx) val, found := k.GetDomainOwnership( ctx, diff --git a/x/registry/keeper/query_domain_registration_fee.go b/x/registry/keeper/query_domain_registration_fee.go index 83749fb9..cb6c38e2 100644 --- a/x/registry/keeper/query_domain_registration_fee.go +++ b/x/registry/keeper/query_domain_registration_fee.go @@ -21,12 +21,11 @@ func createErrorResponse(err error) *types.QueryDomainRegistrationFeeResponse { } } -func (k Keeper) DomainRegistrationFee(goCtx context.Context, req *types.QueryDomainRegistrationFeeRequest) (*types.QueryDomainRegistrationFeeResponse, error) { +func (k Keeper) DomainRegistrationFee(ctx context.Context, req *types.QueryDomainRegistrationFeeRequest) (*types.QueryDomainRegistrationFeeResponse, error) { if req == nil { return nil, status.Error(codes.InvalidArgument, "invalid request") } - ctx := sdk.UnwrapSDKContext(goCtx) if req.Parent == "" { // Top level domain config := types.GetDefaultSubdomainConfig(1) diff --git a/x/registry/keeper/query_params.go b/x/registry/keeper/query_params.go index 25f58b67..86d1d8ca 100644 --- a/x/registry/keeper/query_params.go +++ b/x/registry/keeper/query_params.go @@ -6,16 +6,13 @@ import ( "google.golang.org/grpc/codes" "google.golang.org/grpc/status" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/mycel-domain/mycel/x/registry/types" ) -func (k Keeper) Params(goCtx context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error) { +func (k Keeper) Params(ctx 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/registry/keeper/query_record.go b/x/registry/keeper/query_record.go new file mode 100644 index 00000000..05094401 --- /dev/null +++ b/x/registry/keeper/query_record.go @@ -0,0 +1,135 @@ +package keeper + +import ( + "context" + + "google.golang.org/grpc/codes" + "google.golang.org/grpc/status" + + + "github.com/mycel-domain/mycel/x/registry/types" +) + +func (k Keeper) AllRecords(ctx context.Context, req *types.QueryAllRecordsRequest) (*types.QueryAllRecordsResponse, error) { + if req == nil { + return nil, status.Error(codes.InvalidArgument, "invalid request") + } + + // Query domain record + _, err := k.GetValidTopLevelDomain(ctx, req.DomainParent) + if err != nil { + return nil, err + } + secondLevelDomain, err := k.GetValidSecondLevelDomain(ctx, req.DomainName, req.DomainParent) + if err != nil { + return nil, err + } + + // Convert repeated Record to map + values := make(map[string]*types.Record) + for _, record := range secondLevelDomain.Records { + key := generateRecordKey(record) + if key != "" { + values[key] = record + } + } + return &types.QueryAllRecordsResponse{Values: values}, nil +} + +func generateRecordKey(record *types.Record) string { + switch { + case record.GetDnsRecord() != nil: + return record.GetDnsRecord().DnsRecordType.String() + case record.GetWalletRecord() != nil: + return record.GetWalletRecord().WalletRecordType.String() + case record.GetTextRecord() != nil: + return record.GetTextRecord().Key + default: + return "" + } +} + +func (k Keeper) DnsRecord(ctx context.Context, req *types.QueryDnsRecordRequest) (*types.QueryDnsRecordResponse, error) { + if req == nil { + return nil, status.Error(codes.InvalidArgument, "invalid request") + } + + // Validate request parameters + err := types.ValidateDnsRecordType(req.DnsRecordType) + if err != nil { + return nil, err + } + + // Query domain record + _, err = k.GetValidTopLevelDomain(ctx, req.DomainParent) + if err != nil { + return nil, err + } + secondLevelDomain, err := k.GetValidSecondLevelDomain(ctx, req.DomainName, req.DomainParent) + if err != nil { + return nil, err + } + + value := secondLevelDomain.GetDnsRecord(req.DnsRecordType) + recordType := types.DnsRecordType(types.DnsRecordType_value[req.DnsRecordType]) + + return &types.QueryDnsRecordResponse{ + Value: &types.DnsRecord{DnsRecordType: recordType, Value: value}, + }, nil +} + +func (k Keeper) TextRecord(ctx context.Context, req *types.QueryTextRecordRequest) (*types.QueryTextRecordResponse, error) { + if req == nil { + return nil, status.Error(codes.InvalidArgument, "invalid request") + } + + // Validate request parameters + err := types.ValidateTextRecordKey(req.Key) + if err != nil { + return nil, err + } + + // Query domain record + _, err = k.GetValidTopLevelDomain(ctx, req.DomainParent) + if err != nil { + return nil, err + } + secondLevelDomain, err := k.GetValidSecondLevelDomain(ctx, req.DomainName, req.DomainParent) + if err != nil { + return nil, err + } + + value := secondLevelDomain.GetTextRecord(req.Key) + + return &types.QueryTextRecordResponse{ + Value: &types.TextRecord{Key: req.Key, Value: value}, + }, nil +} + +func (k Keeper) WalletRecord(ctx context.Context, req *types.QueryWalletRecordRequest) (*types.QueryWalletRecordResponse, error) { + if req == nil { + return nil, status.Error(codes.InvalidArgument, "invalid request") + } + + // Validate request parameters + _, err := types.GetWalletAddressFormat(req.WalletRecordType) + if err != nil { + return nil, err + } + + // Query domain record + _, err = k.GetValidTopLevelDomain(ctx, req.DomainParent) + if err != nil { + return nil, err + } + secondLevelDomain, err := k.GetValidSecondLevelDomain(ctx, req.DomainName, req.DomainParent) + if err != nil { + return nil, err + } + value := secondLevelDomain.GetWalletRecord(req.WalletRecordType) + recordType := types.NetworkName(types.NetworkName_value[req.WalletRecordType]) + + return &types.QueryWalletRecordResponse{ + Value: &types.WalletRecord{WalletRecordType: recordType, Value: value}, + }, nil +} diff --git a/x/registry/keeper/query_role.go b/x/registry/keeper/query_role.go index 0c69ca4c..550da976 100644 --- a/x/registry/keeper/query_role.go +++ b/x/registry/keeper/query_role.go @@ -6,13 +6,12 @@ import ( errorsmod "cosmossdk.io/errors" - sdk "github.com/cosmos/cosmos-sdk/types" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" "github.com/mycel-domain/mycel/x/registry/types" ) -func (k Keeper) Role(goCtx context.Context, req *types.QueryRoleRequest) (*types.QueryRoleResponse, error) { +func (k Keeper) Role(ctx context.Context, req *types.QueryRoleRequest) (*types.QueryRoleResponse, error) { // Return error when the request is empty if req == nil { return nil, errorsmod.Wrapf(sdkerrors.ErrInvalidRequest, "invalid request: empty request") @@ -23,7 +22,6 @@ func (k Keeper) Role(goCtx context.Context, req *types.QueryRoleRequest) (*types role types.DomainRole found bool ) - ctx := sdk.UnwrapSDKContext(goCtx) dms := strings.Split(req.DomainName, ".") // "foo.cel" will be [ "foo", "cel" ] // Get Role diff --git a/x/registry/keeper/query_second_level_domain.go b/x/registry/keeper/query_second_level_domain.go index 65f69326..5973648c 100644 --- a/x/registry/keeper/query_second_level_domain.go +++ b/x/registry/keeper/query_second_level_domain.go @@ -8,21 +8,20 @@ import ( "cosmossdk.io/store/prefix" - sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/cosmos/cosmos-sdk/runtime" "github.com/cosmos/cosmos-sdk/types/query" "github.com/mycel-domain/mycel/x/registry/types" ) -func (k Keeper) SecondLevelDomainAll(goCtx context.Context, req *types.QueryAllSecondLevelDomainRequest) (*types.QueryAllSecondLevelDomainResponse, error) { +func (k Keeper) SecondLevelDomainAll(ctx context.Context, req *types.QueryAllSecondLevelDomainRequest) (*types.QueryAllSecondLevelDomainResponse, error) { if req == nil { return nil, status.Error(codes.InvalidArgument, "invalid request") } var secondLevelDomains []types.SecondLevelDomainResponse - ctx := sdk.UnwrapSDKContext(goCtx) - store := ctx.KVStore(k.storeKey) + store := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) secondLevelDomainStore := prefix.NewStore(store, types.KeyPrefix(types.SecondLevelDomainKeyPrefix)) pageRes, err := query.Paginate(secondLevelDomainStore, req.Pagination, func(key []byte, value []byte) error { @@ -46,11 +45,10 @@ func (k Keeper) SecondLevelDomainAll(goCtx context.Context, req *types.QueryAllS return &types.QueryAllSecondLevelDomainResponse{SecondLevelDomain: secondLevelDomains, Pagination: pageRes}, nil } -func (k Keeper) SecondLevelDomain(goCtx context.Context, req *types.QueryGetSecondLevelDomainRequest) (*types.QueryGetSecondLevelDomainResponse, error) { +func (k Keeper) SecondLevelDomain(ctx context.Context, req *types.QueryGetSecondLevelDomainRequest) (*types.QueryGetSecondLevelDomainResponse, error) { if req == nil { return nil, status.Error(codes.InvalidArgument, "invalid request") } - ctx := sdk.UnwrapSDKContext(goCtx) val, found := k.GetSecondLevelDomain( ctx, diff --git a/x/registry/keeper/query_top_level_domain.go b/x/registry/keeper/query_top_level_domain.go index 573520ef..92702c51 100644 --- a/x/registry/keeper/query_top_level_domain.go +++ b/x/registry/keeper/query_top_level_domain.go @@ -8,21 +8,20 @@ import ( "cosmossdk.io/store/prefix" - sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/cosmos/cosmos-sdk/runtime" "github.com/cosmos/cosmos-sdk/types/query" "github.com/mycel-domain/mycel/x/registry/types" ) -func (k Keeper) TopLevelDomainAll(goCtx context.Context, req *types.QueryAllTopLevelDomainRequest) (*types.QueryAllTopLevelDomainResponse, error) { +func (k Keeper) TopLevelDomainAll(ctx context.Context, req *types.QueryAllTopLevelDomainRequest) (*types.QueryAllTopLevelDomainResponse, error) { if req == nil { return nil, status.Error(codes.InvalidArgument, "invalid request") } var topLevelDomains []types.TopLevelDomain - ctx := sdk.UnwrapSDKContext(goCtx) - store := ctx.KVStore(k.storeKey) + store := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) topLevelDomainStore := prefix.NewStore(store, types.KeyPrefix(types.TopLevelDomainKeyPrefix)) pageRes, err := query.Paginate(topLevelDomainStore, req.Pagination, func(key []byte, value []byte) error { @@ -41,11 +40,10 @@ func (k Keeper) TopLevelDomainAll(goCtx context.Context, req *types.QueryAllTopL return &types.QueryAllTopLevelDomainResponse{TopLevelDomain: topLevelDomains, Pagination: pageRes}, nil } -func (k Keeper) TopLevelDomain(goCtx context.Context, req *types.QueryGetTopLevelDomainRequest) (*types.QueryGetTopLevelDomainResponse, error) { +func (k Keeper) TopLevelDomain(ctx context.Context, req *types.QueryGetTopLevelDomainRequest) (*types.QueryGetTopLevelDomainResponse, error) { if req == nil { return nil, status.Error(codes.InvalidArgument, "invalid request") } - ctx := sdk.UnwrapSDKContext(goCtx) val, found := k.GetTopLevelDomain( ctx, diff --git a/x/registry/keeper/second_level_domain.go b/x/registry/keeper/second_level_domain.go index 7d9dd18e..3fcb2cfd 100644 --- a/x/registry/keeper/second_level_domain.go +++ b/x/registry/keeper/second_level_domain.go @@ -1,20 +1,24 @@ package keeper import ( + "context" "time" errorsmod "cosmossdk.io/errors" "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/registry/types" ) // SetSecondLevelDomain set a specific second-level-domain in the store from its index -func (k Keeper) SetSecondLevelDomain(ctx sdk.Context, domain types.SecondLevelDomain) { - store := prefix.NewStore(ctx.KVStore(k.storeKey), types.KeyPrefix(types.SecondLevelDomainKeyPrefix)) +func (k Keeper) SetSecondLevelDomain(goCtx context.Context, domain types.SecondLevelDomain) { + storeAdapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(goCtx)) + store := prefix.NewStore(storeAdapter, types.KeyPrefix(types.SecondLevelDomainKeyPrefix)) + b := k.cdc.MustMarshal(&domain) store.Set(types.SecondLevelDomainKey( domain.Name, @@ -24,11 +28,12 @@ func (k Keeper) SetSecondLevelDomain(ctx sdk.Context, domain types.SecondLevelDo // GetSecondLevelDomain returns a second-level-domain from its index func (k Keeper) GetSecondLevelDomain( - ctx sdk.Context, + goCtx context.Context, name string, parent string, ) (val types.SecondLevelDomain, found bool) { - store := prefix.NewStore(ctx.KVStore(k.storeKey), types.KeyPrefix(types.SecondLevelDomainKeyPrefix)) + storeAdapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(goCtx)) + store := prefix.NewStore(storeAdapter, types.KeyPrefix(types.SecondLevelDomainKeyPrefix)) b := store.Get(types.SecondLevelDomainKey( name, @@ -44,11 +49,13 @@ func (k Keeper) GetSecondLevelDomain( // RemoveSecondLevelDomain removes a second-level-domain from the store func (k Keeper) RemoveSecondLevelDomain( - ctx sdk.Context, + goCtx context.Context, name string, parent string, ) { - store := prefix.NewStore(ctx.KVStore(k.storeKey), types.KeyPrefix(types.SecondLevelDomainKeyPrefix)) + storeAdapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(goCtx)) + store := prefix.NewStore(storeAdapter, types.KeyPrefix(types.SecondLevelDomainKeyPrefix)) + store.Delete(types.SecondLevelDomainKey( name, parent, @@ -56,8 +63,10 @@ func (k Keeper) RemoveSecondLevelDomain( } // GetAllSecondLevelDomain returns all second-level-domain -func (k Keeper) GetAllSecondLevelDomain(ctx sdk.Context) (list []types.SecondLevelDomain) { - store := prefix.NewStore(ctx.KVStore(k.storeKey), types.KeyPrefix(types.SecondLevelDomainKeyPrefix)) +func (k Keeper) GetAllSecondLevelDomain(goCtx context.Context) (list []types.SecondLevelDomain) { + storeAdapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(goCtx)) + store := prefix.NewStore(storeAdapter, types.KeyPrefix(types.SecondLevelDomainKeyPrefix)) + iterator := storetypes.KVStorePrefixIterator(store, []byte{}) defer iterator.Close() @@ -72,13 +81,13 @@ func (k Keeper) GetAllSecondLevelDomain(ctx sdk.Context) (list []types.SecondLev } // Get is second-level-domain already taken -func (k Keeper) GetIsSecondLevelDomainAlreadyTaken(ctx sdk.Context, domain types.SecondLevelDomain) (isDomainAlreadyTaken bool) { - _, isDomainAlreadyTaken = k.GetSecondLevelDomain(ctx, domain.Name, domain.Parent) +func (k Keeper) GetIsSecondLevelDomainAlreadyTaken(goCtx context.Context, domain types.SecondLevelDomain) (isDomainAlreadyTaken bool) { + _, isDomainAlreadyTaken = k.GetSecondLevelDomain(goCtx, domain.Name, domain.Parent) return isDomainAlreadyTaken } // Get valid second-level-domain -func (k Keeper) GetValidSecondLevelDomain(ctx sdk.Context, name string, parent string) (secondLevelDomain types.SecondLevelDomain, err error) { +func (k Keeper) GetValidSecondLevelDomain(goCtx context.Context, name string, parent string) (secondLevelDomain types.SecondLevelDomain, err error) { // Regex validation err = types.ValidateSecondLevelDomainName(name) if err != nil { @@ -90,18 +99,19 @@ func (k Keeper) GetValidSecondLevelDomain(ctx sdk.Context, name string, parent s } // Get parent domain - _, err = k.GetValidTopLevelDomain(ctx, parent) + _, err = k.GetValidTopLevelDomain(goCtx, parent) if err != nil { return types.SecondLevelDomain{}, err } // Get second-level-domain - secondLevelDomain, isFound := k.GetSecondLevelDomain(ctx, name, parent) + secondLevelDomain, isFound := k.GetSecondLevelDomain(goCtx, name, parent) if !isFound { return types.SecondLevelDomain{}, errorsmod.Wrapf(types.ErrSecondLevelDomainNotFound, "%s.%s", name, parent) } // Check if second-level-domain is not expired + ctx := sdk.UnwrapSDKContext(goCtx) if ctx.BlockTime().After(secondLevelDomain.ExpirationDate) && secondLevelDomain.ExpirationDate != (time.Time{}) { return types.SecondLevelDomain{}, errorsmod.Wrapf(types.ErrSecondLevelDomainExpired, "%s", name) } @@ -110,17 +120,17 @@ func (k Keeper) GetValidSecondLevelDomain(ctx sdk.Context, name string, parent s } // Get parent domain -func (k Keeper) GetSecondLevelDomainParent(ctx sdk.Context, domain types.SecondLevelDomain) (parentDomain types.TopLevelDomain, found bool) { +func (k Keeper) GetSecondLevelDomainParent(goCtx context.Context, domain types.SecondLevelDomain) (parentDomain types.TopLevelDomain, found bool) { // Get parent domain parent := domain.ParseParent() - parentDomain, found = k.GetTopLevelDomain(ctx, parent) + parentDomain, found = k.GetTopLevelDomain(goCtx, parent) return parentDomain, found } // Get parent domain's subdomain config -func (k Keeper) GetSecondLevelDomainParentsSubdomainConfig(ctx sdk.Context, domain types.SecondLevelDomain) types.SubdomainConfig { +func (k Keeper) GetSecondLevelDomainParentsSubdomainConfig(goCtx context.Context, domain types.SecondLevelDomain) types.SubdomainConfig { // Get parent domain - parentDomain, found := k.GetSecondLevelDomainParent(ctx, domain) + parentDomain, found := k.GetSecondLevelDomainParent(goCtx, domain) if !found || parentDomain.SubdomainConfig == nil { panic("parent domain or config not found") } @@ -128,8 +138,8 @@ func (k Keeper) GetSecondLevelDomainParentsSubdomainConfig(ctx sdk.Context, doma } // Get Role of the second-level domain -func (k Keeper) GetSecondLevelDomainRole(ctx sdk.Context, name, parent, address string) (role types.DomainRole, found bool) { - sld, found := k.GetSecondLevelDomain(ctx, name, parent) +func (k Keeper) GetSecondLevelDomainRole(goCtx context.Context, name, parent, address string) (role types.DomainRole, found bool) { + sld, found := k.GetSecondLevelDomain(goCtx, name, parent) if !found { return types.DomainRole_NO_ROLE, false } @@ -138,20 +148,20 @@ func (k Keeper) GetSecondLevelDomainRole(ctx sdk.Context, name, parent, address } // Increment parents subdomain count -func (k Keeper) IncrementParentsSubdomainCount(ctx sdk.Context, domain types.SecondLevelDomain) { +func (k Keeper) IncrementParentsSubdomainCount(goCtx context.Context, domain types.SecondLevelDomain) { // Increment parent's subdomain count parent := domain.ParseParent() - parentDomain, found := k.GetTopLevelDomain(ctx, parent) + parentDomain, found := k.GetTopLevelDomain(goCtx, parent) if !found { panic("parent not found") } parentDomain.SubdomainCount++ - k.SetTopLevelDomain(ctx, parentDomain) + k.SetTopLevelDomain(goCtx, parentDomain) } // Pay SLD registration fee -func (k Keeper) PaySecondLevelDomainRegstrationFee(ctx sdk.Context, payer sdk.AccAddress, domain types.SecondLevelDomain, registrationPeriodInYear uint64) (fee sdk.Coin, err error) { - config := k.GetSecondLevelDomainParentsSubdomainConfig(ctx, domain) +func (k Keeper) PaySecondLevelDomainRegstrationFee(goCtx context.Context, payer sdk.AccAddress, domain types.SecondLevelDomain, registrationPeriodInYear uint64) (fee sdk.Coin, err error) { + config := k.GetSecondLevelDomainParentsSubdomainConfig(goCtx, domain) fee, err = config.GetRegistrationFee(domain.Name, registrationPeriodInYear) if err != nil { @@ -159,37 +169,37 @@ func (k Keeper) PaySecondLevelDomainRegstrationFee(ctx sdk.Context, payer sdk.Ac } // Send coins from payer to module account - err = k.bankKeeper.SendCoinsFromAccountToModule(ctx, payer, types.ModuleName, sdk.NewCoins(fee)) + err = k.bankKeeper.SendCoinsFromAccountToModule(goCtx, payer, types.ModuleName, sdk.NewCoins(fee)) if err != nil { return fee, err } // Update store - parent, found := k.GetTopLevelDomain(ctx, domain.Parent) + parent, found := k.GetTopLevelDomain(goCtx, domain.Parent) if !found { panic("parent not found") } parent.TotalWithdrawalAmount = parent.TotalWithdrawalAmount.Add(fee) - k.SetTopLevelDomain(ctx, parent) + k.SetTopLevelDomain(goCtx, parent) return fee, err } // Validate second-level-domain is registrable -func (k Keeper) ValidateSecondLevelDomainIsRegistrable(ctx sdk.Context, secondLevelDomain types.SecondLevelDomain, sldOwner sdk.AccAddress) error { +func (k Keeper) ValidateSecondLevelDomainIsRegistrable(goCtx context.Context, secondLevelDomain types.SecondLevelDomain, sldOwner sdk.AccAddress) error { // Validate second-level-domain err := secondLevelDomain.Validate() if err != nil { return err } // Check if second-level-domain is already taken - isTaken := k.GetIsSecondLevelDomainAlreadyTaken(ctx, secondLevelDomain) + isTaken := k.GetIsSecondLevelDomainAlreadyTaken(goCtx, secondLevelDomain) if isTaken { return errorsmod.Wrapf(types.ErrSecondLevelDomainAlreadyTaken, "%s.%s", secondLevelDomain.Name, secondLevelDomain.Parent) } // Get parent domain of second-level-domain - parentDomain, found := k.GetSecondLevelDomainParent(ctx, secondLevelDomain) + parentDomain, found := k.GetSecondLevelDomainParent(goCtx, secondLevelDomain) if !found { return errorsmod.Wrapf(types.ErrSecondLevelDomainParentDoesNotExist, "%s", secondLevelDomain.Parent) } @@ -211,30 +221,30 @@ func (k Keeper) ValidateSecondLevelDomainIsRegistrable(ctx sdk.Context, secondLe } // Register second level domain -func (k Keeper) RegisterSecondLevelDomain(ctx sdk.Context, secondLevelDomain types.SecondLevelDomain, owner sdk.AccAddress, registrationPeriodIYear uint64) (err error) { +func (k Keeper) RegisterSecondLevelDomain(goCtx context.Context, secondLevelDomain types.SecondLevelDomain, owner sdk.AccAddress, registrationPeriodIYear uint64) (err error) { // Validate second-level-domain is registrable - err = k.ValidateSecondLevelDomainIsRegistrable(ctx, secondLevelDomain, owner) + err = k.ValidateSecondLevelDomainIsRegistrable(goCtx, secondLevelDomain, owner) if err != nil { return err } // Increment parents subdomain SubdomainCount - k.IncrementParentsSubdomainCount(ctx, secondLevelDomain) + k.IncrementParentsSubdomainCount(goCtx, secondLevelDomain) // Pay SLD registration fee - fee, err := k.PaySecondLevelDomainRegstrationFee(ctx, owner, secondLevelDomain, registrationPeriodIYear) + fee, err := k.PaySecondLevelDomainRegstrationFee(goCtx, owner, secondLevelDomain, registrationPeriodIYear) if err != nil { return err } // Append to owned domain - k.AppendToOwnedDomain(ctx, owner.String(), secondLevelDomain.Name, secondLevelDomain.Parent) + k.AppendToOwnedDomain(goCtx, owner.String(), secondLevelDomain.Name, secondLevelDomain.Parent) // Set domain - k.SetSecondLevelDomain(ctx, secondLevelDomain) + k.SetSecondLevelDomain(goCtx, secondLevelDomain) // Emit event - EmitRegisterSecondLevelDomainEvent(ctx, secondLevelDomain, fee) + EmitRegisterSecondLevelDomainEvent(goCtx, secondLevelDomain, fee) return err } diff --git a/x/registry/keeper/second_level_domain_test.go b/x/registry/keeper/second_level_domain_test.go index 5e1b52d9..ce406ab4 100644 --- a/x/registry/keeper/second_level_domain_test.go +++ b/x/registry/keeper/second_level_domain_test.go @@ -1,6 +1,7 @@ package keeper_test import ( + "context" "fmt" "strconv" "testing" @@ -22,7 +23,7 @@ import ( // Prevent strconv unused error var _ = strconv.IntSize -func createNSecondLevelDomain(keeper *keeper.Keeper, ctx sdk.Context, n int) []types.SecondLevelDomain { +func createNSecondLevelDomain(keeper *keeper.Keeper, ctx context.Context, n int) []types.SecondLevelDomain { items := make([]types.SecondLevelDomain, n) for i := range items { items[i].Name = strconv.Itoa(i) @@ -33,7 +34,7 @@ func createNSecondLevelDomain(keeper *keeper.Keeper, ctx sdk.Context, n int) []t return items } -func createNSecondLevelDomainResponse(keeper *keeper.Keeper, ctx sdk.Context, n int) []types.SecondLevelDomainResponse { +func createNSecondLevelDomainResponse(keeper *keeper.Keeper, ctx context.Context, n int) []types.SecondLevelDomainResponse { items := createNSecondLevelDomain(keeper, ctx, n) responses := make([]types.SecondLevelDomainResponse, n) for i := range responses { @@ -47,7 +48,7 @@ func createNSecondLevelDomainResponse(keeper *keeper.Keeper, ctx sdk.Context, n // Register top-level domains with k.RegisterSecondLevelDomain() // Domain name is set to `n` (n is a incremantal number) // e.g.) `1`, `2`, `n`... -func registerNSecondLevelDomain(k *keeper.Keeper, ctx sdk.Context, creatorAddr string, n int) ([]types.SecondLevelDomain, error) { +func registerNSecondLevelDomain(k *keeper.Keeper, ctx context.Context, creatorAddr string, n int) ([]types.SecondLevelDomain, error) { items := make([]types.SecondLevelDomain, n) for i := range items { creator, err := sdk.AccAddressFromBech32(creatorAddr) diff --git a/x/registry/keeper/setup_test.go b/x/registry/keeper/setup_test.go index d71ba86a..0ac818d7 100644 --- a/x/registry/keeper/setup_test.go +++ b/x/registry/keeper/setup_test.go @@ -42,7 +42,7 @@ func (suite *KeeperTestSuite) SetupTest() { suite.app = app suite.ctx = ctx - queryHelper := baseapp.NewQueryServerTestHelper(suite.ctx, suite.app.InterfaceRegistry()) + queryHelper := baseapp.NewQueryServerTestHelper(suite.ctx, suite.app.AppCodec().InterfaceRegistry()) types.RegisterQueryServer(queryHelper, suite.app.RegistryKeeper) suite.queryClient = types.NewQueryClient(queryHelper) diff --git a/x/registry/keeper/top_level_domain.go b/x/registry/keeper/top_level_domain.go index 03814e7f..fd23f278 100644 --- a/x/registry/keeper/top_level_domain.go +++ b/x/registry/keeper/top_level_domain.go @@ -1,12 +1,14 @@ package keeper import ( + "context" "time" errorsmod "cosmossdk.io/errors" "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/app/params" @@ -15,8 +17,10 @@ import ( ) // SetTopLevelDomain set a specific topLevelDomain in the store from its index -func (k Keeper) SetTopLevelDomain(ctx sdk.Context, topLevelDomain types.TopLevelDomain) { - store := prefix.NewStore(ctx.KVStore(k.storeKey), types.KeyPrefix(types.TopLevelDomainKeyPrefix)) +func (k Keeper) SetTopLevelDomain(goCtx context.Context, topLevelDomain types.TopLevelDomain) { + storeAdapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(goCtx)) + store := prefix.NewStore(storeAdapter, types.KeyPrefix(types.DomainOwnershipKeyPrefix)) + b := k.cdc.MustMarshal(&topLevelDomain) store.Set(types.TopLevelDomainKey( topLevelDomain.Name, @@ -25,10 +29,11 @@ func (k Keeper) SetTopLevelDomain(ctx sdk.Context, topLevelDomain types.TopLevel // GetTopLevelDomain returns a topLevelDomain from its index func (k Keeper) GetTopLevelDomain( - ctx sdk.Context, + goCtx context.Context, name string, ) (val types.TopLevelDomain, found bool) { - store := prefix.NewStore(ctx.KVStore(k.storeKey), types.KeyPrefix(types.TopLevelDomainKeyPrefix)) + storeAdapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(goCtx)) + store := prefix.NewStore(storeAdapter, types.KeyPrefix(types.DomainOwnershipKeyPrefix)) b := store.Get(types.TopLevelDomainKey( name, @@ -43,18 +48,22 @@ func (k Keeper) GetTopLevelDomain( // RemoveTopLevelDomain removes a topLevelDomain from the store func (k Keeper) RemoveTopLevelDomain( - ctx sdk.Context, + goCtx context.Context, name string, ) { - store := prefix.NewStore(ctx.KVStore(k.storeKey), types.KeyPrefix(types.TopLevelDomainKeyPrefix)) + storeAdapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(goCtx)) + store := prefix.NewStore(storeAdapter, types.KeyPrefix(types.DomainOwnershipKeyPrefix)) + store.Delete(types.TopLevelDomainKey( name, )) } // GetAllTopLevelDomain returns all topLevelDomain -func (k Keeper) GetAllTopLevelDomain(ctx sdk.Context) (list []types.TopLevelDomain) { - store := prefix.NewStore(ctx.KVStore(k.storeKey), types.KeyPrefix(types.TopLevelDomainKeyPrefix)) +func (k Keeper) GetAllTopLevelDomain(goCtx context.Context) (list []types.TopLevelDomain) { + storeAdapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(goCtx)) + store := prefix.NewStore(storeAdapter, types.KeyPrefix(types.DomainOwnershipKeyPrefix)) + iterator := storetypes.KVStorePrefixIterator(store, []byte{}) defer iterator.Close() @@ -69,13 +78,13 @@ func (k Keeper) GetAllTopLevelDomain(ctx sdk.Context) (list []types.TopLevelDoma } // Get is top-level-domain already taken -func (k Keeper) GetIsTopLevelDomainAlreadyTaken(ctx sdk.Context, domain types.TopLevelDomain) (isDomainAlreadyTaken bool) { - _, isDomainAlreadyTaken = k.GetTopLevelDomain(ctx, domain.Name) +func (k Keeper) GetIsTopLevelDomainAlreadyTaken(goCtx context.Context, domain types.TopLevelDomain) (isDomainAlreadyTaken bool) { + _, isDomainAlreadyTaken = k.GetTopLevelDomain(goCtx, domain.Name) return isDomainAlreadyTaken } // Get valid-top-level domain -func (k Keeper) GetValidTopLevelDomain(ctx sdk.Context, name string) (topLevelDomain types.TopLevelDomain, err error) { +func (k Keeper) GetValidTopLevelDomain(goCtx context.Context, name string) (topLevelDomain types.TopLevelDomain, err error) { // Regex validation err = types.ValidateTopLevelDomainName(name) if err != nil { @@ -83,12 +92,13 @@ func (k Keeper) GetValidTopLevelDomain(ctx sdk.Context, name string) (topLevelDo } // Get top level domain - topLevelDomain, found := k.GetTopLevelDomain(ctx, name) + topLevelDomain, found := k.GetTopLevelDomain(goCtx, name) if !found { return topLevelDomain, errorsmod.Wrapf(types.ErrTopLevelDomainNotFound, "%s", name) } // Check if domain is not expired + ctx := sdk.UnwrapSDKContext(goCtx) if ctx.BlockTime().After(topLevelDomain.ExpirationDate) && topLevelDomain.ExpirationDate != (time.Time{}) { return topLevelDomain, errorsmod.Wrapf(types.ErrTopLevelDomainExpired, "%s", name) } @@ -97,8 +107,8 @@ func (k Keeper) GetValidTopLevelDomain(ctx sdk.Context, name string) (topLevelDo } // Get Role of the domain -func (k Keeper) GetTopLevelDomainRole(ctx sdk.Context, name, address string) (role types.DomainRole, found bool) { - tld, found := k.GetTopLevelDomain(ctx, name) +func (k Keeper) GetTopLevelDomainRole(goCtx context.Context, name, address string) (role types.DomainRole, found bool) { + tld, found := k.GetTopLevelDomain(goCtx, name) if !found { return types.DomainRole_NO_ROLE, false } @@ -107,26 +117,26 @@ func (k Keeper) GetTopLevelDomainRole(ctx sdk.Context, name, address string) (ro } // Pay top-level-domain registration fee -func (k Keeper) PayTopLevelDomainFee(ctx sdk.Context, payer sdk.AccAddress, domain types.TopLevelDomain, registrationPeriodInYear uint64) (registrationFee types.TopLevelDomainFee, err error) { +func (k Keeper) PayTopLevelDomainFee(goCtx context.Context, payer sdk.AccAddress, domain types.TopLevelDomain, registrationPeriodInYear uint64) (registrationFee types.TopLevelDomainFee, err error) { // Get registration fee - registrationFee, err = k.GetTopLevelDomainFee(ctx, domain, registrationPeriodInYear) + registrationFee, err = k.GetTopLevelDomainFee(goCtx, domain, registrationPeriodInYear) if err != nil { return types.TopLevelDomainFee{}, err } // Send coins to treasury - err = k.distributionKeeper.FundCommunityPool(ctx, sdk.NewCoins(registrationFee.FeeToTreasury), payer) + err = k.distributionKeeper.FundCommunityPool(goCtx, sdk.NewCoins(registrationFee.FeeToTreasury), payer) if err != nil { return types.TopLevelDomainFee{}, err } // Send coins to furnace module - err = k.bankKeeper.SendCoinsFromAccountToModule(ctx, payer, furnacetypes.ModuleName, sdk.NewCoins(registrationFee.FeeToBurn)) + err = k.bankKeeper.SendCoinsFromAccountToModule(goCtx, payer, furnacetypes.ModuleName, sdk.NewCoins(registrationFee.FeeToBurn)) if err != nil { return types.TopLevelDomainFee{}, err } // Store burn amount - _, err = k.furnaceKeeper.AddRegistrationFeeToBurnAmounts(ctx, registrationPeriodInYear, registrationFee.FeeToBurn) + _, err = k.furnaceKeeper.AddRegistrationFeeToBurnAmounts(goCtx, registrationPeriodInYear, registrationFee.FeeToBurn) if err != nil { return types.TopLevelDomainFee{}, err } @@ -141,14 +151,14 @@ func (k Keeper) PayTopLevelDomainFee(ctx sdk.Context, payer sdk.AccAddress, doma return registrationFee, nil } -func (k Keeper) ValidateTopLevelDomainIsRegistrable(ctx sdk.Context, topLevelDomain types.TopLevelDomain) error { +func (k Keeper) ValidateTopLevelDomainIsRegistrable(goCtx context.Context, topLevelDomain types.TopLevelDomain) error { // Validate top-level-domain err := topLevelDomain.Validate() if err != nil { return err } // Check if top-level-domain is already taken - isTaken := k.GetIsTopLevelDomainAlreadyTaken(ctx, topLevelDomain) + isTaken := k.GetIsTopLevelDomainAlreadyTaken(goCtx, topLevelDomain) if isTaken { return errorsmod.Wrapf(types.ErrTopLevelDomainAlreadyTaken, "%s", topLevelDomain.Name) } @@ -157,8 +167,9 @@ func (k Keeper) ValidateTopLevelDomainIsRegistrable(ctx sdk.Context, topLevelDom } // Register top-level-domain -func (k Keeper) RegisterTopLevelDomain(ctx sdk.Context, creator string, domainName string, registrationPeriodInYear uint64) (topLevelDomain types.TopLevelDomain, fee types.TopLevelDomainFee, err error) { +func (k Keeper) RegisterTopLevelDomain(goCtx context.Context, creator string, domainName string, registrationPeriodInYear uint64) (topLevelDomain types.TopLevelDomain, fee types.TopLevelDomainFee, err error) { // Create top-level-domain + ctx := sdk.UnwrapSDKContext(goCtx) currentTime := ctx.BlockTime() expirationDate := currentTime.AddDate(0, 0, params.OneYearInDays*int(registrationPeriodInYear)) accessControl := types.AccessControl{ @@ -175,7 +186,7 @@ func (k Keeper) RegisterTopLevelDomain(ctx sdk.Context, creator string, domainNa } // Validate top-level-domain is registrable - err = k.ValidateTopLevelDomainIsRegistrable(ctx, topLevelDomain) + err = k.ValidateTopLevelDomainIsRegistrable(goCtx, topLevelDomain) if err != nil { return types.TopLevelDomain{}, types.TopLevelDomainFee{}, err } @@ -185,27 +196,27 @@ func (k Keeper) RegisterTopLevelDomain(ctx sdk.Context, creator string, domainNa if err != nil { return types.TopLevelDomain{}, types.TopLevelDomainFee{}, err } - fee, err = k.PayTopLevelDomainFee(ctx, creatorAddress, topLevelDomain, registrationPeriodInYear) + fee, err = k.PayTopLevelDomainFee(goCtx, creatorAddress, topLevelDomain, registrationPeriodInYear) if err != nil { return types.TopLevelDomain{}, types.TopLevelDomainFee{}, err } // Set domain - k.SetTopLevelDomain(ctx, topLevelDomain) + k.SetTopLevelDomain(goCtx, topLevelDomain) // Append to owned domain - k.AppendToOwnedDomain(ctx, creator, topLevelDomain.Name, "") + k.AppendToOwnedDomain(goCtx, creator, topLevelDomain.Name, "") // Emit event - EmitRegisterTopLevelDomainEvent(ctx, topLevelDomain, fee) + EmitRegisterTopLevelDomainEvent(goCtx, topLevelDomain, fee) return topLevelDomain, fee, nil } // Extend expiration date -func (k Keeper) ExtendTopLevelDomainExpirationDate(ctx sdk.Context, creator string, domainName string, extensionPeriodInYear uint64) (topLevelDomain types.TopLevelDomain, fee types.TopLevelDomainFee, err error) { +func (k Keeper) ExtendTopLevelDomainExpirationDate(goCtx context.Context, creator string, domainName string, extensionPeriodInYear uint64) (topLevelDomain types.TopLevelDomain, fee types.TopLevelDomainFee, err error) { // Get domain - topLevelDomain, found := k.GetTopLevelDomain(ctx, domainName) + topLevelDomain, found := k.GetTopLevelDomain(goCtx, domainName) if !found { return types.TopLevelDomain{}, types.TopLevelDomainFee{}, errorsmod.Wrapf(types.ErrTopLevelDomainNotFound, "%s", domainName) } @@ -227,24 +238,24 @@ func (k Keeper) ExtendTopLevelDomainExpirationDate(ctx sdk.Context, creator stri } // Pay TLD extend fee - fee, err = k.PayTopLevelDomainFee(ctx, creatorAddress, topLevelDomain, extensionPeriodInYear) + fee, err = k.PayTopLevelDomainFee(goCtx, creatorAddress, topLevelDomain, extensionPeriodInYear) if err != nil { return types.TopLevelDomain{}, types.TopLevelDomainFee{}, err } // Update domain store topLevelDomain.ExtendExpirationDate(topLevelDomain.ExpirationDate, extensionPeriodInYear) - k.SetTopLevelDomain(ctx, topLevelDomain) + k.SetTopLevelDomain(goCtx, topLevelDomain) // Emit event - EmitExtendTopLevelDomainExpirationDateEvent(ctx, topLevelDomain, fee) + EmitExtendTopLevelDomainExpirationDateEvent(goCtx, topLevelDomain, fee) return topLevelDomain, fee, err } -func (k Keeper) UpdateTopLevelDomainRegistrationPolicy(ctx sdk.Context, creator string, domainName string, registrationPolicy string) (err error) { +func (k Keeper) UpdateTopLevelDomainRegistrationPolicy(goCtx context.Context, creator string, domainName string, registrationPolicy string) (err error) { // Get domain - topLevelDomain, found := k.GetTopLevelDomain(ctx, domainName) + topLevelDomain, found := k.GetTopLevelDomain(goCtx, domainName) if !found { return errorsmod.Wrapf(types.ErrTopLevelDomainNotFound, "%s", domainName) } @@ -263,10 +274,10 @@ func (k Keeper) UpdateTopLevelDomainRegistrationPolicy(ctx sdk.Context, creator // Update domain store topLevelDomain.UpdateRegistrationPolicy(rp) - k.SetTopLevelDomain(ctx, topLevelDomain) + k.SetTopLevelDomain(goCtx, topLevelDomain) // Emit event - EmitUpdateTopLevelDomainRegistrationPolicyEvent(ctx, topLevelDomain) + EmitUpdateTopLevelDomainRegistrationPolicyEvent(goCtx, topLevelDomain) return nil } diff --git a/x/registry/keeper/top_level_domain_fee.go b/x/registry/keeper/top_level_domain_fee.go index f855fa7b..2c7408f7 100644 --- a/x/registry/keeper/top_level_domain_fee.go +++ b/x/registry/keeper/top_level_domain_fee.go @@ -1,6 +1,7 @@ package keeper import ( + "context" "fmt" "cosmossdk.io/math" @@ -12,20 +13,23 @@ import ( ) // Get burn weight -func (k Keeper) GetBurnWeight(ctx sdk.Context) (weight math.LegacyDec, err error) { - minter, err := k.mintKeeperMinter.Get(ctx) - if err != nil { - return math.LegacyDec{}, err - } - inflation := minter.Inflation - bondedRatio, err := k.mintKeeper.BondedRatio(ctx) +func (k Keeper) GetBurnWeight(goCtx context.Context) (weight math.LegacyDec, err error) { + // TODO: Get inflation from minter + // minter, err := k.mintKeeper.Minter.Get(goCtx) + // if err != nil { + // return math.LegacyDec{}, err + // } + // inflation := minter.Inflation + + inflation := math.LegacyMustNewDecFromStr(fmt.Sprintf("%f", 0.20)) + bondedRatio, err := k.mintKeeper.BondedRatio(goCtx) if err != nil { return math.LegacyDec{}, err } // TODO: Get alpha from params - stakingInflationRatio := k.GetParams(ctx).StakingInflationRatio - alpha := math.LegacyMustNewDecFromStr(fmt.Sprintf("%f", stakingInflationRatio)) + mintInflationRatio := k.GetParams(goCtx).StakingInflationRatio + alpha := math.LegacyMustNewDecFromStr(fmt.Sprintf("%f", mintInflationRatio)) w1 := alpha.Mul(bondedRatio) w2 := inflation.Mul(math.LegacyMustNewDecFromStr("1").Sub(alpha)) @@ -34,12 +38,12 @@ func (k Keeper) GetBurnWeight(ctx sdk.Context) (weight math.LegacyDec, err error } // Get top-level-domain fee -func (k Keeper) GetTopLevelDomainFee(ctx sdk.Context, topLevelDomain types.TopLevelDomain, registrationPeriodInYear uint64) (topLevelDomainFee types.TopLevelDomainFee, err error) { +func (k Keeper) GetTopLevelDomainFee(goCtx context.Context, topLevelDomain types.TopLevelDomain, registrationPeriodInYear uint64) (topLevelDomainFee types.TopLevelDomainFee, err error) { // TODO: Support other denoms denom := params.DefaultBondDenom // Get base fee - baseFeeInUsd := k.GetParams(ctx).TopLevelDomainBaseFeeInUsd + baseFeeInUsd := k.GetParams(goCtx).TopLevelDomainBaseFeeInUsd if baseFeeInUsd == 0 { panic("base fee is not set") } @@ -52,7 +56,7 @@ func (k Keeper) GetTopLevelDomainFee(ctx sdk.Context, topLevelDomain types.TopLe topLevelDomainFee.TotalFee = sdk.NewCoins(sdk.NewCoin(denom, fee)) // Get burn weight (=W) - weight, err := k.GetBurnWeight(ctx) + weight, err := k.GetBurnWeight(goCtx) if err != nil { return types.TopLevelDomainFee{}, err } diff --git a/x/registry/keeper/top_level_domain_test.go b/x/registry/keeper/top_level_domain_test.go index 0e06fab2..2e76e09e 100644 --- a/x/registry/keeper/top_level_domain_test.go +++ b/x/registry/keeper/top_level_domain_test.go @@ -1,6 +1,7 @@ package keeper_test import ( + "context" "fmt" "strconv" "testing" @@ -10,8 +11,6 @@ import ( errorsmod "cosmossdk.io/errors" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/mycel-domain/mycel/testutil" keepertest "github.com/mycel-domain/mycel/testutil/keeper" "github.com/mycel-domain/mycel/testutil/nullify" @@ -22,7 +21,7 @@ import ( // Prevent strconv unused error var _ = strconv.IntSize -func createNTopLevelDomain(keeper *keeper.Keeper, ctx sdk.Context, n int) []types.TopLevelDomain { +func createNTopLevelDomain(keeper *keeper.Keeper, ctx context.Context, n int) []types.TopLevelDomain { items := make([]types.TopLevelDomain, n) for i := range items { items[i].Name = strconv.Itoa(i) @@ -35,7 +34,7 @@ func createNTopLevelDomain(keeper *keeper.Keeper, ctx sdk.Context, n int) []type // Register top-level domains with k.RegisterTopLevelDomain() // Domain name is set to `celn` (n is a incremantal number) // e.g.) `cel1`, `cel2`, `celn`... -func registerNTopLevelDomain(k *keeper.Keeper, ctx sdk.Context, creatorAddr string, n int) ([]types.TopLevelDomain, error) { +func registerNTopLevelDomain(k *keeper.Keeper, ctx context.Context, creatorAddr string, n int) ([]types.TopLevelDomain, error) { items := make([]types.TopLevelDomain, n) for i := range items { name := "cel" + strconv.Itoa(i) diff --git a/x/registry/README.md b/x/registry/module/README.md similarity index 100% rename from x/registry/README.md rename to x/registry/module/README.md diff --git a/x/registry/module/autocli.go b/x/registry/module/autocli.go new file mode 100644 index 00000000..31b21a94 --- /dev/null +++ b/x/registry/module/autocli.go @@ -0,0 +1,215 @@ +package registry + +import ( + autocliv1 "cosmossdk.io/api/cosmos/autocli/v1" + + modulev1 "github.com/mycel-domain/mycel/api/mycel/registry/v1" +) + +// AutoCLIOptions implements the autocli.HasAutoCLIConfig interface. +func (am AppModule) AutoCLIOptions() *autocliv1.ModuleOptions { + return &autocliv1.ModuleOptions{ + Query: &autocliv1.ServiceCommandDescriptor{ + Service: modulev1.Query_ServiceDesc.ServiceName, + RpcCommandOptions: []*autocliv1.RpcCommandOptions{ + { + RpcMethod: "Params", + Use: "params", + Short: "Shows the parameters of the module", + }, + { + RpcMethod: "TopLevelDomain", + Use: "top-level-domain [name]", + Short: "Query information about a top-level domain", + PositionalArgs: []*autocliv1.PositionalArgDescriptor{ + {ProtoField: "name"}, + }, + }, + + { + RpcMethod: "TopLevelDomainAll", + Use: "top-level-domain-all", + Short: "Query all top-level domains", + }, + + { + RpcMethod: "SecondLevelDomain", + Use: "second-level-domain [name] [parent]", + Short: "Query information about a second-level domain", + PositionalArgs: []*autocliv1.PositionalArgDescriptor{ + {ProtoField: "name"}, + {ProtoField: "parent"}, + }, + }, + + { + RpcMethod: "SecondLevelDomainAll", + Use: "second-level-domain-all", + Short: "Query all second-level domains", + }, + + { + RpcMethod: "DomainOwnership", + Use: "domain-ownership [owner]", + Short: "Query domain ownership information", + PositionalArgs: []*autocliv1.PositionalArgDescriptor{ + {ProtoField: "owner"}, + }, + }, + + { + RpcMethod: "DomainOwnershipAll", + Use: "domain-ownership-all", + Short: "Query all domain ownership information", + }, + + { + RpcMethod: "DomainRegistrationFee", + Use: "domain-registration-fee [name] [parent] [registration-period-in-year] [registerer]", + Short: "Query domain registration fee", + PositionalArgs: []*autocliv1.PositionalArgDescriptor{ + {ProtoField: "name"}, + {ProtoField: "parent"}, + {ProtoField: "registration_period_in_year"}, + {ProtoField: "registerer"}, + }, + }, + { + RpcMethod: "Role", + Use: "role [domain-name] [address]", + Short: "Query the role of an address in a domain", + PositionalArgs: []*autocliv1.PositionalArgDescriptor{ + {ProtoField: "domain_name"}, + {ProtoField: "address"}, + }, + }, + { + RpcMethod: "WalletRecord", + Use: "wallet-record [domain-name] [domain-parent] [wallet-record-type]", + Short: "Query wallet record", + PositionalArgs: []*autocliv1.PositionalArgDescriptor{ + {ProtoField: "domain_name"}, + {ProtoField: "domain_parent"}, + {ProtoField: "wallet_record_type"}, + }, + }, + { + RpcMethod: "DnsRecord", + Use: "dns-record [domain-name] [domain-parent] [dns-record-type]", + Short: "Query DNS record", + PositionalArgs: []*autocliv1.PositionalArgDescriptor{ + {ProtoField: "domain_name"}, + {ProtoField: "domain_parent"}, + {ProtoField: "dns_record_type"}, + }, + }, + { + RpcMethod: "AllRecords", + Use: "all-records [domain-name] [domain-parent]", + Short: "Query all records", + PositionalArgs: []*autocliv1.PositionalArgDescriptor{ + {ProtoField: "domain_name"}, + {ProtoField: "domain_parent"}, + }, + }, + { + RpcMethod: "TextRecord", + Use: "text-record [domain-name] [domain-parent] [key]", + Short: "Query text record", + PositionalArgs: []*autocliv1.PositionalArgDescriptor{ + {ProtoField: "domain_name"}, + {ProtoField: "domain_parent"}, + {ProtoField: "key"}, + }, + }, + // this line is used by ignite scaffolding # autocli/query + }, + }, + Tx: &autocliv1.ServiceCommandDescriptor{ + Service: modulev1.Msg_ServiceDesc.ServiceName, + EnhanceCustomCommand: true, // only required if you want to use the custom command + RpcCommandOptions: []*autocliv1.RpcCommandOptions{ + { + RpcMethod: "UpdateWalletRecord", + Use: "update-wallet-record [creator] [name] [parent] [wallet-record-type] [value]", + Short: "Update a wallet record", + PositionalArgs: []*autocliv1.PositionalArgDescriptor{ + {ProtoField: "creator"}, + {ProtoField: "name"}, + {ProtoField: "parent"}, + {ProtoField: "wallet_record_type"}, + {ProtoField: "value"}, + }, + }, + { + RpcMethod: "UpdateDnsRecord", + Use: "update-dns-record [creator] [name] [parent] [dns-record-type] [value]", + Short: "Update a DNS record", + PositionalArgs: []*autocliv1.PositionalArgDescriptor{ + {ProtoField: "name"}, + {ProtoField: "parent"}, + {ProtoField: "dns_record_type"}, + {ProtoField: "value"}, + }, + }, + { + RpcMethod: "RegisterSecondLevelDomain", + Use: "register-second-level-domain [creator] [name] [parent] [registration-period-in-year]", + Short: "Register a second-level domain", + PositionalArgs: []*autocliv1.PositionalArgDescriptor{ + {ProtoField: "name"}, + {ProtoField: "parent"}, + {ProtoField: "registration_period_in_year"}, + }, + }, + { + RpcMethod: "RegisterTopLevelDomain", + Use: "register-top-level-domain [creator] [name] [registration-period-in-year]", + Short: "Register a top-level domain", + PositionalArgs: []*autocliv1.PositionalArgDescriptor{ + {ProtoField: "name"}, + {ProtoField: "registration_period_in_year"}, + }, + }, + { + RpcMethod: "WithdrawRegistrationFee", + Use: "withdraw-registration-fee [creator] [name]", + Short: "Withdraw registration fee", + PositionalArgs: []*autocliv1.PositionalArgDescriptor{ + {ProtoField: "name"}, + }, + }, + { + RpcMethod: "ExtendTopLevelDomainExpirationDate", + Use: "extend-top-level-expiration-date [creator] [name] [extension-period-in-year]", + Short: "Extend the expiration date of a top-level domain", + PositionalArgs: []*autocliv1.PositionalArgDescriptor{ + {ProtoField: "name"}, + {ProtoField: "extension_period_in_year"}, + }, + }, + { + RpcMethod: "UpdateTextRecord", + Use: "update-text-record [creator] [name] [parent] [key] [value]", + Short: "Update a text record", + PositionalArgs: []*autocliv1.PositionalArgDescriptor{ + {ProtoField: "name"}, + {ProtoField: "parent"}, + {ProtoField: "key"}, + {ProtoField: "value"}, + }, + }, + { + RpcMethod: "UpdateTopLevelDomainRegistrationPolicy", + Use: "update-top-level-domain-registration-policy [creator] [name] [registration-policy]", + Short: "Update top-level domain registration policy", + PositionalArgs: []*autocliv1.PositionalArgDescriptor{ + {ProtoField: "name"}, + {ProtoField: "registration_policy"}, + }, + }, + // this line is used by ignite scaffolding # autocli/tx + }, + }, + } +} diff --git a/x/registry/genesis.go b/x/registry/module/genesis.go similarity index 100% rename from x/registry/genesis.go rename to x/registry/module/genesis.go diff --git a/x/registry/genesis_test.go b/x/registry/module/genesis_test.go similarity index 96% rename from x/registry/genesis_test.go rename to x/registry/module/genesis_test.go index 175ffffc..9130cae6 100644 --- a/x/registry/genesis_test.go +++ b/x/registry/module/genesis_test.go @@ -7,7 +7,7 @@ import ( keepertest "github.com/mycel-domain/mycel/testutil/keeper" "github.com/mycel-domain/mycel/testutil/nullify" - "github.com/mycel-domain/mycel/x/registry" + "github.com/mycel-domain/mycel/x/registry/module" "github.com/mycel-domain/mycel/x/registry/types" ) diff --git a/x/registry/module.go b/x/registry/module/module.go similarity index 58% rename from x/registry/module.go rename to x/registry/module/module.go index bb5e9753..412efb7c 100644 --- a/x/registry/module.go +++ b/x/registry/module/module.go @@ -4,40 +4,43 @@ import ( "context" "encoding/json" "fmt" - "log" "github.com/grpc-ecosystem/grpc-gateway/runtime" - "github.com/spf13/cobra" "cosmossdk.io/core/appmodule" + "cosmossdk.io/core/store" + "cosmossdk.io/depinject" + "cosmossdk.io/log" "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" + authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" + govtypes "github.com/cosmos/cosmos-sdk/x/gov/types" - "github.com/mycel-domain/mycel/x/registry/client/cli" + // this line is used by starport scaffolding # 1 + modulev1 "github.com/mycel-domain/mycel/api/mycel/registry/module/v1" "github.com/mycel-domain/mycel/x/registry/keeper" "github.com/mycel-domain/mycel/x/registry/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. type AppModuleBasic struct { cdc codec.BinaryCodec } @@ -46,27 +49,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 { @@ -75,24 +78,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 { - log.Printf("%v", err) + 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 // ---------------------------------------------------------------------------- @@ -120,12 +112,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)) @@ -150,11 +136,83 @@ 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 func (am AppModule) BeginBlock(ctx context.Context) error { - // defer telemetry.ModuleMeasureSince(am.Name(), time.Now(), telemetry.MetricKeyBeginBlocker) 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 +// ---------------------------------------------------------------------------- + +func init() { + appmodule.Register( + &modulev1.Module{}, + appmodule.Provide(ProvideModule), + ) +} + +type ModuleInputs struct { + depinject.In + + StoreService store.KVStoreService + Cdc codec.Codec + Config *modulev1.Module + Logger log.Logger + + AccountKeeper types.AccountKeeper + BankKeeper types.BankKeeper + DistributionKeeper types.DistributionKeeper + MintKeeper types.MintKeeper + FurnaceKeeper types.FurnaceKeeper +} + +type ModuleOutputs struct { + depinject.Out + + RegistryKeeper keeper.Keeper + Module appmodule.AppModule +} + +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.StoreService, + in.Logger, + authority.String(), + in.BankKeeper, + in.DistributionKeeper, + in.MintKeeper, + in.FurnaceKeeper, + ) + m := NewAppModule( + in.Cdc, + *k, + in.AccountKeeper, + in.BankKeeper, + ) + + return ModuleOutputs{RegistryKeeper: *k, Module: m} +} diff --git a/x/resolver/module_simulation.go b/x/registry/module/simulation.go similarity index 70% rename from x/resolver/module_simulation.go rename to x/registry/module/simulation.go index 5444fbc4..302c1745 100644 --- a/x/resolver/module_simulation.go +++ b/x/registry/module/simulation.go @@ -1,25 +1,25 @@ -package resolver +package registry import ( "math/rand" - "github.com/cosmos/cosmos-sdk/baseapp" + 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" - resolversimulation "github.com/mycel-domain/mycel/x/resolver/simulation" - "github.com/mycel-domain/mycel/x/resolver/types" + registrysimulation "github.com/mycel-domain/mycel/x/furnace/simulation" + "github.com/mycel-domain/mycel/x/registry/types" ) // avoid unused import issue var ( + _ = registrysimulation.FindAccount + _ = rand.Rand{} _ = sample.AccAddress - _ = resolversimulation.FindAccount + _ = sdk.AccAddress{} _ = simulation.MsgEntryKind - _ = baseapp.Paramspace - _ = rand.Rand{} ) const ( @@ -32,11 +32,18 @@ func (AppModule) GenerateGenesisState(simState *module.SimulationState) { for i, acc := range simState.Accounts { accs[i] = acc.Address.String() } - resolverGenesis := types.GenesisState{ - Params: types.DefaultParams(), + registryGenesis := types.GenesisState{ // this line is used by starport scaffolding # simapp/module/genesisState } - simState.GenState[types.ModuleName] = simState.Cdc.MustMarshalJSON(&resolverGenesis) + simState.GenState[types.ModuleName] = simState.Cdc.MustMarshalJSON(®istryGenesis) +} + +// 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. diff --git a/x/registry/module_simulation.go b/x/registry/module_simulation.go deleted file mode 100644 index 4d5c6137..00000000 --- a/x/registry/module_simulation.go +++ /dev/null @@ -1,162 +0,0 @@ -package registry - -import ( - "math/rand" - - "github.com/cosmos/cosmos-sdk/baseapp" - "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" - registrysimulation "github.com/mycel-domain/mycel/x/registry/simulation" - "github.com/mycel-domain/mycel/x/registry/types" -) - -// avoid unused import issue -var ( - _ = sample.AccAddress - _ = registrysimulation.FindAccount - _ = simulation.MsgEntryKind - _ = baseapp.Paramspace - _ = rand.Rand{} -) - -const ( - opWeightMsgUpdateWalletRecord = "op_weight_msg_update_wallet_record" // #nosec G101 - // TODO: Determine the simulation weight value - defaultWeightMsgUpdateWalletRecord int = 100 - - opWeightMsgRegisterSecondLevelDomain = "op_weight_msg_register_domain" // #nosec G101 - // TODO: Determine the simulation weight value - defaultWeightMsgRegisterSecondLevelDomain int = 100 - - opWeightMsgRegisterTopLevelDomain = "op_weight_msg_register_top_level_domain" // #nosec G101 - // TODO: Determine the simulation weight value - defaultWeightMsgRegisterTopLevelDomain int = 100 - - opWeightMsgWithdrawRegistrationFee = "op_weight_msg_withdraw_registration_fee" // #nosec G101 - // TODO: Determine the simulation weight value - defaultWeightMsgWithdrawRegistrationFee int = 100 - - opWeightMsgExtendTopLevelDomainExpirationDate = "op_weight_msg_extend_top_level_domain_expiration" // #nosec G101 - // TODO: Determine the simulation weight value - defaultWeightMsgExtendTopLevelDomainExpirationDate int = 100 - - opWeightMsgUpdateTextRecord = "op_weight_msg_update_text_record" // #nosec G101 - // TODO: Determine the simulation weight value - defaultWeightMsgUpdateTextRecord int = 100 - - opWeightMsgUpdateTopLevelDomainRegistrationPolicy = "op_weight_msg_update_top_level_domain_registration_policy" //#nosec G101 - // TODO: Determine the simulation weight value - defaultWeightMsgUpdateTopLevelDomainRegistrationPolicy int = 100 - - // 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() - } - registryGenesis := types.GenesisState{ - Params: types.DefaultParams(), - // this line is used by starport scaffolding # simapp/module/genesisState - } - simState.GenState[types.ModuleName] = simState.Cdc.MustMarshalJSON(®istryGenesis) -} - -// ProposalMsgs doesn't return any content functions for governance proposals -func (AppModule) ProposalMsgs(simState module.SimulationState) []simtypes.WeightedProposalMsg { - 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) - - var weightMsgUpdateWalletRecord int - simState.AppParams.GetOrGenerate(opWeightMsgUpdateWalletRecord, &weightMsgUpdateWalletRecord, nil, - func(_ *rand.Rand) { - weightMsgUpdateWalletRecord = defaultWeightMsgUpdateWalletRecord - }, - ) - operations = append(operations, simulation.NewWeightedOperation( - weightMsgUpdateWalletRecord, - registrysimulation.SimulateMsgUpdateWalletRecord(am.accountKeeper, am.bankKeeper, am.keeper), - )) - - var weightMsgRegisterSecondLevelDomain int - simState.AppParams.GetOrGenerate(opWeightMsgRegisterSecondLevelDomain, &weightMsgRegisterSecondLevelDomain, nil, - func(_ *rand.Rand) { - weightMsgRegisterSecondLevelDomain = defaultWeightMsgRegisterSecondLevelDomain - }) - operations = append(operations, simulation.NewWeightedOperation( - weightMsgRegisterSecondLevelDomain, - registrysimulation.SimulateMsgRegisterSecondLevelDomain(am.accountKeeper, am.bankKeeper, am.keeper), - )) - - var weightMsgRegisterTopLevelDomain int - simState.AppParams.GetOrGenerate(opWeightMsgRegisterTopLevelDomain, &weightMsgRegisterTopLevelDomain, nil, - func(_ *rand.Rand) { - weightMsgRegisterTopLevelDomain = defaultWeightMsgRegisterTopLevelDomain - }, - ) - operations = append(operations, simulation.NewWeightedOperation( - weightMsgRegisterTopLevelDomain, - registrysimulation.SimulateMsgRegisterTopLevelDomain(am.accountKeeper, am.bankKeeper, am.keeper), - )) - - var weightMsgWithdrawRegistrationFee int - simState.AppParams.GetOrGenerate(opWeightMsgWithdrawRegistrationFee, &weightMsgWithdrawRegistrationFee, nil, - func(_ *rand.Rand) { - weightMsgWithdrawRegistrationFee = defaultWeightMsgWithdrawRegistrationFee - }, - ) - operations = append(operations, simulation.NewWeightedOperation( - weightMsgWithdrawRegistrationFee, - registrysimulation.SimulateMsgWithdrawRegistrationFee(am.accountKeeper, am.bankKeeper, am.keeper), - )) - - var weightMsgExtendTopLevelDomainExpirationDate int - simState.AppParams.GetOrGenerate(opWeightMsgExtendTopLevelDomainExpirationDate, &weightMsgExtendTopLevelDomainExpirationDate, nil, - func(_ *rand.Rand) { - weightMsgExtendTopLevelDomainExpirationDate = defaultWeightMsgExtendTopLevelDomainExpirationDate - }, - ) - operations = append(operations, simulation.NewWeightedOperation( - weightMsgExtendTopLevelDomainExpirationDate, - registrysimulation.SimulateMsgExtendTopLevelDomainExpirationDate(am.accountKeeper, am.bankKeeper, am.keeper), - )) - - var weightMsgUpdateTextRecord int - simState.AppParams.GetOrGenerate(opWeightMsgUpdateTextRecord, &weightMsgUpdateTextRecord, nil, - func(_ *rand.Rand) { - weightMsgUpdateTextRecord = defaultWeightMsgUpdateTextRecord - }, - ) - operations = append(operations, simulation.NewWeightedOperation( - weightMsgUpdateTextRecord, - registrysimulation.SimulateMsgUpdateTextRecord(am.accountKeeper, am.bankKeeper, am.keeper), - )) - - var weightMsgUpdateTopLevelDomainRegistrationPolicy int - simState.AppParams.GetOrGenerate(opWeightMsgUpdateTopLevelDomainRegistrationPolicy, &weightMsgUpdateTopLevelDomainRegistrationPolicy, nil, - func(_ *rand.Rand) { - weightMsgUpdateTopLevelDomainRegistrationPolicy = defaultWeightMsgUpdateTopLevelDomainRegistrationPolicy - }, - ) - operations = append(operations, simulation.NewWeightedOperation( - weightMsgUpdateTopLevelDomainRegistrationPolicy, - registrysimulation.SimulateMsgUpdateTopLevelDomainRegistrationPolicy(am.accountKeeper, am.bankKeeper, am.keeper), - )) - operations = append(operations, simulation.NewWeightedOperation( - weightMsgUpdateTopLevelDomainRegistrationPolicy, - registrysimulation.SimulateMsgUpdateTopLevelDomainRegistrationPolicy(am.accountKeeper, am.bankKeeper, am.keeper), - )) - - // this line is used by starport scaffolding # simapp/module/operation - - return operations -} diff --git a/x/registry/types/access_control.pb.go b/x/registry/types/access_control.pb.go index 852ce0c3..6a4692d4 100644 --- a/x/registry/types/access_control.pb.go +++ b/x/registry/types/access_control.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: mycel/registry/v1beta1/access_control.proto +// source: mycel/registry/v1/access_control.proto package types @@ -47,19 +47,19 @@ func (x DomainRole) String() string { } func (DomainRole) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_29eaa80c8f9c057b, []int{0} + return fileDescriptor_dd67c909d06a85df, []int{0} } type AccessControl struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` - Role DomainRole `protobuf:"varint,2,opt,name=role,proto3,enum=mycel.registry.v1beta1.DomainRole" json:"role,omitempty"` + Role DomainRole `protobuf:"varint,2,opt,name=role,proto3,enum=mycel.registry.v1.DomainRole" json:"role,omitempty"` } func (m *AccessControl) Reset() { *m = AccessControl{} } func (m *AccessControl) String() string { return proto.CompactTextString(m) } func (*AccessControl) ProtoMessage() {} func (*AccessControl) Descriptor() ([]byte, []int) { - return fileDescriptor_29eaa80c8f9c057b, []int{0} + return fileDescriptor_dd67c909d06a85df, []int{0} } func (m *AccessControl) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -103,32 +103,32 @@ func (m *AccessControl) GetRole() DomainRole { } func init() { - proto.RegisterEnum("mycel.registry.v1beta1.DomainRole", DomainRole_name, DomainRole_value) - proto.RegisterType((*AccessControl)(nil), "mycel.registry.v1beta1.AccessControl") + proto.RegisterEnum("mycel.registry.v1.DomainRole", DomainRole_name, DomainRole_value) + proto.RegisterType((*AccessControl)(nil), "mycel.registry.v1.AccessControl") } func init() { - proto.RegisterFile("mycel/registry/v1beta1/access_control.proto", fileDescriptor_29eaa80c8f9c057b) + proto.RegisterFile("mycel/registry/v1/access_control.proto", fileDescriptor_dd67c909d06a85df) } -var fileDescriptor_29eaa80c8f9c057b = []byte{ - // 247 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xd2, 0xce, 0xad, 0x4c, 0x4e, - 0xcd, 0xd1, 0x2f, 0x4a, 0x4d, 0xcf, 0x2c, 0x2e, 0x29, 0xaa, 0xd4, 0x2f, 0x33, 0x4c, 0x4a, 0x2d, - 0x49, 0x34, 0xd4, 0x4f, 0x4c, 0x4e, 0x4e, 0x2d, 0x2e, 0x8e, 0x4f, 0xce, 0xcf, 0x2b, 0x29, 0xca, - 0xcf, 0xd1, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, 0x03, 0x2b, 0xd6, 0x83, 0x29, 0xd6, 0x83, - 0x2a, 0x56, 0x4a, 0xe4, 0xe2, 0x75, 0x04, 0xab, 0x77, 0x86, 0x28, 0x17, 0x92, 0xe0, 0x62, 0x4f, - 0x4c, 0x49, 0x29, 0x4a, 0x2d, 0x2e, 0x96, 0x60, 0x54, 0x60, 0xd4, 0xe0, 0x0c, 0x82, 0x71, 0x85, - 0xcc, 0xb8, 0x58, 0x8a, 0xf2, 0x73, 0x52, 0x25, 0x98, 0x14, 0x18, 0x35, 0xf8, 0x8c, 0x94, 0xf4, - 0xb0, 0x9b, 0xa8, 0xe7, 0x92, 0x9f, 0x9b, 0x98, 0x99, 0x17, 0x94, 0x9f, 0x93, 0x1a, 0x04, 0x56, - 0xaf, 0x65, 0xc0, 0xc5, 0x85, 0x10, 0x13, 0xe2, 0xe6, 0x62, 0xf7, 0xf3, 0x8f, 0x0f, 0xf2, 0xf7, - 0x71, 0x15, 0x60, 0x10, 0xe2, 0xe4, 0x62, 0xf5, 0x0f, 0xf7, 0x73, 0x0d, 0x12, 0x60, 0x14, 0xe2, - 0xe2, 0x62, 0x73, 0x75, 0xf1, 0x0c, 0xf1, 0x0f, 0x12, 0x60, 0x72, 0xf2, 0x38, 0xf1, 0x48, 0x8e, - 0xf1, 0xc2, 0x23, 0x39, 0xc6, 0x07, 0x8f, 0xe4, 0x18, 0x27, 0x3c, 0x96, 0x63, 0xb8, 0xf0, 0x58, - 0x8e, 0xe1, 0xc6, 0x63, 0x39, 0x86, 0x28, 0xbd, 0xf4, 0xcc, 0x92, 0x8c, 0xd2, 0x24, 0xbd, 0xe4, - 0xfc, 0x5c, 0x7d, 0xb0, 0xfd, 0xba, 0x29, 0x60, 0xa3, 0x21, 0x1c, 0xfd, 0x0a, 0x44, 0x68, 0x94, - 0x54, 0x16, 0xa4, 0x16, 0x27, 0xb1, 0x81, 0x7d, 0x6f, 0x0c, 0x08, 0x00, 0x00, 0xff, 0xff, 0x28, - 0x4a, 0xc6, 0x90, 0x2c, 0x01, 0x00, 0x00, +var fileDescriptor_dd67c909d06a85df = []byte{ + // 242 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0xcb, 0xad, 0x4c, 0x4e, + 0xcd, 0xd1, 0x2f, 0x4a, 0x4d, 0xcf, 0x2c, 0x2e, 0x29, 0xaa, 0xd4, 0x2f, 0x33, 0xd4, 0x4f, 0x4c, + 0x4e, 0x4e, 0x2d, 0x2e, 0x8e, 0x4f, 0xce, 0xcf, 0x2b, 0x29, 0xca, 0xcf, 0xd1, 0x2b, 0x28, 0xca, + 0x2f, 0xc9, 0x17, 0x12, 0x04, 0xab, 0xd3, 0x83, 0xa9, 0xd3, 0x2b, 0x33, 0x54, 0x8a, 0xe1, 0xe2, + 0x75, 0x04, 0x2b, 0x75, 0x86, 0xa8, 0x14, 0x92, 0xe0, 0x62, 0x4f, 0x4c, 0x49, 0x29, 0x4a, 0x2d, + 0x2e, 0x96, 0x60, 0x54, 0x60, 0xd4, 0xe0, 0x0c, 0x82, 0x71, 0x85, 0x0c, 0xb9, 0x58, 0x8a, 0xf2, + 0x73, 0x52, 0x25, 0x98, 0x14, 0x18, 0x35, 0xf8, 0x8c, 0x64, 0xf5, 0x30, 0x0c, 0xd3, 0x73, 0xc9, + 0xcf, 0x4d, 0xcc, 0xcc, 0x0b, 0xca, 0xcf, 0x49, 0x0d, 0x02, 0x2b, 0xd5, 0x32, 0xe0, 0xe2, 0x42, + 0x88, 0x09, 0x71, 0x73, 0xb1, 0xfb, 0xf9, 0xc7, 0x07, 0xf9, 0xfb, 0xb8, 0x0a, 0x30, 0x08, 0x71, + 0x72, 0xb1, 0xfa, 0x87, 0xfb, 0xb9, 0x06, 0x09, 0x30, 0x0a, 0x71, 0x71, 0xb1, 0xb9, 0xba, 0x78, + 0x86, 0xf8, 0x07, 0x09, 0x30, 0x39, 0x79, 0x9c, 0x78, 0x24, 0xc7, 0x78, 0xe1, 0x91, 0x1c, 0xe3, + 0x83, 0x47, 0x72, 0x8c, 0x13, 0x1e, 0xcb, 0x31, 0x5c, 0x78, 0x2c, 0xc7, 0x70, 0xe3, 0xb1, 0x1c, + 0x43, 0x94, 0x5e, 0x7a, 0x66, 0x49, 0x46, 0x69, 0x92, 0x5e, 0x72, 0x7e, 0xae, 0x3e, 0xd8, 0x6a, + 0xdd, 0x14, 0xb0, 0xd1, 0x10, 0x8e, 0x7e, 0x05, 0xc2, 0xfb, 0x25, 0x95, 0x05, 0xa9, 0xc5, 0x49, + 0x6c, 0x60, 0x3f, 0x1b, 0x03, 0x02, 0x00, 0x00, 0xff, 0xff, 0xff, 0xe9, 0x03, 0x5c, 0x1d, 0x01, + 0x00, 0x00, } func (m *AccessControl) Marshal() (dAtA []byte, err error) { diff --git a/x/registry/types/dns_record.pb.go b/x/registry/types/dns_record.pb.go index 03aaa5b0..2552b9bd 100644 --- a/x/registry/types/dns_record.pb.go +++ b/x/registry/types/dns_record.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: mycel/registry/v1beta1/dns_record.proto +// source: mycel/registry/v1/dns_record.proto package types @@ -66,33 +66,32 @@ func (x DnsRecordType) String() string { } func (DnsRecordType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_ac5d23a4fab019b6, []int{0} + return fileDescriptor_dbb028e803aff3d5, []int{0} } func init() { - proto.RegisterEnum("mycel.registry.v1beta1.DnsRecordType", DnsRecordType_name, DnsRecordType_value) + proto.RegisterEnum("mycel.registry.v1.DnsRecordType", DnsRecordType_name, DnsRecordType_value) } func init() { - proto.RegisterFile("mycel/registry/v1beta1/dns_record.proto", fileDescriptor_ac5d23a4fab019b6) + proto.RegisterFile("mycel/registry/v1/dns_record.proto", fileDescriptor_dbb028e803aff3d5) } -var fileDescriptor_ac5d23a4fab019b6 = []byte{ - // 245 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0xcf, 0xad, 0x4c, 0x4e, - 0xcd, 0xd1, 0x2f, 0x4a, 0x4d, 0xcf, 0x2c, 0x2e, 0x29, 0xaa, 0xd4, 0x2f, 0x33, 0x4c, 0x4a, 0x2d, - 0x49, 0x34, 0xd4, 0x4f, 0xc9, 0x2b, 0x8e, 0x2f, 0x4a, 0x4d, 0xce, 0x2f, 0x4a, 0xd1, 0x2b, 0x28, - 0xca, 0x2f, 0xc9, 0x17, 0x12, 0x03, 0x2b, 0xd4, 0x83, 0x29, 0xd4, 0x83, 0x2a, 0xd4, 0x2a, 0xe6, - 0xe2, 0x75, 0xc9, 0x2b, 0x0e, 0x02, 0x2b, 0x0d, 0xa9, 0x2c, 0x48, 0x15, 0x12, 0xe2, 0xe2, 0xf3, - 0xf3, 0x8f, 0x0f, 0x72, 0x75, 0xf6, 0x0f, 0x72, 0x89, 0x0f, 0x89, 0x0c, 0x70, 0x15, 0x60, 0x10, - 0x62, 0xe5, 0x62, 0x74, 0x14, 0x60, 0x14, 0xe2, 0xe0, 0x62, 0x71, 0x74, 0x74, 0x74, 0x14, 0x60, - 0x12, 0xe2, 0xe4, 0x62, 0x75, 0xf6, 0x73, 0xf4, 0x75, 0x15, 0x60, 0x16, 0x62, 0xe3, 0x62, 0xf2, - 0x0b, 0x16, 0x60, 0x01, 0xd1, 0xbe, 0x11, 0x02, 0xac, 0x42, 0xec, 0x5c, 0xcc, 0x01, 0x21, 0x41, - 0x02, 0x6c, 0x20, 0x46, 0xb0, 0xbf, 0xa3, 0x00, 0x3b, 0x98, 0x11, 0x14, 0x26, 0xc0, 0x01, 0x62, - 0x84, 0x44, 0x84, 0x08, 0x70, 0x3a, 0x79, 0x9c, 0x78, 0x24, 0xc7, 0x78, 0xe1, 0x91, 0x1c, 0xe3, - 0x83, 0x47, 0x72, 0x8c, 0x13, 0x1e, 0xcb, 0x31, 0x5c, 0x78, 0x2c, 0xc7, 0x70, 0xe3, 0xb1, 0x1c, - 0x43, 0x94, 0x5e, 0x7a, 0x66, 0x49, 0x46, 0x69, 0x92, 0x5e, 0x72, 0x7e, 0xae, 0x3e, 0xd8, 0xc5, - 0xba, 0x29, 0xf9, 0xb9, 0x89, 0x99, 0x79, 0x10, 0x8e, 0x7e, 0x05, 0xc2, 0xa7, 0x25, 0x95, 0x05, - 0xa9, 0xc5, 0x49, 0x6c, 0x60, 0xdf, 0x19, 0x03, 0x02, 0x00, 0x00, 0xff, 0xff, 0xf3, 0x38, 0xbe, - 0x62, 0x08, 0x01, 0x00, 0x00, +var fileDescriptor_dbb028e803aff3d5 = []byte{ + // 240 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0xca, 0xad, 0x4c, 0x4e, + 0xcd, 0xd1, 0x2f, 0x4a, 0x4d, 0xcf, 0x2c, 0x2e, 0x29, 0xaa, 0xd4, 0x2f, 0x33, 0xd4, 0x4f, 0xc9, + 0x2b, 0x8e, 0x2f, 0x4a, 0x4d, 0xce, 0x2f, 0x4a, 0xd1, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, + 0x04, 0xab, 0xd1, 0x83, 0xa9, 0xd1, 0x2b, 0x33, 0xd4, 0x2a, 0xe6, 0xe2, 0x75, 0xc9, 0x2b, 0x0e, + 0x02, 0xab, 0x0a, 0xa9, 0x2c, 0x48, 0x15, 0x12, 0xe2, 0xe2, 0xf3, 0xf3, 0x8f, 0x0f, 0x72, 0x75, + 0xf6, 0x0f, 0x72, 0x89, 0x0f, 0x89, 0x0c, 0x70, 0x15, 0x60, 0x10, 0x62, 0xe5, 0x62, 0x74, 0x14, + 0x60, 0x14, 0xe2, 0xe0, 0x62, 0x71, 0x74, 0x74, 0x74, 0x14, 0x60, 0x12, 0xe2, 0xe4, 0x62, 0x75, + 0xf6, 0x73, 0xf4, 0x75, 0x15, 0x60, 0x16, 0x62, 0xe3, 0x62, 0xf2, 0x0b, 0x16, 0x60, 0x01, 0xd1, + 0xbe, 0x11, 0x02, 0xac, 0x42, 0xec, 0x5c, 0xcc, 0x01, 0x21, 0x41, 0x02, 0x6c, 0x20, 0x46, 0xb0, + 0xbf, 0xa3, 0x00, 0x3b, 0x98, 0x11, 0x14, 0x26, 0xc0, 0x01, 0x62, 0x84, 0x44, 0x84, 0x08, 0x70, + 0x3a, 0x79, 0x9c, 0x78, 0x24, 0xc7, 0x78, 0xe1, 0x91, 0x1c, 0xe3, 0x83, 0x47, 0x72, 0x8c, 0x13, + 0x1e, 0xcb, 0x31, 0x5c, 0x78, 0x2c, 0xc7, 0x70, 0xe3, 0xb1, 0x1c, 0x43, 0x94, 0x5e, 0x7a, 0x66, + 0x49, 0x46, 0x69, 0x92, 0x5e, 0x72, 0x7e, 0xae, 0x3e, 0xd8, 0xb1, 0xba, 0x29, 0xf9, 0xb9, 0x89, + 0x99, 0x79, 0x10, 0x8e, 0x7e, 0x05, 0xc2, 0x7f, 0x25, 0x95, 0x05, 0xa9, 0xc5, 0x49, 0x6c, 0x60, + 0x8f, 0x19, 0x03, 0x02, 0x00, 0x00, 0xff, 0xff, 0x53, 0x3b, 0x9b, 0x63, 0xfe, 0x00, 0x00, 0x00, } diff --git a/x/registry/types/domain_ownership.pb.go b/x/registry/types/domain_ownership.pb.go index 22114e9c..8ee5dc8d 100644 --- a/x/registry/types/domain_ownership.pb.go +++ b/x/registry/types/domain_ownership.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: mycel/registry/v1beta1/domain_ownership.proto +// source: mycel/registry/v1/domain_ownership.proto package types @@ -32,7 +32,7 @@ func (m *OwnedDomain) Reset() { *m = OwnedDomain{} } func (m *OwnedDomain) String() string { return proto.CompactTextString(m) } func (*OwnedDomain) ProtoMessage() {} func (*OwnedDomain) Descriptor() ([]byte, []int) { - return fileDescriptor_33a14b0e0536070b, []int{0} + return fileDescriptor_94660317aaf1629a, []int{0} } func (m *OwnedDomain) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -84,7 +84,7 @@ func (m *DomainOwnership) Reset() { *m = DomainOwnership{} } func (m *DomainOwnership) String() string { return proto.CompactTextString(m) } func (*DomainOwnership) ProtoMessage() {} func (*DomainOwnership) Descriptor() ([]byte, []int) { - return fileDescriptor_33a14b0e0536070b, []int{1} + return fileDescriptor_94660317aaf1629a, []int{1} } func (m *DomainOwnership) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -128,33 +128,33 @@ func (m *DomainOwnership) GetDomains() []*OwnedDomain { } func init() { - proto.RegisterType((*OwnedDomain)(nil), "mycel.registry.v1beta1.OwnedDomain") - proto.RegisterType((*DomainOwnership)(nil), "mycel.registry.v1beta1.DomainOwnership") + proto.RegisterType((*OwnedDomain)(nil), "mycel.registry.v1.OwnedDomain") + proto.RegisterType((*DomainOwnership)(nil), "mycel.registry.v1.DomainOwnership") } func init() { - proto.RegisterFile("mycel/registry/v1beta1/domain_ownership.proto", fileDescriptor_33a14b0e0536070b) + proto.RegisterFile("mycel/registry/v1/domain_ownership.proto", fileDescriptor_94660317aaf1629a) } -var fileDescriptor_33a14b0e0536070b = []byte{ - // 272 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xd2, 0xcd, 0xad, 0x4c, 0x4e, - 0xcd, 0xd1, 0x2f, 0x4a, 0x4d, 0xcf, 0x2c, 0x2e, 0x29, 0xaa, 0xd4, 0x2f, 0x33, 0x4c, 0x4a, 0x2d, - 0x49, 0x34, 0xd4, 0x4f, 0xc9, 0xcf, 0x4d, 0xcc, 0xcc, 0x8b, 0xcf, 0x2f, 0xcf, 0x4b, 0x2d, 0x2a, - 0xce, 0xc8, 0x2c, 0xd0, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, 0x03, 0x2b, 0xd7, 0x83, 0x29, - 0xd7, 0x83, 0x2a, 0x97, 0x92, 0x4c, 0xce, 0x2f, 0xce, 0xcd, 0x2f, 0x8e, 0x07, 0xab, 0xd2, 0x87, - 0x70, 0x20, 0x5a, 0x94, 0x2c, 0xb9, 0xb8, 0xfd, 0xcb, 0xf3, 0x52, 0x53, 0x5c, 0xc0, 0x26, 0x0a, - 0x09, 0x71, 0xb1, 0xe4, 0x25, 0xe6, 0xa6, 0x4a, 0x30, 0x2a, 0x30, 0x6a, 0x70, 0x06, 0x81, 0xd9, - 0x42, 0x62, 0x5c, 0x6c, 0x05, 0x89, 0x45, 0xa9, 0x79, 0x25, 0x12, 0x4c, 0x60, 0x51, 0x28, 0x4f, - 0xa9, 0x81, 0x91, 0x8b, 0x1f, 0xa2, 0xcd, 0x1f, 0xe6, 0x0e, 0x21, 0x3d, 0x2e, 0x56, 0xb0, 0xa3, - 0x20, 0x06, 0x38, 0x49, 0x5c, 0xda, 0xa2, 0x2b, 0x02, 0xb5, 0xcf, 0x31, 0x25, 0xa5, 0x28, 0xb5, - 0xb8, 0x38, 0xb8, 0xa4, 0x28, 0x33, 0x2f, 0x3d, 0x08, 0xa2, 0x4c, 0xc8, 0x96, 0x8b, 0x1d, 0xe2, - 0x97, 0x62, 0x09, 0x26, 0x05, 0x66, 0x0d, 0x6e, 0x23, 0x65, 0x3d, 0xec, 0x7e, 0xd0, 0x43, 0x72, - 0x65, 0x10, 0x4c, 0x8f, 0x93, 0xc7, 0x89, 0x47, 0x72, 0x8c, 0x17, 0x1e, 0xc9, 0x31, 0x3e, 0x78, - 0x24, 0xc7, 0x38, 0xe1, 0xb1, 0x1c, 0xc3, 0x85, 0xc7, 0x72, 0x0c, 0x37, 0x1e, 0xcb, 0x31, 0x44, - 0xe9, 0xa5, 0x67, 0x96, 0x64, 0x94, 0x26, 0xe9, 0x25, 0xe7, 0xe7, 0xea, 0x83, 0x4d, 0xd4, 0x85, - 0xe8, 0x81, 0x70, 0xf4, 0x2b, 0x10, 0x61, 0x5a, 0x52, 0x59, 0x90, 0x5a, 0x9c, 0xc4, 0x06, 0x0e, - 0x0e, 0x63, 0x40, 0x00, 0x00, 0x00, 0xff, 0xff, 0x96, 0x81, 0x9c, 0xe3, 0x72, 0x01, 0x00, 0x00, +var fileDescriptor_94660317aaf1629a = []byte{ + // 265 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xd2, 0xc8, 0xad, 0x4c, 0x4e, + 0xcd, 0xd1, 0x2f, 0x4a, 0x4d, 0xcf, 0x2c, 0x2e, 0x29, 0xaa, 0xd4, 0x2f, 0x33, 0xd4, 0x4f, 0xc9, + 0xcf, 0x4d, 0xcc, 0xcc, 0x8b, 0xcf, 0x2f, 0xcf, 0x4b, 0x2d, 0x2a, 0xce, 0xc8, 0x2c, 0xd0, 0x2b, + 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, 0x04, 0xab, 0xd4, 0x83, 0xa9, 0xd4, 0x2b, 0x33, 0x94, 0x92, + 0x4c, 0xce, 0x2f, 0xce, 0xcd, 0x2f, 0x8e, 0x07, 0x2b, 0xd0, 0x87, 0x70, 0x20, 0xaa, 0x95, 0x2c, + 0xb9, 0xb8, 0xfd, 0xcb, 0xf3, 0x52, 0x53, 0x5c, 0xc0, 0x86, 0x09, 0x09, 0x71, 0xb1, 0xe4, 0x25, + 0xe6, 0xa6, 0x4a, 0x30, 0x2a, 0x30, 0x6a, 0x70, 0x06, 0x81, 0xd9, 0x42, 0x62, 0x5c, 0x6c, 0x05, + 0x89, 0x45, 0xa9, 0x79, 0x25, 0x12, 0x4c, 0x60, 0x51, 0x28, 0x4f, 0xa9, 0x9a, 0x8b, 0x1f, 0xa2, + 0xcb, 0x1f, 0xe6, 0x02, 0x21, 0x3d, 0x2e, 0x56, 0xb0, 0x73, 0x20, 0xfa, 0x9d, 0x24, 0x2e, 0x6d, + 0xd1, 0x15, 0x81, 0x5a, 0xe7, 0x98, 0x92, 0x52, 0x94, 0x5a, 0x5c, 0x1c, 0x5c, 0x52, 0x94, 0x99, + 0x97, 0x1e, 0x04, 0x51, 0x26, 0x64, 0xc1, 0xc5, 0x0e, 0xf1, 0x45, 0xb1, 0x04, 0x93, 0x02, 0xb3, + 0x06, 0xb7, 0x91, 0x9c, 0x1e, 0x86, 0xeb, 0xf5, 0x90, 0xdc, 0x17, 0x04, 0x53, 0xee, 0xe4, 0x71, + 0xe2, 0x91, 0x1c, 0xe3, 0x85, 0x47, 0x72, 0x8c, 0x0f, 0x1e, 0xc9, 0x31, 0x4e, 0x78, 0x2c, 0xc7, + 0x70, 0xe1, 0xb1, 0x1c, 0xc3, 0x8d, 0xc7, 0x72, 0x0c, 0x51, 0x7a, 0xe9, 0x99, 0x25, 0x19, 0xa5, + 0x49, 0x7a, 0xc9, 0xf9, 0xb9, 0xfa, 0x60, 0xc3, 0x74, 0x21, 0x7a, 0x20, 0x1c, 0xfd, 0x0a, 0x44, + 0x18, 0x96, 0x54, 0x16, 0xa4, 0x16, 0x27, 0xb1, 0x81, 0x03, 0xc2, 0x18, 0x10, 0x00, 0x00, 0xff, + 0xff, 0x89, 0xb0, 0x88, 0xfb, 0x62, 0x01, 0x00, 0x00, } func (m *OwnedDomain) Marshal() (dAtA []byte, err error) { diff --git a/x/registry/types/expected_keepers.go b/x/registry/types/expected_keepers.go index d0a57a29..194e8ad2 100644 --- a/x/registry/types/expected_keepers.go +++ b/x/registry/types/expected_keepers.go @@ -6,7 +6,6 @@ import ( "cosmossdk.io/math" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/mint/types" furnacetypes "github.com/mycel-domain/mycel/x/furnace/types" ) @@ -31,18 +30,14 @@ type BankKeeper interface { } type FurnaceKeeper interface { - AddRegistrationFeeToBurnAmounts(ctx sdk.Context, registrationPeriodInYear uint64, amount sdk.Coin) (burnAmounts []furnacetypes.BurnAmount, err error) + AddRegistrationFeeToBurnAmounts(ctx context.Context, registrationPeriodInYear uint64, amount sdk.Coin) (burnAmounts []furnacetypes.BurnAmount, err error) } type MintKeeper interface { + MintCoins(context.Context, sdk.Coins) error BondedRatio(ctx context.Context) (math.LegacyDec, error) } -type MintKeeperMinter interface { - Get(ctx context.Context) (types.Minter, error) - Set(ctx context.Context, minter types.Minter) error -} - type DistributionKeeper interface { FundCommunityPool(ctx context.Context, amount sdk.Coins, sender sdk.AccAddress) error } diff --git a/x/registry/types/genesis.pb.go b/x/registry/types/genesis.pb.go index 05161713..c7f076a3 100644 --- a/x/registry/types/genesis.pb.go +++ b/x/registry/types/genesis.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: mycel/registry/v1beta1/genesis.proto +// source: mycel/registry/v1/genesis.proto package types @@ -35,7 +35,7 @@ func (m *GenesisState) Reset() { *m = GenesisState{} } func (m *GenesisState) String() string { return proto.CompactTextString(m) } func (*GenesisState) ProtoMessage() {} func (*GenesisState) Descriptor() ([]byte, []int) { - return fileDescriptor_ae1403d0e8816949, []int{0} + return fileDescriptor_7b83c702c10a3919, []int{0} } func (m *GenesisState) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -93,37 +93,34 @@ func (m *GenesisState) GetDomainOwnerships() []DomainOwnership { } func init() { - proto.RegisterType((*GenesisState)(nil), "mycel.registry.v1beta1.GenesisState") + proto.RegisterType((*GenesisState)(nil), "mycel.registry.v1.GenesisState") } -func init() { - proto.RegisterFile("mycel/registry/v1beta1/genesis.proto", fileDescriptor_ae1403d0e8816949) -} +func init() { proto.RegisterFile("mycel/registry/v1/genesis.proto", fileDescriptor_7b83c702c10a3919) } -var fileDescriptor_ae1403d0e8816949 = []byte{ - // 337 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x91, 0xc1, 0x4b, 0x3a, 0x41, - 0x14, 0xc7, 0x77, 0x55, 0x3c, 0xac, 0x3f, 0xf8, 0xe5, 0x20, 0xb1, 0x78, 0x98, 0xa4, 0xa2, 0xec, - 0xe0, 0x4c, 0xda, 0xb5, 0x93, 0x04, 0x75, 0x08, 0x8a, 0xec, 0x10, 0x5e, 0x64, 0xd4, 0x61, 0x5d, - 0x70, 0x77, 0x86, 0x7d, 0x93, 0xe5, 0x7f, 0xd1, 0x9f, 0xe5, 0xd1, 0x63, 0xa7, 0x08, 0xa5, 0xff, - 0x23, 0x9c, 0x19, 0x09, 0xcd, 0xa1, 0xdb, 0xee, 0xdb, 0xcf, 0xf7, 0xf3, 0xde, 0xdb, 0x17, 0x1c, - 0x27, 0xd3, 0x01, 0x1f, 0xd3, 0x8c, 0x47, 0x31, 0xa8, 0x6c, 0x4a, 0x27, 0xcd, 0x3e, 0x57, 0xac, - 0x49, 0x23, 0x9e, 0x72, 0x88, 0x81, 0xc8, 0x4c, 0x28, 0x81, 0xf6, 0x35, 0x45, 0xd6, 0x14, 0xb1, - 0x54, 0xb5, 0x12, 0x89, 0x48, 0x68, 0x84, 0xae, 0x9e, 0x0c, 0x5d, 0x6d, 0x38, 0x9c, 0x43, 0x91, - 0xb0, 0x38, 0xed, 0x89, 0x97, 0x94, 0x67, 0x30, 0x8a, 0xa5, 0xc5, 0x8f, 0x1c, 0xb8, 0x64, 0x19, - 0x4b, 0xec, 0x04, 0xd5, 0x73, 0x07, 0x04, 0x7c, 0x20, 0xd2, 0x61, 0x6f, 0xcc, 0x27, 0x7c, 0xdc, - 0x33, 0x0d, 0xfe, 0x98, 0x42, 0x09, 0xb9, 0x03, 0x3f, 0xfc, 0xca, 0x05, 0xff, 0xae, 0xcd, 0xd2, - 0x1d, 0xc5, 0x14, 0x47, 0x97, 0x41, 0xd1, 0x4c, 0x10, 0xfa, 0x35, 0xbf, 0x5e, 0x6a, 0x61, 0xb2, - 0xfb, 0x27, 0x90, 0x7b, 0x4d, 0xb5, 0x0b, 0xb3, 0x8f, 0x03, 0xef, 0xc1, 0x66, 0xd0, 0x53, 0x50, - 0xde, 0x6e, 0x04, 0x61, 0xae, 0x96, 0xaf, 0x97, 0x5a, 0x27, 0x2e, 0xd1, 0xa3, 0x90, 0xb7, 0x2b, - 0xfe, 0x4a, 0xe3, 0x56, 0xf8, 0x5f, 0x6d, 0x54, 0x01, 0xb1, 0xa0, 0xb2, 0x63, 0x69, 0x08, 0xf3, - 0x5a, 0x7e, 0xe6, 0x92, 0x77, 0x74, 0xe6, 0xb7, 0x1f, 0xc1, 0xf6, 0x07, 0x40, 0xdd, 0xa0, 0xbc, - 0x7d, 0x2b, 0x08, 0x0b, 0xda, 0x7f, 0xea, 0xf2, 0x9b, 0xec, 0xdd, 0x9a, 0xb7, 0xf6, 0xbd, 0xe1, - 0x66, 0x19, 0xda, 0x37, 0xb3, 0x05, 0xf6, 0xe7, 0x0b, 0xec, 0x7f, 0x2e, 0xb0, 0xff, 0xb6, 0xc4, - 0xde, 0x7c, 0x89, 0xbd, 0xf7, 0x25, 0xf6, 0xba, 0x24, 0x8a, 0xd5, 0xe8, 0xb9, 0x4f, 0x06, 0x22, - 0xa1, 0xba, 0x49, 0xc3, 0x84, 0xcd, 0x0b, 0x7d, 0xfd, 0x39, 0xa5, 0x9a, 0x4a, 0x0e, 0xfd, 0xa2, - 0x3e, 0xdc, 0xc5, 0x77, 0x00, 0x00, 0x00, 0xff, 0xff, 0xce, 0x94, 0x3e, 0x91, 0xc3, 0x02, 0x00, - 0x00, +var fileDescriptor_7b83c702c10a3919 = []byte{ + // 328 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x91, 0x41, 0x4b, 0xc3, 0x30, + 0x14, 0xc7, 0xdb, 0x6d, 0xec, 0x90, 0x09, 0xba, 0xb0, 0x43, 0xdd, 0x21, 0x9b, 0xc3, 0xc3, 0x40, + 0x4c, 0xd8, 0x3c, 0x78, 0x1f, 0x82, 0x1e, 0x04, 0xc5, 0xe9, 0x45, 0x84, 0xd1, 0x6d, 0xa1, 0x2b, + 0xac, 0x4d, 0xe8, 0x8b, 0xd3, 0x7e, 0x0b, 0x3f, 0xd6, 0x8e, 0xf3, 0xe6, 0x49, 0xa4, 0xfd, 0x22, + 0xb2, 0xa4, 0x43, 0xd6, 0xd6, 0x5b, 0xf2, 0xde, 0xef, 0xfd, 0xfe, 0x3c, 0x1e, 0xea, 0x04, 0xf1, + 0x8c, 0x2f, 0x59, 0xc4, 0x3d, 0x1f, 0x54, 0x14, 0xb3, 0xd5, 0x80, 0x79, 0x3c, 0xe4, 0xe0, 0x03, + 0x95, 0x91, 0x50, 0x02, 0x37, 0x35, 0x40, 0x77, 0x00, 0x5d, 0x0d, 0xda, 0x2d, 0x4f, 0x78, 0x42, + 0x77, 0xd9, 0xf6, 0x65, 0xc0, 0x76, 0xbf, 0x68, 0x9a, 0x8b, 0xc0, 0xf5, 0xc3, 0x89, 0x78, 0x0b, + 0x79, 0x04, 0x0b, 0x5f, 0x66, 0x24, 0x29, 0x92, 0xd2, 0x8d, 0xdc, 0x20, 0x8b, 0x6c, 0x9f, 0x15, + 0xfb, 0xc0, 0x67, 0x22, 0x9c, 0x4f, 0x96, 0x7c, 0xc5, 0x97, 0x13, 0xa3, 0xfd, 0x3f, 0x56, 0x09, + 0x59, 0x42, 0xf6, 0x3e, 0x2b, 0xe8, 0xe0, 0xda, 0xec, 0x36, 0x56, 0xae, 0xe2, 0xf8, 0x12, 0xd5, + 0x4d, 0xae, 0x63, 0x77, 0xed, 0x7e, 0x63, 0x78, 0x4c, 0x0b, 0xbb, 0xd2, 0x7b, 0x0d, 0x8c, 0x6a, + 0xeb, 0xef, 0x8e, 0xf5, 0x90, 0xe1, 0x78, 0x8c, 0x9a, 0xf9, 0x0c, 0x70, 0x2a, 0xdd, 0x6a, 0xbf, + 0x31, 0x3c, 0x29, 0x71, 0x3c, 0x0a, 0x79, 0xbb, 0x45, 0xaf, 0x34, 0x99, 0xb9, 0x0e, 0xd5, 0x5e, + 0x15, 0xf0, 0x0b, 0x6a, 0x95, 0x6c, 0x09, 0x4e, 0x55, 0x7b, 0x4f, 0x4b, 0xbc, 0x63, 0x8d, 0x17, + 0xd5, 0x18, 0xf2, 0x0d, 0xc0, 0x4f, 0xa8, 0x99, 0xbf, 0x06, 0x38, 0x35, 0xad, 0xee, 0x95, 0xa8, + 0xcd, 0xd8, 0xdd, 0x0e, 0xcd, 0xc4, 0x47, 0xf3, 0xfd, 0x32, 0x8c, 0x6e, 0xd6, 0x09, 0xb1, 0x37, + 0x09, 0xb1, 0x7f, 0x12, 0x62, 0x7f, 0xa4, 0xc4, 0xda, 0xa4, 0xc4, 0xfa, 0x4a, 0x89, 0xf5, 0x4c, + 0x3d, 0x5f, 0x2d, 0x5e, 0xa7, 0x74, 0x26, 0x02, 0xa6, 0xfd, 0xe7, 0x66, 0xd8, 0x7c, 0xd8, 0xfb, + 0xdf, 0xc5, 0x54, 0x2c, 0x39, 0x4c, 0xeb, 0xfa, 0x48, 0x17, 0xbf, 0x01, 0x00, 0x00, 0xff, 0xff, + 0xe0, 0xea, 0xc8, 0x6f, 0x91, 0x02, 0x00, 0x00, } func (m *GenesisState) Marshal() (dAtA []byte, err error) { diff --git a/x/registry/types/keys.go b/x/registry/types/keys.go index f3c1592f..620aa37a 100644 --- a/x/registry/types/keys.go +++ b/x/registry/types/keys.go @@ -14,6 +14,8 @@ const ( MemStoreKey = "mem_registry" ) +var ParamsKey = []byte("p_registry") + func KeyPrefix(p string) []byte { return []byte(p) } diff --git a/x/registry/types/network_name.pb.go b/x/registry/types/network_name.pb.go index fd4d1624..98df9d03 100644 --- a/x/registry/types/network_name.pb.go +++ b/x/registry/types/network_name.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: mycel/registry/v1beta1/network_name.proto +// source: mycel/registry/v1/network_name.proto package types @@ -148,50 +148,50 @@ func (x NetworkName) String() string { } func (NetworkName) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_0946d992bb44d497, []int{0} + return fileDescriptor_e363e5ce6948691d, []int{0} } func init() { - proto.RegisterEnum("mycel.registry.v1beta1.NetworkName", NetworkName_name, NetworkName_value) + proto.RegisterEnum("mycel.registry.v1.NetworkName", NetworkName_name, NetworkName_value) } func init() { - proto.RegisterFile("mycel/registry/v1beta1/network_name.proto", fileDescriptor_0946d992bb44d497) + proto.RegisterFile("mycel/registry/v1/network_name.proto", fileDescriptor_e363e5ce6948691d) } -var fileDescriptor_0946d992bb44d497 = []byte{ - // 519 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x93, 0x4b, 0x6f, 0xd3, 0x40, - 0x10, 0xc7, 0x63, 0x90, 0x7a, 0x58, 0x24, 0xb4, 0x32, 0x50, 0x5e, 0xc5, 0x77, 0x90, 0xb0, 0x55, - 0xf1, 0x09, 0xd6, 0xce, 0x36, 0x5e, 0xb0, 0x77, 0x2d, 0x7b, 0x1d, 0xa0, 0x97, 0x28, 0x29, 0x56, - 0x89, 0xc0, 0x71, 0x95, 0x9a, 0x47, 0xbe, 0x00, 0xe7, 0x72, 0xb7, 0xc4, 0xfb, 0xfd, 0x2c, 0xbd, - 0x70, 0x03, 0x6e, 0xdc, 0xe8, 0x91, 0x23, 0x4a, 0x6e, 0xf9, 0x0c, 0x1c, 0x50, 0xbc, 0xb1, 0xdd, - 0x78, 0x39, 0x8d, 0xac, 0xdf, 0xfc, 0xff, 0x33, 0x3b, 0xe3, 0x01, 0xe7, 0xe3, 0xd1, 0x46, 0x74, - 0xdb, 0x18, 0x46, 0x9b, 0xfd, 0xed, 0x74, 0x38, 0x32, 0xee, 0xae, 0xf6, 0xa2, 0xb4, 0xbb, 0x6a, - 0x0c, 0xa2, 0xf4, 0x5e, 0x32, 0xbc, 0xd5, 0x19, 0x74, 0xe3, 0x48, 0xdf, 0x1a, 0x26, 0x69, 0xa2, - 0x2e, 0xe7, 0xa9, 0x7a, 0x91, 0xaa, 0xcf, 0x53, 0x2f, 0xfc, 0x5d, 0x02, 0x47, 0xa8, 0x48, 0xa7, - 0xdd, 0x38, 0x52, 0x8f, 0x02, 0x40, 0x59, 0x87, 0x62, 0x7e, 0x95, 0xf9, 0x57, 0x60, 0x43, 0x5d, - 0x01, 0x27, 0x4d, 0xc2, 0x2d, 0x46, 0x68, 0xc7, 0x45, 0x84, 0x52, 0xcc, 0x8b, 0x08, 0x77, 0xe8, - 0x41, 0xca, 0x71, 0xc0, 0x67, 0x74, 0x1e, 0xe1, 0x43, 0xaa, 0x9e, 0xab, 0x68, 0x13, 0xaf, 0xa1, - 0xd0, 0xe1, 0x45, 0x84, 0x8f, 0x32, 0x45, 0xd5, 0xc0, 0x29, 0xcc, 0x6d, 0xec, 0xe3, 0xd0, 0x95, - 0xbc, 0x1f, 0x67, 0xca, 0x4c, 0x5e, 0xf2, 0xc2, 0xbd, 0xc5, 0xb0, 0xef, 0x10, 0xf8, 0xa4, 0x26, - 0x2f, 0x70, 0x80, 0x3d, 0xe6, 0x10, 0x04, 0x9f, 0x0a, 0xb9, 0xc7, 0x9c, 0xeb, 0x2d, 0x26, 0x77, - 0xfe, 0x2c, 0x53, 0xd4, 0x15, 0xb0, 0x5c, 0xe0, 0x42, 0xed, 0x86, 0xae, 0x89, 0x08, 0x7c, 0x9e, - 0x29, 0xea, 0x69, 0x70, 0xcc, 0xa4, 0xa6, 0x24, 0x7c, 0x51, 0xa1, 0xfa, 0x7b, 0x5f, 0x8a, 0x96, - 0x50, 0x1b, 0x39, 0x88, 0x5a, 0x36, 0x2e, 0xb5, 0x96, 0x65, 0x23, 0x42, 0xe1, 0x2b, 0x51, 0xb3, - 0xe2, 0x85, 0xc1, 0x5a, 0x78, 0x99, 0xc0, 0xd7, 0x82, 0xb6, 0x28, 0x0b, 0x48, 0x20, 0x95, 0x7d, - 0x93, 0x29, 0xea, 0x59, 0x70, 0x62, 0x4e, 0x0b, 0xa1, 0x65, 0x13, 0xd4, 0x64, 0xf0, 0xad, 0x28, - 0xcc, 0x3c, 0x4e, 0x5c, 0x12, 0xc8, 0xa3, 0x7c, 0x27, 0x66, 0x51, 0xf2, 0xda, 0x28, 0xdf, 0xcf, - 0xfb, 0xf6, 0x4d, 0xc2, 0xfd, 0xff, 0x6c, 0xe2, 0x83, 0x90, 0x97, 0xbc, 0x26, 0xff, 0x28, 0x70, - 0x60, 0x23, 0xbf, 0x39, 0xdb, 0x84, 0x89, 0x39, 0xca, 0x37, 0xe1, 0xd9, 0x84, 0x5e, 0x83, 0xbb, - 0x62, 0x60, 0xeb, 0x98, 0xa3, 0x52, 0x89, 0xb8, 0x8d, 0x69, 0x00, 0xf7, 0x04, 0xc2, 0x6d, 0x57, - 0xfa, 0x3b, 0x3e, 0x4d, 0xf3, 0xf7, 0x22, 0x8f, 0x33, 0x79, 0x18, 0x9f, 0x0f, 0xc2, 0xfa, 0x16, - 0x76, 0xa7, 0xb9, 0x69, 0x10, 0x12, 0x49, 0xf7, 0xa5, 0x42, 0x75, 0xd5, 0xde, 0x54, 0x51, 0xcf, - 0x80, 0xe3, 0x2e, 0x6b, 0x63, 0xa9, 0x97, 0x6f, 0x5f, 0x0f, 0xcd, 0x36, 0x13, 0x30, 0x07, 0x51, - 0x24, 0x99, 0x7e, 0x5f, 0xa0, 0x75, 0xdf, 0x1f, 0x0b, 0xb4, 0xee, 0xfc, 0xeb, 0xc1, 0x61, 0xd3, - 0xfe, 0x39, 0xd6, 0x94, 0xfd, 0xb1, 0xa6, 0xfc, 0x19, 0x6b, 0xca, 0xce, 0x44, 0x6b, 0xec, 0x4f, - 0xb4, 0xc6, 0xef, 0x89, 0xd6, 0x58, 0xd7, 0x37, 0xfb, 0xe9, 0xcd, 0x3b, 0x3d, 0x7d, 0x23, 0x89, - 0x8d, 0xfc, 0x76, 0x2f, 0xde, 0x48, 0xe2, 0x6e, 0x7f, 0x20, 0x3e, 0x8c, 0xfb, 0xd5, 0xd5, 0xa7, - 0xa3, 0xad, 0x68, 0xbb, 0xb7, 0x94, 0xdf, 0xf9, 0xa5, 0x7f, 0x01, 0x00, 0x00, 0xff, 0xff, 0x2a, - 0x66, 0x57, 0x29, 0x14, 0x04, 0x00, 0x00, +var fileDescriptor_e363e5ce6948691d = []byte{ + // 515 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x93, 0x3d, 0x6f, 0xd3, 0x40, + 0x18, 0xc7, 0x63, 0x90, 0x3a, 0x1c, 0x12, 0x3a, 0xcc, 0x3b, 0x14, 0x4f, 0x4c, 0x48, 0xd8, 0xaa, + 0xf8, 0x04, 0x67, 0xe7, 0x1a, 0x1f, 0xd8, 0x77, 0x96, 0x7d, 0x0e, 0xd0, 0x25, 0x4a, 0x8b, 0x55, + 0x22, 0x70, 0x5c, 0xa5, 0xa6, 0x90, 0x2f, 0xc0, 0x5c, 0x76, 0x4b, 0xbc, 0xbf, 0xbf, 0x96, 0x2e, + 0x6c, 0xc0, 0xc6, 0x46, 0x47, 0x46, 0x94, 0x6c, 0xf9, 0x0c, 0x0c, 0x28, 0xbe, 0xd8, 0x6e, 0x7c, + 0x9d, 0x4e, 0xd6, 0xef, 0x7e, 0xff, 0x7b, 0xee, 0x79, 0x7c, 0xe0, 0x62, 0x3c, 0x5c, 0x8b, 0xee, + 0x1a, 0x83, 0x68, 0xbd, 0xb7, 0x99, 0x0e, 0x86, 0xc6, 0xd6, 0x92, 0xd1, 0x8f, 0xd2, 0xfb, 0xc9, + 0xe0, 0x4e, 0xa7, 0xdf, 0x8d, 0x23, 0x7d, 0x63, 0x90, 0xa4, 0x89, 0x7a, 0x2c, 0xdf, 0xa5, 0x17, + 0xbb, 0xf4, 0xad, 0xa5, 0x4b, 0xff, 0x16, 0xc0, 0x11, 0x2a, 0x76, 0xd2, 0x6e, 0x1c, 0xa9, 0x47, + 0x01, 0xa0, 0xac, 0x43, 0x31, 0xbf, 0xce, 0xfc, 0x6b, 0xb0, 0xa1, 0x2e, 0x82, 0xd3, 0x26, 0xe1, + 0x16, 0x23, 0xb4, 0xe3, 0x22, 0x42, 0x29, 0xe6, 0xc5, 0x0a, 0xb7, 0xe9, 0x7e, 0xca, 0x71, 0xc0, + 0xa7, 0x74, 0xb6, 0xc2, 0x47, 0x54, 0xbd, 0x50, 0xd1, 0x26, 0x5e, 0x46, 0xa1, 0xc3, 0x8b, 0x15, + 0x3e, 0xce, 0x14, 0x55, 0x03, 0x67, 0x30, 0xb7, 0xb1, 0x8f, 0x43, 0x57, 0xca, 0x7e, 0x92, 0x29, + 0x53, 0xbd, 0xe4, 0x45, 0x7a, 0x8b, 0x61, 0xdf, 0x21, 0xf0, 0x69, 0x4d, 0x2f, 0x70, 0x80, 0x3d, + 0xe6, 0x10, 0x04, 0x9f, 0x09, 0xdd, 0x63, 0xce, 0xcd, 0x16, 0x93, 0x2b, 0x7f, 0x9e, 0x29, 0xea, + 0x22, 0x38, 0x55, 0xe0, 0xc2, 0x76, 0x43, 0xd7, 0x44, 0x04, 0xbe, 0xc8, 0x14, 0xf5, 0x2c, 0x38, + 0x6e, 0x52, 0x53, 0x12, 0x5f, 0x56, 0xa8, 0x7e, 0xdf, 0x57, 0xa2, 0x24, 0xd4, 0x46, 0x0e, 0xa2, + 0x96, 0x8d, 0x4b, 0xd7, 0xb2, 0x6c, 0x44, 0x28, 0x7c, 0x2d, 0xce, 0xac, 0x78, 0x11, 0xb0, 0x1c, + 0x5e, 0x25, 0xf0, 0x8d, 0xa0, 0x2d, 0xca, 0x02, 0x12, 0x48, 0xc7, 0xbe, 0xcd, 0x14, 0xf5, 0x3c, + 0x38, 0x39, 0xa3, 0x85, 0x68, 0xd9, 0x04, 0x35, 0x19, 0x7c, 0x27, 0x0e, 0x66, 0x1e, 0x27, 0x2e, + 0x09, 0xe4, 0x56, 0xbe, 0x17, 0xbd, 0x28, 0x79, 0xad, 0x95, 0x1f, 0x66, 0x75, 0xfb, 0x26, 0xe1, + 0xfe, 0x01, 0x93, 0xf8, 0x28, 0xf4, 0x92, 0xd7, 0xf4, 0x4f, 0x02, 0x07, 0x36, 0xf2, 0x9b, 0xd3, + 0x49, 0x98, 0x98, 0xa3, 0x7c, 0x12, 0x9e, 0x4d, 0xe8, 0x0d, 0xb8, 0x23, 0x1a, 0xb6, 0x82, 0x39, + 0x2a, 0x4d, 0xc4, 0x6d, 0x4c, 0x03, 0xb8, 0x2b, 0x10, 0x6e, 0xbb, 0xd2, 0xdf, 0xf1, 0x79, 0x92, + 0xdf, 0x17, 0x79, 0x9c, 0xc9, 0xcd, 0xf8, 0xb2, 0x1f, 0xd6, 0xa7, 0xb0, 0x33, 0xc9, 0x43, 0x83, + 0x90, 0x48, 0xde, 0xd7, 0x0a, 0xd5, 0xad, 0xdd, 0x89, 0xa2, 0x9e, 0x03, 0x27, 0x5c, 0xd6, 0xc6, + 0x52, 0x2d, 0xdf, 0xbf, 0x1d, 0x9a, 0x4e, 0x26, 0x60, 0x0e, 0xa2, 0x48, 0x0a, 0xfd, 0x31, 0x47, + 0xeb, 0xb9, 0x3f, 0xe7, 0x68, 0x3d, 0xf9, 0xf7, 0xc3, 0xc3, 0xa6, 0xfd, 0x6b, 0xa4, 0x29, 0x7b, + 0x23, 0x4d, 0xf9, 0x3b, 0xd2, 0x94, 0xed, 0xb1, 0xd6, 0xd8, 0x1b, 0x6b, 0x8d, 0x3f, 0x63, 0xad, + 0xb1, 0xa2, 0xaf, 0xf7, 0xd2, 0xdb, 0xf7, 0x56, 0xf5, 0xb5, 0x24, 0x36, 0xf2, 0x67, 0x7b, 0xf9, + 0x56, 0x12, 0x77, 0x7b, 0x7d, 0xf1, 0x61, 0x3c, 0xa8, 0xde, 0x7a, 0x3a, 0xdc, 0x88, 0x36, 0x57, + 0x17, 0xf2, 0x27, 0x7e, 0xe5, 0x7f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x47, 0xe9, 0x1c, 0x41, 0x0a, + 0x04, 0x00, 0x00, } diff --git a/x/registry/types/params.pb.go b/x/registry/types/params.pb.go index cb484bd6..b151becb 100644 --- a/x/registry/types/params.pb.go +++ b/x/registry/types/params.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: mycel/registry/v1beta1/params.proto +// source: mycel/registry/v1/params.proto package types @@ -33,7 +33,7 @@ type Params struct { func (m *Params) Reset() { *m = Params{} } func (*Params) ProtoMessage() {} func (*Params) Descriptor() ([]byte, []int) { - return fileDescriptor_848259ee3558db2c, []int{0} + return fileDescriptor_b20e194129b854d1, []int{0} } func (m *Params) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -77,32 +77,30 @@ func (m *Params) GetTopLevelDomainBaseFeeInUsd() int64 { } func init() { - proto.RegisterType((*Params)(nil), "mycel.registry.v1beta1.Params") + proto.RegisterType((*Params)(nil), "mycel.registry.v1.Params") } -func init() { - proto.RegisterFile("mycel/registry/v1beta1/params.proto", fileDescriptor_848259ee3558db2c) -} +func init() { proto.RegisterFile("mycel/registry/v1/params.proto", fileDescriptor_b20e194129b854d1) } -var fileDescriptor_848259ee3558db2c = []byte{ - // 265 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0xce, 0xad, 0x4c, 0x4e, - 0xcd, 0xd1, 0x2f, 0x4a, 0x4d, 0xcf, 0x2c, 0x2e, 0x29, 0xaa, 0xd4, 0x2f, 0x33, 0x4c, 0x4a, 0x2d, - 0x49, 0x34, 0xd4, 0x2f, 0x48, 0x2c, 0x4a, 0xcc, 0x2d, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, - 0x12, 0x03, 0x2b, 0xd2, 0x83, 0x29, 0xd2, 0x83, 0x2a, 0x92, 0x12, 0x49, 0xcf, 0x4f, 0xcf, 0x07, - 0x2b, 0xd1, 0x07, 0xb1, 0x20, 0xaa, 0x95, 0x7a, 0x18, 0xb9, 0xd8, 0x02, 0xc0, 0xda, 0x85, 0xcc, - 0xb8, 0xc4, 0x8b, 0x4b, 0x12, 0xb3, 0x33, 0xf3, 0xd2, 0xe3, 0x33, 0xf3, 0xd2, 0x72, 0x12, 0x4b, - 0x32, 0xf3, 0xf3, 0xe2, 0x8b, 0x40, 0x94, 0x04, 0xa3, 0x02, 0xa3, 0x06, 0x53, 0x90, 0x28, 0x54, - 0xda, 0x13, 0x26, 0x1b, 0x04, 0x22, 0x85, 0x5c, 0xb8, 0x14, 0x4a, 0xf2, 0x0b, 0xe2, 0x73, 0x52, - 0xcb, 0x52, 0x73, 0xe2, 0x53, 0xf2, 0x73, 0x13, 0x33, 0xf3, 0xe2, 0x93, 0x12, 0x8b, 0x53, 0xe3, - 0xd3, 0x52, 0x53, 0xe3, 0x33, 0xf3, 0xe2, 0x4b, 0x8b, 0x53, 0x24, 0x98, 0x14, 0x18, 0x35, 0x98, - 0x83, 0xa4, 0x4a, 0xf2, 0x0b, 0x7c, 0x40, 0xca, 0x5c, 0xc0, 0xaa, 0x9c, 0x12, 0x8b, 0x53, 0xdd, - 0x52, 0x53, 0x3d, 0xf3, 0x42, 0x8b, 0x53, 0xac, 0x58, 0x66, 0x2c, 0x90, 0x67, 0x70, 0xf2, 0x38, - 0xf1, 0x48, 0x8e, 0xf1, 0xc2, 0x23, 0x39, 0xc6, 0x07, 0x8f, 0xe4, 0x18, 0x27, 0x3c, 0x96, 0x63, - 0xb8, 0xf0, 0x58, 0x8e, 0xe1, 0xc6, 0x63, 0x39, 0x86, 0x28, 0xbd, 0xf4, 0xcc, 0x92, 0x8c, 0xd2, - 0x24, 0xbd, 0xe4, 0xfc, 0x5c, 0x7d, 0xb0, 0x0f, 0x75, 0x21, 0x56, 0x41, 0x38, 0xfa, 0x15, 0x88, - 0x50, 0x29, 0xa9, 0x2c, 0x48, 0x2d, 0x4e, 0x62, 0x03, 0xfb, 0xcf, 0x18, 0x10, 0x00, 0x00, 0xff, - 0xff, 0x17, 0x38, 0xc6, 0x09, 0x34, 0x01, 0x00, 0x00, +var fileDescriptor_b20e194129b854d1 = []byte{ + // 260 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0xcb, 0xad, 0x4c, 0x4e, + 0xcd, 0xd1, 0x2f, 0x4a, 0x4d, 0xcf, 0x2c, 0x2e, 0x29, 0xaa, 0xd4, 0x2f, 0x33, 0xd4, 0x2f, 0x48, + 0x2c, 0x4a, 0xcc, 0x2d, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, 0x04, 0xcb, 0xeb, 0xc1, + 0xe4, 0xf5, 0xca, 0x0c, 0xa5, 0x44, 0xd2, 0xf3, 0xd3, 0xf3, 0xc1, 0xb2, 0xfa, 0x20, 0x16, 0x44, + 0xa1, 0x52, 0x0f, 0x23, 0x17, 0x5b, 0x00, 0x58, 0xa7, 0x90, 0x19, 0x97, 0x78, 0x71, 0x49, 0x62, + 0x76, 0x66, 0x5e, 0x7a, 0x7c, 0x66, 0x5e, 0x5a, 0x4e, 0x62, 0x49, 0x66, 0x7e, 0x5e, 0x7c, 0x11, + 0x88, 0x92, 0x60, 0x54, 0x60, 0xd4, 0x60, 0x0a, 0x12, 0x85, 0x4a, 0x7b, 0xc2, 0x64, 0x83, 0x40, + 0xa4, 0x90, 0x0b, 0x97, 0x42, 0x49, 0x7e, 0x41, 0x7c, 0x4e, 0x6a, 0x59, 0x6a, 0x4e, 0x7c, 0x4a, + 0x7e, 0x6e, 0x62, 0x66, 0x5e, 0x7c, 0x52, 0x62, 0x71, 0x6a, 0x7c, 0x5a, 0x6a, 0x6a, 0x7c, 0x66, + 0x5e, 0x7c, 0x69, 0x71, 0x8a, 0x04, 0x93, 0x02, 0xa3, 0x06, 0x73, 0x90, 0x54, 0x49, 0x7e, 0x81, + 0x0f, 0x48, 0x99, 0x0b, 0x58, 0x95, 0x53, 0x62, 0x71, 0xaa, 0x5b, 0x6a, 0xaa, 0x67, 0x5e, 0x68, + 0x71, 0x8a, 0x15, 0xcb, 0x8c, 0x05, 0xf2, 0x0c, 0x4e, 0x1e, 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, 0x97, 0x9e, 0x59, 0x92, 0x51, 0x9a, 0xa4, 0x97, 0x9c, 0x9f, 0xab, + 0x0f, 0xf6, 0x9c, 0x2e, 0xc4, 0x2a, 0x08, 0x47, 0xbf, 0x02, 0x11, 0x16, 0x25, 0x95, 0x05, 0xa9, + 0xc5, 0x49, 0x6c, 0x60, 0xff, 0x19, 0x03, 0x02, 0x00, 0x00, 0xff, 0xff, 0xc1, 0xab, 0x35, 0x71, + 0x2a, 0x01, 0x00, 0x00, } func (m *Params) Marshal() (dAtA []byte, err error) { diff --git a/x/registry/types/query.pb.go b/x/registry/types/query.pb.go index b3eb27d0..50d67b23 100644 --- a/x/registry/types/query.pb.go +++ b/x/registry/types/query.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: mycel/registry/v1beta1/query.proto +// source: mycel/registry/v1/query.proto package types @@ -44,7 +44,7 @@ func (m *QueryParamsRequest) Reset() { *m = QueryParamsRequest{} } func (m *QueryParamsRequest) String() string { return proto.CompactTextString(m) } func (*QueryParamsRequest) ProtoMessage() {} func (*QueryParamsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_6fac5bfae411c2d0, []int{0} + return fileDescriptor_40aa1b1e077fe69e, []int{0} } func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -83,7 +83,7 @@ func (m *QueryParamsResponse) Reset() { *m = QueryParamsResponse{} } func (m *QueryParamsResponse) String() string { return proto.CompactTextString(m) } func (*QueryParamsResponse) ProtoMessage() {} func (*QueryParamsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_6fac5bfae411c2d0, []int{1} + return fileDescriptor_40aa1b1e077fe69e, []int{1} } func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -127,7 +127,7 @@ func (m *QueryGetTopLevelDomainRequest) Reset() { *m = QueryGetTopLevelD func (m *QueryGetTopLevelDomainRequest) String() string { return proto.CompactTextString(m) } func (*QueryGetTopLevelDomainRequest) ProtoMessage() {} func (*QueryGetTopLevelDomainRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_6fac5bfae411c2d0, []int{2} + return fileDescriptor_40aa1b1e077fe69e, []int{2} } func (m *QueryGetTopLevelDomainRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -171,7 +171,7 @@ func (m *QueryGetTopLevelDomainResponse) Reset() { *m = QueryGetTopLevel func (m *QueryGetTopLevelDomainResponse) String() string { return proto.CompactTextString(m) } func (*QueryGetTopLevelDomainResponse) ProtoMessage() {} func (*QueryGetTopLevelDomainResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_6fac5bfae411c2d0, []int{3} + return fileDescriptor_40aa1b1e077fe69e, []int{3} } func (m *QueryGetTopLevelDomainResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -215,7 +215,7 @@ func (m *QueryAllTopLevelDomainRequest) Reset() { *m = QueryAllTopLevelD func (m *QueryAllTopLevelDomainRequest) String() string { return proto.CompactTextString(m) } func (*QueryAllTopLevelDomainRequest) ProtoMessage() {} func (*QueryAllTopLevelDomainRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_6fac5bfae411c2d0, []int{4} + return fileDescriptor_40aa1b1e077fe69e, []int{4} } func (m *QueryAllTopLevelDomainRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -260,7 +260,7 @@ func (m *QueryAllTopLevelDomainResponse) Reset() { *m = QueryAllTopLevel func (m *QueryAllTopLevelDomainResponse) String() string { return proto.CompactTextString(m) } func (*QueryAllTopLevelDomainResponse) ProtoMessage() {} func (*QueryAllTopLevelDomainResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_6fac5bfae411c2d0, []int{5} + return fileDescriptor_40aa1b1e077fe69e, []int{5} } func (m *QueryAllTopLevelDomainResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -312,7 +312,7 @@ func (m *QueryGetSecondLevelDomainRequest) Reset() { *m = QueryGetSecond func (m *QueryGetSecondLevelDomainRequest) String() string { return proto.CompactTextString(m) } func (*QueryGetSecondLevelDomainRequest) ProtoMessage() {} func (*QueryGetSecondLevelDomainRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_6fac5bfae411c2d0, []int{6} + return fileDescriptor_40aa1b1e077fe69e, []int{6} } func (m *QueryGetSecondLevelDomainRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -365,7 +365,7 @@ func (m *SecondLevelDomainResponse) Reset() { *m = SecondLevelDomainResp func (m *SecondLevelDomainResponse) String() string { return proto.CompactTextString(m) } func (*SecondLevelDomainResponse) ProtoMessage() {} func (*SecondLevelDomainResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_6fac5bfae411c2d0, []int{7} + return fileDescriptor_40aa1b1e077fe69e, []int{7} } func (m *SecondLevelDomainResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -423,7 +423,7 @@ func (m *QueryGetSecondLevelDomainResponse) Reset() { *m = QueryGetSecon func (m *QueryGetSecondLevelDomainResponse) String() string { return proto.CompactTextString(m) } func (*QueryGetSecondLevelDomainResponse) ProtoMessage() {} func (*QueryGetSecondLevelDomainResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_6fac5bfae411c2d0, []int{8} + return fileDescriptor_40aa1b1e077fe69e, []int{8} } func (m *QueryGetSecondLevelDomainResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -467,7 +467,7 @@ func (m *QueryAllSecondLevelDomainRequest) Reset() { *m = QueryAllSecond func (m *QueryAllSecondLevelDomainRequest) String() string { return proto.CompactTextString(m) } func (*QueryAllSecondLevelDomainRequest) ProtoMessage() {} func (*QueryAllSecondLevelDomainRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_6fac5bfae411c2d0, []int{9} + return fileDescriptor_40aa1b1e077fe69e, []int{9} } func (m *QueryAllSecondLevelDomainRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -512,7 +512,7 @@ func (m *QueryAllSecondLevelDomainResponse) Reset() { *m = QueryAllSecon func (m *QueryAllSecondLevelDomainResponse) String() string { return proto.CompactTextString(m) } func (*QueryAllSecondLevelDomainResponse) ProtoMessage() {} func (*QueryAllSecondLevelDomainResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_6fac5bfae411c2d0, []int{10} + return fileDescriptor_40aa1b1e077fe69e, []int{10} } func (m *QueryAllSecondLevelDomainResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -563,7 +563,7 @@ func (m *QueryGetDomainOwnershipRequest) Reset() { *m = QueryGetDomainOw func (m *QueryGetDomainOwnershipRequest) String() string { return proto.CompactTextString(m) } func (*QueryGetDomainOwnershipRequest) ProtoMessage() {} func (*QueryGetDomainOwnershipRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_6fac5bfae411c2d0, []int{11} + return fileDescriptor_40aa1b1e077fe69e, []int{11} } func (m *QueryGetDomainOwnershipRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -607,7 +607,7 @@ func (m *QueryGetDomainOwnershipResponse) Reset() { *m = QueryGetDomainO func (m *QueryGetDomainOwnershipResponse) String() string { return proto.CompactTextString(m) } func (*QueryGetDomainOwnershipResponse) ProtoMessage() {} func (*QueryGetDomainOwnershipResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_6fac5bfae411c2d0, []int{12} + return fileDescriptor_40aa1b1e077fe69e, []int{12} } func (m *QueryGetDomainOwnershipResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -651,7 +651,7 @@ func (m *QueryAllDomainOwnershipRequest) Reset() { *m = QueryAllDomainOw func (m *QueryAllDomainOwnershipRequest) String() string { return proto.CompactTextString(m) } func (*QueryAllDomainOwnershipRequest) ProtoMessage() {} func (*QueryAllDomainOwnershipRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_6fac5bfae411c2d0, []int{13} + return fileDescriptor_40aa1b1e077fe69e, []int{13} } func (m *QueryAllDomainOwnershipRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -696,7 +696,7 @@ func (m *QueryAllDomainOwnershipResponse) Reset() { *m = QueryAllDomainO func (m *QueryAllDomainOwnershipResponse) String() string { return proto.CompactTextString(m) } func (*QueryAllDomainOwnershipResponse) ProtoMessage() {} func (*QueryAllDomainOwnershipResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_6fac5bfae411c2d0, []int{14} + return fileDescriptor_40aa1b1e077fe69e, []int{14} } func (m *QueryAllDomainOwnershipResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -750,7 +750,7 @@ func (m *QueryDomainRegistrationFeeRequest) Reset() { *m = QueryDomainRe func (m *QueryDomainRegistrationFeeRequest) String() string { return proto.CompactTextString(m) } func (*QueryDomainRegistrationFeeRequest) ProtoMessage() {} func (*QueryDomainRegistrationFeeRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_6fac5bfae411c2d0, []int{15} + return fileDescriptor_40aa1b1e077fe69e, []int{15} } func (m *QueryDomainRegistrationFeeRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -819,7 +819,7 @@ func (m *QueryDomainRegistrationFeeResponse) Reset() { *m = QueryDomainR func (m *QueryDomainRegistrationFeeResponse) String() string { return proto.CompactTextString(m) } func (*QueryDomainRegistrationFeeResponse) ProtoMessage() {} func (*QueryDomainRegistrationFeeResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_6fac5bfae411c2d0, []int{16} + return fileDescriptor_40aa1b1e077fe69e, []int{16} } func (m *QueryDomainRegistrationFeeResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -892,7 +892,7 @@ func (m *QueryRoleRequest) Reset() { *m = QueryRoleRequest{} } func (m *QueryRoleRequest) String() string { return proto.CompactTextString(m) } func (*QueryRoleRequest) ProtoMessage() {} func (*QueryRoleRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_6fac5bfae411c2d0, []int{17} + return fileDescriptor_40aa1b1e077fe69e, []int{17} } func (m *QueryRoleRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -943,7 +943,7 @@ func (m *QueryRoleResponse) Reset() { *m = QueryRoleResponse{} } func (m *QueryRoleResponse) String() string { return proto.CompactTextString(m) } func (*QueryRoleResponse) ProtoMessage() {} func (*QueryRoleResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_6fac5bfae411c2d0, []int{18} + return fileDescriptor_40aa1b1e077fe69e, []int{18} } func (m *QueryRoleResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -979,110 +979,549 @@ func (m *QueryRoleResponse) GetRole() string { return "" } -func init() { - proto.RegisterType((*QueryParamsRequest)(nil), "mycel.registry.v1beta1.QueryParamsRequest") - proto.RegisterType((*QueryParamsResponse)(nil), "mycel.registry.v1beta1.QueryParamsResponse") - proto.RegisterType((*QueryGetTopLevelDomainRequest)(nil), "mycel.registry.v1beta1.QueryGetTopLevelDomainRequest") - proto.RegisterType((*QueryGetTopLevelDomainResponse)(nil), "mycel.registry.v1beta1.QueryGetTopLevelDomainResponse") - proto.RegisterType((*QueryAllTopLevelDomainRequest)(nil), "mycel.registry.v1beta1.QueryAllTopLevelDomainRequest") - proto.RegisterType((*QueryAllTopLevelDomainResponse)(nil), "mycel.registry.v1beta1.QueryAllTopLevelDomainResponse") - proto.RegisterType((*QueryGetSecondLevelDomainRequest)(nil), "mycel.registry.v1beta1.QueryGetSecondLevelDomainRequest") - proto.RegisterType((*SecondLevelDomainResponse)(nil), "mycel.registry.v1beta1.SecondLevelDomainResponse") - proto.RegisterType((*QueryGetSecondLevelDomainResponse)(nil), "mycel.registry.v1beta1.QueryGetSecondLevelDomainResponse") - proto.RegisterType((*QueryAllSecondLevelDomainRequest)(nil), "mycel.registry.v1beta1.QueryAllSecondLevelDomainRequest") - proto.RegisterType((*QueryAllSecondLevelDomainResponse)(nil), "mycel.registry.v1beta1.QueryAllSecondLevelDomainResponse") - proto.RegisterType((*QueryGetDomainOwnershipRequest)(nil), "mycel.registry.v1beta1.QueryGetDomainOwnershipRequest") - proto.RegisterType((*QueryGetDomainOwnershipResponse)(nil), "mycel.registry.v1beta1.QueryGetDomainOwnershipResponse") - proto.RegisterType((*QueryAllDomainOwnershipRequest)(nil), "mycel.registry.v1beta1.QueryAllDomainOwnershipRequest") - proto.RegisterType((*QueryAllDomainOwnershipResponse)(nil), "mycel.registry.v1beta1.QueryAllDomainOwnershipResponse") - proto.RegisterType((*QueryDomainRegistrationFeeRequest)(nil), "mycel.registry.v1beta1.QueryDomainRegistrationFeeRequest") - proto.RegisterType((*QueryDomainRegistrationFeeResponse)(nil), "mycel.registry.v1beta1.QueryDomainRegistrationFeeResponse") - proto.RegisterType((*QueryRoleRequest)(nil), "mycel.registry.v1beta1.QueryRoleRequest") - proto.RegisterType((*QueryRoleResponse)(nil), "mycel.registry.v1beta1.QueryRoleResponse") +type QueryWalletRecordRequest struct { + DomainName string `protobuf:"bytes,1,opt,name=domain_name,json=domainName,proto3" json:"domain_name,omitempty"` + DomainParent string `protobuf:"bytes,2,opt,name=domain_parent,json=domainParent,proto3" json:"domain_parent,omitempty"` + WalletRecordType string `protobuf:"bytes,3,opt,name=wallet_record_type,json=walletRecordType,proto3" json:"wallet_record_type,omitempty"` +} + +func (m *QueryWalletRecordRequest) Reset() { *m = QueryWalletRecordRequest{} } +func (m *QueryWalletRecordRequest) String() string { return proto.CompactTextString(m) } +func (*QueryWalletRecordRequest) ProtoMessage() {} +func (*QueryWalletRecordRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_40aa1b1e077fe69e, []int{19} +} +func (m *QueryWalletRecordRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryWalletRecordRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryWalletRecordRequest.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 *QueryWalletRecordRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryWalletRecordRequest.Merge(m, src) +} +func (m *QueryWalletRecordRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryWalletRecordRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryWalletRecordRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryWalletRecordRequest proto.InternalMessageInfo + +func (m *QueryWalletRecordRequest) GetDomainName() string { + if m != nil { + return m.DomainName + } + return "" +} + +func (m *QueryWalletRecordRequest) GetDomainParent() string { + if m != nil { + return m.DomainParent + } + return "" +} + +func (m *QueryWalletRecordRequest) GetWalletRecordType() string { + if m != nil { + return m.WalletRecordType + } + return "" +} + +type QueryWalletRecordResponse struct { + Value *WalletRecord `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` +} + +func (m *QueryWalletRecordResponse) Reset() { *m = QueryWalletRecordResponse{} } +func (m *QueryWalletRecordResponse) String() string { return proto.CompactTextString(m) } +func (*QueryWalletRecordResponse) ProtoMessage() {} +func (*QueryWalletRecordResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_40aa1b1e077fe69e, []int{20} +} +func (m *QueryWalletRecordResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryWalletRecordResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryWalletRecordResponse.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 *QueryWalletRecordResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryWalletRecordResponse.Merge(m, src) +} +func (m *QueryWalletRecordResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryWalletRecordResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryWalletRecordResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryWalletRecordResponse proto.InternalMessageInfo + +func (m *QueryWalletRecordResponse) GetValue() *WalletRecord { + if m != nil { + return m.Value + } + return nil +} + +type QueryDnsRecordRequest struct { + DomainName string `protobuf:"bytes,1,opt,name=domain_name,json=domainName,proto3" json:"domain_name,omitempty"` + DomainParent string `protobuf:"bytes,2,opt,name=domain_parent,json=domainParent,proto3" json:"domain_parent,omitempty"` + DnsRecordType string `protobuf:"bytes,3,opt,name=dns_record_type,json=dnsRecordType,proto3" json:"dns_record_type,omitempty"` +} + +func (m *QueryDnsRecordRequest) Reset() { *m = QueryDnsRecordRequest{} } +func (m *QueryDnsRecordRequest) String() string { return proto.CompactTextString(m) } +func (*QueryDnsRecordRequest) ProtoMessage() {} +func (*QueryDnsRecordRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_40aa1b1e077fe69e, []int{21} +} +func (m *QueryDnsRecordRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryDnsRecordRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryDnsRecordRequest.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 *QueryDnsRecordRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryDnsRecordRequest.Merge(m, src) +} +func (m *QueryDnsRecordRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryDnsRecordRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryDnsRecordRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryDnsRecordRequest proto.InternalMessageInfo + +func (m *QueryDnsRecordRequest) GetDomainName() string { + if m != nil { + return m.DomainName + } + return "" +} + +func (m *QueryDnsRecordRequest) GetDomainParent() string { + if m != nil { + return m.DomainParent + } + return "" +} + +func (m *QueryDnsRecordRequest) GetDnsRecordType() string { + if m != nil { + return m.DnsRecordType + } + return "" +} + +type QueryDnsRecordResponse struct { + Value *DnsRecord `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` +} + +func (m *QueryDnsRecordResponse) Reset() { *m = QueryDnsRecordResponse{} } +func (m *QueryDnsRecordResponse) String() string { return proto.CompactTextString(m) } +func (*QueryDnsRecordResponse) ProtoMessage() {} +func (*QueryDnsRecordResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_40aa1b1e077fe69e, []int{22} +} +func (m *QueryDnsRecordResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryDnsRecordResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryDnsRecordResponse.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 *QueryDnsRecordResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryDnsRecordResponse.Merge(m, src) +} +func (m *QueryDnsRecordResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryDnsRecordResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryDnsRecordResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryDnsRecordResponse proto.InternalMessageInfo + +func (m *QueryDnsRecordResponse) GetValue() *DnsRecord { + if m != nil { + return m.Value + } + return nil +} + +type QueryAllRecordsRequest struct { + DomainName string `protobuf:"bytes,1,opt,name=domain_name,json=domainName,proto3" json:"domain_name,omitempty"` + DomainParent string `protobuf:"bytes,2,opt,name=domain_parent,json=domainParent,proto3" json:"domain_parent,omitempty"` +} + +func (m *QueryAllRecordsRequest) Reset() { *m = QueryAllRecordsRequest{} } +func (m *QueryAllRecordsRequest) String() string { return proto.CompactTextString(m) } +func (*QueryAllRecordsRequest) ProtoMessage() {} +func (*QueryAllRecordsRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_40aa1b1e077fe69e, []int{23} +} +func (m *QueryAllRecordsRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryAllRecordsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryAllRecordsRequest.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 *QueryAllRecordsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryAllRecordsRequest.Merge(m, src) +} +func (m *QueryAllRecordsRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryAllRecordsRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryAllRecordsRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryAllRecordsRequest proto.InternalMessageInfo + +func (m *QueryAllRecordsRequest) GetDomainName() string { + if m != nil { + return m.DomainName + } + return "" +} + +func (m *QueryAllRecordsRequest) GetDomainParent() string { + if m != nil { + return m.DomainParent + } + return "" +} + +type QueryAllRecordsResponse struct { + Values map[string]*Record `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` +} + +func (m *QueryAllRecordsResponse) Reset() { *m = QueryAllRecordsResponse{} } +func (m *QueryAllRecordsResponse) String() string { return proto.CompactTextString(m) } +func (*QueryAllRecordsResponse) ProtoMessage() {} +func (*QueryAllRecordsResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_40aa1b1e077fe69e, []int{24} +} +func (m *QueryAllRecordsResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryAllRecordsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryAllRecordsResponse.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 *QueryAllRecordsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryAllRecordsResponse.Merge(m, src) +} +func (m *QueryAllRecordsResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryAllRecordsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryAllRecordsResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryAllRecordsResponse proto.InternalMessageInfo + +func (m *QueryAllRecordsResponse) GetValues() map[string]*Record { + if m != nil { + return m.Values + } + return nil +} + +type QueryTextRecordRequest struct { + DomainName string `protobuf:"bytes,1,opt,name=domain_name,json=domainName,proto3" json:"domain_name,omitempty"` + DomainParent string `protobuf:"bytes,2,opt,name=domain_parent,json=domainParent,proto3" json:"domain_parent,omitempty"` + Key string `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty"` +} + +func (m *QueryTextRecordRequest) Reset() { *m = QueryTextRecordRequest{} } +func (m *QueryTextRecordRequest) String() string { return proto.CompactTextString(m) } +func (*QueryTextRecordRequest) ProtoMessage() {} +func (*QueryTextRecordRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_40aa1b1e077fe69e, []int{25} +} +func (m *QueryTextRecordRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryTextRecordRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryTextRecordRequest.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 *QueryTextRecordRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryTextRecordRequest.Merge(m, src) +} +func (m *QueryTextRecordRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryTextRecordRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryTextRecordRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryTextRecordRequest proto.InternalMessageInfo + +func (m *QueryTextRecordRequest) GetDomainName() string { + if m != nil { + return m.DomainName + } + return "" +} + +func (m *QueryTextRecordRequest) GetDomainParent() string { + if m != nil { + return m.DomainParent + } + return "" +} + +func (m *QueryTextRecordRequest) GetKey() string { + if m != nil { + return m.Key + } + return "" +} + +type QueryTextRecordResponse struct { + Value *TextRecord `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` +} + +func (m *QueryTextRecordResponse) Reset() { *m = QueryTextRecordResponse{} } +func (m *QueryTextRecordResponse) String() string { return proto.CompactTextString(m) } +func (*QueryTextRecordResponse) ProtoMessage() {} +func (*QueryTextRecordResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_40aa1b1e077fe69e, []int{26} +} +func (m *QueryTextRecordResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryTextRecordResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryTextRecordResponse.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 *QueryTextRecordResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryTextRecordResponse.Merge(m, src) +} +func (m *QueryTextRecordResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryTextRecordResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryTextRecordResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryTextRecordResponse proto.InternalMessageInfo + +func (m *QueryTextRecordResponse) GetValue() *TextRecord { + if m != nil { + return m.Value + } + return nil } func init() { - proto.RegisterFile("mycel/registry/v1beta1/query.proto", fileDescriptor_6fac5bfae411c2d0) -} - -var fileDescriptor_6fac5bfae411c2d0 = []byte{ - // 1208 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x57, 0x5b, 0x6f, 0xdc, 0x44, - 0x14, 0x8e, 0x93, 0x4d, 0x68, 0x4f, 0xc9, 0x6d, 0x1a, 0xaa, 0xcd, 0x52, 0xbc, 0xc1, 0x15, 0x4d, - 0x68, 0x15, 0x9b, 0x34, 0xea, 0x05, 0x68, 0xa8, 0x72, 0xa1, 0xa5, 0x12, 0x29, 0xc5, 0xa9, 0x10, - 0x05, 0x21, 0xcb, 0x9b, 0x9d, 0x38, 0x06, 0xdb, 0xe3, 0x7a, 0xbc, 0x25, 0xd1, 0x6a, 0x5f, 0x78, - 0x43, 0xe2, 0xa1, 0x12, 0x12, 0x3f, 0x81, 0x07, 0x1e, 0xf8, 0x0d, 0x54, 0x2a, 0x52, 0x79, 0x40, - 0x54, 0x42, 0x48, 0x3c, 0x51, 0x94, 0xf0, 0x07, 0xf8, 0x07, 0x95, 0x67, 0xc6, 0x59, 0xef, 0xc6, - 0xf6, 0x5e, 0x92, 0xa7, 0x1d, 0xcf, 0x9c, 0xcb, 0xf7, 0x9d, 0x73, 0x66, 0xce, 0x59, 0x50, 0xdc, - 0xdd, 0x4d, 0xec, 0x68, 0x01, 0xb6, 0x6c, 0x1a, 0x06, 0xbb, 0xda, 0xc3, 0x85, 0x0a, 0x0e, 0xcd, - 0x05, 0xed, 0x41, 0x0d, 0x07, 0xbb, 0xaa, 0x1f, 0x90, 0x90, 0xa0, 0x33, 0x4c, 0x46, 0x8d, 0x65, - 0x54, 0x21, 0x53, 0xba, 0xb0, 0x49, 0xa8, 0x4b, 0xa8, 0x56, 0x31, 0x29, 0xe6, 0x0a, 0x07, 0xea, - 0xbe, 0x69, 0xd9, 0x9e, 0x19, 0xda, 0xc4, 0xe3, 0x36, 0x4a, 0x72, 0x52, 0x36, 0x96, 0xda, 0x24, - 0x76, 0x7c, 0x3e, 0x65, 0x11, 0x8b, 0xb0, 0xa5, 0x16, 0xad, 0xc4, 0xee, 0x59, 0x8b, 0x10, 0xcb, - 0xc1, 0x9a, 0xe9, 0xdb, 0x9a, 0xe9, 0x79, 0x24, 0x64, 0x26, 0xa9, 0x38, 0x2d, 0x8b, 0x53, 0xf6, - 0x55, 0xa9, 0x6d, 0x69, 0xa1, 0xed, 0x62, 0x1a, 0x9a, 0xae, 0x2f, 0x04, 0xe6, 0x33, 0xc8, 0x55, - 0x89, 0x6b, 0xda, 0x9e, 0x41, 0xbe, 0xf6, 0x70, 0x40, 0xb7, 0xed, 0x58, 0xfc, 0x5c, 0x86, 0xb8, - 0x6f, 0x06, 0xa6, 0x4b, 0x3b, 0xd8, 0x0c, 0x89, 0x6f, 0x38, 0xf8, 0x21, 0x76, 0x0c, 0x6e, 0x9d, - 0x8b, 0x2b, 0x53, 0x80, 0x3e, 0x8e, 0x22, 0x73, 0x97, 0xd9, 0xd0, 0xf1, 0x83, 0x1a, 0xa6, 0xa1, - 0xb2, 0x01, 0xa7, 0x5b, 0x76, 0xa9, 0x4f, 0x3c, 0x8a, 0xd1, 0x75, 0x18, 0xe1, 0xbe, 0x8a, 0xd2, - 0x8c, 0x34, 0x77, 0xea, 0x92, 0xac, 0xa6, 0x47, 0x5e, 0xe5, 0x7a, 0x2b, 0x85, 0xa7, 0xff, 0x94, - 0x07, 0x74, 0xa1, 0xa3, 0x2c, 0xc2, 0x6b, 0xcc, 0xe8, 0x2d, 0x1c, 0xde, 0x23, 0xfe, 0x87, 0x11, - 0x96, 0x35, 0x06, 0x45, 0x78, 0x45, 0x08, 0x0a, 0x9e, 0xe9, 0x62, 0x66, 0xfc, 0xa4, 0xce, 0xd6, - 0xca, 0x0e, 0xc8, 0x59, 0x4a, 0x02, 0xd4, 0x27, 0x30, 0xd1, 0xce, 0x4d, 0xc0, 0x3b, 0x9f, 0x05, - 0xaf, 0xd5, 0x92, 0x80, 0x39, 0x16, 0xb6, 0xec, 0x2a, 0x96, 0x80, 0xbb, 0xec, 0x38, 0xe9, 0x70, - 0x6f, 0x02, 0x34, 0xcb, 0xe8, 0xc0, 0x25, 0xaf, 0x23, 0x35, 0xaa, 0x23, 0x95, 0x17, 0x69, 0x33, - 0x28, 0x16, 0x16, 0xba, 0x7a, 0x42, 0x53, 0x79, 0x2c, 0x09, 0x8e, 0x29, 0x9e, 0x72, 0x39, 0x0e, - 0x1d, 0x95, 0x23, 0xba, 0xd5, 0x42, 0x61, 0x90, 0x51, 0x98, 0xed, 0x48, 0x81, 0x83, 0x6a, 0xe1, - 0x70, 0x07, 0x66, 0xe2, 0x34, 0x6d, 0xe0, 0x4d, 0xe2, 0x55, 0xbb, 0x4b, 0x2f, 0x3a, 0xc3, 0x2a, - 0x0a, 0x7b, 0x21, 0x73, 0x7e, 0x52, 0x17, 0x5f, 0xca, 0x0f, 0x12, 0x4c, 0xa7, 0x18, 0x12, 0xe1, - 0xe8, 0xc1, 0x12, 0x5a, 0x87, 0x71, 0xbc, 0xe3, 0xdb, 0x01, 0xc3, 0x69, 0x54, 0xcd, 0x10, 0x17, - 0x87, 0x18, 0xcf, 0x92, 0xca, 0xaf, 0xa7, 0x1a, 0x5f, 0x4f, 0xf5, 0x5e, 0x7c, 0x3d, 0x57, 0x4e, - 0x44, 0xd1, 0x7a, 0xf4, 0xbc, 0x2c, 0xe9, 0x63, 0x4d, 0xe5, 0x35, 0x33, 0xc4, 0xca, 0x77, 0x12, - 0xbc, 0x9e, 0xc3, 0x54, 0x00, 0xb4, 0xe0, 0x34, 0x65, 0x87, 0x69, 0x65, 0xb9, 0x90, 0x95, 0xb2, - 0x4c, 0x7b, 0x22, 0x7b, 0x93, 0xb4, 0x5d, 0x40, 0xf9, 0x52, 0xc4, 0x7d, 0xd9, 0x71, 0x32, 0xe3, - 0x7e, 0x5c, 0x75, 0xfa, 0x57, 0x4c, 0x3d, 0xdd, 0x59, 0x27, 0xea, 0x43, 0xc7, 0x4b, 0xfd, 0xf8, - 0x6a, 0xf7, 0x4a, 0xf3, 0x89, 0xe1, 0xa6, 0x3f, 0x8a, 0xdf, 0xdd, 0x38, 0x82, 0x53, 0x30, 0xcc, - 0xde, 0x62, 0x51, 0x70, 0xfc, 0x43, 0xa9, 0x43, 0x39, 0x53, 0x4f, 0x04, 0xe3, 0x53, 0x98, 0x68, - 0x7f, 0xcb, 0x45, 0x02, 0x66, 0xb3, 0x22, 0xd1, 0x66, 0x4a, 0xf0, 0x1f, 0xaf, 0xb6, 0x6e, 0x2b, - 0xdb, 0xcd, 0x37, 0x23, 0x03, 0xf4, 0x71, 0xa5, 0xfd, 0x89, 0x24, 0x78, 0xa6, 0xb9, 0xca, 0xe5, - 0x39, 0x74, 0x74, 0x9e, 0xc7, 0x97, 0xe5, 0x9f, 0xe3, 0xea, 0x8d, 0xeb, 0x8b, 0xe1, 0x61, 0x67, - 0x37, 0x31, 0xee, 0xe3, 0x8d, 0x42, 0x4b, 0xf0, 0x6a, 0x90, 0xb0, 0x62, 0xf8, 0x38, 0xb0, 0x49, - 0xd5, 0xb0, 0x3d, 0x63, 0x17, 0x9b, 0x01, 0x7b, 0x65, 0x0a, 0x7a, 0x31, 0x29, 0x72, 0x97, 0x49, - 0xdc, 0xf6, 0xee, 0x63, 0x33, 0x40, 0x32, 0x00, 0x3f, 0xc3, 0x01, 0x0e, 0x8a, 0x05, 0x66, 0x3a, - 0xb1, 0xa3, 0xfc, 0x31, 0x08, 0x4a, 0x1e, 0x60, 0x11, 0xfa, 0x37, 0x60, 0xcc, 0xa6, 0x46, 0xec, - 0xa5, 0xe2, 0x70, 0xec, 0x27, 0xf4, 0x51, 0x9b, 0xea, 0xcd, 0x4d, 0xf4, 0x05, 0x0c, 0x6d, 0x61, - 0x5c, 0x1c, 0x64, 0x49, 0x99, 0x6e, 0x09, 0x60, 0x1c, 0xba, 0x55, 0x62, 0x7b, 0x2b, 0x6f, 0x45, - 0x69, 0xf8, 0xe9, 0x79, 0x79, 0xce, 0xb2, 0xc3, 0xed, 0x5a, 0x45, 0xdd, 0x24, 0xae, 0x26, 0x46, - 0x23, 0xfe, 0x33, 0x4f, 0xab, 0x5f, 0x69, 0xe1, 0xae, 0x8f, 0x29, 0x53, 0xa0, 0x7a, 0x64, 0xf7, - 0xa8, 0xb1, 0xb8, 0x01, 0x67, 0x5d, 0x73, 0xc7, 0xa0, 0xb5, 0x8a, 0x78, 0x2f, 0x8c, 0xa4, 0x28, - 0x65, 0xd1, 0x29, 0xe8, 0xd3, 0xae, 0xb9, 0xb3, 0x51, 0xab, 0x1c, 0x8e, 0x07, 0x45, 0xe7, 0x60, - 0x14, 0x07, 0x01, 0x09, 0x0c, 0x17, 0x53, 0x6a, 0x5a, 0xb8, 0x38, 0xcc, 0xe2, 0xf9, 0x32, 0xdb, - 0x5c, 0xe7, 0x7b, 0xca, 0x3a, 0x4c, 0xb0, 0x80, 0xea, 0xc4, 0x39, 0x48, 0x78, 0x19, 0x4e, 0x09, - 0x8f, 0x89, 0xbc, 0x03, 0xdf, 0xba, 0x13, 0x65, 0xbf, 0x08, 0x2f, 0x99, 0xd5, 0x6a, 0x80, 0x29, - 0x15, 0xe9, 0x8f, 0x3f, 0x95, 0x59, 0x98, 0x4c, 0x98, 0x6b, 0xb6, 0xa6, 0x80, 0x38, 0x07, 0x05, - 0x14, 0xad, 0x2f, 0xed, 0x8d, 0xc2, 0x30, 0x93, 0x44, 0xdf, 0x4a, 0x30, 0xc2, 0x67, 0x23, 0x74, - 0x21, 0xeb, 0x62, 0x1c, 0x1e, 0xc7, 0x4a, 0x17, 0xbb, 0x92, 0xe5, 0x08, 0x94, 0xf3, 0xdf, 0xfc, - 0xf9, 0xdf, 0xf7, 0x83, 0x33, 0x48, 0xd6, 0x72, 0xc7, 0x45, 0xf4, 0xab, 0x04, 0x63, 0xad, 0x43, - 0x02, 0xba, 0x9c, 0xeb, 0x27, 0x6b, 0x6e, 0x2b, 0x5d, 0xe9, 0x55, 0x4d, 0x20, 0x5d, 0x63, 0x48, - 0xdf, 0x43, 0xd7, 0x39, 0xd2, 0x79, 0x1e, 0x75, 0xad, 0xcb, 0x01, 0x56, 0xab, 0x47, 0x19, 0x6b, - 0xa0, 0xc7, 0x12, 0x4c, 0xb6, 0x3a, 0x58, 0x76, 0x9c, 0x0e, 0x54, 0xb2, 0x66, 0xba, 0x0e, 0x54, - 0x32, 0x07, 0x34, 0x65, 0x89, 0x51, 0xb9, 0x8a, 0x2e, 0xf7, 0x45, 0x05, 0xfd, 0x2e, 0xc1, 0xe4, - 0xa1, 0x16, 0x88, 0xae, 0x75, 0x8a, 0x6b, 0x56, 0xcb, 0x2f, 0xbd, 0xdd, 0x87, 0xa6, 0x60, 0xb2, - 0xca, 0x98, 0x2c, 0xa1, 0x77, 0xb3, 0xc0, 0xa7, 0x74, 0x77, 0x91, 0x0a, 0xad, 0xce, 0x5f, 0xc6, - 0x06, 0xfa, 0x45, 0x82, 0xa9, 0x43, 0x2e, 0xa2, 0xb4, 0x5c, 0xeb, 0x14, 0xdf, 0x3e, 0x29, 0xe5, - 0x8d, 0x24, 0xca, 0x22, 0xa3, 0x34, 0x8f, 0x2e, 0xf6, 0x40, 0x09, 0xfd, 0x26, 0xc1, 0x78, 0x5b, - 0x8f, 0x42, 0x1d, 0x0b, 0x3d, 0xbd, 0x15, 0x97, 0xae, 0xf6, 0xac, 0x27, 0x90, 0xbf, 0xcf, 0x90, - 0xdf, 0x40, 0x4b, 0x5d, 0x95, 0x55, 0x7b, 0x0b, 0xd6, 0xea, 0x6c, 0xd9, 0x40, 0x4f, 0x24, 0x40, - 0x6d, 0x2e, 0xa2, 0x64, 0x74, 0x2c, 0xf6, 0xbe, 0xe8, 0x64, 0x8f, 0x09, 0x3d, 0xde, 0x92, 0x76, - 0x3a, 0xe8, 0x7f, 0x09, 0x5e, 0x49, 0x6d, 0x86, 0x28, 0xbf, 0x38, 0xf2, 0x3a, 0x7e, 0xe9, 0x9d, - 0x7e, 0x54, 0x05, 0x1f, 0x93, 0xf1, 0xf9, 0x1c, 0xdd, 0xef, 0x85, 0x4f, 0x4b, 0x9f, 0xdc, 0xc2, - 0xb8, 0xfd, 0xf2, 0x68, 0xf5, 0xe6, 0x10, 0xd0, 0x40, 0x3f, 0x4a, 0x50, 0x88, 0x1a, 0x0c, 0x9a, - 0xcb, 0xc5, 0x99, 0x68, 0x69, 0xa5, 0x37, 0xbb, 0x90, 0x14, 0x04, 0x6e, 0x33, 0x02, 0xab, 0x68, - 0xb9, 0x2b, 0x02, 0x51, 0x33, 0xd3, 0xea, 0x89, 0x76, 0xd9, 0xd0, 0xea, 0xa2, 0x19, 0x36, 0x56, - 0x3e, 0x78, 0xba, 0x27, 0x4b, 0xcf, 0xf6, 0x64, 0xe9, 0xdf, 0x3d, 0x59, 0x7a, 0xb4, 0x2f, 0x0f, - 0x3c, 0xdb, 0x97, 0x07, 0xfe, 0xde, 0x97, 0x07, 0x3e, 0x53, 0x13, 0xa3, 0x44, 0x8a, 0x9b, 0x9d, - 0xa6, 0x23, 0x36, 0x56, 0x54, 0x46, 0xd8, 0x1f, 0xb2, 0xc5, 0x17, 0x01, 0x00, 0x00, 0xff, 0xff, - 0xf9, 0x41, 0xad, 0x75, 0xfb, 0x11, 0x00, 0x00, + proto.RegisterType((*QueryParamsRequest)(nil), "mycel.registry.v1.QueryParamsRequest") + proto.RegisterType((*QueryParamsResponse)(nil), "mycel.registry.v1.QueryParamsResponse") + proto.RegisterType((*QueryGetTopLevelDomainRequest)(nil), "mycel.registry.v1.QueryGetTopLevelDomainRequest") + proto.RegisterType((*QueryGetTopLevelDomainResponse)(nil), "mycel.registry.v1.QueryGetTopLevelDomainResponse") + proto.RegisterType((*QueryAllTopLevelDomainRequest)(nil), "mycel.registry.v1.QueryAllTopLevelDomainRequest") + proto.RegisterType((*QueryAllTopLevelDomainResponse)(nil), "mycel.registry.v1.QueryAllTopLevelDomainResponse") + proto.RegisterType((*QueryGetSecondLevelDomainRequest)(nil), "mycel.registry.v1.QueryGetSecondLevelDomainRequest") + proto.RegisterType((*SecondLevelDomainResponse)(nil), "mycel.registry.v1.SecondLevelDomainResponse") + proto.RegisterType((*QueryGetSecondLevelDomainResponse)(nil), "mycel.registry.v1.QueryGetSecondLevelDomainResponse") + proto.RegisterType((*QueryAllSecondLevelDomainRequest)(nil), "mycel.registry.v1.QueryAllSecondLevelDomainRequest") + proto.RegisterType((*QueryAllSecondLevelDomainResponse)(nil), "mycel.registry.v1.QueryAllSecondLevelDomainResponse") + proto.RegisterType((*QueryGetDomainOwnershipRequest)(nil), "mycel.registry.v1.QueryGetDomainOwnershipRequest") + proto.RegisterType((*QueryGetDomainOwnershipResponse)(nil), "mycel.registry.v1.QueryGetDomainOwnershipResponse") + proto.RegisterType((*QueryAllDomainOwnershipRequest)(nil), "mycel.registry.v1.QueryAllDomainOwnershipRequest") + proto.RegisterType((*QueryAllDomainOwnershipResponse)(nil), "mycel.registry.v1.QueryAllDomainOwnershipResponse") + proto.RegisterType((*QueryDomainRegistrationFeeRequest)(nil), "mycel.registry.v1.QueryDomainRegistrationFeeRequest") + proto.RegisterType((*QueryDomainRegistrationFeeResponse)(nil), "mycel.registry.v1.QueryDomainRegistrationFeeResponse") + proto.RegisterType((*QueryRoleRequest)(nil), "mycel.registry.v1.QueryRoleRequest") + proto.RegisterType((*QueryRoleResponse)(nil), "mycel.registry.v1.QueryRoleResponse") + proto.RegisterType((*QueryWalletRecordRequest)(nil), "mycel.registry.v1.QueryWalletRecordRequest") + proto.RegisterType((*QueryWalletRecordResponse)(nil), "mycel.registry.v1.QueryWalletRecordResponse") + proto.RegisterType((*QueryDnsRecordRequest)(nil), "mycel.registry.v1.QueryDnsRecordRequest") + proto.RegisterType((*QueryDnsRecordResponse)(nil), "mycel.registry.v1.QueryDnsRecordResponse") + proto.RegisterType((*QueryAllRecordsRequest)(nil), "mycel.registry.v1.QueryAllRecordsRequest") + proto.RegisterType((*QueryAllRecordsResponse)(nil), "mycel.registry.v1.QueryAllRecordsResponse") + proto.RegisterMapType((map[string]*Record)(nil), "mycel.registry.v1.QueryAllRecordsResponse.ValuesEntry") + proto.RegisterType((*QueryTextRecordRequest)(nil), "mycel.registry.v1.QueryTextRecordRequest") + proto.RegisterType((*QueryTextRecordResponse)(nil), "mycel.registry.v1.QueryTextRecordResponse") +} + +func init() { proto.RegisterFile("mycel/registry/v1/query.proto", fileDescriptor_40aa1b1e077fe69e) } + +var fileDescriptor_40aa1b1e077fe69e = []byte{ + // 1587 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x98, 0x5d, 0x6f, 0xdb, 0xd4, + 0x1b, 0xc0, 0xeb, 0xa6, 0xed, 0x7f, 0x7d, 0xb6, 0xbe, 0x9d, 0x75, 0xfb, 0xa7, 0xd9, 0x96, 0x6c, + 0x2e, 0xeb, 0xba, 0xb5, 0xb3, 0xd7, 0x96, 0xbd, 0x08, 0xc1, 0x50, 0x4b, 0xd9, 0x18, 0x5a, 0xbb, + 0xce, 0xed, 0x40, 0x80, 0x20, 0x72, 0x9a, 0xb3, 0xcc, 0xcc, 0xb1, 0x33, 0x1f, 0x27, 0x6b, 0x88, + 0x72, 0x83, 0x84, 0x90, 0xb8, 0x40, 0x93, 0x90, 0xf8, 0x06, 0x48, 0x80, 0x04, 0x88, 0x2b, 0x6e, + 0x10, 0xdc, 0xa1, 0xdd, 0x31, 0x09, 0x21, 0x71, 0xc5, 0xd0, 0xc6, 0x2d, 0xdf, 0x01, 0xf9, 0x9c, + 0xc7, 0x8d, 0x9d, 0xd8, 0x69, 0x42, 0xbb, 0xab, 0x3a, 0xe7, 0x3c, 0x2f, 0xbf, 0xe7, 0xc5, 0xc7, + 0xcf, 0x29, 0x1c, 0x2b, 0x56, 0x37, 0xa9, 0xa9, 0x3a, 0xb4, 0x60, 0x30, 0xd7, 0xa9, 0xaa, 0x95, + 0x39, 0xf5, 0x5e, 0x99, 0x3a, 0x55, 0xa5, 0xe4, 0xd8, 0xae, 0x4d, 0xc6, 0xf8, 0xb6, 0xe2, 0x6f, + 0x2b, 0x95, 0xb9, 0xd4, 0x99, 0x4d, 0x9b, 0x15, 0x6d, 0xa6, 0xe6, 0x74, 0x46, 0x85, 0xac, 0x5a, + 0x99, 0xcb, 0x51, 0x57, 0x9f, 0x53, 0x4b, 0x7a, 0xc1, 0xb0, 0x74, 0xd7, 0xb0, 0x2d, 0xa1, 0x9e, + 0x4a, 0x07, 0x65, 0x7d, 0xa9, 0x4d, 0xdb, 0xf0, 0xf7, 0xc7, 0x0b, 0x76, 0xc1, 0xe6, 0x8f, 0xaa, + 0xf7, 0x84, 0xab, 0x47, 0x0b, 0xb6, 0x5d, 0x30, 0xa9, 0xaa, 0x97, 0x0c, 0x55, 0xb7, 0x2c, 0xdb, + 0xe5, 0x26, 0x19, 0xee, 0x66, 0x70, 0x97, 0xff, 0xca, 0x95, 0x6f, 0xab, 0xae, 0x51, 0xa4, 0xcc, + 0xd5, 0x8b, 0x25, 0x14, 0x98, 0x6e, 0x0d, 0x29, 0x6f, 0x17, 0x75, 0xc3, 0xca, 0xda, 0xf7, 0x2d, + 0xea, 0xb0, 0x3b, 0x86, 0x2f, 0x99, 0x6e, 0x95, 0x2c, 0xe9, 0x8e, 0x5e, 0x64, 0xf1, 0x96, 0x5c, + 0xbb, 0x94, 0x35, 0x69, 0x85, 0x9a, 0x59, 0x61, 0x13, 0x25, 0x67, 0x5a, 0x25, 0x19, 0xdd, 0xb4, + 0xad, 0x7c, 0x84, 0xb0, 0x3c, 0x0e, 0xe4, 0xa6, 0x97, 0xb7, 0x35, 0xee, 0x4b, 0xa3, 0xf7, 0xca, + 0x94, 0xb9, 0xf2, 0x2a, 0x1c, 0x0c, 0xad, 0xb2, 0x92, 0x6d, 0x31, 0x4a, 0x2e, 0xc2, 0x80, 0x60, + 0x4a, 0x4a, 0xc7, 0xa5, 0xe9, 0xfd, 0xf3, 0x13, 0x4a, 0x4b, 0x49, 0x14, 0xa1, 0xb2, 0xd4, 0xf7, + 0xf0, 0xcf, 0x4c, 0x8f, 0x86, 0xe2, 0xf2, 0x02, 0x1c, 0xe3, 0xf6, 0xae, 0x52, 0x77, 0xc3, 0x2e, + 0x5d, 0xf7, 0x30, 0x96, 0x39, 0x05, 0x3a, 0x24, 0x04, 0xfa, 0x2c, 0xbd, 0x48, 0xb9, 0xdd, 0x41, + 0x8d, 0x3f, 0xcb, 0x0c, 0xd2, 0x71, 0x4a, 0xc8, 0x73, 0x13, 0x46, 0x9b, 0x73, 0x80, 0x64, 0x27, + 0x22, 0xc8, 0xc2, 0x46, 0x90, 0x70, 0xd8, 0x0d, 0xad, 0xca, 0x05, 0x24, 0x5d, 0x34, 0xcd, 0x68, + 0xd2, 0x2b, 0x00, 0x8d, 0xd6, 0x42, 0x6f, 0x53, 0x8a, 0xe8, 0x2d, 0xc5, 0xeb, 0x2d, 0x45, 0xf4, + 0x2c, 0x76, 0x98, 0xb2, 0xa6, 0x17, 0x28, 0xea, 0x6a, 0x01, 0x4d, 0xf9, 0x47, 0x09, 0xc3, 0x8b, + 0xf0, 0xd4, 0x36, 0xbc, 0xc4, 0x2e, 0xc2, 0x23, 0x57, 0x43, 0xf4, 0xbd, 0x9c, 0xfe, 0xd4, 0x8e, + 0xf4, 0x82, 0x27, 0x84, 0xbf, 0x0a, 0xc7, 0xfd, 0xe2, 0xac, 0xf3, 0xe6, 0xea, 0xac, 0xa8, 0xe4, + 0x30, 0x6f, 0x21, 0x6a, 0xb9, 0xdc, 0xf9, 0xa0, 0x86, 0xbf, 0xe4, 0xcf, 0x25, 0x98, 0x88, 0x30, + 0x84, 0x99, 0xe8, 0xc2, 0x12, 0x59, 0x81, 0x11, 0xba, 0x55, 0x32, 0x1c, 0xce, 0x99, 0xcd, 0xeb, + 0x2e, 0x4d, 0x26, 0x78, 0x9c, 0x29, 0x45, 0xbc, 0xad, 0x8a, 0xff, 0xb6, 0x2a, 0x1b, 0xfe, 0xdb, + 0xba, 0xb4, 0xcf, 0xcb, 0xd6, 0x83, 0xc7, 0x19, 0x49, 0x1b, 0x6e, 0x28, 0x2f, 0xeb, 0x2e, 0x95, + 0x3f, 0x96, 0xe0, 0x44, 0x9b, 0x48, 0x11, 0x30, 0x07, 0x07, 0x23, 0xde, 0x31, 0x6c, 0x8f, 0xd9, + 0x88, 0x6a, 0xc5, 0x9a, 0xc2, 0xc2, 0x8d, 0xb1, 0x66, 0x01, 0xf9, 0x7d, 0x4c, 0xf9, 0xa2, 0x69, + 0xc6, 0xa6, 0x7c, 0xaf, 0xba, 0xf3, 0x91, 0x1f, 0x75, 0xb4, 0xb3, 0x9d, 0xa2, 0x4e, 0xec, 0x59, + 0xd4, 0x7b, 0xd7, 0xb1, 0x17, 0x1a, 0xc7, 0x89, 0x30, 0x7d, 0xc3, 0x3f, 0x81, 0xfd, 0xe4, 0x8d, + 0x43, 0x3f, 0x3f, 0x95, 0xb1, 0xcd, 0xc4, 0x0f, 0xb9, 0x02, 0x99, 0x58, 0x3d, 0xcc, 0xc3, 0x3a, + 0x8c, 0x36, 0x9f, 0xea, 0x98, 0x7b, 0x39, 0x22, 0x09, 0x4d, 0x56, 0x30, 0xf4, 0x91, 0x7c, 0x78, + 0x59, 0xbe, 0xd3, 0x38, 0x1f, 0x62, 0x78, 0xf7, 0xaa, 0xd8, 0x3f, 0x4b, 0x18, 0x62, 0x94, 0xab, + 0xb6, 0x21, 0x26, 0x76, 0x15, 0xe2, 0xde, 0xd5, 0xf6, 0x5b, 0xbf, 0x5d, 0xfd, 0xae, 0xe2, 0x28, + 0x7c, 0xef, 0x0a, 0xa5, 0xff, 0xe1, 0x3c, 0x22, 0x2f, 0xc1, 0x11, 0x27, 0x60, 0x25, 0x5b, 0xa2, + 0x8e, 0x61, 0xe7, 0xb3, 0x86, 0x95, 0xad, 0x52, 0xdd, 0xe1, 0x27, 0x4a, 0x9f, 0x96, 0x0c, 0x8a, + 0xac, 0x71, 0x89, 0x6b, 0xd6, 0x5b, 0x54, 0x77, 0x48, 0x1a, 0x40, 0xec, 0x51, 0x87, 0x3a, 0xc9, + 0x3e, 0x6e, 0x3a, 0xb0, 0x22, 0xff, 0xda, 0x0b, 0x72, 0x3b, 0x60, 0xcc, 0xfa, 0x49, 0x18, 0x36, + 0x58, 0xd6, 0xf7, 0x92, 0x33, 0x05, 0xfb, 0x3e, 0x6d, 0xc8, 0x60, 0x5a, 0x63, 0x91, 0xbc, 0x0b, + 0x89, 0xdb, 0x94, 0x26, 0x7b, 0x79, 0x3d, 0x26, 0x42, 0x09, 0xf4, 0x53, 0xf7, 0x8a, 0x6d, 0x58, + 0x4b, 0xe7, 0xbc, 0x32, 0x7c, 0xfd, 0x38, 0x33, 0x5d, 0x30, 0xdc, 0x3b, 0xe5, 0x9c, 0xb2, 0x69, + 0x17, 0x55, 0x9c, 0x8a, 0xc4, 0x9f, 0xb3, 0x2c, 0x7f, 0x57, 0x75, 0xab, 0x25, 0xca, 0xb8, 0x02, + 0xd3, 0x3c, 0xbb, 0xbb, 0xcd, 0xc5, 0xcb, 0x70, 0xb4, 0xa8, 0x6f, 0x65, 0x59, 0x39, 0x87, 0x07, + 0x44, 0x36, 0x28, 0xca, 0x78, 0x76, 0xfa, 0xb4, 0x89, 0xa2, 0xbe, 0xb5, 0x5e, 0xce, 0xb5, 0xe6, + 0x83, 0x91, 0x49, 0x18, 0xa2, 0x8e, 0x63, 0x3b, 0xd9, 0x22, 0x65, 0x4c, 0x2f, 0xd0, 0x64, 0x3f, + 0xcf, 0xe7, 0x01, 0xbe, 0xb8, 0x22, 0xd6, 0xe4, 0x15, 0x18, 0xe5, 0x09, 0xd5, 0x6c, 0x73, 0xbb, + 0xe0, 0x19, 0xd8, 0x8f, 0x1e, 0x03, 0x75, 0x07, 0xb1, 0xb4, 0xea, 0x55, 0x3f, 0x09, 0xff, 0xd3, + 0xf3, 0x79, 0x87, 0x32, 0x86, 0xe5, 0xf7, 0x7f, 0xca, 0xa7, 0x60, 0x2c, 0x60, 0xae, 0xf1, 0x19, + 0x72, 0x6c, 0x73, 0xbb, 0x81, 0xbc, 0x67, 0xf9, 0x53, 0x09, 0x92, 0x5c, 0xf2, 0x4d, 0xdd, 0x34, + 0xa9, 0xab, 0xd1, 0x4d, 0xdb, 0xc9, 0x77, 0x0c, 0x30, 0x09, 0x43, 0x28, 0x10, 0xea, 0xc2, 0x03, + 0x62, 0x71, 0x4d, 0xf4, 0xe2, 0x2c, 0x90, 0xfb, 0xdc, 0x78, 0xd6, 0xe1, 0xd6, 0xb3, 0x5e, 0x85, + 0x78, 0xda, 0x07, 0xb5, 0xd1, 0xfb, 0x01, 0xb7, 0x1b, 0xd5, 0x12, 0x95, 0x35, 0x98, 0x88, 0xe0, + 0xc1, 0x08, 0xce, 0x43, 0x7f, 0x45, 0x37, 0xcb, 0x14, 0x4f, 0x8b, 0x4c, 0xc4, 0xbb, 0x1b, 0xd2, + 0x13, 0xd2, 0xf2, 0x47, 0x12, 0x1c, 0x12, 0xed, 0x6a, 0xb1, 0x67, 0x11, 0xe1, 0x14, 0x8c, 0xe4, + 0x2d, 0x16, 0x11, 0xde, 0x50, 0xde, 0x77, 0xc8, 0x63, 0xbb, 0x0e, 0x87, 0x9b, 0x31, 0x30, 0xb0, + 0xf9, 0x70, 0x60, 0x47, 0xa3, 0x0e, 0xa5, 0x6d, 0x25, 0x8c, 0xea, 0x3d, 0xb4, 0xb6, 0x68, 0x9a, + 0x62, 0x83, 0xed, 0x69, 0x54, 0xde, 0xb9, 0xfa, 0xff, 0x16, 0x07, 0xc8, 0xbb, 0x0a, 0x03, 0x1c, + 0x82, 0xe1, 0x29, 0x7a, 0x21, 0x02, 0x38, 0x46, 0x57, 0x79, 0x83, 0x2b, 0xbe, 0x6a, 0xb9, 0x4e, + 0x55, 0x43, 0x2b, 0xa9, 0x0d, 0xd8, 0x1f, 0x58, 0x26, 0xa3, 0x90, 0xb8, 0x4b, 0xab, 0x08, 0xee, + 0x3d, 0x12, 0xd5, 0x4f, 0x50, 0x6f, 0xec, 0xe8, 0x1e, 0xca, 0xce, 0x0b, 0xbd, 0x97, 0x24, 0xb9, + 0x84, 0x19, 0xda, 0xa0, 0x5b, 0xcf, 0xa4, 0xb3, 0x11, 0x33, 0xb1, 0x8d, 0x29, 0xaf, 0x62, 0xca, + 0x82, 0x1e, 0x31, 0x65, 0x0b, 0xe1, 0x12, 0x1f, 0x8b, 0x9a, 0x81, 0x1b, 0x5a, 0x42, 0x76, 0xfe, + 0x9f, 0x31, 0xe8, 0xe7, 0x06, 0xc9, 0x07, 0x30, 0x20, 0xee, 0x26, 0xe4, 0x64, 0x5c, 0xae, 0x43, + 0x97, 0xa0, 0xd4, 0xd4, 0x4e, 0x62, 0x82, 0x4b, 0x3e, 0xf1, 0xe1, 0x6f, 0x7f, 0x7f, 0xd6, 0x7b, + 0x84, 0x4c, 0xa8, 0x71, 0x57, 0x38, 0xf2, 0x95, 0x04, 0xc3, 0xe1, 0xf9, 0x9c, 0x9c, 0x8b, 0xb3, + 0x1e, 0x77, 0x47, 0x4a, 0xcd, 0x75, 0xa1, 0x81, 0x68, 0xf3, 0x1c, 0x6d, 0x96, 0x9c, 0x51, 0x77, + 0xbe, 0x3d, 0xaa, 0x35, 0xaf, 0x92, 0x75, 0xf2, 0x85, 0x04, 0x63, 0x61, 0x73, 0x8b, 0xa6, 0x19, + 0x8f, 0x1b, 0x77, 0x51, 0x8a, 0xc7, 0x8d, 0xbd, 0xf0, 0xc8, 0x33, 0x1c, 0xf7, 0x24, 0x99, 0xec, + 0x00, 0x97, 0xfc, 0x24, 0xc1, 0x58, 0xcb, 0x3c, 0x49, 0x16, 0xda, 0x24, 0x29, 0x6e, 0x6a, 0x4e, + 0x3d, 0xdf, 0x9d, 0x12, 0xd2, 0x5e, 0xe6, 0xb4, 0x97, 0xc8, 0x05, 0xb5, 0xa3, 0x0b, 0x37, 0xe6, + 0x57, 0xad, 0x89, 0xf7, 0xa1, 0x4e, 0xbe, 0x97, 0x60, 0xbc, 0xc5, 0xba, 0x97, 0xeb, 0x85, 0x36, + 0x99, 0xeb, 0x3e, 0x86, 0x76, 0x13, 0xbc, 0xac, 0xf0, 0x18, 0xa6, 0xc9, 0x54, 0x67, 0x31, 0x90, + 0x6f, 0x24, 0x18, 0x69, 0x1a, 0xee, 0x48, 0xbb, 0xbe, 0x8c, 0x9e, 0x5c, 0x53, 0xf3, 0xdd, 0xa8, + 0x20, 0xea, 0x02, 0x47, 0x3d, 0x4b, 0x66, 0xd4, 0x9d, 0xff, 0xa7, 0xa2, 0xd6, 0xf8, 0x63, 0x9d, + 0x7c, 0x29, 0x01, 0x69, 0x32, 0xe8, 0x65, 0xb8, 0x5d, 0x6f, 0x76, 0x8b, 0x1c, 0x3f, 0x34, 0xb7, + 0xed, 0xe7, 0x66, 0x64, 0xf2, 0xbb, 0x04, 0x87, 0x22, 0xa7, 0x41, 0x12, 0x5b, 0xda, 0x76, 0xd3, + 0x6e, 0xea, 0x7c, 0x97, 0x5a, 0xc8, 0x7c, 0x83, 0x33, 0x5f, 0x23, 0x57, 0xe3, 0x99, 0x43, 0xc3, + 0xe0, 0x6d, 0x4a, 0x9b, 0x3b, 0x5b, 0xad, 0x35, 0x26, 0xdd, 0x3a, 0xf9, 0x44, 0x82, 0x3e, 0x6f, + 0x8a, 0x22, 0x93, 0x71, 0x40, 0x81, 0x91, 0x2d, 0xf5, 0x5c, 0x7b, 0x21, 0x84, 0xbc, 0xc8, 0x21, + 0xe7, 0x88, 0x1a, 0x01, 0xe9, 0x4d, 0x65, 0x6a, 0x2d, 0xf0, 0x71, 0xaa, 0xab, 0x35, 0x9c, 0xea, + 0xea, 0xe4, 0x17, 0x09, 0x0e, 0x04, 0x07, 0x1c, 0x32, 0x13, 0xe7, 0x2f, 0x62, 0x9c, 0x4b, 0xcd, + 0x76, 0x26, 0x8c, 0x90, 0xef, 0x70, 0xc8, 0x5b, 0x64, 0x7d, 0x1b, 0x92, 0xd9, 0x66, 0x85, 0x3a, + 0x1e, 0x64, 0x68, 0x9e, 0x6b, 0xa6, 0x0d, 0x7d, 0x37, 0xeb, 0x6a, 0xad, 0x75, 0xf8, 0xab, 0x93, + 0x1f, 0x24, 0x18, 0xdc, 0x1e, 0x68, 0xc8, 0x74, 0x6c, 0xad, 0x9b, 0xe6, 0xb5, 0xd4, 0xe9, 0x0e, + 0x24, 0x91, 0xff, 0x16, 0xe7, 0xbf, 0x41, 0x56, 0x22, 0xf8, 0x1b, 0xd3, 0xda, 0x4e, 0xf0, 0x4d, + 0x73, 0x5d, 0xdd, 0xfb, 0x16, 0x42, 0x63, 0xa8, 0x21, 0xa7, 0x3b, 0x19, 0x7c, 0x04, 0xfb, 0x99, + 0xce, 0x67, 0x24, 0x79, 0x99, 0xc3, 0x5f, 0x26, 0x2f, 0x46, 0xc0, 0xeb, 0xa6, 0x89, 0x48, 0xac, + 0x3d, 0x3d, 0xf9, 0x4e, 0x02, 0x68, 0xcc, 0x14, 0xf1, 0xac, 0x2d, 0xf3, 0x51, 0x3c, 0x6b, 0xeb, + 0x60, 0x23, 0xbf, 0xce, 0x59, 0x97, 0xc9, 0x52, 0x04, 0xab, 0x4b, 0xb7, 0x3a, 0x6d, 0x93, 0xbb, + 0xb4, 0x5a, 0x5f, 0x7a, 0xed, 0xe1, 0x93, 0xb4, 0xf4, 0xe8, 0x49, 0x5a, 0xfa, 0xeb, 0x49, 0x5a, + 0x7a, 0xf0, 0x34, 0xdd, 0xf3, 0xe8, 0x69, 0xba, 0xe7, 0x8f, 0xa7, 0xe9, 0x9e, 0xb7, 0x95, 0xc0, + 0xa5, 0x8f, 0xfb, 0x39, 0x8b, 0xdf, 0x25, 0xe1, 0x74, 0xab, 0xf1, 0x12, 0xf1, 0x0b, 0x60, 0x6e, + 0x80, 0xff, 0x9b, 0x6c, 0xe1, 0xdf, 0x00, 0x00, 0x00, 0xff, 0xff, 0xb7, 0xe3, 0x84, 0x0f, 0x96, + 0x17, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -1112,6 +1551,14 @@ type QueryClient interface { DomainRegistrationFee(ctx context.Context, in *QueryDomainRegistrationFeeRequest, opts ...grpc.CallOption) (*QueryDomainRegistrationFeeResponse, error) // Queries a list of Role items. Role(ctx context.Context, in *QueryRoleRequest, opts ...grpc.CallOption) (*QueryRoleResponse, error) + // Queries a list of QueryWalletRecord items. + WalletRecord(ctx context.Context, in *QueryWalletRecordRequest, opts ...grpc.CallOption) (*QueryWalletRecordResponse, error) + // Queries a list of DnsRecord items. + DnsRecord(ctx context.Context, in *QueryDnsRecordRequest, opts ...grpc.CallOption) (*QueryDnsRecordResponse, error) + // Queries a list of AllRecord items. + AllRecords(ctx context.Context, in *QueryAllRecordsRequest, opts ...grpc.CallOption) (*QueryAllRecordsResponse, error) + // Queries a list of TextRecord items. + TextRecord(ctx context.Context, in *QueryTextRecordRequest, opts ...grpc.CallOption) (*QueryTextRecordResponse, error) } type queryClient struct { @@ -1124,7 +1571,7 @@ func NewQueryClient(cc grpc1.ClientConn) QueryClient { func (c *queryClient) Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) { out := new(QueryParamsResponse) - err := c.cc.Invoke(ctx, "/mycel.registry.v1beta1.Query/Params", in, out, opts...) + err := c.cc.Invoke(ctx, "/mycel.registry.v1.Query/Params", in, out, opts...) if err != nil { return nil, err } @@ -1133,7 +1580,7 @@ func (c *queryClient) Params(ctx context.Context, in *QueryParamsRequest, opts . func (c *queryClient) TopLevelDomain(ctx context.Context, in *QueryGetTopLevelDomainRequest, opts ...grpc.CallOption) (*QueryGetTopLevelDomainResponse, error) { out := new(QueryGetTopLevelDomainResponse) - err := c.cc.Invoke(ctx, "/mycel.registry.v1beta1.Query/TopLevelDomain", in, out, opts...) + err := c.cc.Invoke(ctx, "/mycel.registry.v1.Query/TopLevelDomain", in, out, opts...) if err != nil { return nil, err } @@ -1142,7 +1589,7 @@ func (c *queryClient) TopLevelDomain(ctx context.Context, in *QueryGetTopLevelDo func (c *queryClient) TopLevelDomainAll(ctx context.Context, in *QueryAllTopLevelDomainRequest, opts ...grpc.CallOption) (*QueryAllTopLevelDomainResponse, error) { out := new(QueryAllTopLevelDomainResponse) - err := c.cc.Invoke(ctx, "/mycel.registry.v1beta1.Query/TopLevelDomainAll", in, out, opts...) + err := c.cc.Invoke(ctx, "/mycel.registry.v1.Query/TopLevelDomainAll", in, out, opts...) if err != nil { return nil, err } @@ -1151,7 +1598,7 @@ func (c *queryClient) TopLevelDomainAll(ctx context.Context, in *QueryAllTopLeve func (c *queryClient) SecondLevelDomain(ctx context.Context, in *QueryGetSecondLevelDomainRequest, opts ...grpc.CallOption) (*QueryGetSecondLevelDomainResponse, error) { out := new(QueryGetSecondLevelDomainResponse) - err := c.cc.Invoke(ctx, "/mycel.registry.v1beta1.Query/SecondLevelDomain", in, out, opts...) + err := c.cc.Invoke(ctx, "/mycel.registry.v1.Query/SecondLevelDomain", in, out, opts...) if err != nil { return nil, err } @@ -1160,7 +1607,7 @@ func (c *queryClient) SecondLevelDomain(ctx context.Context, in *QueryGetSecondL func (c *queryClient) SecondLevelDomainAll(ctx context.Context, in *QueryAllSecondLevelDomainRequest, opts ...grpc.CallOption) (*QueryAllSecondLevelDomainResponse, error) { out := new(QueryAllSecondLevelDomainResponse) - err := c.cc.Invoke(ctx, "/mycel.registry.v1beta1.Query/SecondLevelDomainAll", in, out, opts...) + err := c.cc.Invoke(ctx, "/mycel.registry.v1.Query/SecondLevelDomainAll", in, out, opts...) if err != nil { return nil, err } @@ -1169,7 +1616,7 @@ func (c *queryClient) SecondLevelDomainAll(ctx context.Context, in *QueryAllSeco func (c *queryClient) DomainOwnership(ctx context.Context, in *QueryGetDomainOwnershipRequest, opts ...grpc.CallOption) (*QueryGetDomainOwnershipResponse, error) { out := new(QueryGetDomainOwnershipResponse) - err := c.cc.Invoke(ctx, "/mycel.registry.v1beta1.Query/DomainOwnership", in, out, opts...) + err := c.cc.Invoke(ctx, "/mycel.registry.v1.Query/DomainOwnership", in, out, opts...) if err != nil { return nil, err } @@ -1178,7 +1625,7 @@ func (c *queryClient) DomainOwnership(ctx context.Context, in *QueryGetDomainOwn func (c *queryClient) DomainOwnershipAll(ctx context.Context, in *QueryAllDomainOwnershipRequest, opts ...grpc.CallOption) (*QueryAllDomainOwnershipResponse, error) { out := new(QueryAllDomainOwnershipResponse) - err := c.cc.Invoke(ctx, "/mycel.registry.v1beta1.Query/DomainOwnershipAll", in, out, opts...) + err := c.cc.Invoke(ctx, "/mycel.registry.v1.Query/DomainOwnershipAll", in, out, opts...) if err != nil { return nil, err } @@ -1187,7 +1634,7 @@ func (c *queryClient) DomainOwnershipAll(ctx context.Context, in *QueryAllDomain func (c *queryClient) DomainRegistrationFee(ctx context.Context, in *QueryDomainRegistrationFeeRequest, opts ...grpc.CallOption) (*QueryDomainRegistrationFeeResponse, error) { out := new(QueryDomainRegistrationFeeResponse) - err := c.cc.Invoke(ctx, "/mycel.registry.v1beta1.Query/DomainRegistrationFee", in, out, opts...) + err := c.cc.Invoke(ctx, "/mycel.registry.v1.Query/DomainRegistrationFee", in, out, opts...) if err != nil { return nil, err } @@ -1196,23 +1643,59 @@ func (c *queryClient) DomainRegistrationFee(ctx context.Context, in *QueryDomain func (c *queryClient) Role(ctx context.Context, in *QueryRoleRequest, opts ...grpc.CallOption) (*QueryRoleResponse, error) { out := new(QueryRoleResponse) - err := c.cc.Invoke(ctx, "/mycel.registry.v1beta1.Query/Role", in, out, opts...) + err := c.cc.Invoke(ctx, "/mycel.registry.v1.Query/Role", in, out, opts...) if err != nil { return nil, err } return out, nil } -// 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 TopLevelDomain items. - TopLevelDomain(context.Context, *QueryGetTopLevelDomainRequest) (*QueryGetTopLevelDomainResponse, error) - TopLevelDomainAll(context.Context, *QueryAllTopLevelDomainRequest) (*QueryAllTopLevelDomainResponse, error) - // Queries a list of SecondLevelDomain items. - SecondLevelDomain(context.Context, *QueryGetSecondLevelDomainRequest) (*QueryGetSecondLevelDomainResponse, error) - SecondLevelDomainAll(context.Context, *QueryAllSecondLevelDomainRequest) (*QueryAllSecondLevelDomainResponse, error) +func (c *queryClient) WalletRecord(ctx context.Context, in *QueryWalletRecordRequest, opts ...grpc.CallOption) (*QueryWalletRecordResponse, error) { + out := new(QueryWalletRecordResponse) + err := c.cc.Invoke(ctx, "/mycel.registry.v1.Query/WalletRecord", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) DnsRecord(ctx context.Context, in *QueryDnsRecordRequest, opts ...grpc.CallOption) (*QueryDnsRecordResponse, error) { + out := new(QueryDnsRecordResponse) + err := c.cc.Invoke(ctx, "/mycel.registry.v1.Query/DnsRecord", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) AllRecords(ctx context.Context, in *QueryAllRecordsRequest, opts ...grpc.CallOption) (*QueryAllRecordsResponse, error) { + out := new(QueryAllRecordsResponse) + err := c.cc.Invoke(ctx, "/mycel.registry.v1.Query/AllRecords", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) TextRecord(ctx context.Context, in *QueryTextRecordRequest, opts ...grpc.CallOption) (*QueryTextRecordResponse, error) { + out := new(QueryTextRecordResponse) + err := c.cc.Invoke(ctx, "/mycel.registry.v1.Query/TextRecord", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// 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 TopLevelDomain items. + TopLevelDomain(context.Context, *QueryGetTopLevelDomainRequest) (*QueryGetTopLevelDomainResponse, error) + TopLevelDomainAll(context.Context, *QueryAllTopLevelDomainRequest) (*QueryAllTopLevelDomainResponse, error) + // Queries a list of SecondLevelDomain items. + SecondLevelDomain(context.Context, *QueryGetSecondLevelDomainRequest) (*QueryGetSecondLevelDomainResponse, error) + SecondLevelDomainAll(context.Context, *QueryAllSecondLevelDomainRequest) (*QueryAllSecondLevelDomainResponse, error) // Queries a list of DomainOwnership items. DomainOwnership(context.Context, *QueryGetDomainOwnershipRequest) (*QueryGetDomainOwnershipResponse, error) DomainOwnershipAll(context.Context, *QueryAllDomainOwnershipRequest) (*QueryAllDomainOwnershipResponse, error) @@ -1220,6 +1703,14 @@ type QueryServer interface { DomainRegistrationFee(context.Context, *QueryDomainRegistrationFeeRequest) (*QueryDomainRegistrationFeeResponse, error) // Queries a list of Role items. Role(context.Context, *QueryRoleRequest) (*QueryRoleResponse, error) + // Queries a list of QueryWalletRecord items. + WalletRecord(context.Context, *QueryWalletRecordRequest) (*QueryWalletRecordResponse, error) + // Queries a list of DnsRecord items. + DnsRecord(context.Context, *QueryDnsRecordRequest) (*QueryDnsRecordResponse, error) + // Queries a list of AllRecord items. + AllRecords(context.Context, *QueryAllRecordsRequest) (*QueryAllRecordsResponse, error) + // Queries a list of TextRecord items. + TextRecord(context.Context, *QueryTextRecordRequest) (*QueryTextRecordResponse, error) } // UnimplementedQueryServer can be embedded to have forward compatible implementations. @@ -1253,6 +1744,18 @@ func (*UnimplementedQueryServer) DomainRegistrationFee(ctx context.Context, req func (*UnimplementedQueryServer) Role(ctx context.Context, req *QueryRoleRequest) (*QueryRoleResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method Role not implemented") } +func (*UnimplementedQueryServer) WalletRecord(ctx context.Context, req *QueryWalletRecordRequest) (*QueryWalletRecordResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method WalletRecord not implemented") +} +func (*UnimplementedQueryServer) DnsRecord(ctx context.Context, req *QueryDnsRecordRequest) (*QueryDnsRecordResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method DnsRecord not implemented") +} +func (*UnimplementedQueryServer) AllRecords(ctx context.Context, req *QueryAllRecordsRequest) (*QueryAllRecordsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method AllRecords not implemented") +} +func (*UnimplementedQueryServer) TextRecord(ctx context.Context, req *QueryTextRecordRequest) (*QueryTextRecordResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method TextRecord not implemented") +} func RegisterQueryServer(s grpc1.Server, srv QueryServer) { s.RegisterService(&_Query_serviceDesc, srv) @@ -1268,7 +1771,7 @@ func _Query_Params_Handler(srv interface{}, ctx context.Context, dec func(interf } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mycel.registry.v1beta1.Query/Params", + FullMethod: "/mycel.registry.v1.Query/Params", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).Params(ctx, req.(*QueryParamsRequest)) @@ -1286,7 +1789,7 @@ func _Query_TopLevelDomain_Handler(srv interface{}, ctx context.Context, dec fun } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mycel.registry.v1beta1.Query/TopLevelDomain", + FullMethod: "/mycel.registry.v1.Query/TopLevelDomain", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).TopLevelDomain(ctx, req.(*QueryGetTopLevelDomainRequest)) @@ -1304,7 +1807,7 @@ func _Query_TopLevelDomainAll_Handler(srv interface{}, ctx context.Context, dec } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mycel.registry.v1beta1.Query/TopLevelDomainAll", + FullMethod: "/mycel.registry.v1.Query/TopLevelDomainAll", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).TopLevelDomainAll(ctx, req.(*QueryAllTopLevelDomainRequest)) @@ -1322,7 +1825,7 @@ func _Query_SecondLevelDomain_Handler(srv interface{}, ctx context.Context, dec } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mycel.registry.v1beta1.Query/SecondLevelDomain", + FullMethod: "/mycel.registry.v1.Query/SecondLevelDomain", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).SecondLevelDomain(ctx, req.(*QueryGetSecondLevelDomainRequest)) @@ -1340,7 +1843,7 @@ func _Query_SecondLevelDomainAll_Handler(srv interface{}, ctx context.Context, d } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mycel.registry.v1beta1.Query/SecondLevelDomainAll", + FullMethod: "/mycel.registry.v1.Query/SecondLevelDomainAll", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).SecondLevelDomainAll(ctx, req.(*QueryAllSecondLevelDomainRequest)) @@ -1358,7 +1861,7 @@ func _Query_DomainOwnership_Handler(srv interface{}, ctx context.Context, dec fu } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mycel.registry.v1beta1.Query/DomainOwnership", + FullMethod: "/mycel.registry.v1.Query/DomainOwnership", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).DomainOwnership(ctx, req.(*QueryGetDomainOwnershipRequest)) @@ -1376,7 +1879,7 @@ func _Query_DomainOwnershipAll_Handler(srv interface{}, ctx context.Context, dec } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mycel.registry.v1beta1.Query/DomainOwnershipAll", + FullMethod: "/mycel.registry.v1.Query/DomainOwnershipAll", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).DomainOwnershipAll(ctx, req.(*QueryAllDomainOwnershipRequest)) @@ -1394,7 +1897,7 @@ func _Query_DomainRegistrationFee_Handler(srv interface{}, ctx context.Context, } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mycel.registry.v1beta1.Query/DomainRegistrationFee", + FullMethod: "/mycel.registry.v1.Query/DomainRegistrationFee", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).DomainRegistrationFee(ctx, req.(*QueryDomainRegistrationFeeRequest)) @@ -1412,7 +1915,7 @@ func _Query_Role_Handler(srv interface{}, ctx context.Context, dec func(interfac } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mycel.registry.v1beta1.Query/Role", + FullMethod: "/mycel.registry.v1.Query/Role", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).Role(ctx, req.(*QueryRoleRequest)) @@ -1420,8 +1923,80 @@ func _Query_Role_Handler(srv interface{}, ctx context.Context, dec func(interfac return interceptor(ctx, in, info, handler) } +func _Query_WalletRecord_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryWalletRecordRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).WalletRecord(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/mycel.registry.v1.Query/WalletRecord", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).WalletRecord(ctx, req.(*QueryWalletRecordRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_DnsRecord_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryDnsRecordRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).DnsRecord(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/mycel.registry.v1.Query/DnsRecord", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).DnsRecord(ctx, req.(*QueryDnsRecordRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_AllRecords_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryAllRecordsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).AllRecords(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/mycel.registry.v1.Query/AllRecords", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).AllRecords(ctx, req.(*QueryAllRecordsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_TextRecord_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryTextRecordRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).TextRecord(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/mycel.registry.v1.Query/TextRecord", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).TextRecord(ctx, req.(*QueryTextRecordRequest)) + } + return interceptor(ctx, in, info, handler) +} + var _Query_serviceDesc = grpc.ServiceDesc{ - ServiceName: "mycel.registry.v1beta1.Query", + ServiceName: "mycel.registry.v1.Query", HandlerType: (*QueryServer)(nil), Methods: []grpc.MethodDesc{ { @@ -1460,9 +2035,25 @@ var _Query_serviceDesc = grpc.ServiceDesc{ MethodName: "Role", Handler: _Query_Role_Handler, }, + { + MethodName: "WalletRecord", + Handler: _Query_WalletRecord_Handler, + }, + { + MethodName: "DnsRecord", + Handler: _Query_DnsRecord_Handler, + }, + { + MethodName: "AllRecords", + Handler: _Query_AllRecords_Handler, + }, + { + MethodName: "TextRecord", + Handler: _Query_TextRecord_Handler, + }, }, Streams: []grpc.StreamDesc{}, - Metadata: "mycel/registry/v1beta1/query.proto", + Metadata: "mycel/registry/v1/query.proto", } func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error) { @@ -2194,197 +2785,385 @@ func (m *QueryRoleResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func encodeVarintQuery(dAtA []byte, offset int, v uint64) int { - offset -= sovQuery(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *QueryParamsRequest) Size() (n int) { - if m == nil { - return 0 +func (m *QueryWalletRecordRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } - var l int - _ = l - return n + return dAtA[:n], nil } -func (m *QueryParamsResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.Params.Size() - n += 1 + l + sovQuery(uint64(l)) - return n +func (m *QueryWalletRecordRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryGetTopLevelDomainRequest) Size() (n int) { - if m == nil { - return 0 - } +func (m *QueryWalletRecordRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - l = len(m.Name) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) + if len(m.WalletRecordType) > 0 { + i -= len(m.WalletRecordType) + copy(dAtA[i:], m.WalletRecordType) + i = encodeVarintQuery(dAtA, i, uint64(len(m.WalletRecordType))) + i-- + dAtA[i] = 0x1a } - return n + if len(m.DomainParent) > 0 { + i -= len(m.DomainParent) + copy(dAtA[i:], m.DomainParent) + i = encodeVarintQuery(dAtA, i, uint64(len(m.DomainParent))) + i-- + dAtA[i] = 0x12 + } + if len(m.DomainName) > 0 { + i -= len(m.DomainName) + copy(dAtA[i:], m.DomainName) + i = encodeVarintQuery(dAtA, i, uint64(len(m.DomainName))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } -func (m *QueryGetTopLevelDomainResponse) Size() (n int) { - if m == nil { - return 0 +func (m *QueryWalletRecordResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } - var l int - _ = l - l = m.TopLevelDomain.Size() - n += 1 + l + sovQuery(uint64(l)) - return n + return dAtA[:n], nil } -func (m *QueryAllTopLevelDomainRequest) 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 *QueryWalletRecordResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryAllTopLevelDomainResponse) Size() (n int) { - if m == nil { - return 0 - } +func (m *QueryWalletRecordResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - if len(m.TopLevelDomain) > 0 { - for _, e := range m.TopLevelDomain { - l = e.Size() - n += 1 + l + sovQuery(uint64(l)) + if m.Value != nil { + { + size, err := m.Value.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) } + i-- + dAtA[i] = 0xa } - if m.Pagination != nil { - l = m.Pagination.Size() - n += 1 + l + sovQuery(uint64(l)) - } - return n + return len(dAtA) - i, nil } -func (m *QueryGetSecondLevelDomainRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Name) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) - } - l = len(m.Parent) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) +func (m *QueryDnsRecordRequest) 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 n + return dAtA[:n], nil } -func (m *SecondLevelDomainResponse) Size() (n int) { - if m == nil { - return 0 - } +func (m *QueryDnsRecordRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryDnsRecordRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - l = len(m.Name) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) + if len(m.DnsRecordType) > 0 { + i -= len(m.DnsRecordType) + copy(dAtA[i:], m.DnsRecordType) + i = encodeVarintQuery(dAtA, i, uint64(len(m.DnsRecordType))) + i-- + dAtA[i] = 0x1a } - l = len(m.Parent) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) + if len(m.DomainParent) > 0 { + i -= len(m.DomainParent) + copy(dAtA[i:], m.DomainParent) + i = encodeVarintQuery(dAtA, i, uint64(len(m.DomainParent))) + i-- + dAtA[i] = 0x12 } - l = github_com_cosmos_gogoproto_types.SizeOfStdTime(m.ExpirationDate) - n += 1 + l + sovQuery(uint64(l)) - return n + if len(m.DomainName) > 0 { + i -= len(m.DomainName) + copy(dAtA[i:], m.DomainName) + i = encodeVarintQuery(dAtA, i, uint64(len(m.DomainName))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } -func (m *QueryGetSecondLevelDomainResponse) Size() (n int) { - if m == nil { - return 0 +func (m *QueryDnsRecordResponse) 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 *QueryDnsRecordResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryDnsRecordResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - l = m.SecondLevelDomain.Size() - n += 1 + l + sovQuery(uint64(l)) - return n + if m.Value != nil { + { + size, err := m.Value.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 *QueryAllSecondLevelDomainRequest) Size() (n int) { +func (m *QueryAllRecordsRequest) 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 *QueryAllRecordsRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryAllRecordsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.DomainParent) > 0 { + i -= len(m.DomainParent) + copy(dAtA[i:], m.DomainParent) + i = encodeVarintQuery(dAtA, i, uint64(len(m.DomainParent))) + i-- + dAtA[i] = 0x12 + } + if len(m.DomainName) > 0 { + i -= len(m.DomainName) + copy(dAtA[i:], m.DomainName) + i = encodeVarintQuery(dAtA, i, uint64(len(m.DomainName))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *QueryAllRecordsResponse) 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 *QueryAllRecordsResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryAllRecordsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Values) > 0 { + for k := range m.Values { + v := m.Values[k] + baseI := i + if v != nil { + { + size, err := v.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + i -= len(k) + copy(dAtA[i:], k) + i = encodeVarintQuery(dAtA, i, uint64(len(k))) + i-- + dAtA[i] = 0xa + i = encodeVarintQuery(dAtA, i, uint64(baseI-i)) + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *QueryTextRecordRequest) 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 *QueryTextRecordRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryTextRecordRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Key) > 0 { + i -= len(m.Key) + copy(dAtA[i:], m.Key) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Key))) + i-- + dAtA[i] = 0x1a + } + if len(m.DomainParent) > 0 { + i -= len(m.DomainParent) + copy(dAtA[i:], m.DomainParent) + i = encodeVarintQuery(dAtA, i, uint64(len(m.DomainParent))) + i-- + dAtA[i] = 0x12 + } + if len(m.DomainName) > 0 { + i -= len(m.DomainName) + copy(dAtA[i:], m.DomainName) + i = encodeVarintQuery(dAtA, i, uint64(len(m.DomainName))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *QueryTextRecordResponse) 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 *QueryTextRecordResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryTextRecordResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Value != nil { + { + size, err := m.Value.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 + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *QueryParamsRequest) 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 *QueryAllSecondLevelDomainResponse) Size() (n int) { +func (m *QueryParamsResponse) Size() (n int) { if m == nil { return 0 } var l int _ = l - if len(m.SecondLevelDomain) > 0 { - for _, e := range m.SecondLevelDomain { - l = e.Size() - n += 1 + l + sovQuery(uint64(l)) - } - } - if m.Pagination != nil { - l = m.Pagination.Size() - n += 1 + l + sovQuery(uint64(l)) - } + l = m.Params.Size() + n += 1 + l + sovQuery(uint64(l)) return n } -func (m *QueryGetDomainOwnershipRequest) Size() (n int) { +func (m *QueryGetTopLevelDomainRequest) Size() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.Owner) + l = len(m.Name) if l > 0 { n += 1 + l + sovQuery(uint64(l)) } return n } -func (m *QueryGetDomainOwnershipResponse) Size() (n int) { +func (m *QueryGetTopLevelDomainResponse) Size() (n int) { if m == nil { return 0 } var l int _ = l - l = m.DomainOwnership.Size() + l = m.TopLevelDomain.Size() n += 1 + l + sovQuery(uint64(l)) return n } -func (m *QueryAllDomainOwnershipRequest) Size() (n int) { +func (m *QueryAllTopLevelDomainRequest) Size() (n int) { if m == nil { return 0 } @@ -2397,14 +3176,14 @@ func (m *QueryAllDomainOwnershipRequest) Size() (n int) { return n } -func (m *QueryAllDomainOwnershipResponse) Size() (n int) { +func (m *QueryAllTopLevelDomainResponse) Size() (n int) { if m == nil { return 0 } var l int _ = l - if len(m.DomainOwnership) > 0 { - for _, e := range m.DomainOwnership { + if len(m.TopLevelDomain) > 0 { + for _, e := range m.TopLevelDomain { l = e.Size() n += 1 + l + sovQuery(uint64(l)) } @@ -2416,7 +3195,7 @@ func (m *QueryAllDomainOwnershipResponse) Size() (n int) { return n } -func (m *QueryDomainRegistrationFeeRequest) Size() (n int) { +func (m *QueryGetSecondLevelDomainRequest) Size() (n int) { if m == nil { return 0 } @@ -2430,83 +3209,1207 @@ func (m *QueryDomainRegistrationFeeRequest) Size() (n int) { if l > 0 { n += 1 + l + sovQuery(uint64(l)) } - if m.RegistrationPeriodInYear != 0 { - n += 1 + sovQuery(uint64(m.RegistrationPeriodInYear)) - } - l = len(m.Registerer) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) - } return n } -func (m *QueryDomainRegistrationFeeResponse) Size() (n int) { +func (m *SecondLevelDomainResponse) Size() (n int) { if m == nil { return 0 } var l int _ = l - if m.IsRegistrable { - n += 2 - } - if len(m.Fee) > 0 { - for _, e := range m.Fee { - l = e.Size() - n += 1 + l + sovQuery(uint64(l)) - } - } - if m.RegistrationPeriodInYear != 0 { - n += 1 + sovQuery(uint64(m.RegistrationPeriodInYear)) - } - if m.MaxSubDomainRegistrations != 0 { - n += 1 + sovQuery(uint64(m.MaxSubDomainRegistrations)) + l = len(m.Name) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) } - l = len(m.ErrorMessage) + l = len(m.Parent) if l > 0 { n += 1 + l + sovQuery(uint64(l)) } + l = github_com_cosmos_gogoproto_types.SizeOfStdTime(m.ExpirationDate) + n += 1 + l + sovQuery(uint64(l)) return n } -func (m *QueryRoleRequest) Size() (n int) { +func (m *QueryGetSecondLevelDomainResponse) Size() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.DomainName) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) - } - l = len(m.Address) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) - } + l = m.SecondLevelDomain.Size() + n += 1 + l + sovQuery(uint64(l)) return n } -func (m *QueryRoleResponse) Size() (n int) { +func (m *QueryAllSecondLevelDomainRequest) Size() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.Role) - if l > 0 { + 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 { - l := len(dAtA) - iNdEx := 0 +func (m *QueryAllSecondLevelDomainResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.SecondLevelDomain) > 0 { + for _, e := range m.SecondLevelDomain { + 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 (m *QueryGetDomainOwnershipRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Owner) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryGetDomainOwnershipResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.DomainOwnership.Size() + n += 1 + l + sovQuery(uint64(l)) + return n +} + +func (m *QueryAllDomainOwnershipRequest) 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 *QueryAllDomainOwnershipResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.DomainOwnership) > 0 { + for _, e := range m.DomainOwnership { + 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 (m *QueryDomainRegistrationFeeRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Name) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.Parent) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + if m.RegistrationPeriodInYear != 0 { + n += 1 + sovQuery(uint64(m.RegistrationPeriodInYear)) + } + l = len(m.Registerer) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryDomainRegistrationFeeResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.IsRegistrable { + n += 2 + } + if len(m.Fee) > 0 { + for _, e := range m.Fee { + l = e.Size() + n += 1 + l + sovQuery(uint64(l)) + } + } + if m.RegistrationPeriodInYear != 0 { + n += 1 + sovQuery(uint64(m.RegistrationPeriodInYear)) + } + if m.MaxSubDomainRegistrations != 0 { + n += 1 + sovQuery(uint64(m.MaxSubDomainRegistrations)) + } + l = len(m.ErrorMessage) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryRoleRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.DomainName) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.Address) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryRoleResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Role) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryWalletRecordRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.DomainName) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.DomainParent) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.WalletRecordType) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryWalletRecordResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Value != nil { + l = m.Value.Size() + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryDnsRecordRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.DomainName) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.DomainParent) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.DnsRecordType) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryDnsRecordResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Value != nil { + l = m.Value.Size() + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryAllRecordsRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.DomainName) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.DomainParent) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryAllRecordsResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Values) > 0 { + for k, v := range m.Values { + _ = k + _ = v + l = 0 + if v != nil { + l = v.Size() + l += 1 + sovQuery(uint64(l)) + } + mapEntrySize := 1 + len(k) + sovQuery(uint64(len(k))) + l + n += mapEntrySize + 1 + sovQuery(uint64(mapEntrySize)) + } + } + return n +} + +func (m *QueryTextRecordRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.DomainName) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.DomainParent) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.Key) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryTextRecordResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Value != nil { + l = m.Value.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 { + 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: QueryParamsRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryParamsRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryParamsResponse) 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: QueryParamsResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryParamsResponse: 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) + } + 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 err := m.Params.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 *QueryGetTopLevelDomainRequest) 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: QueryGetTopLevelDomainRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryGetTopLevelDomainRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + 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 *QueryGetTopLevelDomainResponse) 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: QueryGetTopLevelDomainResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryGetTopLevelDomainResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TopLevelDomain", 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 err := m.TopLevelDomain.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 *QueryAllTopLevelDomainRequest) 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: QueryAllTopLevelDomainRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryAllTopLevelDomainRequest: 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 *QueryAllTopLevelDomainResponse) 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: QueryAllTopLevelDomainResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryAllTopLevelDomainResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TopLevelDomain", 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.TopLevelDomain = append(m.TopLevelDomain, TopLevelDomain{}) + if err := m.TopLevelDomain[len(m.TopLevelDomain)-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 (m *QueryGetSecondLevelDomainRequest) 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: QueryGetSecondLevelDomainRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryGetSecondLevelDomainRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Parent", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Parent = string(dAtA[iNdEx:postIndex]) + 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 *SecondLevelDomainResponse) 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: SecondLevelDomainResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SecondLevelDomainResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Parent", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Parent = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ExpirationDate", 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 err := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(&m.ExpirationDate, 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 *QueryGetSecondLevelDomainResponse) 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: QueryGetSecondLevelDomainResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryGetSecondLevelDomainResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SecondLevelDomain", 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 err := m.SecondLevelDomain.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 *QueryAllSecondLevelDomainRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 @@ -2514,25 +4417,61 @@ func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error { if shift >= 64 { return ErrIntOverflowQuery } - if iNdEx >= l { + 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: QueryAllSecondLevelDomainRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryAllSecondLevelDomainRequest: 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 } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break + if m.Pagination == nil { + m.Pagination = &query.PageRequest{} } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: QueryParamsRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryParamsRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { + if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) @@ -2554,7 +4493,7 @@ func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error { +func (m *QueryAllSecondLevelDomainResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -2577,15 +4516,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: QueryAllSecondLevelDomainResponse: 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: QueryAllSecondLevelDomainResponse: 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 SecondLevelDomain", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -2612,7 +4551,44 @@ func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.Params.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + m.SecondLevelDomain = append(m.SecondLevelDomain, SecondLevelDomainResponse{}) + if err := m.SecondLevelDomain[len(m.SecondLevelDomain)-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 @@ -2637,7 +4613,7 @@ func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryGetTopLevelDomainRequest) Unmarshal(dAtA []byte) error { +func (m *QueryGetDomainOwnershipRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -2660,15 +4636,15 @@ func (m *QueryGetTopLevelDomainRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryGetTopLevelDomainRequest: wiretype end group for non-group") + return fmt.Errorf("proto: QueryGetDomainOwnershipRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryGetTopLevelDomainRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryGetDomainOwnershipRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Owner", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -2696,7 +4672,7 @@ func (m *QueryGetTopLevelDomainRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Name = string(dAtA[iNdEx:postIndex]) + m.Owner = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -2719,7 +4695,7 @@ func (m *QueryGetTopLevelDomainRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryGetTopLevelDomainResponse) Unmarshal(dAtA []byte) error { +func (m *QueryGetDomainOwnershipResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -2742,15 +4718,15 @@ func (m *QueryGetTopLevelDomainResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryGetTopLevelDomainResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryGetDomainOwnershipResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryGetTopLevelDomainResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryGetDomainOwnershipResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TopLevelDomain", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field DomainOwnership", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -2777,7 +4753,7 @@ func (m *QueryGetTopLevelDomainResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.TopLevelDomain.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.DomainOwnership.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -2802,7 +4778,7 @@ func (m *QueryGetTopLevelDomainResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryAllTopLevelDomainRequest) Unmarshal(dAtA []byte) error { +func (m *QueryAllDomainOwnershipRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -2825,10 +4801,10 @@ func (m *QueryAllTopLevelDomainRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryAllTopLevelDomainRequest: wiretype end group for non-group") + return fmt.Errorf("proto: QueryAllDomainOwnershipRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryAllTopLevelDomainRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryAllDomainOwnershipRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -2888,7 +4864,7 @@ func (m *QueryAllTopLevelDomainRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryAllTopLevelDomainResponse) Unmarshal(dAtA []byte) error { +func (m *QueryAllDomainOwnershipResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -2911,15 +4887,15 @@ func (m *QueryAllTopLevelDomainResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryAllTopLevelDomainResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryAllDomainOwnershipResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryAllTopLevelDomainResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryAllDomainOwnershipResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TopLevelDomain", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field DomainOwnership", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -2946,8 +4922,8 @@ func (m *QueryAllTopLevelDomainResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.TopLevelDomain = append(m.TopLevelDomain, TopLevelDomain{}) - if err := m.TopLevelDomain[len(m.TopLevelDomain)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + m.DomainOwnership = append(m.DomainOwnership, DomainOwnership{}) + if err := m.DomainOwnership[len(m.DomainOwnership)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -3008,7 +4984,7 @@ func (m *QueryAllTopLevelDomainResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryGetSecondLevelDomainRequest) Unmarshal(dAtA []byte) error { +func (m *QueryDomainRegistrationFeeRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -3031,10 +5007,10 @@ func (m *QueryGetSecondLevelDomainRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryGetSecondLevelDomainRequest: wiretype end group for non-group") + return fmt.Errorf("proto: QueryDomainRegistrationFeeRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryGetSecondLevelDomainRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryDomainRegistrationFeeRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -3101,6 +5077,57 @@ func (m *QueryGetSecondLevelDomainRequest) Unmarshal(dAtA []byte) error { } m.Parent = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RegistrationPeriodInYear", wireType) + } + m.RegistrationPeriodInYear = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.RegistrationPeriodInYear |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Registerer", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Registerer = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) @@ -3122,7 +5149,7 @@ func (m *QueryGetSecondLevelDomainRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *SecondLevelDomainResponse) Unmarshal(dAtA []byte) error { +func (m *QueryDomainRegistrationFeeResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -3145,17 +5172,17 @@ func (m *SecondLevelDomainResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: SecondLevelDomainResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryDomainRegistrationFeeResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: SecondLevelDomainResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryDomainRegistrationFeeResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IsRegistrable", wireType) } - var stringLen uint64 + var v int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -3165,29 +5192,17 @@ func (m *SecondLevelDomainResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex + m.IsRegistrable = bool(v != 0) case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Parent", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Fee", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -3197,29 +5212,69 @@ func (m *SecondLevelDomainResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return ErrInvalidLengthQuery } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthQuery } if postIndex > l { return io.ErrUnexpectedEOF } - m.Parent = string(dAtA[iNdEx:postIndex]) + m.Fee = append(m.Fee, types.Coin{}) + if err := m.Fee[len(m.Fee)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RegistrationPeriodInYear", wireType) + } + m.RegistrationPeriodInYear = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.RegistrationPeriodInYear |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxSubDomainRegistrations", wireType) + } + m.MaxSubDomainRegistrations = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.MaxSubDomainRegistrations |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ExpirationDate", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ErrorMessage", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -3229,24 +5284,23 @@ func (m *SecondLevelDomainResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return ErrInvalidLengthQuery } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthQuery } if postIndex > l { return io.ErrUnexpectedEOF } - if err := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(&m.ExpirationDate, dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.ErrorMessage = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -3269,7 +5323,7 @@ func (m *SecondLevelDomainResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryGetSecondLevelDomainResponse) Unmarshal(dAtA []byte) error { +func (m *QueryRoleRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -3292,17 +5346,17 @@ func (m *QueryGetSecondLevelDomainResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryGetSecondLevelDomainResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryRoleRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryGetSecondLevelDomainResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryRoleRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SecondLevelDomain", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field DomainName", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -3312,24 +5366,55 @@ func (m *QueryGetSecondLevelDomainResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return ErrInvalidLengthQuery } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthQuery } if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.SecondLevelDomain.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err + m.DomainName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Address = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -3352,7 +5437,7 @@ func (m *QueryGetSecondLevelDomainResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryAllSecondLevelDomainRequest) Unmarshal(dAtA []byte) error { +func (m *QueryRoleResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -3375,17 +5460,17 @@ func (m *QueryAllSecondLevelDomainRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryAllSecondLevelDomainRequest: wiretype end group for non-group") + return fmt.Errorf("proto: QueryRoleResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryAllSecondLevelDomainRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryRoleResponse: 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) + return fmt.Errorf("proto: wrong wireType = %d for field Role", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -3395,27 +5480,23 @@ func (m *QueryAllSecondLevelDomainRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return ErrInvalidLengthQuery } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen 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 - } + m.Role = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -3438,7 +5519,7 @@ func (m *QueryAllSecondLevelDomainRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryAllSecondLevelDomainResponse) Unmarshal(dAtA []byte) error { +func (m *QueryWalletRecordRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -3461,17 +5542,17 @@ func (m *QueryAllSecondLevelDomainResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryAllSecondLevelDomainResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryWalletRecordRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryAllSecondLevelDomainResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryWalletRecordRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SecondLevelDomain", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field DomainName", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -3481,31 +5562,29 @@ func (m *QueryAllSecondLevelDomainResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return ErrInvalidLengthQuery } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthQuery } if postIndex > l { return io.ErrUnexpectedEOF } - m.SecondLevelDomain = append(m.SecondLevelDomain, SecondLevelDomainResponse{}) - if err := m.SecondLevelDomain[len(m.SecondLevelDomain)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.DomainName = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field DomainParent", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -3515,81 +5594,27 @@ func (m *QueryAllSecondLevelDomainResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return ErrInvalidLengthQuery } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen 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 - } + m.DomainParent = string(dAtA[iNdEx:postIndex]) 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 *QueryGetDomainOwnershipRequest) 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: QueryGetDomainOwnershipRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryGetDomainOwnershipRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: + case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Owner", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field WalletRecordType", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -3617,7 +5642,7 @@ func (m *QueryGetDomainOwnershipRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Owner = string(dAtA[iNdEx:postIndex]) + m.WalletRecordType = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -3640,7 +5665,7 @@ func (m *QueryGetDomainOwnershipRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryGetDomainOwnershipResponse) Unmarshal(dAtA []byte) error { +func (m *QueryWalletRecordResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -3663,15 +5688,15 @@ func (m *QueryGetDomainOwnershipResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryGetDomainOwnershipResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryWalletRecordResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryGetDomainOwnershipResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryWalletRecordResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DomainOwnership", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -3698,7 +5723,10 @@ func (m *QueryGetDomainOwnershipResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.DomainOwnership.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if m.Value == nil { + m.Value = &WalletRecord{} + } + if err := m.Value.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -3723,7 +5751,7 @@ func (m *QueryGetDomainOwnershipResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryAllDomainOwnershipRequest) Unmarshal(dAtA []byte) error { +func (m *QueryDnsRecordRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -3746,17 +5774,17 @@ func (m *QueryAllDomainOwnershipRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryAllDomainOwnershipRequest: wiretype end group for non-group") + return fmt.Errorf("proto: QueryDnsRecordRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryAllDomainOwnershipRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryDnsRecordRequest: 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) + return fmt.Errorf("proto: wrong wireType = %d for field DomainName", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -3766,27 +5794,87 @@ func (m *QueryAllDomainOwnershipRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.DomainName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DomainParent", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.DomainParent = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DnsRecordType", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { return ErrInvalidLengthQuery } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen 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 - } + m.DnsRecordType = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -3809,7 +5897,7 @@ func (m *QueryAllDomainOwnershipRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryAllDomainOwnershipResponse) Unmarshal(dAtA []byte) error { +func (m *QueryDnsRecordResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -3832,49 +5920,15 @@ func (m *QueryAllDomainOwnershipResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryAllDomainOwnershipResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryDnsRecordResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryAllDomainOwnershipResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryDnsRecordResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DomainOwnership", 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.DomainOwnership = append(m.DomainOwnership, DomainOwnership{}) - if err := m.DomainOwnership[len(m.DomainOwnership)-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) + return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -3901,10 +5955,10 @@ func (m *QueryAllDomainOwnershipResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Pagination == nil { - m.Pagination = &query.PageResponse{} + if m.Value == nil { + m.Value = &DnsRecord{} } - if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Value.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -3929,7 +5983,7 @@ func (m *QueryAllDomainOwnershipResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryDomainRegistrationFeeRequest) Unmarshal(dAtA []byte) error { +func (m *QueryAllRecordsRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -3952,15 +6006,15 @@ func (m *QueryDomainRegistrationFeeRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryDomainRegistrationFeeRequest: wiretype end group for non-group") + return fmt.Errorf("proto: QueryAllRecordsRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryDomainRegistrationFeeRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryAllRecordsRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field DomainName", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -3988,62 +6042,11 @@ func (m *QueryDomainRegistrationFeeRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Name = string(dAtA[iNdEx:postIndex]) + m.DomainName = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Parent", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Parent = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field RegistrationPeriodInYear", wireType) - } - m.RegistrationPeriodInYear = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.RegistrationPeriodInYear |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Registerer", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field DomainParent", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -4071,7 +6074,7 @@ func (m *QueryDomainRegistrationFeeRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Registerer = string(dAtA[iNdEx:postIndex]) + m.DomainParent = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -4094,7 +6097,7 @@ func (m *QueryDomainRegistrationFeeRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryDomainRegistrationFeeResponse) Unmarshal(dAtA []byte) error { +func (m *QueryAllRecordsResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -4117,35 +6120,15 @@ func (m *QueryDomainRegistrationFeeResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryDomainRegistrationFeeResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryAllRecordsResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryDomainRegistrationFeeResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryAllRecordsResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field IsRegistrable", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.IsRegistrable = bool(v != 0) - case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Fee", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Values", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -4172,80 +6155,105 @@ func (m *QueryDomainRegistrationFeeResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Fee = append(m.Fee, types.Coin{}) - if err := m.Fee[len(m.Fee)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field RegistrationPeriodInYear", wireType) - } - m.RegistrationPeriodInYear = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.RegistrationPeriodInYear |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field MaxSubDomainRegistrations", wireType) - } - m.MaxSubDomainRegistrations = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.MaxSubDomainRegistrations |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ErrorMessage", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery + if m.Values == nil { + m.Values = make(map[string]*Record) + } + var mapkey string + var mapvalue *Record + for iNdEx < postIndex { + entryPreIndex := 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 + } } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break + fieldNum := int32(wire >> 3) + if fieldNum == 1 { + var stringLenmapkey uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLenmapkey |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLenmapkey := int(stringLenmapkey) + if intStringLenmapkey < 0 { + return ErrInvalidLengthQuery + } + postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return ErrInvalidLengthQuery + } + if postStringIndexmapkey > l { + return io.ErrUnexpectedEOF + } + mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) + iNdEx = postStringIndexmapkey + } else if fieldNum == 2 { + var mapmsglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + mapmsglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if mapmsglen < 0 { + return ErrInvalidLengthQuery + } + postmsgIndex := iNdEx + mapmsglen + if postmsgIndex < 0 { + return ErrInvalidLengthQuery + } + if postmsgIndex > l { + return io.ErrUnexpectedEOF + } + mapvalue = &Record{} + if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil { + return err + } + iNdEx = postmsgIndex + } else { + iNdEx = entryPreIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > postIndex { + return io.ErrUnexpectedEOF + } + iNdEx += skippy } } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ErrorMessage = string(dAtA[iNdEx:postIndex]) + m.Values[mapkey] = mapvalue iNdEx = postIndex default: iNdEx = preIndex @@ -4268,7 +6276,7 @@ func (m *QueryDomainRegistrationFeeResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryRoleRequest) Unmarshal(dAtA []byte) error { +func (m *QueryTextRecordRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -4291,10 +6299,10 @@ func (m *QueryRoleRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryRoleRequest: wiretype end group for non-group") + return fmt.Errorf("proto: QueryTextRecordRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryRoleRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryTextRecordRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -4331,7 +6339,7 @@ func (m *QueryRoleRequest) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field DomainParent", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -4359,7 +6367,39 @@ func (m *QueryRoleRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Address = string(dAtA[iNdEx:postIndex]) + m.DomainParent = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Key = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -4382,7 +6422,7 @@ func (m *QueryRoleRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryRoleResponse) Unmarshal(dAtA []byte) error { +func (m *QueryTextRecordResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -4405,17 +6445,17 @@ func (m *QueryRoleResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryRoleResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryTextRecordResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryRoleResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryTextRecordResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Role", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -4425,23 +6465,27 @@ func (m *QueryRoleResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return ErrInvalidLengthQuery } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthQuery } if postIndex > l { return io.ErrUnexpectedEOF } - m.Role = string(dAtA[iNdEx:postIndex]) + if m.Value == nil { + m.Value = &TextRecord{} + } + if err := m.Value.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex default: iNdEx = preIndex diff --git a/x/registry/types/query.pb.gw.go b/x/registry/types/query.pb.gw.go index adbee369..86409acb 100644 --- a/x/registry/types/query.pb.gw.go +++ b/x/registry/types/query.pb.gw.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-grpc-gateway. DO NOT EDIT. -// source: mycel/registry/v1beta1/query.proto +// source: mycel/registry/v1/query.proto /* Package types is a reverse proxy. @@ -535,6 +535,376 @@ func local_request_Query_Role_0(ctx context.Context, marshaler runtime.Marshaler } +func request_Query_WalletRecord_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryWalletRecordRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["domain_name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "domain_name") + } + + protoReq.DomainName, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "domain_name", err) + } + + val, ok = pathParams["domain_parent"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "domain_parent") + } + + protoReq.DomainParent, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "domain_parent", err) + } + + val, ok = pathParams["wallet_record_type"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "wallet_record_type") + } + + protoReq.WalletRecordType, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "wallet_record_type", err) + } + + msg, err := client.WalletRecord(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_WalletRecord_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryWalletRecordRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["domain_name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "domain_name") + } + + protoReq.DomainName, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "domain_name", err) + } + + val, ok = pathParams["domain_parent"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "domain_parent") + } + + protoReq.DomainParent, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "domain_parent", err) + } + + val, ok = pathParams["wallet_record_type"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "wallet_record_type") + } + + protoReq.WalletRecordType, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "wallet_record_type", err) + } + + msg, err := server.WalletRecord(ctx, &protoReq) + return msg, metadata, err + +} + +func request_Query_DnsRecord_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryDnsRecordRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["domain_name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "domain_name") + } + + protoReq.DomainName, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "domain_name", err) + } + + val, ok = pathParams["domain_parent"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "domain_parent") + } + + protoReq.DomainParent, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "domain_parent", err) + } + + val, ok = pathParams["dns_record_type"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "dns_record_type") + } + + protoReq.DnsRecordType, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "dns_record_type", err) + } + + msg, err := client.DnsRecord(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_DnsRecord_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryDnsRecordRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["domain_name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "domain_name") + } + + protoReq.DomainName, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "domain_name", err) + } + + val, ok = pathParams["domain_parent"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "domain_parent") + } + + protoReq.DomainParent, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "domain_parent", err) + } + + val, ok = pathParams["dns_record_type"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "dns_record_type") + } + + protoReq.DnsRecordType, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "dns_record_type", err) + } + + msg, err := server.DnsRecord(ctx, &protoReq) + return msg, metadata, err + +} + +func request_Query_AllRecords_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryAllRecordsRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["domain_name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "domain_name") + } + + protoReq.DomainName, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "domain_name", err) + } + + val, ok = pathParams["domain_parent"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "domain_parent") + } + + protoReq.DomainParent, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "domain_parent", err) + } + + msg, err := client.AllRecords(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_AllRecords_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryAllRecordsRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["domain_name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "domain_name") + } + + protoReq.DomainName, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "domain_name", err) + } + + val, ok = pathParams["domain_parent"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "domain_parent") + } + + protoReq.DomainParent, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "domain_parent", err) + } + + msg, err := server.AllRecords(ctx, &protoReq) + return msg, metadata, err + +} + +func request_Query_TextRecord_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryTextRecordRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["domain_name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "domain_name") + } + + protoReq.DomainName, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "domain_name", err) + } + + val, ok = pathParams["domain_parent"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "domain_parent") + } + + protoReq.DomainParent, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "domain_parent", err) + } + + val, ok = pathParams["key"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "key") + } + + protoReq.Key, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "key", err) + } + + msg, err := client.TextRecord(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_TextRecord_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryTextRecordRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["domain_name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "domain_name") + } + + protoReq.DomainName, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "domain_name", err) + } + + val, ok = pathParams["domain_parent"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "domain_parent") + } + + protoReq.DomainParent, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "domain_parent", err) + } + + val, ok = pathParams["key"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "key") + } + + protoReq.Key, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "key", err) + } + + msg, err := server.TextRecord(ctx, &protoReq) + return msg, metadata, err + +} + // RegisterQueryHandlerServer registers the http handlers for service Query to "mux". // UnaryRPC :call QueryServer directly. // StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. @@ -748,6 +1118,98 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv }) + mux.Handle("GET", pattern_Query_WalletRecord_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_WalletRecord_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_WalletRecord_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_DnsRecord_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_DnsRecord_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_DnsRecord_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_AllRecords_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_AllRecords_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_AllRecords_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_TextRecord_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_TextRecord_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_TextRecord_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + return nil } @@ -969,27 +1431,115 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie }) + mux.Handle("GET", pattern_Query_WalletRecord_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_WalletRecord_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_WalletRecord_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_DnsRecord_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_DnsRecord_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_DnsRecord_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_AllRecords_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_AllRecords_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_AllRecords_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_TextRecord_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_TextRecord_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_TextRecord_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + return nil } var ( - pattern_Query_Params_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"mycel", "registry", "v1beta1", "params"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_Params_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"mycel", "registry", "v1", "params"}, "", runtime.AssumeColonVerbOpt(false))) + + pattern_Query_TopLevelDomain_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"mycel", "registry", "v1", "top_level_domain", "name"}, "", runtime.AssumeColonVerbOpt(false))) + + pattern_Query_TopLevelDomainAll_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"mycel", "registry", "v1", "top_level_domain"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_TopLevelDomain_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4, 1, 0, 4, 1, 5, 5}, []string{"mycel-domain", "mycel", "registry", "v1beta1", "top_level_domain", "name"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_SecondLevelDomain_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5}, []string{"mycel", "registry", "v1", "second_level_domain", "name", "parent"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_TopLevelDomainAll_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4}, []string{"mycel-domain", "mycel", "registry", "v1beta1", "top_level_domain"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_SecondLevelDomainAll_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"mycel", "registry", "v1", "second_level_domain"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_SecondLevelDomain_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5}, []string{"mycel", "registry", "v1beta1", "second_level_domain", "name", "parent"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_DomainOwnership_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"mycel", "registry", "v1", "domain_ownership", "owner"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_SecondLevelDomainAll_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"mycel", "registry", "v1beta1", "second_level_domain"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_DomainOwnershipAll_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"mycel", "registry", "v1", "domain_ownership"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_DomainOwnership_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4, 1, 0, 4, 1, 5, 5}, []string{"mycel-domain", "mycel", "registry", "v1beta1", "domain_ownership", "owner"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_DomainRegistrationFee_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5, 1, 0, 4, 1, 5, 6}, []string{"mycel", "registry", "v1", "domain_registration_fee", "name", "parent", "registerer"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_DomainOwnershipAll_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4}, []string{"mycel-domain", "mycel", "registry", "v1beta1", "domain_ownership"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_Role_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5}, []string{"mycel", "registry", "v1", "role", "domain_name", "address"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_DomainRegistrationFee_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4, 1, 0, 4, 1, 5, 5, 1, 0, 4, 1, 5, 6, 1, 0, 4, 1, 5, 7}, []string{"mycel-domain", "mycel", "registry", "v1beta1", "domain_registration_fee", "name", "parent", "registerer"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_WalletRecord_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5, 1, 0, 4, 1, 5, 6}, []string{"mycel", "resolver", "v1", "wallet_record", "domain_name", "domain_parent", "wallet_record_type"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_Role_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4, 1, 0, 4, 1, 5, 5, 1, 0, 4, 1, 5, 6}, []string{"mycel-domain", "mycel", "registry", "v1beta1", "role", "domain_name", "address"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_DnsRecord_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5, 1, 0, 4, 1, 5, 6}, []string{"mycel", "resolver", "v1", "dns_record", "domain_name", "domain_parent", "dns_record_type"}, "", runtime.AssumeColonVerbOpt(false))) + + pattern_Query_AllRecords_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5}, []string{"mycel", "resolver", "v1", "all_records", "domain_name", "domain_parent"}, "", runtime.AssumeColonVerbOpt(false))) + + pattern_Query_TextRecord_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5, 1, 0, 4, 1, 5, 6}, []string{"mycel", "resolver", "v1", "text_record", "domain_name", "domain_parent", "key"}, "", runtime.AssumeColonVerbOpt(false))) ) var ( @@ -1010,4 +1560,12 @@ var ( forward_Query_DomainRegistrationFee_0 = runtime.ForwardResponseMessage forward_Query_Role_0 = runtime.ForwardResponseMessage + + forward_Query_WalletRecord_0 = runtime.ForwardResponseMessage + + forward_Query_DnsRecord_0 = runtime.ForwardResponseMessage + + forward_Query_AllRecords_0 = runtime.ForwardResponseMessage + + forward_Query_TextRecord_0 = runtime.ForwardResponseMessage ) diff --git a/x/registry/types/second_level_domain.pb.go b/x/registry/types/second_level_domain.pb.go index 6a4e8019..53a89e4c 100644 --- a/x/registry/types/second_level_domain.pb.go +++ b/x/registry/types/second_level_domain.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: mycel/registry/v1beta1/second_level_domain.proto +// source: mycel/registry/v1/second_level_domain.proto package types @@ -28,7 +28,7 @@ var _ = time.Kitchen const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package type DnsRecord struct { - DnsRecordType DnsRecordType `protobuf:"varint,1,opt,name=dns_record_type,json=dnsRecordType,proto3,enum=mycel.registry.v1beta1.DnsRecordType" json:"dns_record_type,omitempty"` + DnsRecordType DnsRecordType `protobuf:"varint,1,opt,name=dns_record_type,json=dnsRecordType,proto3,enum=mycel.registry.v1.DnsRecordType" json:"dns_record_type,omitempty"` Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` } @@ -36,7 +36,7 @@ func (m *DnsRecord) Reset() { *m = DnsRecord{} } func (m *DnsRecord) String() string { return proto.CompactTextString(m) } func (*DnsRecord) ProtoMessage() {} func (*DnsRecord) Descriptor() ([]byte, []int) { - return fileDescriptor_56ec0bc7d1cf0eb2, []int{0} + return fileDescriptor_e0ba45debf34729c, []int{0} } func (m *DnsRecord) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -80,7 +80,7 @@ func (m *DnsRecord) GetValue() string { } type WalletRecord struct { - WalletRecordType NetworkName `protobuf:"varint,1,opt,name=wallet_record_type,json=walletRecordType,proto3,enum=mycel.registry.v1beta1.NetworkName" json:"wallet_record_type,omitempty"` + WalletRecordType NetworkName `protobuf:"varint,1,opt,name=wallet_record_type,json=walletRecordType,proto3,enum=mycel.registry.v1.NetworkName" json:"wallet_record_type,omitempty"` Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` } @@ -88,7 +88,7 @@ func (m *WalletRecord) Reset() { *m = WalletRecord{} } func (m *WalletRecord) String() string { return proto.CompactTextString(m) } func (*WalletRecord) ProtoMessage() {} func (*WalletRecord) Descriptor() ([]byte, []int) { - return fileDescriptor_56ec0bc7d1cf0eb2, []int{1} + return fileDescriptor_e0ba45debf34729c, []int{1} } func (m *WalletRecord) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -140,7 +140,7 @@ func (m *TextRecord) Reset() { *m = TextRecord{} } func (m *TextRecord) String() string { return proto.CompactTextString(m) } func (*TextRecord) ProtoMessage() {} func (*TextRecord) Descriptor() ([]byte, []int) { - return fileDescriptor_56ec0bc7d1cf0eb2, []int{2} + return fileDescriptor_e0ba45debf34729c, []int{2} } func (m *TextRecord) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -196,7 +196,7 @@ func (m *Record) Reset() { *m = Record{} } func (m *Record) String() string { return proto.CompactTextString(m) } func (*Record) ProtoMessage() {} func (*Record) Descriptor() ([]byte, []int) { - return fileDescriptor_56ec0bc7d1cf0eb2, []int{3} + return fileDescriptor_e0ba45debf34729c, []int{3} } func (m *Record) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -295,7 +295,7 @@ func (m *SecondLevelDomain) Reset() { *m = SecondLevelDomain{} } func (m *SecondLevelDomain) String() string { return proto.CompactTextString(m) } func (*SecondLevelDomain) ProtoMessage() {} func (*SecondLevelDomain) Descriptor() ([]byte, []int) { - return fileDescriptor_56ec0bc7d1cf0eb2, []int{4} + return fileDescriptor_e0ba45debf34729c, []int{4} } func (m *SecondLevelDomain) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -367,54 +367,54 @@ func (m *SecondLevelDomain) GetAccessControl() []*AccessControl { } func init() { - proto.RegisterType((*DnsRecord)(nil), "mycel.registry.v1beta1.DnsRecord") - proto.RegisterType((*WalletRecord)(nil), "mycel.registry.v1beta1.WalletRecord") - proto.RegisterType((*TextRecord)(nil), "mycel.registry.v1beta1.TextRecord") - proto.RegisterType((*Record)(nil), "mycel.registry.v1beta1.Record") - proto.RegisterType((*SecondLevelDomain)(nil), "mycel.registry.v1beta1.SecondLevelDomain") + proto.RegisterType((*DnsRecord)(nil), "mycel.registry.v1.DnsRecord") + proto.RegisterType((*WalletRecord)(nil), "mycel.registry.v1.WalletRecord") + proto.RegisterType((*TextRecord)(nil), "mycel.registry.v1.TextRecord") + proto.RegisterType((*Record)(nil), "mycel.registry.v1.Record") + proto.RegisterType((*SecondLevelDomain)(nil), "mycel.registry.v1.SecondLevelDomain") } func init() { - proto.RegisterFile("mycel/registry/v1beta1/second_level_domain.proto", fileDescriptor_56ec0bc7d1cf0eb2) -} - -var fileDescriptor_56ec0bc7d1cf0eb2 = []byte{ - // 554 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x54, 0xcb, 0x6e, 0xd3, 0x4c, - 0x14, 0xb6, 0x9b, 0x36, 0x7f, 0x73, 0xd2, 0xe4, 0x2f, 0xa3, 0xaa, 0x8a, 0xb2, 0x70, 0x42, 0x00, - 0x11, 0x84, 0xb0, 0x69, 0x60, 0xc1, 0x96, 0x10, 0xa4, 0x48, 0x94, 0x4a, 0x0c, 0x91, 0x90, 0xd8, - 0x58, 0x13, 0xfb, 0x60, 0xac, 0xda, 0x1e, 0xcb, 0x9e, 0xdc, 0xde, 0xa2, 0x0f, 0xc2, 0x83, 0x74, - 0xd9, 0x25, 0x2b, 0x40, 0xc9, 0x8e, 0xa7, 0x40, 0x9e, 0x71, 0x2e, 0x95, 0x6a, 0xd8, 0xf9, 0x93, - 0xbe, 0xcb, 0x7c, 0x47, 0xe7, 0x18, 0x9e, 0x87, 0x0b, 0x07, 0x03, 0x2b, 0x41, 0xcf, 0x4f, 0x45, - 0xb2, 0xb0, 0xa6, 0x67, 0x63, 0x14, 0xec, 0xcc, 0x4a, 0xd1, 0xe1, 0x91, 0x6b, 0x07, 0x38, 0xc5, - 0xc0, 0x76, 0x79, 0xc8, 0xfc, 0xc8, 0x8c, 0x13, 0x2e, 0x38, 0x39, 0x95, 0x0a, 0x73, 0xad, 0x30, - 0x73, 0x45, 0xf3, 0xc4, 0xe3, 0x1e, 0x97, 0x14, 0x2b, 0xfb, 0x52, 0xec, 0x66, 0xcb, 0xe3, 0xdc, - 0x0b, 0xd0, 0x92, 0x68, 0x3c, 0xf9, 0x62, 0x09, 0x3f, 0xc4, 0x54, 0xb0, 0x30, 0xce, 0x09, 0x8f, - 0x0b, 0x1e, 0xe0, 0x46, 0xa9, 0x9d, 0xa0, 0xc3, 0x13, 0x37, 0x27, 0x3e, 0x29, 0x20, 0x46, 0x28, - 0x66, 0x3c, 0xb9, 0xb4, 0x23, 0x16, 0x62, 0x4e, 0x7d, 0x5a, 0x40, 0x65, 0x8e, 0x83, 0x69, 0x6a, - 0x3b, 0x3c, 0x12, 0x09, 0x0f, 0x14, 0xb9, 0x13, 0x43, 0x65, 0x10, 0xa5, 0x54, 0x46, 0x91, 0xf7, - 0xf0, 0xff, 0x36, 0xd8, 0x16, 0x8b, 0x18, 0x1b, 0x7a, 0x5b, 0xef, 0xd6, 0x7b, 0x8f, 0xcc, 0xbb, - 0x6b, 0x9b, 0x1b, 0xed, 0x68, 0x11, 0x23, 0xad, 0xb9, 0xbb, 0x90, 0x9c, 0xc0, 0xc1, 0x94, 0x05, - 0x13, 0x6c, 0xec, 0xb5, 0xf5, 0x6e, 0x85, 0x2a, 0xd0, 0x99, 0xc1, 0xd1, 0x27, 0x16, 0x04, 0x28, - 0xf2, 0xd0, 0x0f, 0x40, 0x66, 0x12, 0xdf, 0x91, 0xfb, 0xa0, 0x28, 0xf7, 0x42, 0xd5, 0xbe, 0x60, - 0x21, 0xd2, 0xe3, 0xd9, 0x8e, 0xdd, 0x5f, 0x82, 0x5f, 0x02, 0x8c, 0x70, 0xbe, 0x8e, 0x3d, 0x86, - 0xd2, 0x25, 0x2e, 0x64, 0x4e, 0x85, 0x66, 0x9f, 0x05, 0xaa, 0xdf, 0x3a, 0x94, 0x73, 0x49, 0x1f, - 0x60, 0x3b, 0x1e, 0xa9, 0xac, 0xf6, 0xee, 0xff, 0x73, 0x32, 0x43, 0x8d, 0x56, 0x36, 0x73, 0x21, - 0xef, 0xa0, 0x76, 0xab, 0xad, 0x0c, 0xab, 0xf6, 0x1e, 0x16, 0xd9, 0xec, 0x8e, 0x6a, 0xa8, 0xd1, - 0xa3, 0xdd, 0xae, 0xe4, 0x2d, 0x54, 0x05, 0xce, 0x37, 0x56, 0x25, 0x69, 0xd5, 0x29, 0xb2, 0xda, - 0x96, 0x1f, 0x6a, 0x14, 0xc4, 0x06, 0xf5, 0x0f, 0xa1, 0xac, 0x1c, 0x3a, 0xdf, 0xf6, 0xe0, 0xde, - 0x47, 0xb9, 0xfb, 0xe7, 0xd9, 0xea, 0x0f, 0xe4, 0xe6, 0x13, 0x02, 0xfb, 0xd9, 0x7a, 0xe5, 0xb3, - 0x92, 0xdf, 0xe4, 0x14, 0xca, 0x31, 0x4b, 0x30, 0x12, 0xf9, 0xb4, 0x72, 0x94, 0x0d, 0x91, 0xcf, - 0x22, 0x4c, 0xe4, 0x63, 0x2a, 0x54, 0x81, 0x6c, 0xb1, 0x70, 0x1e, 0xfb, 0x09, 0x13, 0x3e, 0x8f, - 0x6c, 0x97, 0x09, 0x6c, 0xec, 0xcb, 0xc7, 0x36, 0x4d, 0x75, 0x21, 0xe6, 0xfa, 0x42, 0xcc, 0xd1, - 0xfa, 0x42, 0xfa, 0x87, 0xd7, 0x3f, 0x5a, 0xda, 0xd5, 0xcf, 0x96, 0x4e, 0xeb, 0x5b, 0xf1, 0x80, - 0x09, 0x24, 0xaf, 0xe0, 0x3f, 0xf5, 0xe0, 0xb4, 0x71, 0xd0, 0x2e, 0x75, 0xab, 0x3d, 0xa3, 0xa8, - 0xb3, 0x6a, 0x48, 0xd7, 0x74, 0x72, 0x0e, 0xf5, 0xdb, 0x67, 0xd0, 0x28, 0x4b, 0x83, 0xc2, 0x05, - 0x7f, 0x2d, 0xd9, 0x6f, 0x14, 0x99, 0xd6, 0xd8, 0x2e, 0xec, 0x0f, 0xaf, 0x97, 0x86, 0x7e, 0xb3, - 0x34, 0xf4, 0x5f, 0x4b, 0x43, 0xbf, 0x5a, 0x19, 0xda, 0xcd, 0xca, 0xd0, 0xbe, 0xaf, 0x0c, 0xed, - 0xb3, 0xe9, 0xf9, 0xe2, 0xeb, 0x64, 0x6c, 0x3a, 0x3c, 0xb4, 0xa4, 0xf3, 0x33, 0xf5, 0x17, 0x51, - 0xc0, 0x9a, 0x6f, 0xaf, 0x33, 0xdb, 0xf6, 0x74, 0x5c, 0x96, 0xfd, 0x5f, 0xfc, 0x09, 0x00, 0x00, - 0xff, 0xff, 0xa4, 0xcf, 0x56, 0x2d, 0x91, 0x04, 0x00, 0x00, + proto.RegisterFile("mycel/registry/v1/second_level_domain.proto", fileDescriptor_e0ba45debf34729c) +} + +var fileDescriptor_e0ba45debf34729c = []byte{ + // 548 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x54, 0x5d, 0x8b, 0xd3, 0x40, + 0x14, 0x4d, 0xf6, 0xa3, 0x6e, 0x6f, 0xf7, 0x73, 0x58, 0xa4, 0x16, 0x4d, 0x4b, 0x11, 0x29, 0x88, + 0x09, 0xdb, 0xf5, 0x55, 0xd0, 0x5a, 0xb4, 0x0f, 0xeb, 0x3e, 0x8c, 0x05, 0xc1, 0x97, 0x30, 0x4d, + 0xae, 0x31, 0x34, 0xc9, 0x84, 0x64, 0xfa, 0xf5, 0x2f, 0xf6, 0x37, 0xf8, 0x6b, 0xf6, 0x71, 0x1f, + 0x05, 0x41, 0xa5, 0xfd, 0x23, 0x92, 0x99, 0xf4, 0x63, 0x69, 0xdc, 0xb7, 0x39, 0xf4, 0xdc, 0x7b, + 0xee, 0x39, 0x9c, 0x06, 0x5e, 0x86, 0x33, 0x07, 0x03, 0x2b, 0x41, 0xcf, 0x4f, 0x45, 0x32, 0xb3, + 0xc6, 0x17, 0x56, 0x8a, 0x0e, 0x8f, 0x5c, 0x3b, 0xc0, 0x31, 0x06, 0xb6, 0xcb, 0x43, 0xe6, 0x47, + 0x66, 0x9c, 0x70, 0xc1, 0xc9, 0x99, 0x24, 0x9b, 0x4b, 0xb2, 0x39, 0xbe, 0xa8, 0x9d, 0x7b, 0xdc, + 0xe3, 0xf2, 0x57, 0x2b, 0x7b, 0x29, 0x62, 0xad, 0xee, 0x71, 0xee, 0x05, 0x68, 0x49, 0x34, 0x18, + 0x7d, 0xb3, 0x84, 0x1f, 0x62, 0x2a, 0x58, 0x18, 0xe7, 0x84, 0xe6, 0xb6, 0xac, 0x1b, 0xa5, 0x76, + 0x82, 0x0e, 0x4f, 0xdc, 0x9c, 0xf3, 0x7c, 0x9b, 0x13, 0xa1, 0x98, 0xf0, 0x64, 0x68, 0x47, 0x2c, + 0xc4, 0x9c, 0xf5, 0x62, 0x9b, 0xc5, 0x1c, 0x07, 0xd3, 0xd4, 0x76, 0x78, 0x24, 0x12, 0x1e, 0x28, + 0x5e, 0x73, 0x08, 0xe5, 0x6e, 0x94, 0x52, 0x29, 0x40, 0x7a, 0x70, 0xb2, 0x96, 0xb3, 0xc5, 0x2c, + 0xc6, 0xaa, 0xde, 0xd0, 0x5b, 0xc7, 0xed, 0x86, 0xb9, 0x65, 0xd1, 0x5c, 0x8d, 0xf5, 0x67, 0x31, + 0xd2, 0x23, 0x77, 0x13, 0x92, 0x73, 0xd8, 0x1f, 0xb3, 0x60, 0x84, 0xd5, 0x9d, 0x86, 0xde, 0x2a, + 0x53, 0x05, 0x9a, 0x09, 0x1c, 0x7e, 0x61, 0x41, 0x80, 0x22, 0xd7, 0xbb, 0x02, 0x32, 0x91, 0xb8, + 0x40, 0xd2, 0x28, 0x90, 0xbc, 0x56, 0x3e, 0xaf, 0x59, 0x88, 0xf4, 0x74, 0xb2, 0xb1, 0xe9, 0x01, + 0xcd, 0xd7, 0x00, 0x7d, 0x9c, 0x2e, 0x15, 0x4f, 0x61, 0x77, 0x88, 0x33, 0x29, 0x51, 0xa6, 0xd9, + 0xf3, 0x3f, 0x53, 0xbf, 0x74, 0x28, 0xe5, 0x23, 0x6f, 0x00, 0xd6, 0xa1, 0xc8, 0xc9, 0x4a, 0xfb, + 0xe9, 0x43, 0x79, 0xf4, 0x34, 0x5a, 0x5e, 0xa5, 0x41, 0x3e, 0xc0, 0xd1, 0x3d, 0x8f, 0x52, 0xa7, + 0xd2, 0xae, 0x17, 0x6c, 0xd8, 0xcc, 0xa6, 0xa7, 0xd1, 0xc3, 0x4d, 0x87, 0xe4, 0x2d, 0x54, 0x04, + 0x4e, 0x57, 0x5b, 0x76, 0xe5, 0x96, 0x67, 0x05, 0x5b, 0xd6, 0x6e, 0x7b, 0x1a, 0x05, 0xb1, 0x42, + 0x9d, 0x03, 0x28, 0xa9, 0xe1, 0xe6, 0x8f, 0x1d, 0x38, 0xfb, 0x2c, 0xeb, 0x7c, 0x95, 0xb5, 0xb9, + 0x2b, 0xcb, 0x4c, 0x08, 0xec, 0x65, 0x05, 0xca, 0xc3, 0x91, 0x6f, 0xf2, 0x18, 0x4a, 0x31, 0x4b, + 0x30, 0x12, 0x79, 0x3c, 0x39, 0xca, 0x52, 0xe3, 0x93, 0x08, 0x13, 0x79, 0x47, 0x99, 0x2a, 0x40, + 0x3e, 0xc1, 0x09, 0x4e, 0x63, 0x3f, 0x61, 0xc2, 0xe7, 0x91, 0xed, 0x32, 0x81, 0xd5, 0x3d, 0x79, + 0x67, 0xcd, 0x54, 0xcd, 0x37, 0x97, 0xcd, 0x37, 0xfb, 0xcb, 0xe6, 0x77, 0x0e, 0x6e, 0x7f, 0xd7, + 0xb5, 0x9b, 0x3f, 0x75, 0x9d, 0x1e, 0xaf, 0x87, 0xbb, 0x4c, 0x20, 0xb9, 0x84, 0x47, 0xea, 0xe0, + 0xb4, 0xba, 0xdf, 0xd8, 0x6d, 0x55, 0xda, 0x4f, 0x0a, 0xec, 0x2a, 0x73, 0x74, 0xc9, 0x24, 0x1f, + 0xe1, 0xf8, 0x7e, 0xd1, 0xab, 0x25, 0x39, 0x5b, 0x54, 0xe1, 0x77, 0x92, 0xf8, 0x5e, 0xf1, 0xe8, + 0x11, 0xdb, 0x84, 0x9d, 0xde, 0xed, 0xdc, 0xd0, 0xef, 0xe6, 0x86, 0xfe, 0x77, 0x6e, 0xe8, 0x37, + 0x0b, 0x43, 0xbb, 0x5b, 0x18, 0xda, 0xcf, 0x85, 0xa1, 0x7d, 0x35, 0x3d, 0x5f, 0x7c, 0x1f, 0x0d, + 0x4c, 0x87, 0x87, 0x96, 0x5c, 0xfa, 0x4a, 0x7d, 0x0e, 0x14, 0xb0, 0xa6, 0xeb, 0x7f, 0x5d, 0xd6, + 0xe7, 0x74, 0x50, 0x92, 0xae, 0x2f, 0xff, 0x05, 0x00, 0x00, 0xff, 0xff, 0xc4, 0x08, 0x9c, 0xf4, + 0x55, 0x04, 0x00, 0x00, } func (m *DnsRecord) Marshal() (dAtA []byte, err error) { diff --git a/x/registry/types/subdomain_config.pb.go b/x/registry/types/subdomain_config.pb.go index 57ec79e9..2f3960ed 100644 --- a/x/registry/types/subdomain_config.pb.go +++ b/x/registry/types/subdomain_config.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: mycel/registry/v1beta1/subdomain_config.proto +// source: mycel/registry/v1/subdomain_config.proto package types @@ -45,7 +45,7 @@ func (x RegistrationPolicyType) String() string { } func (RegistrationPolicyType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_5688b541b0d773cd, []int{0} + return fileDescriptor_29e355bca0a423b8, []int{0} } type SubdomainRegistrationFees struct { @@ -58,7 +58,7 @@ func (m *SubdomainRegistrationFees) Reset() { *m = SubdomainRegistration func (m *SubdomainRegistrationFees) String() string { return proto.CompactTextString(m) } func (*SubdomainRegistrationFees) ProtoMessage() {} func (*SubdomainRegistrationFees) Descriptor() ([]byte, []int) { - return fileDescriptor_5688b541b0d773cd, []int{0} + return fileDescriptor_29e355bca0a423b8, []int{0} } func (m *SubdomainRegistrationFees) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -118,7 +118,7 @@ func (m *FeeByLength) Reset() { *m = FeeByLength{} } func (m *FeeByLength) String() string { return proto.CompactTextString(m) } func (*FeeByLength) ProtoMessage() {} func (*FeeByLength) Descriptor() ([]byte, []int) { - return fileDescriptor_5688b541b0d773cd, []int{1} + return fileDescriptor_29e355bca0a423b8, []int{1} } func (m *FeeByLength) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -178,7 +178,7 @@ func (m *FeeByName) Reset() { *m = FeeByName{} } func (m *FeeByName) String() string { return proto.CompactTextString(m) } func (*FeeByName) ProtoMessage() {} func (*FeeByName) Descriptor() ([]byte, []int) { - return fileDescriptor_5688b541b0d773cd, []int{2} + return fileDescriptor_29e355bca0a423b8, []int{2} } func (m *FeeByName) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -232,16 +232,16 @@ type SubdomainConfig struct { MaxSubdomainRegistrations uint64 `protobuf:"varint,1,opt,name=max_subdomain_registrations,json=maxSubdomainRegistrations,proto3" json:"max_subdomain_registrations,omitempty"` SubdomainRegistrationFees *SubdomainRegistrationFees `protobuf:"bytes,2,opt,name=subdomain_registration_fees,json=subdomainRegistrationFees,proto3" json:"subdomain_registration_fees,omitempty"` IsRegistrable bool `protobuf:"varint,3,opt,name=is_registrable,json=isRegistrable,proto3" json:"is_registrable,omitempty"` - RegistrableRole DomainRole `protobuf:"varint,4,opt,name=registrable_role,json=registrableRole,proto3,enum=mycel.registry.v1beta1.DomainRole" json:"registrable_role,omitempty"` + RegistrableRole DomainRole `protobuf:"varint,4,opt,name=registrable_role,json=registrableRole,proto3,enum=mycel.registry.v1.DomainRole" json:"registrable_role,omitempty"` CustomExpirationDate bool `protobuf:"varint,5,opt,name=custom_expiration_date,json=customExpirationDate,proto3" json:"custom_expiration_date,omitempty"` - RegistrationPolicy RegistrationPolicyType `protobuf:"varint,6,opt,name=registration_policy,json=registrationPolicy,proto3,enum=mycel.registry.v1beta1.RegistrationPolicyType" json:"registration_policy,omitempty"` + RegistrationPolicy RegistrationPolicyType `protobuf:"varint,6,opt,name=registration_policy,json=registrationPolicy,proto3,enum=mycel.registry.v1.RegistrationPolicyType" json:"registration_policy,omitempty"` } func (m *SubdomainConfig) Reset() { *m = SubdomainConfig{} } func (m *SubdomainConfig) String() string { return proto.CompactTextString(m) } func (*SubdomainConfig) ProtoMessage() {} func (*SubdomainConfig) Descriptor() ([]byte, []int) { - return fileDescriptor_5688b541b0d773cd, []int{3} + return fileDescriptor_29e355bca0a423b8, []int{3} } func (m *SubdomainConfig) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -313,54 +313,54 @@ func (m *SubdomainConfig) GetRegistrationPolicy() RegistrationPolicyType { } func init() { - proto.RegisterEnum("mycel.registry.v1beta1.RegistrationPolicyType", RegistrationPolicyType_name, RegistrationPolicyType_value) - proto.RegisterType((*SubdomainRegistrationFees)(nil), "mycel.registry.v1beta1.SubdomainRegistrationFees") - proto.RegisterType((*FeeByLength)(nil), "mycel.registry.v1beta1.FeeByLength") - proto.RegisterType((*FeeByName)(nil), "mycel.registry.v1beta1.FeeByName") - proto.RegisterType((*SubdomainConfig)(nil), "mycel.registry.v1beta1.SubdomainConfig") + proto.RegisterEnum("mycel.registry.v1.RegistrationPolicyType", RegistrationPolicyType_name, RegistrationPolicyType_value) + proto.RegisterType((*SubdomainRegistrationFees)(nil), "mycel.registry.v1.SubdomainRegistrationFees") + proto.RegisterType((*FeeByLength)(nil), "mycel.registry.v1.FeeByLength") + proto.RegisterType((*FeeByName)(nil), "mycel.registry.v1.FeeByName") + proto.RegisterType((*SubdomainConfig)(nil), "mycel.registry.v1.SubdomainConfig") } func init() { - proto.RegisterFile("mycel/registry/v1beta1/subdomain_config.proto", fileDescriptor_5688b541b0d773cd) + proto.RegisterFile("mycel/registry/v1/subdomain_config.proto", fileDescriptor_29e355bca0a423b8) } -var fileDescriptor_5688b541b0d773cd = []byte{ - // 552 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x54, 0xcf, 0x6f, 0xd3, 0x30, - 0x14, 0x6e, 0xe8, 0x28, 0xcc, 0x51, 0xb7, 0xca, 0xa0, 0x2a, 0xdd, 0xa4, 0xa8, 0x14, 0x21, 0x55, - 0x4c, 0x4b, 0xd4, 0xc2, 0x89, 0x03, 0xd2, 0xda, 0xad, 0x30, 0x69, 0xa0, 0xca, 0x0c, 0x0e, 0x5c, - 0x22, 0x27, 0x7d, 0xe9, 0x2c, 0x25, 0x71, 0x89, 0x5d, 0xd4, 0xfc, 0x17, 0xfc, 0x59, 0x1c, 0xc7, - 0x8d, 0x23, 0x6a, 0xff, 0x11, 0x14, 0x27, 0x4d, 0x8b, 0xd6, 0x20, 0x2e, 0xdc, 0xec, 0xe7, 0xef, - 0x7b, 0xdf, 0xf7, 0x7e, 0xc8, 0xe8, 0x34, 0x4c, 0x3c, 0x08, 0xec, 0x18, 0xa6, 0x4c, 0xc8, 0x38, - 0xb1, 0xbf, 0xf6, 0x5c, 0x90, 0xb4, 0x67, 0x8b, 0xb9, 0x3b, 0xe1, 0x21, 0x65, 0x91, 0xe3, 0xf1, - 0xc8, 0x67, 0x53, 0x6b, 0x16, 0x73, 0xc9, 0x71, 0x53, 0xc1, 0xad, 0x35, 0xdc, 0xca, 0xe1, 0x47, - 0xa6, 0xc7, 0x45, 0xc8, 0x85, 0xed, 0x52, 0x01, 0x45, 0x0e, 0x8f, 0xb3, 0x28, 0xe3, 0x1d, 0x9d, - 0x94, 0xc8, 0x50, 0xcf, 0x03, 0x21, 0x52, 0x0d, 0x19, 0xf3, 0x20, 0x03, 0x77, 0x56, 0x1a, 0x6a, - 0x7d, 0x58, 0xeb, 0x93, 0x8c, 0x42, 0x25, 0xe3, 0xd1, 0x08, 0x40, 0xe0, 0x37, 0xa8, 0xee, 0x03, - 0x38, 0x6e, 0xe2, 0x04, 0x10, 0x4d, 0xe5, 0x8d, 0xa1, 0xb5, 0xab, 0x5d, 0xbd, 0xff, 0xd4, 0xda, - 0x6d, 0xcd, 0x1a, 0x01, 0x0c, 0x92, 0x2b, 0x05, 0x25, 0xba, 0xbf, 0xb9, 0xe0, 0x33, 0xa4, 0xe7, - 0x89, 0x22, 0x1a, 0x82, 0x71, 0x4f, 0xa5, 0x79, 0xf2, 0xd7, 0x34, 0xef, 0x69, 0x08, 0x64, 0xdf, - 0x5f, 0x1f, 0xf1, 0x2b, 0xa4, 0x4f, 0xc0, 0xa7, 0xf3, 0x40, 0x3a, 0x3e, 0x80, 0x51, 0x6d, 0x6b, - 0x5d, 0xbd, 0xdf, 0xb2, 0xb2, 0x66, 0x58, 0x69, 0x33, 0x0a, 0xfe, 0x90, 0xb3, 0x88, 0xa0, 0x1c, - 0x3d, 0x02, 0xe8, 0x24, 0x48, 0xdf, 0xb2, 0x86, 0x9b, 0xa8, 0x56, 0xd4, 0xa3, 0x75, 0xeb, 0x24, - 0xbf, 0xe1, 0x67, 0xe8, 0x80, 0x09, 0x27, 0xb7, 0x43, 0xdd, 0x20, 0x35, 0xaa, 0x75, 0x1f, 0x92, - 0x3a, 0x13, 0x64, 0x13, 0xc4, 0x27, 0xa8, 0xfa, 0x4f, 0x0e, 0x52, 0x54, 0x47, 0xa0, 0xfd, 0xa2, - 0x1c, 0x8c, 0xd1, 0x9e, 0xaa, 0x3f, 0x95, 0xdd, 0x27, 0xea, 0xfc, 0x5f, 0x44, 0x7f, 0x54, 0xd1, - 0x61, 0x31, 0xd5, 0xa1, 0x5a, 0x2a, 0xfc, 0x1a, 0x1d, 0x87, 0x74, 0xe1, 0x6c, 0x96, 0x2d, 0xde, - 0x9a, 0xb6, 0x50, 0x96, 0xf6, 0x48, 0x2b, 0xa4, 0x8b, 0x9d, 0xeb, 0x20, 0xf0, 0x17, 0x74, 0xbc, - 0x9b, 0x9b, 0x8e, 0x43, 0x28, 0xd3, 0x7a, 0xbf, 0x57, 0x36, 0xd2, 0xd2, 0x1d, 0x23, 0x2d, 0x51, - 0xba, 0x7e, 0x77, 0x5b, 0x53, 0xdd, 0xd5, 0x9a, 0x77, 0xa8, 0xb1, 0x85, 0x71, 0x62, 0x1e, 0x80, - 0xb1, 0xd7, 0xd6, 0xba, 0x07, 0xfd, 0x4e, 0x99, 0x9d, 0xf3, 0x4c, 0x90, 0x07, 0x40, 0x0e, 0xb7, - 0xb8, 0x69, 0x00, 0xbf, 0x44, 0x4d, 0x6f, 0x2e, 0x24, 0x0f, 0x1d, 0x58, 0xcc, 0x58, 0x5e, 0xe3, - 0x84, 0x4a, 0x30, 0xee, 0x2b, 0xf5, 0xc7, 0xd9, 0xeb, 0x45, 0xf1, 0x78, 0x4e, 0x25, 0x60, 0x07, - 0x3d, 0xfa, 0xa3, 0x29, 0x33, 0x1e, 0x30, 0x2f, 0x31, 0x6a, 0xca, 0x87, 0x55, 0xe6, 0x63, 0xbb, - 0xe4, 0xb1, 0x62, 0x5c, 0x27, 0x33, 0x20, 0x38, 0xbe, 0x13, 0x7f, 0xde, 0x43, 0xcd, 0xdd, 0x68, - 0xac, 0xa3, 0x07, 0x63, 0x72, 0xf9, 0xe9, 0xec, 0xfa, 0xa2, 0x51, 0xc1, 0x08, 0xd5, 0xc6, 0x1f, - 0x07, 0x57, 0x97, 0xc3, 0x86, 0x36, 0x78, 0xfb, 0x7d, 0x69, 0x6a, 0xb7, 0x4b, 0x53, 0xfb, 0xb5, - 0x34, 0xb5, 0x6f, 0x2b, 0xb3, 0x72, 0xbb, 0x32, 0x2b, 0x3f, 0x57, 0x66, 0xe5, 0xb3, 0x35, 0x65, - 0xf2, 0x66, 0xee, 0x5a, 0x1e, 0x0f, 0x6d, 0x65, 0xed, 0x34, 0x1b, 0x41, 0x76, 0xb1, 0x17, 0x9b, - 0xdf, 0x43, 0x26, 0x33, 0x10, 0x6e, 0x4d, 0xfd, 0x16, 0x2f, 0x7e, 0x07, 0x00, 0x00, 0xff, 0xff, - 0x4a, 0x20, 0xde, 0xa9, 0xc3, 0x04, 0x00, 0x00, +var fileDescriptor_29e355bca0a423b8 = []byte{ + // 557 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x94, 0xcf, 0x8b, 0xd3, 0x40, + 0x14, 0xc7, 0x1b, 0xbb, 0x56, 0x3b, 0xa1, 0xbb, 0x75, 0x94, 0x92, 0xee, 0x6a, 0x28, 0x05, 0x25, + 0xfe, 0x4a, 0x68, 0xf5, 0x24, 0x22, 0xd8, 0xee, 0x96, 0x5d, 0x58, 0xa4, 0x8c, 0xab, 0x87, 0xbd, + 0x84, 0x49, 0xfa, 0xd2, 0x0d, 0x24, 0x99, 0x92, 0x99, 0x96, 0xe6, 0xbf, 0xf0, 0x6f, 0xf2, 0xe4, + 0x71, 0x8f, 0x7a, 0x93, 0xf6, 0x1f, 0x91, 0x4c, 0xd2, 0x1f, 0xd2, 0x14, 0xbc, 0x78, 0x9b, 0x1f, + 0xdf, 0x79, 0xef, 0xf3, 0x7d, 0xef, 0x31, 0xc8, 0x08, 0x13, 0x17, 0x02, 0x2b, 0x86, 0xb1, 0xcf, + 0x45, 0x9c, 0x58, 0xb3, 0x8e, 0xc5, 0xa7, 0xce, 0x88, 0x85, 0xd4, 0x8f, 0x6c, 0x97, 0x45, 0x9e, + 0x3f, 0x36, 0x27, 0x31, 0x13, 0x0c, 0x3f, 0x90, 0x4a, 0x73, 0xa5, 0x34, 0x67, 0x9d, 0x63, 0xdd, + 0x65, 0x3c, 0x64, 0xdc, 0x72, 0x28, 0x07, 0x6b, 0xd6, 0x71, 0x40, 0xd0, 0x8e, 0xe5, 0x32, 0x3f, + 0xca, 0x9e, 0x1c, 0x3f, 0xdb, 0x0d, 0x4e, 0x5d, 0x17, 0x38, 0x4f, 0x23, 0x8b, 0x98, 0x05, 0x99, + 0xae, 0xfd, 0x4b, 0x41, 0xcd, 0xcf, 0xab, 0xac, 0x24, 0x53, 0x53, 0xe1, 0xb3, 0x68, 0x00, 0xc0, + 0x71, 0x0f, 0xd5, 0x3c, 0x00, 0xdb, 0x49, 0xec, 0x00, 0xa2, 0xb1, 0xb8, 0xd1, 0x94, 0x56, 0xd9, + 0x50, 0xbb, 0xba, 0xb9, 0x03, 0x64, 0x0e, 0x00, 0x7a, 0xc9, 0xa5, 0x54, 0x11, 0xd5, 0xdb, 0x6c, + 0xf0, 0x7b, 0xa4, 0xe6, 0x31, 0x22, 0x1a, 0x82, 0x76, 0x47, 0x46, 0x78, 0xbc, 0x2f, 0xc2, 0x27, + 0x1a, 0x02, 0xa9, 0x7a, 0xab, 0x25, 0x7e, 0x87, 0xd4, 0x11, 0x78, 0x74, 0x1a, 0x08, 0xdb, 0x03, + 0xd0, 0xca, 0x2d, 0xc5, 0x50, 0xbb, 0x4d, 0x33, 0x73, 0x6f, 0xa6, 0xee, 0xcd, 0xdc, 0xbd, 0xd9, + 0x67, 0x7e, 0x44, 0x50, 0xae, 0x1e, 0x00, 0xb4, 0x13, 0xa4, 0x6e, 0x51, 0xe1, 0x06, 0xaa, 0xac, + 0x5d, 0x28, 0x46, 0x8d, 0xe4, 0x3b, 0xfc, 0x14, 0x1d, 0xfa, 0xdc, 0xce, 0x49, 0xa8, 0x13, 0xa4, + 0x8c, 0x8a, 0x71, 0x9f, 0xd4, 0x7c, 0x4e, 0x36, 0x87, 0xf8, 0x25, 0x2a, 0xff, 0x13, 0x41, 0xaa, + 0x6a, 0x73, 0x54, 0x5d, 0xdb, 0xc1, 0x18, 0x1d, 0x48, 0xeb, 0x69, 0xda, 0x2a, 0x91, 0xeb, 0xff, + 0x92, 0xf4, 0x7b, 0x19, 0x1d, 0xad, 0x7b, 0xd9, 0x97, 0x03, 0x84, 0x3f, 0xa0, 0x93, 0x90, 0xce, + 0xed, 0xcd, 0x60, 0xc5, 0x5b, 0x3d, 0xe6, 0x12, 0xe9, 0x80, 0x34, 0x43, 0x3a, 0x2f, 0x1c, 0x02, + 0x8e, 0x03, 0x74, 0x52, 0xfc, 0x36, 0x6d, 0x07, 0x97, 0xd0, 0x6a, 0xf7, 0x55, 0x41, 0x37, 0xf7, + 0x0e, 0x15, 0x69, 0xf2, 0xbd, 0xf3, 0xb6, 0x5b, 0x95, 0x72, 0x51, 0x55, 0xce, 0x51, 0x7d, 0x4b, + 0x63, 0xc7, 0x2c, 0x00, 0xed, 0xa0, 0xa5, 0x18, 0x87, 0xdd, 0x27, 0x05, 0x24, 0xa7, 0x59, 0x2e, + 0x16, 0x00, 0x39, 0xda, 0x7a, 0x96, 0x1e, 0xe0, 0xb7, 0xa8, 0xe1, 0x4e, 0xb9, 0x60, 0xa1, 0x0d, + 0xf3, 0x89, 0x9f, 0x3b, 0x1b, 0x51, 0x01, 0xda, 0x5d, 0x99, 0xf8, 0x51, 0x76, 0x7b, 0xb6, 0xbe, + 0x3c, 0xa5, 0x02, 0xf0, 0x35, 0x7a, 0xf8, 0x57, 0x29, 0x26, 0x2c, 0xf0, 0xdd, 0x44, 0xab, 0x48, + 0x84, 0xe7, 0x05, 0x08, 0xdb, 0x46, 0x87, 0x52, 0x7c, 0x95, 0x4c, 0x80, 0xe0, 0x78, 0xe7, 0xfc, + 0x45, 0x07, 0x35, 0x8a, 0xd5, 0x58, 0x45, 0xf7, 0x86, 0xe4, 0xe2, 0xeb, 0xc7, 0xab, 0xb3, 0x7a, + 0x09, 0x23, 0x54, 0x19, 0x7e, 0xe9, 0x5d, 0x5e, 0xf4, 0xeb, 0x4a, 0xef, 0xfc, 0xc7, 0x42, 0x57, + 0x6e, 0x17, 0xba, 0xf2, 0x7b, 0xa1, 0x2b, 0xdf, 0x96, 0x7a, 0xe9, 0x76, 0xa9, 0x97, 0x7e, 0x2e, + 0xf5, 0xd2, 0xb5, 0x39, 0xf6, 0xc5, 0xcd, 0xd4, 0x31, 0x5d, 0x16, 0x5a, 0x92, 0xea, 0x75, 0x56, + 0xf8, 0x6c, 0x63, 0xcd, 0x37, 0xff, 0x83, 0x48, 0x26, 0xc0, 0x9d, 0x8a, 0xfc, 0x14, 0xde, 0xfc, + 0x09, 0x00, 0x00, 0xff, 0xff, 0x20, 0x02, 0xb1, 0x05, 0x9b, 0x04, 0x00, 0x00, } func (m *SubdomainRegistrationFees) Marshal() (dAtA []byte, err error) { diff --git a/x/registry/types/top_level_domain.pb.go b/x/registry/types/top_level_domain.pb.go index 391358f0..bb1b30ee 100644 --- a/x/registry/types/top_level_domain.pb.go +++ b/x/registry/types/top_level_domain.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: mycel/registry/v1beta1/top_level_domain.proto +// source: mycel/registry/v1/top_level_domain.proto package types @@ -42,7 +42,7 @@ func (m *TopLevelDomain) Reset() { *m = TopLevelDomain{} } func (m *TopLevelDomain) String() string { return proto.CompactTextString(m) } func (*TopLevelDomain) ProtoMessage() {} func (*TopLevelDomain) Descriptor() ([]byte, []int) { - return fileDescriptor_82805ec1d6b2bfd3, []int{0} + return fileDescriptor_6b389e3c29e1273d, []int{0} } func (m *TopLevelDomain) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -124,7 +124,7 @@ func (m *TopLevelDomainFee) Reset() { *m = TopLevelDomainFee{} } func (m *TopLevelDomainFee) String() string { return proto.CompactTextString(m) } func (*TopLevelDomainFee) ProtoMessage() {} func (*TopLevelDomainFee) Descriptor() ([]byte, []int) { - return fileDescriptor_82805ec1d6b2bfd3, []int{1} + return fileDescriptor_6b389e3c29e1273d, []int{1} } func (m *TopLevelDomainFee) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -182,51 +182,51 @@ func (m *TopLevelDomainFee) GetFeeToTreasury() types.Coin { } func init() { - proto.RegisterType((*TopLevelDomain)(nil), "mycel.registry.v1beta1.TopLevelDomain") - proto.RegisterType((*TopLevelDomainFee)(nil), "mycel.registry.v1beta1.TopLevelDomainFee") + proto.RegisterType((*TopLevelDomain)(nil), "mycel.registry.v1.TopLevelDomain") + proto.RegisterType((*TopLevelDomainFee)(nil), "mycel.registry.v1.TopLevelDomainFee") } func init() { - proto.RegisterFile("mycel/registry/v1beta1/top_level_domain.proto", fileDescriptor_82805ec1d6b2bfd3) -} - -var fileDescriptor_82805ec1d6b2bfd3 = []byte{ - // 558 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x53, 0x4f, 0x6f, 0xd3, 0x30, - 0x1c, 0x6d, 0xd6, 0x32, 0xad, 0xae, 0xd6, 0x82, 0xc5, 0x9f, 0xd2, 0x43, 0x52, 0x4d, 0x42, 0xad, - 0x84, 0x6a, 0xb3, 0xf1, 0x09, 0xd6, 0x4e, 0x88, 0xc3, 0xb8, 0x84, 0x4a, 0x93, 0xb8, 0x44, 0x4e, - 0xfa, 0x6b, 0x1a, 0x48, 0xe2, 0xc8, 0x76, 0xd6, 0xf5, 0xcc, 0x8d, 0xd3, 0x3e, 0x07, 0x9f, 0x83, - 0xc3, 0x8e, 0x3b, 0x72, 0xa2, 0xa8, 0xfd, 0x1e, 0x08, 0xc5, 0x49, 0xbb, 0x16, 0x51, 0xc4, 0x61, - 0xa7, 0xd8, 0xbf, 0x3c, 0xbf, 0xf7, 0xfc, 0xfb, 0x3d, 0xa3, 0x5e, 0x34, 0xf3, 0x20, 0xa4, 0x02, - 0xfc, 0x40, 0x2a, 0x31, 0xa3, 0x97, 0xc7, 0x2e, 0x28, 0x76, 0x4c, 0x15, 0x4f, 0x9c, 0x10, 0x2e, - 0x21, 0x74, 0x46, 0x3c, 0x62, 0x41, 0x4c, 0x12, 0xc1, 0x15, 0xc7, 0x4f, 0x35, 0x9c, 0xac, 0xe0, - 0xa4, 0x80, 0xb7, 0x4c, 0x8f, 0xcb, 0x88, 0x4b, 0xea, 0x32, 0x09, 0x6b, 0x0e, 0x8f, 0xaf, 0xce, - 0xb5, 0x1e, 0xfb, 0xdc, 0xe7, 0x7a, 0x49, 0xb3, 0x55, 0x51, 0xb5, 0x7c, 0xce, 0xfd, 0x10, 0xa8, - 0xde, 0xb9, 0xe9, 0x98, 0xaa, 0x20, 0x02, 0xa9, 0x58, 0x94, 0x14, 0x80, 0x97, 0x3b, 0xdc, 0x31, - 0xcf, 0x03, 0x29, 0x1d, 0x8f, 0xc7, 0x4a, 0xf0, 0xb0, 0x00, 0xef, 0xba, 0x8a, 0x4c, 0xdd, 0xfc, - 0x0e, 0x19, 0x7e, 0x1c, 0xf8, 0x39, 0xfc, 0xe8, 0x5b, 0x19, 0xd5, 0x87, 0x3c, 0x39, 0xcf, 0x2e, - 0x79, 0xa6, 0xff, 0x63, 0x8c, 0x2a, 0x31, 0x8b, 0xa0, 0x69, 0xb4, 0x8d, 0x6e, 0xd5, 0xd6, 0x6b, - 0xfc, 0x0e, 0x35, 0xe0, 0x2a, 0x09, 0x04, 0x53, 0x01, 0x8f, 0x9d, 0x11, 0x53, 0xd0, 0xdc, 0x6b, - 0x1b, 0xdd, 0xda, 0x49, 0x8b, 0xe4, 0xee, 0xc9, 0xca, 0x3d, 0x19, 0xae, 0xdc, 0xf7, 0x0f, 0x6e, - 0x7e, 0x58, 0xa5, 0xeb, 0xb9, 0x65, 0xd8, 0xf5, 0xbb, 0xc3, 0x67, 0x4c, 0x01, 0xb6, 0xd1, 0xc3, - 0x3f, 0xfd, 0x34, 0xcb, 0x9a, 0xaf, 0x43, 0xfe, 0xde, 0x5b, 0xf2, 0x7e, 0x85, 0x1f, 0x68, 0xb8, - 0xdd, 0x90, 0xdb, 0x05, 0xdc, 0x41, 0x8d, 0x4d, 0xce, 0x34, 0x56, 0xcd, 0x4a, 0xdb, 0xe8, 0x56, - 0xec, 0xfa, 0x06, 0x32, 0x8d, 0x15, 0x3e, 0x47, 0xf5, 0xed, 0xce, 0x35, 0x1f, 0xb4, 0xcb, 0xdd, - 0xda, 0xc9, 0x8b, 0x5d, 0xd2, 0xa7, 0x1a, 0x3d, 0xc8, 0xc1, 0xf6, 0x21, 0xdb, 0xdc, 0xe2, 0xcf, - 0x06, 0x7a, 0xa6, 0xb8, 0x62, 0xa1, 0x33, 0x0d, 0xd4, 0x64, 0x24, 0xd8, 0x94, 0x85, 0x0e, 0x8b, - 0xb4, 0xfe, 0xbe, 0xe6, 0x7d, 0x4e, 0xf2, 0x58, 0x90, 0x2c, 0x16, 0x6b, 0xd2, 0x01, 0x0f, 0xe2, - 0xfe, 0xab, 0xac, 0x43, 0x5f, 0xe7, 0x56, 0xd7, 0x0f, 0xd4, 0x24, 0x75, 0x89, 0xc7, 0x23, 0x5a, - 0x64, 0x28, 0xff, 0xf4, 0xe4, 0xe8, 0x13, 0x55, 0xb3, 0x04, 0xa4, 0x3e, 0x20, 0xed, 0x27, 0x5a, - 0xeb, 0x62, 0x2d, 0x75, 0xaa, 0x95, 0x8e, 0x7e, 0xed, 0xa1, 0x47, 0xdb, 0x63, 0x7c, 0x03, 0x80, - 0x27, 0xa8, 0x9a, 0x5b, 0x1b, 0x43, 0x36, 0xce, 0x7b, 0x37, 0x73, 0xa0, 0xd9, 0x33, 0x25, 0x0b, - 0xd5, 0xdc, 0x54, 0xc4, 0xce, 0x14, 0x02, 0x7f, 0xa2, 0x74, 0x36, 0xaa, 0x36, 0xca, 0x4a, 0x17, - 0xba, 0x82, 0x3f, 0xa2, 0xda, 0x18, 0xc0, 0x51, 0xdc, 0xc9, 0x8a, 0xc5, 0xb0, 0xff, 0x61, 0x86, - 0x66, 0x66, 0xbe, 0xcc, 0xad, 0xce, 0x7f, 0x9a, 0xb1, 0xab, 0x63, 0x80, 0x21, 0xef, 0xa7, 0x22, - 0xc6, 0x02, 0x35, 0x0a, 0x2d, 0x25, 0x80, 0xc9, 0x54, 0xcc, 0x74, 0x12, 0xee, 0x57, 0xef, 0x50, - 0xeb, 0x0d, 0x0b, 0x81, 0xfe, 0xdb, 0x9b, 0x85, 0x69, 0xdc, 0x2e, 0x4c, 0xe3, 0xe7, 0xc2, 0x34, - 0xae, 0x97, 0x66, 0xe9, 0x76, 0x69, 0x96, 0xbe, 0x2f, 0xcd, 0xd2, 0x07, 0xb2, 0xc1, 0xa8, 0x03, - 0xd6, 0xcb, 0xc3, 0x98, 0x6f, 0xe8, 0xd5, 0xdd, 0x53, 0xd5, 0xec, 0xee, 0xbe, 0x7e, 0x49, 0xaf, - 0x7f, 0x07, 0x00, 0x00, 0xff, 0xff, 0x2b, 0x59, 0xe4, 0xef, 0x94, 0x04, 0x00, 0x00, + proto.RegisterFile("mycel/registry/v1/top_level_domain.proto", fileDescriptor_6b389e3c29e1273d) +} + +var fileDescriptor_6b389e3c29e1273d = []byte{ + // 559 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x53, 0xc1, 0x6e, 0xd3, 0x4a, + 0x14, 0x8d, 0x9b, 0xbc, 0xaa, 0x99, 0xa8, 0xc9, 0xab, 0x05, 0x22, 0x64, 0x61, 0x47, 0x59, 0x50, + 0x6f, 0x3a, 0x43, 0xca, 0x17, 0x34, 0xa9, 0x80, 0x05, 0x6c, 0x4c, 0xa4, 0x4a, 0x6c, 0xac, 0xb1, + 0x73, 0xe3, 0x18, 0x6c, 0x8f, 0x35, 0x33, 0x4e, 0x9a, 0x35, 0x3b, 0x56, 0xfd, 0x0e, 0x3e, 0x81, + 0x2f, 0xe8, 0xb2, 0x4b, 0x56, 0x04, 0x25, 0xff, 0x81, 0xd0, 0x8c, 0x1d, 0x9a, 0xd0, 0x0a, 0xb1, + 0xe8, 0x2a, 0x33, 0x37, 0xe7, 0x9e, 0x73, 0x7c, 0xef, 0x19, 0xe4, 0x24, 0x8b, 0x00, 0x62, 0xc2, + 0x21, 0x8c, 0x84, 0xe4, 0x0b, 0x32, 0xeb, 0x13, 0xc9, 0x32, 0x2f, 0x86, 0x19, 0xc4, 0xde, 0x98, + 0x25, 0x34, 0x4a, 0x71, 0xc6, 0x99, 0x64, 0xe6, 0x91, 0x46, 0xe2, 0x0d, 0x12, 0xcf, 0xfa, 0x1d, + 0x2b, 0x60, 0x22, 0x61, 0x82, 0xf8, 0x54, 0x00, 0x99, 0xf5, 0x7d, 0x90, 0xb4, 0x4f, 0x02, 0xb6, + 0x69, 0xe9, 0x3c, 0x0a, 0x59, 0xc8, 0xf4, 0x91, 0xa8, 0x53, 0x59, 0xb5, 0x43, 0xc6, 0xc2, 0x18, + 0x88, 0xbe, 0xf9, 0xf9, 0x84, 0xc8, 0x28, 0x01, 0x21, 0x69, 0x92, 0x95, 0x80, 0x67, 0x77, 0x3d, + 0xd1, 0x20, 0x00, 0x21, 0xbc, 0x80, 0xa5, 0x92, 0xb3, 0xb8, 0xc4, 0xdd, 0xe3, 0x5d, 0xe4, 0x7e, + 0x61, 0x5a, 0x41, 0x27, 0x51, 0x58, 0x20, 0x7b, 0x5f, 0xab, 0xa8, 0x39, 0x62, 0xd9, 0x1b, 0xf5, + 0x55, 0xe7, 0xfa, 0x7f, 0xd3, 0x44, 0xb5, 0x94, 0x26, 0xd0, 0x36, 0xba, 0x86, 0x53, 0x77, 0xf5, + 0xd9, 0x7c, 0x8b, 0x5a, 0x70, 0x99, 0x45, 0x9c, 0xca, 0x88, 0xa5, 0xde, 0x98, 0x4a, 0x68, 0xef, + 0x75, 0x0d, 0xa7, 0x71, 0xda, 0xc1, 0x85, 0x67, 0xbc, 0xf1, 0x8c, 0x47, 0x1b, 0xcf, 0x83, 0x83, + 0xeb, 0xef, 0x76, 0xe5, 0x6a, 0x69, 0x1b, 0x6e, 0xf3, 0xb6, 0xf9, 0x9c, 0x4a, 0x45, 0xf7, 0xff, + 0x9f, 0x7e, 0xda, 0x55, 0xcd, 0xd7, 0xc3, 0x77, 0x86, 0x89, 0xdf, 0x6d, 0xa0, 0x43, 0x8d, 0x74, + 0x5b, 0x62, 0xb7, 0x60, 0x1e, 0xa3, 0xd6, 0x36, 0x5d, 0x9e, 0xca, 0x76, 0xad, 0x6b, 0x38, 0x35, + 0xb7, 0xb9, 0x85, 0xcc, 0x53, 0x69, 0xbe, 0x42, 0xcd, 0xdd, 0x79, 0xb5, 0xff, 0xeb, 0x56, 0x9d, + 0xc6, 0x69, 0xf7, 0x1e, 0xd5, 0x33, 0x0d, 0x1c, 0x16, 0x38, 0xf7, 0x90, 0x6e, 0x5f, 0xcd, 0x4f, + 0x06, 0x7a, 0x22, 0x99, 0xa4, 0xb1, 0x37, 0x8f, 0xe4, 0x74, 0xcc, 0xe9, 0x9c, 0xc6, 0x1e, 0x4d, + 0xb4, 0xf4, 0xbe, 0xa6, 0x7c, 0x8a, 0x8b, 0x08, 0x60, 0x15, 0x01, 0x5c, 0x46, 0x00, 0x0f, 0x59, + 0x94, 0x0e, 0x9e, 0xab, 0xb9, 0x7c, 0x59, 0xda, 0x4e, 0x18, 0xc9, 0x69, 0xee, 0xe3, 0x80, 0x25, + 0xa4, 0xcc, 0x4b, 0xf1, 0x73, 0x22, 0xc6, 0x1f, 0x89, 0x5c, 0x64, 0x20, 0x74, 0x83, 0x70, 0x1f, + 0x6b, 0xad, 0x8b, 0xdf, 0x52, 0x67, 0x5a, 0xa9, 0xf7, 0x73, 0x0f, 0x1d, 0xed, 0x2e, 0xef, 0x25, + 0x80, 0x39, 0x45, 0xf5, 0xc2, 0xda, 0x04, 0xd4, 0x12, 0x1f, 0xdc, 0xcc, 0x81, 0x66, 0x57, 0x4a, + 0x36, 0x6a, 0xf8, 0x39, 0x4f, 0xbd, 0x39, 0x44, 0xe1, 0x54, 0xea, 0x44, 0xd4, 0x5d, 0xa4, 0x4a, + 0x17, 0xba, 0x62, 0x7e, 0x40, 0x8d, 0x09, 0x80, 0x27, 0x99, 0xa7, 0x8a, 0xe5, 0x8a, 0xff, 0x62, + 0x86, 0x28, 0x33, 0x9f, 0x97, 0xf6, 0xf1, 0x3f, 0x9a, 0x71, 0xeb, 0x13, 0x80, 0x11, 0x1b, 0xe4, + 0x3c, 0x35, 0x39, 0x6a, 0x95, 0x5a, 0x92, 0x03, 0x15, 0x39, 0x5f, 0xe8, 0x10, 0x3c, 0xac, 0xde, + 0xa1, 0xd6, 0x1b, 0x95, 0x02, 0x83, 0xd7, 0xd7, 0x2b, 0xcb, 0xb8, 0x59, 0x59, 0xc6, 0x8f, 0x95, + 0x65, 0x5c, 0xad, 0xad, 0xca, 0xcd, 0xda, 0xaa, 0x7c, 0x5b, 0x5b, 0x95, 0xf7, 0x78, 0x8b, 0x51, + 0x67, 0xeb, 0xa4, 0xc8, 0x61, 0x71, 0x21, 0x97, 0xb7, 0x6f, 0x53, 0xb3, 0xfb, 0xfb, 0xfa, 0xfd, + 0xbc, 0xf8, 0x15, 0x00, 0x00, 0xff, 0xff, 0xbd, 0x30, 0x9e, 0xec, 0x76, 0x04, 0x00, 0x00, } func (m *TopLevelDomain) Marshal() (dAtA []byte, err error) { diff --git a/x/registry/types/tx.pb.go b/x/registry/types/tx.pb.go index bac35484..62770c4e 100644 --- a/x/registry/types/tx.pb.go +++ b/x/registry/types/tx.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: mycel/registry/v1beta1/tx.proto +// source: mycel/registry/v1/tx.proto package types @@ -8,6 +8,7 @@ import ( fmt "fmt" github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types" types "github.com/cosmos/cosmos-sdk/types" + _ "github.com/cosmos/cosmos-sdk/types/msgservice" _ "github.com/cosmos/gogoproto/gogoproto" grpc1 "github.com/cosmos/gogoproto/grpc" proto "github.com/cosmos/gogoproto/proto" @@ -42,7 +43,7 @@ func (m *MsgUpdateWalletRecord) Reset() { *m = MsgUpdateWalletRecord{} } func (m *MsgUpdateWalletRecord) String() string { return proto.CompactTextString(m) } func (*MsgUpdateWalletRecord) ProtoMessage() {} func (*MsgUpdateWalletRecord) Descriptor() ([]byte, []int) { - return fileDescriptor_a149ca4076788b36, []int{0} + return fileDescriptor_1c3d39e164a87334, []int{0} } func (m *MsgUpdateWalletRecord) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -113,7 +114,7 @@ func (m *MsgUpdateWalletRecordResponse) Reset() { *m = MsgUpdateWalletRe func (m *MsgUpdateWalletRecordResponse) String() string { return proto.CompactTextString(m) } func (*MsgUpdateWalletRecordResponse) ProtoMessage() {} func (*MsgUpdateWalletRecordResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_a149ca4076788b36, []int{1} + return fileDescriptor_1c3d39e164a87334, []int{1} } func (m *MsgUpdateWalletRecordResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -154,7 +155,7 @@ func (m *MsgUpdateDnsRecord) Reset() { *m = MsgUpdateDnsRecord{} } func (m *MsgUpdateDnsRecord) String() string { return proto.CompactTextString(m) } func (*MsgUpdateDnsRecord) ProtoMessage() {} func (*MsgUpdateDnsRecord) Descriptor() ([]byte, []int) { - return fileDescriptor_a149ca4076788b36, []int{2} + return fileDescriptor_1c3d39e164a87334, []int{2} } func (m *MsgUpdateDnsRecord) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -225,7 +226,7 @@ func (m *MsgUpdateDnsRecordResponse) Reset() { *m = MsgUpdateDnsRecordRe func (m *MsgUpdateDnsRecordResponse) String() string { return proto.CompactTextString(m) } func (*MsgUpdateDnsRecordResponse) ProtoMessage() {} func (*MsgUpdateDnsRecordResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_a149ca4076788b36, []int{3} + return fileDescriptor_1c3d39e164a87334, []int{3} } func (m *MsgUpdateDnsRecordResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -265,7 +266,7 @@ func (m *MsgRegisterSecondLevelDomain) Reset() { *m = MsgRegisterSecondL func (m *MsgRegisterSecondLevelDomain) String() string { return proto.CompactTextString(m) } func (*MsgRegisterSecondLevelDomain) ProtoMessage() {} func (*MsgRegisterSecondLevelDomain) Descriptor() ([]byte, []int) { - return fileDescriptor_a149ca4076788b36, []int{4} + return fileDescriptor_1c3d39e164a87334, []int{4} } func (m *MsgRegisterSecondLevelDomain) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -329,7 +330,7 @@ func (m *MsgRegisterSecondLevelDomainResponse) Reset() { *m = MsgRegiste func (m *MsgRegisterSecondLevelDomainResponse) String() string { return proto.CompactTextString(m) } func (*MsgRegisterSecondLevelDomainResponse) ProtoMessage() {} func (*MsgRegisterSecondLevelDomainResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_a149ca4076788b36, []int{5} + return fileDescriptor_1c3d39e164a87334, []int{5} } func (m *MsgRegisterSecondLevelDomainResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -368,7 +369,7 @@ func (m *MsgRegisterTopLevelDomain) Reset() { *m = MsgRegisterTopLevelDo func (m *MsgRegisterTopLevelDomain) String() string { return proto.CompactTextString(m) } func (*MsgRegisterTopLevelDomain) ProtoMessage() {} func (*MsgRegisterTopLevelDomain) Descriptor() ([]byte, []int) { - return fileDescriptor_a149ca4076788b36, []int{6} + return fileDescriptor_1c3d39e164a87334, []int{6} } func (m *MsgRegisterTopLevelDomain) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -427,7 +428,7 @@ func (m *MsgRegisterTopLevelDomainResponse) Reset() { *m = MsgRegisterTo func (m *MsgRegisterTopLevelDomainResponse) String() string { return proto.CompactTextString(m) } func (*MsgRegisterTopLevelDomainResponse) ProtoMessage() {} func (*MsgRegisterTopLevelDomainResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_a149ca4076788b36, []int{7} + return fileDescriptor_1c3d39e164a87334, []int{7} } func (m *MsgRegisterTopLevelDomainResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -479,7 +480,7 @@ func (m *MsgWithdrawRegistrationFee) Reset() { *m = MsgWithdrawRegistrat func (m *MsgWithdrawRegistrationFee) String() string { return proto.CompactTextString(m) } func (*MsgWithdrawRegistrationFee) ProtoMessage() {} func (*MsgWithdrawRegistrationFee) Descriptor() ([]byte, []int) { - return fileDescriptor_a149ca4076788b36, []int{8} + return fileDescriptor_1c3d39e164a87334, []int{8} } func (m *MsgWithdrawRegistrationFee) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -523,14 +524,14 @@ func (m *MsgWithdrawRegistrationFee) GetName() string { } type MsgWithdrawRegistrationFeeResponse struct { - RegistrationFee github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,7,rep,name=registration_fee,json=registrationFee,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"registration_fee"` + RegistrationFee github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,1,rep,name=registration_fee,json=registrationFee,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"registration_fee"` } func (m *MsgWithdrawRegistrationFeeResponse) Reset() { *m = MsgWithdrawRegistrationFeeResponse{} } func (m *MsgWithdrawRegistrationFeeResponse) String() string { return proto.CompactTextString(m) } func (*MsgWithdrawRegistrationFeeResponse) ProtoMessage() {} func (*MsgWithdrawRegistrationFeeResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_a149ca4076788b36, []int{9} + return fileDescriptor_1c3d39e164a87334, []int{9} } func (m *MsgWithdrawRegistrationFeeResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -576,7 +577,7 @@ func (m *MsgExtendTopLevelDomainExpirationDate) Reset() { *m = MsgExtend func (m *MsgExtendTopLevelDomainExpirationDate) String() string { return proto.CompactTextString(m) } func (*MsgExtendTopLevelDomainExpirationDate) ProtoMessage() {} func (*MsgExtendTopLevelDomainExpirationDate) Descriptor() ([]byte, []int) { - return fileDescriptor_a149ca4076788b36, []int{10} + return fileDescriptor_1c3d39e164a87334, []int{10} } func (m *MsgExtendTopLevelDomainExpirationDate) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -639,7 +640,7 @@ func (m *MsgExtendTopLevelDomainExpirationDateResponse) String() string { } func (*MsgExtendTopLevelDomainExpirationDateResponse) ProtoMessage() {} func (*MsgExtendTopLevelDomainExpirationDateResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_a149ca4076788b36, []int{11} + return fileDescriptor_1c3d39e164a87334, []int{11} } func (m *MsgExtendTopLevelDomainExpirationDateResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -694,7 +695,7 @@ func (m *MsgUpdateTextRecord) Reset() { *m = MsgUpdateTextRecord{} } func (m *MsgUpdateTextRecord) String() string { return proto.CompactTextString(m) } func (*MsgUpdateTextRecord) ProtoMessage() {} func (*MsgUpdateTextRecord) Descriptor() ([]byte, []int) { - return fileDescriptor_a149ca4076788b36, []int{12} + return fileDescriptor_1c3d39e164a87334, []int{12} } func (m *MsgUpdateTextRecord) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -765,7 +766,7 @@ func (m *MsgUpdateTextRecordResponse) Reset() { *m = MsgUpdateTextRecord func (m *MsgUpdateTextRecordResponse) String() string { return proto.CompactTextString(m) } func (*MsgUpdateTextRecordResponse) ProtoMessage() {} func (*MsgUpdateTextRecordResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_a149ca4076788b36, []int{13} + return fileDescriptor_1c3d39e164a87334, []int{13} } func (m *MsgUpdateTextRecordResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -808,7 +809,7 @@ func (m *MsgUpdateTopLevelDomainRegistrationPolicy) String() string { } func (*MsgUpdateTopLevelDomainRegistrationPolicy) ProtoMessage() {} func (*MsgUpdateTopLevelDomainRegistrationPolicy) Descriptor() ([]byte, []int) { - return fileDescriptor_a149ca4076788b36, []int{14} + return fileDescriptor_1c3d39e164a87334, []int{14} } func (m *MsgUpdateTopLevelDomainRegistrationPolicy) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -869,7 +870,7 @@ func (m *MsgUpdateTopLevelDomainRegistrationPolicyResponse) String() string { } func (*MsgUpdateTopLevelDomainRegistrationPolicyResponse) ProtoMessage() {} func (*MsgUpdateTopLevelDomainRegistrationPolicyResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_a149ca4076788b36, []int{15} + return fileDescriptor_1c3d39e164a87334, []int{15} } func (m *MsgUpdateTopLevelDomainRegistrationPolicyResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -899,81 +900,83 @@ func (m *MsgUpdateTopLevelDomainRegistrationPolicyResponse) XXX_DiscardUnknown() var xxx_messageInfo_MsgUpdateTopLevelDomainRegistrationPolicyResponse proto.InternalMessageInfo func init() { - proto.RegisterType((*MsgUpdateWalletRecord)(nil), "mycel.registry.v1beta1.MsgUpdateWalletRecord") - proto.RegisterType((*MsgUpdateWalletRecordResponse)(nil), "mycel.registry.v1beta1.MsgUpdateWalletRecordResponse") - proto.RegisterType((*MsgUpdateDnsRecord)(nil), "mycel.registry.v1beta1.MsgUpdateDnsRecord") - proto.RegisterType((*MsgUpdateDnsRecordResponse)(nil), "mycel.registry.v1beta1.MsgUpdateDnsRecordResponse") - proto.RegisterType((*MsgRegisterSecondLevelDomain)(nil), "mycel.registry.v1beta1.MsgRegisterSecondLevelDomain") - proto.RegisterType((*MsgRegisterSecondLevelDomainResponse)(nil), "mycel.registry.v1beta1.MsgRegisterSecondLevelDomainResponse") - proto.RegisterType((*MsgRegisterTopLevelDomain)(nil), "mycel.registry.v1beta1.MsgRegisterTopLevelDomain") - proto.RegisterType((*MsgRegisterTopLevelDomainResponse)(nil), "mycel.registry.v1beta1.MsgRegisterTopLevelDomainResponse") - proto.RegisterType((*MsgWithdrawRegistrationFee)(nil), "mycel.registry.v1beta1.MsgWithdrawRegistrationFee") - proto.RegisterType((*MsgWithdrawRegistrationFeeResponse)(nil), "mycel.registry.v1beta1.MsgWithdrawRegistrationFeeResponse") - proto.RegisterType((*MsgExtendTopLevelDomainExpirationDate)(nil), "mycel.registry.v1beta1.MsgExtendTopLevelDomainExpirationDate") - proto.RegisterType((*MsgExtendTopLevelDomainExpirationDateResponse)(nil), "mycel.registry.v1beta1.MsgExtendTopLevelDomainExpirationDateResponse") - proto.RegisterType((*MsgUpdateTextRecord)(nil), "mycel.registry.v1beta1.MsgUpdateTextRecord") - proto.RegisterType((*MsgUpdateTextRecordResponse)(nil), "mycel.registry.v1beta1.MsgUpdateTextRecordResponse") - proto.RegisterType((*MsgUpdateTopLevelDomainRegistrationPolicy)(nil), "mycel.registry.v1beta1.MsgUpdateTopLevelDomainRegistrationPolicy") - proto.RegisterType((*MsgUpdateTopLevelDomainRegistrationPolicyResponse)(nil), "mycel.registry.v1beta1.MsgUpdateTopLevelDomainRegistrationPolicyResponse") -} - -func init() { proto.RegisterFile("mycel/registry/v1beta1/tx.proto", fileDescriptor_a149ca4076788b36) } - -var fileDescriptor_a149ca4076788b36 = []byte{ - // 847 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x57, 0xcd, 0x6f, 0xe3, 0x44, - 0x14, 0xcf, 0x90, 0x7e, 0xc0, 0xab, 0xa0, 0x91, 0xfb, 0x81, 0xeb, 0xb6, 0x49, 0xb1, 0x20, 0x6a, - 0x81, 0xd8, 0x24, 0x05, 0x21, 0x3e, 0x7a, 0xa0, 0xb4, 0x15, 0x45, 0x44, 0xaa, 0x4c, 0x51, 0x05, - 0x97, 0xc8, 0xb1, 0x07, 0xd7, 0x6a, 0xe2, 0x31, 0x9e, 0x69, 0x9a, 0x70, 0x45, 0x42, 0xc0, 0x01, - 0x38, 0xee, 0x61, 0x2f, 0xab, 0xbd, 0xf5, 0xb8, 0x87, 0x3d, 0xee, 0xb9, 0xc7, 0x1e, 0xf7, 0xb4, - 0xbb, 0x6a, 0xff, 0x88, 0xbd, 0xae, 0x3c, 0x4e, 0xa6, 0x49, 0x1a, 0xe7, 0xa3, 0xed, 0x61, 0x4f, - 0xf5, 0xd8, 0xbf, 0xf7, 0x7b, 0xbf, 0x37, 0xf3, 0xe6, 0xf7, 0x1a, 0xc8, 0x54, 0x1b, 0x16, 0xae, - 0xe8, 0x01, 0x76, 0x5c, 0xca, 0x82, 0x86, 0x5e, 0xcb, 0x97, 0x31, 0x33, 0xf3, 0x3a, 0xab, 0x6b, - 0x7e, 0x40, 0x18, 0x91, 0xe6, 0x39, 0x40, 0x6b, 0x01, 0xb4, 0x26, 0x40, 0x49, 0x5b, 0x84, 0x56, - 0x09, 0xd5, 0xcb, 0x26, 0xc5, 0x22, 0xca, 0x22, 0xae, 0x17, 0xc5, 0x29, 0xb3, 0x0e, 0x71, 0x08, - 0x7f, 0xd4, 0xc3, 0xa7, 0xe6, 0xdb, 0x5c, 0x5c, 0x3a, 0xe2, 0x97, 0x2a, 0xb8, 0x86, 0x2b, 0x25, - 0x9b, 0x54, 0xcd, 0x16, 0x89, 0xfa, 0x00, 0xc1, 0x5c, 0x91, 0x3a, 0x3f, 0xf9, 0xb6, 0xc9, 0xf0, - 0x81, 0x59, 0xa9, 0x60, 0x66, 0x60, 0x8b, 0x04, 0xb6, 0x24, 0xc3, 0xa4, 0x15, 0x60, 0x93, 0x91, - 0x40, 0x46, 0x2b, 0x68, 0xf5, 0x2d, 0xa3, 0xb5, 0x94, 0x24, 0x18, 0xf3, 0xcc, 0x2a, 0x96, 0xdf, - 0xe0, 0xaf, 0xf9, 0xb3, 0x34, 0x0f, 0x13, 0xbe, 0x19, 0x60, 0x8f, 0xc9, 0x49, 0xfe, 0xb6, 0xb9, - 0x92, 0x3e, 0x06, 0xe9, 0x84, 0xb3, 0x96, 0x02, 0x4e, 0x5b, 0x62, 0x0d, 0x1f, 0xcb, 0x63, 0x1c, - 0x93, 0x3a, 0x69, 0xcb, 0xb7, 0xdf, 0xf0, 0xb1, 0x34, 0x0b, 0xe3, 0x35, 0xb3, 0x72, 0x8c, 0xe5, - 0x71, 0x0e, 0x88, 0x16, 0x6a, 0x06, 0x96, 0x7b, 0x4a, 0x34, 0x30, 0xf5, 0x89, 0x47, 0xb1, 0x7a, - 0x0f, 0x81, 0x24, 0x10, 0x5b, 0x1e, 0xbd, 0xd3, 0x0a, 0xb2, 0x30, 0x6d, 0x7b, 0xb4, 0x87, 0xfc, - 0xb7, 0xed, 0x56, 0xa6, 0x3e, 0xda, 0x97, 0x40, 0xb9, 0xae, 0x4c, 0x08, 0x7f, 0x88, 0x60, 0xa9, - 0x48, 0x1d, 0x83, 0x1f, 0x16, 0x0e, 0x7e, 0xc4, 0x16, 0xf1, 0xec, 0x1f, 0xc2, 0x53, 0xda, 0xe2, - 0x87, 0x74, 0x47, 0x25, 0x6c, 0xc0, 0x62, 0xb3, 0x1f, 0x4c, 0xe6, 0x12, 0xaf, 0xe4, 0xe3, 0xc0, - 0x25, 0x76, 0xc9, 0xf5, 0x4a, 0x0d, 0x6c, 0x06, 0xbc, 0x9c, 0x31, 0x43, 0x6e, 0x87, 0xec, 0x71, - 0xc4, 0xae, 0xf7, 0x33, 0x36, 0x03, 0x35, 0x0b, 0xef, 0xf7, 0x13, 0x29, 0xaa, 0xf9, 0x0b, 0xc1, - 0x42, 0x1b, 0x70, 0x9f, 0xf8, 0x37, 0x2f, 0x65, 0x80, 0xe4, 0xe4, 0x00, 0xc9, 0x8f, 0x10, 0xbc, - 0x17, 0x2b, 0xa5, 0x25, 0x58, 0xda, 0x83, 0x54, 0xf7, 0xb5, 0xe0, 0xda, 0xa6, 0x0a, 0x59, 0xad, - 0xf7, 0xa5, 0xd4, 0xba, 0x98, 0xde, 0x61, 0x9d, 0x45, 0x7e, 0x05, 0xc9, 0x5f, 0x71, 0x54, 0xc9, - 0x54, 0x61, 0x6d, 0x38, 0x92, 0x1d, 0x8c, 0x8d, 0x30, 0x4a, 0xfd, 0x9e, 0xf7, 0xca, 0x81, 0xcb, - 0x0e, 0xed, 0xc0, 0x3c, 0x31, 0xda, 0x6a, 0xdb, 0xc1, 0x78, 0xb4, 0xfd, 0x53, 0xef, 0x23, 0x50, - 0xe3, 0xc9, 0xc4, 0x0e, 0xd4, 0x20, 0xd5, 0xb1, 0xcd, 0xa1, 0xf8, 0xc9, 0x95, 0xe4, 0xea, 0x54, - 0x61, 0x41, 0x8b, 0xec, 0x47, 0x0b, 0xed, 0x47, 0x28, 0xff, 0x96, 0xb8, 0xde, 0xe6, 0x27, 0x67, - 0xcf, 0x32, 0x89, 0xd3, 0xe7, 0x99, 0x55, 0xc7, 0x65, 0x87, 0xc7, 0x65, 0xcd, 0x22, 0x55, 0xbd, - 0xe9, 0x55, 0xd1, 0x9f, 0x1c, 0xb5, 0x8f, 0xf4, 0xf0, 0xa6, 0x50, 0x1e, 0x40, 0x8d, 0xe9, 0xa0, - 0x33, 0xbf, 0xfa, 0x2f, 0x82, 0x0f, 0x8a, 0xd4, 0xd9, 0xae, 0x33, 0xec, 0xd9, 0x9d, 0xdb, 0xb1, - 0x5d, 0xf7, 0xdd, 0x08, 0xb8, 0x65, 0xb2, 0x11, 0xcb, 0x96, 0x3e, 0x07, 0x19, 0x87, 0x9c, 0x34, - 0xb6, 0x67, 0xe6, 0xc4, 0xf7, 0x8e, 0x86, 0x79, 0x82, 0x20, 0x37, 0x94, 0xa0, 0xd7, 0xb5, 0x79, - 0xfe, 0x40, 0x30, 0x23, 0x9c, 0x66, 0x1f, 0xd7, 0xef, 0xd6, 0xc6, 0x53, 0x90, 0x3c, 0xc2, 0x8d, - 0xa6, 0xf1, 0x85, 0x8f, 0x31, 0x76, 0xb7, 0x0c, 0x8b, 0x3d, 0x44, 0x08, 0x87, 0xf8, 0x07, 0xc1, - 0xda, 0xd5, 0xf7, 0xae, 0x4b, 0xd9, 0x76, 0x95, 0x49, 0xc5, 0xb5, 0x1a, 0x23, 0x4a, 0xd7, 0x61, - 0xa6, 0xd3, 0x31, 0x38, 0x49, 0xb3, 0x0e, 0x29, 0xb8, 0x46, 0xaf, 0xae, 0x43, 0x7e, 0x68, 0x2d, - 0xad, 0x0a, 0x0a, 0x2f, 0xdf, 0x84, 0x64, 0x91, 0x3a, 0xd2, 0xef, 0x20, 0xf5, 0x98, 0x99, 0xb9, - 0xb8, 0x43, 0xeb, 0x39, 0xbf, 0x94, 0xcf, 0x46, 0x82, 0x8b, 0xce, 0xfb, 0x0d, 0xa6, 0xbb, 0x47, - 0xdd, 0x87, 0x03, 0x99, 0x04, 0x56, 0x29, 0x0c, 0x8f, 0x15, 0x29, 0xff, 0x43, 0xb0, 0x10, 0x3f, - 0xa5, 0x3e, 0xed, 0xc3, 0x18, 0x1b, 0xa5, 0x7c, 0x7d, 0x93, 0x28, 0xa1, 0xe8, 0x4f, 0x04, 0xf3, - 0x31, 0x93, 0x26, 0x3f, 0x04, 0x71, 0x67, 0x88, 0xf2, 0xc5, 0xc8, 0x21, 0x42, 0xc8, 0xdf, 0x08, - 0xde, 0x8d, 0xf3, 0xec, 0x7e, 0x5b, 0x1d, 0x13, 0xa3, 0x7c, 0x39, 0x7a, 0x8c, 0xd0, 0x72, 0x8a, - 0x40, 0x1d, 0xc2, 0x53, 0x37, 0xfa, 0xa4, 0x18, 0x1c, 0xae, 0x6c, 0xdf, 0x2a, 0x5c, 0x88, 0x65, - 0x90, 0xba, 0xe6, 0x56, 0x1f, 0x0d, 0xec, 0xcd, 0x2b, 0xb0, 0xb2, 0x3e, 0x02, 0x58, 0x64, 0x7d, - 0x8c, 0x20, 0x3b, 0xa4, 0xff, 0x7c, 0x33, 0x98, 0x7f, 0x00, 0x85, 0xb2, 0x7b, 0x6b, 0x8a, 0x96, - 0xf0, 0xcd, 0xef, 0xce, 0x2e, 0xd2, 0xe8, 0xfc, 0x22, 0x8d, 0x5e, 0x5c, 0xa4, 0xd1, 0xff, 0x97, - 0xe9, 0xc4, 0xf9, 0x65, 0x3a, 0xf1, 0xf4, 0x32, 0x9d, 0xf8, 0x45, 0x6b, 0x9b, 0xc3, 0x3c, 0x5d, - 0x2e, 0x1a, 0x47, 0xd1, 0x42, 0xaf, 0x5f, 0xfd, 0x18, 0xe0, 0x33, 0xb9, 0x3c, 0xc1, 0xff, 0xf5, - 0x5f, 0x7f, 0x15, 0x00, 0x00, 0xff, 0xff, 0x6d, 0x01, 0xb0, 0x9c, 0x9a, 0x0c, 0x00, 0x00, + proto.RegisterType((*MsgUpdateWalletRecord)(nil), "mycel.registry.v1.MsgUpdateWalletRecord") + proto.RegisterType((*MsgUpdateWalletRecordResponse)(nil), "mycel.registry.v1.MsgUpdateWalletRecordResponse") + proto.RegisterType((*MsgUpdateDnsRecord)(nil), "mycel.registry.v1.MsgUpdateDnsRecord") + proto.RegisterType((*MsgUpdateDnsRecordResponse)(nil), "mycel.registry.v1.MsgUpdateDnsRecordResponse") + proto.RegisterType((*MsgRegisterSecondLevelDomain)(nil), "mycel.registry.v1.MsgRegisterSecondLevelDomain") + proto.RegisterType((*MsgRegisterSecondLevelDomainResponse)(nil), "mycel.registry.v1.MsgRegisterSecondLevelDomainResponse") + proto.RegisterType((*MsgRegisterTopLevelDomain)(nil), "mycel.registry.v1.MsgRegisterTopLevelDomain") + proto.RegisterType((*MsgRegisterTopLevelDomainResponse)(nil), "mycel.registry.v1.MsgRegisterTopLevelDomainResponse") + proto.RegisterType((*MsgWithdrawRegistrationFee)(nil), "mycel.registry.v1.MsgWithdrawRegistrationFee") + proto.RegisterType((*MsgWithdrawRegistrationFeeResponse)(nil), "mycel.registry.v1.MsgWithdrawRegistrationFeeResponse") + proto.RegisterType((*MsgExtendTopLevelDomainExpirationDate)(nil), "mycel.registry.v1.MsgExtendTopLevelDomainExpirationDate") + proto.RegisterType((*MsgExtendTopLevelDomainExpirationDateResponse)(nil), "mycel.registry.v1.MsgExtendTopLevelDomainExpirationDateResponse") + proto.RegisterType((*MsgUpdateTextRecord)(nil), "mycel.registry.v1.MsgUpdateTextRecord") + proto.RegisterType((*MsgUpdateTextRecordResponse)(nil), "mycel.registry.v1.MsgUpdateTextRecordResponse") + proto.RegisterType((*MsgUpdateTopLevelDomainRegistrationPolicy)(nil), "mycel.registry.v1.MsgUpdateTopLevelDomainRegistrationPolicy") + proto.RegisterType((*MsgUpdateTopLevelDomainRegistrationPolicyResponse)(nil), "mycel.registry.v1.MsgUpdateTopLevelDomainRegistrationPolicyResponse") +} + +func init() { proto.RegisterFile("mycel/registry/v1/tx.proto", fileDescriptor_1c3d39e164a87334) } + +var fileDescriptor_1c3d39e164a87334 = []byte{ + // 876 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x57, 0xdd, 0x4f, 0xfb, 0x54, + 0x18, 0xde, 0x71, 0xf0, 0x53, 0x5f, 0x54, 0x66, 0xf9, 0x2a, 0x05, 0x06, 0x2c, 0xb0, 0x4c, 0xc2, + 0x5a, 0x36, 0x54, 0x8c, 0xd1, 0xc4, 0xe0, 0x20, 0x1a, 0x5d, 0x62, 0x2a, 0x06, 0xf5, 0x66, 0xe9, + 0xda, 0x63, 0xa9, 0x6c, 0x3d, 0x4d, 0x4f, 0x19, 0x5b, 0x62, 0xa2, 0x31, 0xf1, 0x5e, 0x6f, 0x8c, + 0x17, 0x5e, 0x78, 0x65, 0x8c, 0x21, 0x11, 0x13, 0xff, 0x08, 0x2e, 0xb9, 0xf4, 0x4a, 0x0d, 0x5c, + 0xf0, 0x6f, 0x98, 0x9e, 0x7e, 0xb0, 0x8f, 0x76, 0xeb, 0x90, 0x0b, 0xaf, 0x76, 0x4e, 0xcf, 0xf3, + 0x3e, 0xef, 0xf3, 0x9c, 0x8f, 0xf7, 0xcd, 0x40, 0x68, 0x76, 0x54, 0xdc, 0x90, 0x6c, 0xac, 0x1b, + 0xd4, 0xb1, 0x3b, 0x52, 0xab, 0x24, 0x39, 0x6d, 0xd1, 0xb2, 0x89, 0x43, 0xb8, 0x17, 0xd9, 0x9a, + 0x18, 0xac, 0x89, 0xad, 0x92, 0x90, 0x55, 0x09, 0x6d, 0x12, 0x2a, 0xd5, 0x15, 0x8a, 0xa5, 0x56, + 0xa9, 0x8e, 0x1d, 0xa5, 0x24, 0xa9, 0xc4, 0x30, 0xbd, 0x10, 0x61, 0xc1, 0x5f, 0x6f, 0x52, 0xdd, + 0xa5, 0x6a, 0x52, 0xdd, 0x5f, 0x98, 0xd5, 0x89, 0x4e, 0xd8, 0x50, 0x72, 0x47, 0xfe, 0xd7, 0x42, + 0x44, 0x76, 0x62, 0xd5, 0x1a, 0xb8, 0x85, 0x1b, 0x35, 0x8d, 0x34, 0x95, 0x80, 0x38, 0xf7, 0x1b, + 0x82, 0xb9, 0x2a, 0xd5, 0x3f, 0xb2, 0x34, 0xc5, 0xc1, 0xc7, 0x4a, 0xa3, 0x81, 0x1d, 0x19, 0xab, + 0xc4, 0xd6, 0x38, 0x1e, 0x9e, 0x56, 0x6d, 0xac, 0x38, 0xc4, 0xe6, 0xd1, 0x1a, 0x2a, 0x3c, 0x2b, + 0x07, 0x53, 0x8e, 0x83, 0x09, 0x53, 0x69, 0x62, 0xfe, 0x29, 0xf6, 0x99, 0x8d, 0xb9, 0x79, 0x78, + 0x62, 0x29, 0x36, 0x36, 0x1d, 0x3e, 0xcd, 0xbe, 0xfa, 0x33, 0x6e, 0x1b, 0xb8, 0x73, 0xc6, 0x5a, + 0xb3, 0x19, 0x6d, 0xcd, 0xe9, 0x58, 0x98, 0x9f, 0x60, 0x98, 0xcc, 0x79, 0x57, 0xbe, 0xa3, 0x8e, + 0x85, 0xb9, 0x59, 0x98, 0x6c, 0x29, 0x8d, 0x33, 0xcc, 0x4f, 0x32, 0x80, 0x37, 0x79, 0xfd, 0xb9, + 0xaf, 0xef, 0x2e, 0xb7, 0x82, 0xec, 0xb9, 0x55, 0x58, 0x89, 0x14, 0x2c, 0x63, 0x6a, 0x11, 0x93, + 0xe2, 0xdc, 0xcf, 0x08, 0xb8, 0x10, 0x51, 0x31, 0xe9, 0xa3, 0xfa, 0xc9, 0xc3, 0xb4, 0x66, 0xd2, + 0x08, 0x33, 0xcf, 0x6b, 0x41, 0xa6, 0xc4, 0x4e, 0x96, 0x41, 0x18, 0xd4, 0x19, 0xda, 0xf8, 0x1d, + 0xc1, 0x72, 0x95, 0xea, 0x32, 0x3b, 0x43, 0x6c, 0x7f, 0x88, 0x55, 0x62, 0x6a, 0xef, 0xbb, 0x27, + 0x58, 0x61, 0x07, 0xf8, 0x48, 0x86, 0xde, 0x84, 0x25, 0xff, 0x9a, 0x28, 0x8e, 0x41, 0xcc, 0x9a, + 0x85, 0x6d, 0x83, 0x68, 0x35, 0xc3, 0xac, 0x75, 0xb0, 0x62, 0x33, 0x73, 0x13, 0x32, 0xdf, 0x0d, + 0xf9, 0x80, 0x21, 0xde, 0x35, 0x3f, 0xc1, 0x8a, 0xdd, 0xe7, 0x28, 0x0f, 0x1b, 0xc3, 0x24, 0x87, + 0xde, 0xbe, 0x47, 0xb0, 0xd8, 0x05, 0x3c, 0x22, 0xd6, 0xc3, 0x8d, 0x8d, 0x30, 0x90, 0x1e, 0xcb, + 0xc0, 0x2f, 0x08, 0xd6, 0x63, 0x85, 0x05, 0xf2, 0xb9, 0xf7, 0x20, 0xd3, 0xff, 0x9c, 0x98, 0xd2, + 0xa9, 0xf2, 0xba, 0x38, 0xf0, 0xb6, 0xc5, 0x3e, 0x92, 0x17, 0x9c, 0x5e, 0xb7, 0xaf, 0x42, 0xfa, + 0x33, 0xec, 0x59, 0x9a, 0x2a, 0x6f, 0x8c, 0x8c, 0x3f, 0xc4, 0x58, 0x76, 0x03, 0x72, 0x1f, 0xb3, + 0xdb, 0x73, 0x6c, 0x38, 0x27, 0x9a, 0xad, 0x9c, 0xcb, 0x5d, 0xfe, 0x0e, 0x31, 0x1e, 0x6f, 0x0f, + 0xfb, 0x36, 0xe1, 0x47, 0x04, 0xb9, 0x78, 0xea, 0x70, 0x17, 0x5a, 0x90, 0xe9, 0xd9, 0x78, 0xd7, + 0x05, 0x5a, 0x4b, 0x17, 0xa6, 0xca, 0x8b, 0xa2, 0x57, 0xae, 0x44, 0xb7, 0x9c, 0x89, 0x7e, 0x39, + 0x13, 0xdf, 0x26, 0x86, 0xb9, 0xbf, 0x73, 0xf5, 0xd7, 0x6a, 0xea, 0xd7, 0xbf, 0x57, 0x0b, 0xba, + 0xe1, 0x9c, 0x9c, 0xd5, 0x45, 0x95, 0x34, 0x25, 0xbf, 0xb6, 0x79, 0x3f, 0x45, 0xaa, 0x9d, 0x4a, + 0xee, 0xbb, 0xa2, 0x2c, 0x80, 0xca, 0xd3, 0x76, 0x6f, 0x7e, 0x57, 0xde, 0x66, 0x95, 0xea, 0x07, + 0x6d, 0x07, 0x9b, 0x5a, 0xef, 0xe6, 0x1c, 0xb4, 0x2d, 0xc3, 0x03, 0x56, 0x14, 0x67, 0xcc, 0x4d, + 0xe0, 0xf6, 0x80, 0xc7, 0x2e, 0x27, 0x8d, 0xbd, 0x45, 0x73, 0xe1, 0xfa, 0x90, 0x2b, 0xf4, 0x07, + 0x82, 0x62, 0x22, 0x79, 0xff, 0xaf, 0xeb, 0xf4, 0x1d, 0x82, 0x99, 0xb0, 0x1a, 0x1d, 0xe1, 0xf6, + 0xe3, 0xb6, 0x81, 0x0c, 0xa4, 0x4f, 0x71, 0xc7, 0x2f, 0x95, 0xee, 0x30, 0x51, 0x81, 0x5c, 0x81, + 0xa5, 0x08, 0x49, 0x61, 0x15, 0xf9, 0x01, 0xc1, 0x4b, 0xf7, 0xeb, 0x7d, 0x4f, 0xb5, 0xeb, 0xb9, + 0x93, 0x86, 0xa1, 0x76, 0xc6, 0x34, 0x22, 0xc1, 0x4c, 0x6f, 0x55, 0x61, 0x24, 0xbe, 0x2b, 0xce, + 0x1e, 0xa0, 0xef, 0x53, 0xbe, 0x0b, 0xa5, 0xc4, 0xca, 0x02, 0x3f, 0xe5, 0x8b, 0x67, 0x20, 0x5d, + 0xa5, 0x3a, 0x67, 0x01, 0x17, 0xd1, 0x8f, 0x0b, 0x11, 0x67, 0x19, 0xd9, 0x08, 0x85, 0x9d, 0xa4, + 0xc8, 0xf0, 0x06, 0xea, 0x30, 0xdd, 0xdf, 0x2e, 0x37, 0x87, 0x91, 0x84, 0x30, 0xa1, 0x98, 0x08, + 0x16, 0x26, 0xfa, 0x06, 0xc1, 0x62, 0x7c, 0x47, 0x93, 0xa2, 0xc9, 0x62, 0x03, 0x84, 0xbd, 0x31, + 0x03, 0x42, 0x1d, 0x5f, 0xc0, 0x7c, 0x4c, 0xf3, 0xd9, 0x1e, 0x4e, 0xd9, 0x8b, 0x16, 0x5e, 0x1e, + 0x07, 0x1d, 0x66, 0xff, 0x12, 0x16, 0xe2, 0xea, 0x76, 0xcc, 0x7e, 0xc6, 0xc0, 0x85, 0x57, 0xc6, + 0x82, 0x87, 0x02, 0x7e, 0x42, 0x90, 0x4b, 0x50, 0x3f, 0x5f, 0x8b, 0x66, 0x1f, 0x1d, 0x29, 0xbc, + 0xf5, 0xd0, 0xc8, 0x50, 0xe2, 0xe7, 0x90, 0x19, 0xa8, 0x45, 0xf9, 0x61, 0x97, 0xed, 0x1e, 0x27, + 0x88, 0xc9, 0x70, 0x61, 0xae, 0x0b, 0x04, 0xf9, 0x84, 0x55, 0xe4, 0x8d, 0xa1, 0xd4, 0x23, 0xa2, + 0x85, 0xca, 0x7f, 0x89, 0x0e, 0xe4, 0x0a, 0x93, 0x5f, 0xdd, 0x5d, 0x6e, 0xa1, 0xfd, 0x77, 0xae, + 0x6e, 0xb2, 0xe8, 0xfa, 0x26, 0x8b, 0xfe, 0xb9, 0xc9, 0xa2, 0x6f, 0x6f, 0xb3, 0xa9, 0xeb, 0xdb, + 0x6c, 0xea, 0xcf, 0xdb, 0x6c, 0xea, 0x53, 0xb1, 0xab, 0xb9, 0xb2, 0x84, 0x45, 0xaf, 0xab, 0x78, + 0x13, 0xa9, 0x7d, 0xff, 0xc7, 0x80, 0x35, 0xda, 0xfa, 0x13, 0xf6, 0x5f, 0x60, 0xf7, 0xdf, 0x00, + 0x00, 0x00, 0xff, 0xff, 0x3e, 0x88, 0xd1, 0x4c, 0xb5, 0x0c, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -1008,7 +1011,7 @@ func NewMsgClient(cc grpc1.ClientConn) MsgClient { func (c *msgClient) UpdateWalletRecord(ctx context.Context, in *MsgUpdateWalletRecord, opts ...grpc.CallOption) (*MsgUpdateWalletRecordResponse, error) { out := new(MsgUpdateWalletRecordResponse) - err := c.cc.Invoke(ctx, "/mycel.registry.v1beta1.Msg/UpdateWalletRecord", in, out, opts...) + err := c.cc.Invoke(ctx, "/mycel.registry.v1.Msg/UpdateWalletRecord", in, out, opts...) if err != nil { return nil, err } @@ -1017,7 +1020,7 @@ func (c *msgClient) UpdateWalletRecord(ctx context.Context, in *MsgUpdateWalletR func (c *msgClient) UpdateDnsRecord(ctx context.Context, in *MsgUpdateDnsRecord, opts ...grpc.CallOption) (*MsgUpdateDnsRecordResponse, error) { out := new(MsgUpdateDnsRecordResponse) - err := c.cc.Invoke(ctx, "/mycel.registry.v1beta1.Msg/UpdateDnsRecord", in, out, opts...) + err := c.cc.Invoke(ctx, "/mycel.registry.v1.Msg/UpdateDnsRecord", in, out, opts...) if err != nil { return nil, err } @@ -1026,7 +1029,7 @@ func (c *msgClient) UpdateDnsRecord(ctx context.Context, in *MsgUpdateDnsRecord, func (c *msgClient) RegisterSecondLevelDomain(ctx context.Context, in *MsgRegisterSecondLevelDomain, opts ...grpc.CallOption) (*MsgRegisterSecondLevelDomainResponse, error) { out := new(MsgRegisterSecondLevelDomainResponse) - err := c.cc.Invoke(ctx, "/mycel.registry.v1beta1.Msg/RegisterSecondLevelDomain", in, out, opts...) + err := c.cc.Invoke(ctx, "/mycel.registry.v1.Msg/RegisterSecondLevelDomain", in, out, opts...) if err != nil { return nil, err } @@ -1035,7 +1038,7 @@ func (c *msgClient) RegisterSecondLevelDomain(ctx context.Context, in *MsgRegist func (c *msgClient) RegisterTopLevelDomain(ctx context.Context, in *MsgRegisterTopLevelDomain, opts ...grpc.CallOption) (*MsgRegisterTopLevelDomainResponse, error) { out := new(MsgRegisterTopLevelDomainResponse) - err := c.cc.Invoke(ctx, "/mycel.registry.v1beta1.Msg/RegisterTopLevelDomain", in, out, opts...) + err := c.cc.Invoke(ctx, "/mycel.registry.v1.Msg/RegisterTopLevelDomain", in, out, opts...) if err != nil { return nil, err } @@ -1044,7 +1047,7 @@ func (c *msgClient) RegisterTopLevelDomain(ctx context.Context, in *MsgRegisterT func (c *msgClient) WithdrawRegistrationFee(ctx context.Context, in *MsgWithdrawRegistrationFee, opts ...grpc.CallOption) (*MsgWithdrawRegistrationFeeResponse, error) { out := new(MsgWithdrawRegistrationFeeResponse) - err := c.cc.Invoke(ctx, "/mycel.registry.v1beta1.Msg/WithdrawRegistrationFee", in, out, opts...) + err := c.cc.Invoke(ctx, "/mycel.registry.v1.Msg/WithdrawRegistrationFee", in, out, opts...) if err != nil { return nil, err } @@ -1053,7 +1056,7 @@ func (c *msgClient) WithdrawRegistrationFee(ctx context.Context, in *MsgWithdraw func (c *msgClient) ExtendTopLevelDomainExpirationDate(ctx context.Context, in *MsgExtendTopLevelDomainExpirationDate, opts ...grpc.CallOption) (*MsgExtendTopLevelDomainExpirationDateResponse, error) { out := new(MsgExtendTopLevelDomainExpirationDateResponse) - err := c.cc.Invoke(ctx, "/mycel.registry.v1beta1.Msg/ExtendTopLevelDomainExpirationDate", in, out, opts...) + err := c.cc.Invoke(ctx, "/mycel.registry.v1.Msg/ExtendTopLevelDomainExpirationDate", in, out, opts...) if err != nil { return nil, err } @@ -1062,7 +1065,7 @@ func (c *msgClient) ExtendTopLevelDomainExpirationDate(ctx context.Context, in * func (c *msgClient) UpdateTextRecord(ctx context.Context, in *MsgUpdateTextRecord, opts ...grpc.CallOption) (*MsgUpdateTextRecordResponse, error) { out := new(MsgUpdateTextRecordResponse) - err := c.cc.Invoke(ctx, "/mycel.registry.v1beta1.Msg/UpdateTextRecord", in, out, opts...) + err := c.cc.Invoke(ctx, "/mycel.registry.v1.Msg/UpdateTextRecord", in, out, opts...) if err != nil { return nil, err } @@ -1071,7 +1074,7 @@ func (c *msgClient) UpdateTextRecord(ctx context.Context, in *MsgUpdateTextRecor func (c *msgClient) UpdateTopLevelDomainRegistrationPolicy(ctx context.Context, in *MsgUpdateTopLevelDomainRegistrationPolicy, opts ...grpc.CallOption) (*MsgUpdateTopLevelDomainRegistrationPolicyResponse, error) { out := new(MsgUpdateTopLevelDomainRegistrationPolicyResponse) - err := c.cc.Invoke(ctx, "/mycel.registry.v1beta1.Msg/UpdateTopLevelDomainRegistrationPolicy", in, out, opts...) + err := c.cc.Invoke(ctx, "/mycel.registry.v1.Msg/UpdateTopLevelDomainRegistrationPolicy", in, out, opts...) if err != nil { return nil, err } @@ -1133,7 +1136,7 @@ func _Msg_UpdateWalletRecord_Handler(srv interface{}, ctx context.Context, dec f } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mycel.registry.v1beta1.Msg/UpdateWalletRecord", + FullMethod: "/mycel.registry.v1.Msg/UpdateWalletRecord", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MsgServer).UpdateWalletRecord(ctx, req.(*MsgUpdateWalletRecord)) @@ -1151,7 +1154,7 @@ func _Msg_UpdateDnsRecord_Handler(srv interface{}, ctx context.Context, dec func } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mycel.registry.v1beta1.Msg/UpdateDnsRecord", + FullMethod: "/mycel.registry.v1.Msg/UpdateDnsRecord", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MsgServer).UpdateDnsRecord(ctx, req.(*MsgUpdateDnsRecord)) @@ -1169,7 +1172,7 @@ func _Msg_RegisterSecondLevelDomain_Handler(srv interface{}, ctx context.Context } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mycel.registry.v1beta1.Msg/RegisterSecondLevelDomain", + FullMethod: "/mycel.registry.v1.Msg/RegisterSecondLevelDomain", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MsgServer).RegisterSecondLevelDomain(ctx, req.(*MsgRegisterSecondLevelDomain)) @@ -1187,7 +1190,7 @@ func _Msg_RegisterTopLevelDomain_Handler(srv interface{}, ctx context.Context, d } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mycel.registry.v1beta1.Msg/RegisterTopLevelDomain", + FullMethod: "/mycel.registry.v1.Msg/RegisterTopLevelDomain", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MsgServer).RegisterTopLevelDomain(ctx, req.(*MsgRegisterTopLevelDomain)) @@ -1205,7 +1208,7 @@ func _Msg_WithdrawRegistrationFee_Handler(srv interface{}, ctx context.Context, } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mycel.registry.v1beta1.Msg/WithdrawRegistrationFee", + FullMethod: "/mycel.registry.v1.Msg/WithdrawRegistrationFee", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MsgServer).WithdrawRegistrationFee(ctx, req.(*MsgWithdrawRegistrationFee)) @@ -1223,7 +1226,7 @@ func _Msg_ExtendTopLevelDomainExpirationDate_Handler(srv interface{}, ctx contex } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mycel.registry.v1beta1.Msg/ExtendTopLevelDomainExpirationDate", + FullMethod: "/mycel.registry.v1.Msg/ExtendTopLevelDomainExpirationDate", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MsgServer).ExtendTopLevelDomainExpirationDate(ctx, req.(*MsgExtendTopLevelDomainExpirationDate)) @@ -1241,7 +1244,7 @@ func _Msg_UpdateTextRecord_Handler(srv interface{}, ctx context.Context, dec fun } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mycel.registry.v1beta1.Msg/UpdateTextRecord", + FullMethod: "/mycel.registry.v1.Msg/UpdateTextRecord", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MsgServer).UpdateTextRecord(ctx, req.(*MsgUpdateTextRecord)) @@ -1259,7 +1262,7 @@ func _Msg_UpdateTopLevelDomainRegistrationPolicy_Handler(srv interface{}, ctx co } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mycel.registry.v1beta1.Msg/UpdateTopLevelDomainRegistrationPolicy", + FullMethod: "/mycel.registry.v1.Msg/UpdateTopLevelDomainRegistrationPolicy", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MsgServer).UpdateTopLevelDomainRegistrationPolicy(ctx, req.(*MsgUpdateTopLevelDomainRegistrationPolicy)) @@ -1268,7 +1271,7 @@ func _Msg_UpdateTopLevelDomainRegistrationPolicy_Handler(srv interface{}, ctx co } var _Msg_serviceDesc = grpc.ServiceDesc{ - ServiceName: "mycel.registry.v1beta1.Msg", + ServiceName: "mycel.registry.v1.Msg", HandlerType: (*MsgServer)(nil), Methods: []grpc.MethodDesc{ { @@ -1305,7 +1308,7 @@ var _Msg_serviceDesc = grpc.ServiceDesc{ }, }, Streams: []grpc.StreamDesc{}, - Metadata: "mycel/registry/v1beta1/tx.proto", + Metadata: "mycel/registry/v1/tx.proto", } func (m *MsgUpdateWalletRecord) Marshal() (dAtA []byte, err error) { @@ -1699,7 +1702,7 @@ func (m *MsgWithdrawRegistrationFeeResponse) MarshalToSizedBuffer(dAtA []byte) ( i = encodeVarintTx(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0x3a + dAtA[i] = 0xa } } return len(dAtA) - i, nil @@ -3375,7 +3378,7 @@ func (m *MsgWithdrawRegistrationFeeResponse) Unmarshal(dAtA []byte) error { return fmt.Errorf("proto: MsgWithdrawRegistrationFeeResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { - case 7: + case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field RegistrationFee", wireType) } diff --git a/x/resolver/client/cli/query.go b/x/resolver/client/cli/query.go deleted file mode 100644 index 4a10a831..00000000 --- a/x/resolver/client/cli/query.go +++ /dev/null @@ -1,36 +0,0 @@ -package cli - -import ( - "fmt" - - "github.com/spf13/cobra" - - "github.com/cosmos/cosmos-sdk/client" - - "github.com/mycel-domain/mycel/x/resolver/types" -) - -// GetQueryCmd returns the cli query commands for this module -func GetQueryCmd(queryRoute string) *cobra.Command { - // Group resolver 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(CmdQueryWalletRecord()) - - cmd.AddCommand(CmdDnsRecord()) - - cmd.AddCommand(CmdAllRecord()) - - cmd.AddCommand(CmdTextRecord()) - - // this line is used by starport scaffolding # 1 - - return cmd -} diff --git a/x/resolver/client/cli/query_all_records.go b/x/resolver/client/cli/query_all_records.go deleted file mode 100644 index 364bf86d..00000000 --- a/x/resolver/client/cli/query_all_records.go +++ /dev/null @@ -1,49 +0,0 @@ -package cli - -import ( - "strconv" - - "github.com/spf13/cobra" - - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/client/flags" - - "github.com/mycel-domain/mycel/x/resolver/types" -) - -var _ = strconv.Itoa(0) - -func CmdAllRecord() *cobra.Command { - cmd := &cobra.Command{ - Use: "all-records [domainName] [domainParent]", - Short: "Query allRecords", - Args: cobra.ExactArgs(2), - RunE: func(cmd *cobra.Command, args []string) (err error) { - reqName := args[0] - reqParent := args[1] - - clientCtx, err := client.GetClientQueryContext(cmd) - if err != nil { - return err - } - - queryClient := types.NewQueryClient(clientCtx) - - params := &types.QueryAllRecordsRequest{ - DomainName: reqName, - DomainParent: reqParent, - } - - res, err := queryClient.AllRecords(cmd.Context(), params) - if err != nil { - return err - } - - return clientCtx.PrintProto(res) - }, - } - - flags.AddQueryFlagsToCmd(cmd) - - return cmd -} diff --git a/x/resolver/client/cli/query_dns_record.go b/x/resolver/client/cli/query_dns_record.go deleted file mode 100644 index 017e46e4..00000000 --- a/x/resolver/client/cli/query_dns_record.go +++ /dev/null @@ -1,51 +0,0 @@ -package cli - -import ( - "strconv" - - "github.com/spf13/cobra" - - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/client/flags" - - "github.com/mycel-domain/mycel/x/resolver/types" -) - -var _ = strconv.Itoa(0) - -func CmdDnsRecord() *cobra.Command { - cmd := &cobra.Command{ - Use: "dns-record [domainName] [domainParent] [dns-record-type]", - Short: "Query DNS record", - Args: cobra.ExactArgs(3), - RunE: func(cmd *cobra.Command, args []string) (err error) { - reqDomainName := args[0] - reqDomainParent := args[1] - reqDnsRecordType := args[2] - - clientCtx, err := client.GetClientQueryContext(cmd) - if err != nil { - return err - } - - queryClient := types.NewQueryClient(clientCtx) - - params := &types.QueryDnsRecordRequest{ - DomainName: reqDomainName, - DomainParent: reqDomainParent, - DnsRecordType: reqDnsRecordType, - } - - res, err := queryClient.DnsRecord(cmd.Context(), params) - if err != nil { - return err - } - - return clientCtx.PrintProto(res) - }, - } - - flags.AddQueryFlagsToCmd(cmd) - - return cmd -} diff --git a/x/resolver/client/cli/query_params.go b/x/resolver/client/cli/query_params.go deleted file mode 100644 index eb088df8..00000000 --- a/x/resolver/client/cli/query_params.go +++ /dev/null @@ -1,37 +0,0 @@ -package cli - -import ( - "github.com/spf13/cobra" - - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/client/flags" - - "github.com/mycel-domain/mycel/x/resolver/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, err := client.GetClientQueryContext(cmd) - if err != nil { - return err - } - - queryClient := types.NewQueryClient(clientCtx) - - res, err := queryClient.Params(cmd.Context(), &types.QueryParamsRequest{}) - if err != nil { - return err - } - - return clientCtx.PrintProto(res) - }, - } - - flags.AddQueryFlagsToCmd(cmd) - - return cmd -} diff --git a/x/resolver/client/cli/query_text_record.go b/x/resolver/client/cli/query_text_record.go deleted file mode 100644 index 8c5ac575..00000000 --- a/x/resolver/client/cli/query_text_record.go +++ /dev/null @@ -1,51 +0,0 @@ -package cli - -import ( - "strconv" - - "github.com/spf13/cobra" - - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/client/flags" - - "github.com/mycel-domain/mycel/x/resolver/types" -) - -var _ = strconv.Itoa(0) - -func CmdTextRecord() *cobra.Command { - cmd := &cobra.Command{ - Use: "text-record [domain-name] [domain-parent] [key]", - Short: "Query textRecord", - Args: cobra.ExactArgs(3), - RunE: func(cmd *cobra.Command, args []string) (err error) { - reqDomainName := args[0] - reqDomainParent := args[1] - reqKey := args[2] - - clientCtx, err := client.GetClientQueryContext(cmd) - if err != nil { - return err - } - - queryClient := types.NewQueryClient(clientCtx) - - params := &types.QueryTextRecordRequest{ - DomainName: reqDomainName, - DomainParent: reqDomainParent, - Key: reqKey, - } - - res, err := queryClient.TextRecord(cmd.Context(), params) - if err != nil { - return err - } - - return clientCtx.PrintProto(res) - }, - } - - flags.AddQueryFlagsToCmd(cmd) - - return cmd -} diff --git a/x/resolver/client/cli/query_wallet_record.go b/x/resolver/client/cli/query_wallet_record.go deleted file mode 100644 index 09018b69..00000000 --- a/x/resolver/client/cli/query_wallet_record.go +++ /dev/null @@ -1,51 +0,0 @@ -package cli - -import ( - "strconv" - - "github.com/spf13/cobra" - - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/client/flags" - - "github.com/mycel-domain/mycel/x/resolver/types" -) - -var _ = strconv.Itoa(0) - -func CmdQueryWalletRecord() *cobra.Command { - cmd := &cobra.Command{ - Use: "wallet-record [domain-name] [domain-parent] [wallet-record-type]", - Short: "Query wallet record", - Args: cobra.ExactArgs(3), - RunE: func(cmd *cobra.Command, args []string) (err error) { - reqDomainName := args[0] - reqDomainParent := args[1] - reqWalletRecordType := args[2] - - clientCtx, err := client.GetClientQueryContext(cmd) - if err != nil { - return err - } - - queryClient := types.NewQueryClient(clientCtx) - - params := &types.QueryWalletRecordRequest{ - DomainName: reqDomainName, - DomainParent: reqDomainParent, - WalletRecordType: reqWalletRecordType, - } - - res, err := queryClient.WalletRecord(cmd.Context(), params) - if err != nil { - return err - } - - return clientCtx.PrintProto(res) - }, - } - - flags.AddQueryFlagsToCmd(cmd) - - return cmd -} diff --git a/x/resolver/client/cli/tx.go b/x/resolver/client/cli/tx.go deleted file mode 100644 index c71c89e3..00000000 --- a/x/resolver/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/resolver/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/resolver/genesis.go b/x/resolver/genesis.go deleted file mode 100644 index ac77526f..00000000 --- a/x/resolver/genesis.go +++ /dev/null @@ -1,24 +0,0 @@ -package resolver - -import ( - sdk "github.com/cosmos/cosmos-sdk/types" - - "github.com/mycel-domain/mycel/x/resolver/keeper" - "github.com/mycel-domain/mycel/x/resolver/types" -) - -// InitGenesis initializes the module's state from a provided genesis state. -func InitGenesis(ctx sdk.Context, k keeper.Keeper, genState types.GenesisState) { - // this line is used by starport scaffolding # genesis/module/init - k.SetParams(ctx, genState.Params) -} - -// ExportGenesis returns the module's exported genesis -func ExportGenesis(ctx sdk.Context, k keeper.Keeper) *types.GenesisState { - genesis := types.DefaultGenesis() - genesis.Params = k.GetParams(ctx) - - // this line is used by starport scaffolding # genesis/module/export - - return genesis -} diff --git a/x/resolver/genesis_test.go b/x/resolver/genesis_test.go deleted file mode 100644 index f376ae9f..00000000 --- a/x/resolver/genesis_test.go +++ /dev/null @@ -1,30 +0,0 @@ -package resolver_test - -import ( - "testing" - - "github.com/stretchr/testify/require" - - keepertest "github.com/mycel-domain/mycel/testutil/keeper" - "github.com/mycel-domain/mycel/testutil/nullify" - "github.com/mycel-domain/mycel/x/resolver" - "github.com/mycel-domain/mycel/x/resolver/types" -) - -func TestGenesis(t *testing.T) { - genesisState := types.GenesisState{ - Params: types.DefaultParams(), - - // this line is used by starport scaffolding # genesis/test/state - } - - k, ctx := keepertest.ResolverKeeper(t) - resolver.InitGenesis(ctx, *k, genesisState) - got := resolver.ExportGenesis(ctx, *k) - require.NotNil(t, got) - - nullify.Fill(&genesisState) - nullify.Fill(got) - - // this line is used by starport scaffolding # genesis/test/assert -} diff --git a/x/resolver/keeper/keeper.go b/x/resolver/keeper/keeper.go deleted file mode 100644 index 6c008785..00000000 --- a/x/resolver/keeper/keeper.go +++ /dev/null @@ -1,52 +0,0 @@ -package keeper - -import ( - "fmt" - - "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/resolver/types" -) - -type ( - Keeper struct { - cdc codec.BinaryCodec - storeKey storetypes.StoreKey - memKey storetypes.StoreKey - paramstore paramtypes.Subspace - - registryKeeper types.RegistryKeeper - } -) - -func NewKeeper( - cdc codec.BinaryCodec, - storeKey, - memKey storetypes.StoreKey, - ps paramtypes.Subspace, - - registryKeeper types.RegistryKeeper, -) *Keeper { - // set KeyTable if it has not already been set - if !ps.HasKeyTable() { - ps = ps.WithKeyTable(types.ParamKeyTable()) - } - - return &Keeper{ - cdc: cdc, - storeKey: storeKey, - memKey: memKey, - paramstore: ps, - - registryKeeper: registryKeeper, - } -} - -func (k Keeper) Logger(ctx sdk.Context) log.Logger { - return ctx.Logger().With("module", fmt.Sprintf("x/%s", types.ModuleName)) -} diff --git a/x/resolver/keeper/msg_server.go b/x/resolver/keeper/msg_server.go deleted file mode 100644 index 899672c4..00000000 --- a/x/resolver/keeper/msg_server.go +++ /dev/null @@ -1,17 +0,0 @@ -package keeper - -import ( - "github.com/mycel-domain/mycel/x/resolver/types" -) - -type msgServer struct { - Keeper -} - -// NewMsgServerImpl returns an implementation of the MsgServer interface -// for the provided Keeper. -func NewMsgServerImpl(keeper Keeper) types.MsgServer { - return &msgServer{Keeper: keeper} -} - -var _ types.MsgServer = msgServer{} diff --git a/x/resolver/keeper/msg_server_test.go b/x/resolver/keeper/msg_server_test.go deleted file mode 100644 index 777772e3..00000000 --- a/x/resolver/keeper/msg_server_test.go +++ /dev/null @@ -1,27 +0,0 @@ -package keeper_test - -import ( - "context" - "testing" - - "github.com/stretchr/testify/require" - - sdk "github.com/cosmos/cosmos-sdk/types" - - keepertest "github.com/mycel-domain/mycel/testutil/keeper" - "github.com/mycel-domain/mycel/x/resolver/keeper" - "github.com/mycel-domain/mycel/x/resolver/types" -) - -func setupMsgServer(tb testing.TB) (types.MsgServer, context.Context) { - tb.Helper() - - k, ctx := keepertest.ResolverKeeper(tb) - return keeper.NewMsgServerImpl(*k), sdk.WrapSDKContext(ctx) -} - -func TestMsgServer(t *testing.T) { - ms, ctx := setupMsgServer(t) - require.NotNil(t, ms) - require.NotNil(t, ctx) -} diff --git a/x/resolver/keeper/params.go b/x/resolver/keeper/params.go deleted file mode 100644 index 5d48ceba..00000000 --- a/x/resolver/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/resolver/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/resolver/keeper/params_test.go b/x/resolver/keeper/params_test.go deleted file mode 100644 index b925b7b9..00000000 --- a/x/resolver/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/resolver/types" -) - -func TestGetParams(t *testing.T) { - k, ctx := testkeeper.ResolverKeeper(t) - params := types.DefaultParams() - - k.SetParams(ctx, params) - - require.EqualValues(t, params, k.GetParams(ctx)) -} diff --git a/x/resolver/keeper/query.go b/x/resolver/keeper/query.go deleted file mode 100644 index ab3e10d7..00000000 --- a/x/resolver/keeper/query.go +++ /dev/null @@ -1,7 +0,0 @@ -package keeper - -import ( - "github.com/mycel-domain/mycel/x/resolver/types" -) - -var _ types.QueryServer = Keeper{} diff --git a/x/resolver/keeper/query_all_records.go b/x/resolver/keeper/query_all_records.go deleted file mode 100644 index 8e822217..00000000 --- a/x/resolver/keeper/query_all_records.go +++ /dev/null @@ -1,54 +0,0 @@ -package keeper - -import ( - "context" - - "google.golang.org/grpc/codes" - "google.golang.org/grpc/status" - - sdk "github.com/cosmos/cosmos-sdk/types" - - registrytypes "github.com/mycel-domain/mycel/x/registry/types" - "github.com/mycel-domain/mycel/x/resolver/types" -) - -func (k Keeper) AllRecords(goCtx context.Context, req *types.QueryAllRecordsRequest) (*types.QueryAllRecordsResponse, error) { - if req == nil { - return nil, status.Error(codes.InvalidArgument, "invalid request") - } - - ctx := sdk.UnwrapSDKContext(goCtx) - - // Query domain record - _, err := k.registryKeeper.GetValidTopLevelDomain(ctx, req.DomainParent) - if err != nil { - return nil, err - } - secondLevelDomain, err := k.registryKeeper.GetValidSecondLevelDomain(ctx, req.DomainName, req.DomainParent) - if err != nil { - return nil, err - } - - // Convert repeated Record to map - values := make(map[string]*registrytypes.Record) - for _, record := range secondLevelDomain.Records { - key := generateRecordKey(record) - if key != "" { - values[key] = record - } - } - return &types.QueryAllRecordsResponse{Values: values}, nil -} - -func generateRecordKey(record *registrytypes.Record) string { - switch { - case record.GetDnsRecord() != nil: - return record.GetDnsRecord().DnsRecordType.String() - case record.GetWalletRecord() != nil: - return record.GetWalletRecord().WalletRecordType.String() - case record.GetTextRecord() != nil: - return record.GetTextRecord().Key - default: - return "" - } -} diff --git a/x/resolver/keeper/query_dns_record.go b/x/resolver/keeper/query_dns_record.go deleted file mode 100644 index e761c2c5..00000000 --- a/x/resolver/keeper/query_dns_record.go +++ /dev/null @@ -1,44 +0,0 @@ -package keeper - -import ( - "context" - - "google.golang.org/grpc/codes" - "google.golang.org/grpc/status" - - sdk "github.com/cosmos/cosmos-sdk/types" - - registrytypes "github.com/mycel-domain/mycel/x/registry/types" - "github.com/mycel-domain/mycel/x/resolver/types" -) - -func (k Keeper) DnsRecord(goCtx context.Context, req *types.QueryDnsRecordRequest) (*types.QueryDnsRecordResponse, error) { - if req == nil { - return nil, status.Error(codes.InvalidArgument, "invalid request") - } - - ctx := sdk.UnwrapSDKContext(goCtx) - - // Validate request parameters - err := registrytypes.ValidateDnsRecordType(req.DnsRecordType) - if err != nil { - return nil, err - } - - // Query domain record - _, err = k.registryKeeper.GetValidTopLevelDomain(ctx, req.DomainParent) - if err != nil { - return nil, err - } - secondLevelDomain, err := k.registryKeeper.GetValidSecondLevelDomain(ctx, req.DomainName, req.DomainParent) - if err != nil { - return nil, err - } - - value := secondLevelDomain.GetDnsRecord(req.DnsRecordType) - recordType := registrytypes.DnsRecordType(registrytypes.DnsRecordType_value[req.DnsRecordType]) - - return &types.QueryDnsRecordResponse{ - Value: ®istrytypes.DnsRecord{DnsRecordType: recordType, Value: value}, - }, nil -} diff --git a/x/resolver/keeper/query_params.go b/x/resolver/keeper/query_params.go deleted file mode 100644 index c2d54970..00000000 --- a/x/resolver/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/resolver/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/resolver/keeper/query_params_test.go b/x/resolver/keeper/query_params_test.go deleted file mode 100644 index 1d0388ab..00000000 --- a/x/resolver/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/resolver/types" -) - -func TestParamsQuery(t *testing.T) { - keeper, ctx := testkeeper.ResolverKeeper(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/resolver/keeper/query_text_record.go b/x/resolver/keeper/query_text_record.go deleted file mode 100644 index 67e31105..00000000 --- a/x/resolver/keeper/query_text_record.go +++ /dev/null @@ -1,43 +0,0 @@ -package keeper - -import ( - "context" - - "google.golang.org/grpc/codes" - "google.golang.org/grpc/status" - - sdk "github.com/cosmos/cosmos-sdk/types" - - registrytypes "github.com/mycel-domain/mycel/x/registry/types" - "github.com/mycel-domain/mycel/x/resolver/types" -) - -func (k Keeper) TextRecord(goCtx context.Context, req *types.QueryTextRecordRequest) (*types.QueryTextRecordResponse, error) { - if req == nil { - return nil, status.Error(codes.InvalidArgument, "invalid request") - } - - ctx := sdk.UnwrapSDKContext(goCtx) - - // Validate request parameters - err := registrytypes.ValidateTextRecordKey(req.Key) - if err != nil { - return nil, err - } - - // Query domain record - _, err = k.registryKeeper.GetValidTopLevelDomain(ctx, req.DomainParent) - if err != nil { - return nil, err - } - secondLevelDomain, err := k.registryKeeper.GetValidSecondLevelDomain(ctx, req.DomainName, req.DomainParent) - if err != nil { - return nil, err - } - - value := secondLevelDomain.GetTextRecord(req.Key) - - return &types.QueryTextRecordResponse{ - Value: ®istrytypes.TextRecord{Key: req.Key, Value: value}, - }, nil -} diff --git a/x/resolver/keeper/query_wallet_record.go b/x/resolver/keeper/query_wallet_record.go deleted file mode 100644 index 9ca3c2bd..00000000 --- a/x/resolver/keeper/query_wallet_record.go +++ /dev/null @@ -1,43 +0,0 @@ -package keeper - -import ( - "context" - - "google.golang.org/grpc/codes" - "google.golang.org/grpc/status" - - sdk "github.com/cosmos/cosmos-sdk/types" - - registrytypes "github.com/mycel-domain/mycel/x/registry/types" - "github.com/mycel-domain/mycel/x/resolver/types" -) - -func (k Keeper) WalletRecord(goCtx context.Context, req *types.QueryWalletRecordRequest) (*types.QueryWalletRecordResponse, error) { - if req == nil { - return nil, status.Error(codes.InvalidArgument, "invalid request") - } - - ctx := sdk.UnwrapSDKContext(goCtx) - - // Validate request parameters - _, err := registrytypes.GetWalletAddressFormat(req.WalletRecordType) - if err != nil { - return nil, err - } - - // Query domain record - _, err = k.registryKeeper.GetValidTopLevelDomain(ctx, req.DomainParent) - if err != nil { - return nil, err - } - secondLevelDomain, err := k.registryKeeper.GetValidSecondLevelDomain(ctx, req.DomainName, req.DomainParent) - if err != nil { - return nil, err - } - value := secondLevelDomain.GetWalletRecord(req.WalletRecordType) - recordType := registrytypes.NetworkName(registrytypes.NetworkName_value[req.WalletRecordType]) - - return &types.QueryWalletRecordResponse{ - Value: ®istrytypes.WalletRecord{WalletRecordType: recordType, Value: value}, - }, nil -} diff --git a/x/resolver/keeper/setup_test.go b/x/resolver/keeper/setup_test.go deleted file mode 100644 index d71ba86a..00000000 --- a/x/resolver/keeper/setup_test.go +++ /dev/null @@ -1,94 +0,0 @@ -package keeper_test - -import ( - "testing" - - "github.com/stretchr/testify/suite" - - "cosmossdk.io/math" - - "github.com/cosmos/cosmos-sdk/baseapp" - sdk "github.com/cosmos/cosmos-sdk/types" - banktypes "github.com/cosmos/cosmos-sdk/x/bank/types" - - mycelapp "github.com/mycel-domain/mycel/app" - "github.com/mycel-domain/mycel/app/params" - "github.com/mycel-domain/mycel/testutil" - "github.com/mycel-domain/mycel/x/registry/keeper" - "github.com/mycel-domain/mycel/x/registry/types" -) - -type KeeperTestSuite struct { - suite.Suite - - ctx sdk.Context - app *mycelapp.App - msgServer types.MsgServer - queryClient types.QueryClient - consAddress sdk.ConsAddress -} - -var s *KeeperTestSuite - -func TestKeeperTestSuite(t *testing.T) { - suite.Run(t, new(KeeperTestSuite)) -} - -func (suite *KeeperTestSuite) SetupTest() { - // init app - app := mycelapp.Setup(suite.T(), false) - ctx := app.BaseApp.NewContext(false) - - suite.app = app - suite.ctx = ctx - - queryHelper := baseapp.NewQueryServerTestHelper(suite.ctx, suite.app.InterfaceRegistry()) - types.RegisterQueryServer(queryHelper, suite.app.RegistryKeeper) - suite.queryClient = types.NewQueryClient(queryHelper) - - suite.msgServer = keeper.NewMsgServerImpl(suite.app.RegistryKeeper) - - // Init bank keeper - suite.app.BankKeeper.InitGenesis(suite.ctx, getBankGenesis()) -} - -func makeBalance(address string, balance int64) banktypes.Balance { - return banktypes.Balance{ - Address: address, - Coins: sdk.Coins{ - sdk.Coin{ - Denom: params.DefaultBondDenom, - Amount: math.NewInt(balance), - }, - }, - } -} - -func getBankGenesis() *banktypes.GenesisState { - coins := []banktypes.Balance{ - makeBalance(testutil.Alice, testutil.BalAlice), - makeBalance(testutil.Bob, testutil.BalBob), - makeBalance(testutil.Carol, testutil.BalCarol), - } - supply := banktypes.Supply{ //nolint:staticcheck - Total: coins[0].Coins.Add(coins[1].Coins...).Add(coins[2].Coins...), - } - - state := banktypes.NewGenesisState( - banktypes.DefaultParams(), - coins, - supply.Total, - []banktypes.Metadata{}, - []banktypes.SendEnabled{}, - ) - - return state -} - -func (suite *KeeperTestSuite) RequireBankBalance(expected int, atAddress string) { - sdkAdd, err := sdk.AccAddressFromBech32(atAddress) - suite.Require().Nil(err, "Failed to parse address: %s", atAddress) - suite.Require().Equal( - int64(expected), - suite.app.BankKeeper.GetBalance(suite.ctx, sdkAdd, sdk.DefaultBondDenom).Amount.Int64()) -} diff --git a/x/resolver/module.go b/x/resolver/module.go deleted file mode 100644 index 5407cc39..00000000 --- a/x/resolver/module.go +++ /dev/null @@ -1,153 +0,0 @@ -package resolver - -import ( - "context" - "encoding/json" - "fmt" - "log" - - "github.com/grpc-ecosystem/grpc-gateway/runtime" - "github.com/spf13/cobra" - - "cosmossdk.io/core/appmodule" - - "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" - - "github.com/mycel-domain/mycel/x/resolver/client/cli" - "github.com/mycel-domain/mycel/x/resolver/keeper" - "github.com/mycel-domain/mycel/x/resolver/types" -) - -var ( - _ module.AppModuleBasic = AppModuleBasic{} - _ module.HasGenesisBasics = AppModuleBasic{} - - _ appmodule.AppModule = AppModule{} - _ module.HasConsensusVersion = AppModule{} - _ module.HasGenesis = AppModule{} - _ module.HasServices = AppModule{} -) - -// ---------------------------------------------------------------------------- -// AppModuleBasic -// ---------------------------------------------------------------------------- - -// AppModuleBasic implements the AppModuleBasic interface that defines the independent methods a Cosmos SDK module needs to implement. -type AppModuleBasic struct { - cdc codec.BinaryCodec -} - -func NewAppModuleBasic(cdc codec.BinaryCodec) AppModuleBasic { - return AppModuleBasic{cdc: cdc} -} - -// 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) -} - -// 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 -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 -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 { - return fmt.Errorf("failed to unmarshal %s genesis state: %w", types.ModuleName, err) - } - return genState.Validate() -} - -// 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 { - log.Printf("%v", 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 -// ---------------------------------------------------------------------------- - -// AppModule implements the AppModule interface that defines the inter-dependent methods that modules need to implement -type AppModule struct { - AppModuleBasic - - keeper keeper.Keeper - accountKeeper types.AccountKeeper - bankKeeper types.BankKeeper -} - -func NewAppModule( - cdc codec.Codec, - keeper keeper.Keeper, - accountKeeper types.AccountKeeper, - bankKeeper types.BankKeeper, -) AppModule { - return AppModule{ - AppModuleBasic: NewAppModuleBasic(cdc), - keeper: keeper, - accountKeeper: accountKeeper, - bankKeeper: bankKeeper, - } -} - -// 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)) - types.RegisterQueryServer(cfg.QueryServer(), am.keeper) -} - -// 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 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 - cdc.MustUnmarshalJSON(gs, &genState) - - InitGenesis(ctx, am.keeper, genState) -} - -// ExportGenesis returns the module's exported genesis state as raw JSON bytes. -func (am AppModule) ExportGenesis(ctx sdk.Context, cdc codec.JSONCodec) json.RawMessage { - genState := ExportGenesis(ctx, am.keeper) - 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 -func (AppModule) ConsensusVersion() uint64 { return 1 } diff --git a/x/resolver/simulation/helpers.go b/x/resolver/simulation/helpers.go deleted file mode 100644 index 92c437c0..00000000 --- a/x/resolver/simulation/helpers.go +++ /dev/null @@ -1,15 +0,0 @@ -package simulation - -import ( - sdk "github.com/cosmos/cosmos-sdk/types" - simtypes "github.com/cosmos/cosmos-sdk/types/simulation" -) - -// FindAccount find a specific address from an account list -func FindAccount(accs []simtypes.Account, address string) (simtypes.Account, bool) { - creator, err := sdk.AccAddressFromBech32(address) - if err != nil { - panic(err) - } - return simtypes.FindAccount(accs, creator) -} diff --git a/x/resolver/types/codec.go b/x/resolver/types/codec.go deleted file mode 100644 index 844157a8..00000000 --- a/x/resolver/types/codec.go +++ /dev/null @@ -1,23 +0,0 @@ -package types - -import ( - "github.com/cosmos/cosmos-sdk/codec" - cdctypes "github.com/cosmos/cosmos-sdk/codec/types" - // this line is used by starport scaffolding # 1 - "github.com/cosmos/cosmos-sdk/types/msgservice" -) - -func RegisterCodec(cdc *codec.LegacyAmino) { - // this line is used by starport scaffolding # 2 -} - -func RegisterInterfaces(registry cdctypes.InterfaceRegistry) { - // this line is used by starport scaffolding # 3 - - msgservice.RegisterMsgServiceDesc(registry, &_Msg_serviceDesc) -} - -var ( - Amino = codec.NewLegacyAmino() - ModuleCdc = codec.NewProtoCodec(cdctypes.NewInterfaceRegistry()) -) diff --git a/x/resolver/types/errors.go b/x/resolver/types/errors.go deleted file mode 100644 index e20fd895..00000000 --- a/x/resolver/types/errors.go +++ /dev/null @@ -1,12 +0,0 @@ -package types - -// DONTCOVER - -import ( - errorsmod "cosmossdk.io/errors" -) - -// x/resolver module sentinel errors -var ( - ErrSample = errorsmod.Register(ModuleName, 1100, "sample error") -) diff --git a/x/resolver/types/expected_keepers.go b/x/resolver/types/expected_keepers.go deleted file mode 100644 index 3cd36afe..00000000 --- a/x/resolver/types/expected_keepers.go +++ /dev/null @@ -1,29 +0,0 @@ -package types - -import ( - context "context" - - sdk "github.com/cosmos/cosmos-sdk/types" - - registrytypes "github.com/mycel-domain/mycel/x/registry/types" -) - -type RegistryKeeper interface { - // Methods imported from registry should be defined here - GetSecondLevelDomain(ctx sdk.Context, name string, parent string) (val registrytypes.SecondLevelDomain, found bool) - GetTopLevelDomain(ctx sdk.Context, name string) (val registrytypes.TopLevelDomain, found bool) - GetValidSecondLevelDomain(ctx sdk.Context, name string, parent string) (secondLevelDomain registrytypes.SecondLevelDomain, err error) - GetValidTopLevelDomain(ctx sdk.Context, name string) (topLevelDomain registrytypes.TopLevelDomain, err error) -} - -// AccountKeeper defines the expected account keeper used for simulations (noalias) -type AccountKeeper interface { - GetAccount(ctx context.Context, addr sdk.AccAddress) sdk.AccountI - // Methods imported from account should be defined here -} - -// BankKeeper defines the expected interface needed to retrieve account balances. -type BankKeeper interface { - SpendableCoins(ctx context.Context, addr sdk.AccAddress) sdk.Coins - // Methods imported from bank should be defined here -} diff --git a/x/resolver/types/genesis.go b/x/resolver/types/genesis.go deleted file mode 100644 index 0af9b441..00000000 --- a/x/resolver/types/genesis.go +++ /dev/null @@ -1,24 +0,0 @@ -package types - -import ( -// this line is used by starport scaffolding # genesis/types/import -) - -// DefaultIndex is the default global index -const DefaultIndex uint64 = 1 - -// DefaultGenesis returns the default genesis state -func DefaultGenesis() *GenesisState { - return &GenesisState{ - // this line is used by starport scaffolding # genesis/types/default - Params: DefaultParams(), - } -} - -// Validate performs basic genesis state validation returning an error upon any -// failure. -func (gs GenesisState) Validate() error { - // this line is used by starport scaffolding # genesis/types/validate - - return gs.Params.Validate() -} diff --git a/x/resolver/types/genesis.pb.go b/x/resolver/types/genesis.pb.go deleted file mode 100644 index e4a7d1b1..00000000 --- a/x/resolver/types/genesis.pb.go +++ /dev/null @@ -1,323 +0,0 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: mycel/resolver/v1beta1/genesis.proto - -package types - -import ( - fmt "fmt" - _ "github.com/cosmos/gogoproto/gogoproto" - proto "github.com/cosmos/gogoproto/proto" - io "io" - math "math" - math_bits "math/bits" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package - -// GenesisState defines the resolver module's genesis state. -type GenesisState struct { - Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` -} - -func (m *GenesisState) Reset() { *m = GenesisState{} } -func (m *GenesisState) String() string { return proto.CompactTextString(m) } -func (*GenesisState) ProtoMessage() {} -func (*GenesisState) Descriptor() ([]byte, []int) { - return fileDescriptor_e3c0de8044001660, []int{0} -} -func (m *GenesisState) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GenesisState.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 *GenesisState) XXX_Merge(src proto.Message) { - xxx_messageInfo_GenesisState.Merge(m, src) -} -func (m *GenesisState) XXX_Size() int { - return m.Size() -} -func (m *GenesisState) XXX_DiscardUnknown() { - xxx_messageInfo_GenesisState.DiscardUnknown(m) -} - -var xxx_messageInfo_GenesisState proto.InternalMessageInfo - -func (m *GenesisState) GetParams() Params { - if m != nil { - return m.Params - } - return Params{} -} - -func init() { - proto.RegisterType((*GenesisState)(nil), "mycel.resolver.v1beta1.GenesisState") -} - -func init() { - proto.RegisterFile("mycel/resolver/v1beta1/genesis.proto", fileDescriptor_e3c0de8044001660) -} - -var fileDescriptor_e3c0de8044001660 = []byte{ - // 205 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0xc9, 0xad, 0x4c, 0x4e, - 0xcd, 0xd1, 0x2f, 0x4a, 0x2d, 0xce, 0xcf, 0x29, 0x4b, 0x2d, 0xd2, 0x2f, 0x33, 0x4c, 0x4a, 0x2d, - 0x49, 0x34, 0xd4, 0x4f, 0x4f, 0xcd, 0x4b, 0x2d, 0xce, 0x2c, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, - 0x17, 0x12, 0x03, 0xab, 0xd2, 0x83, 0xa9, 0xd2, 0x83, 0xaa, 0x92, 0x12, 0x49, 0xcf, 0x4f, 0xcf, - 0x07, 0x2b, 0xd1, 0x07, 0xb1, 0x20, 0xaa, 0xa5, 0x94, 0x71, 0x98, 0x59, 0x90, 0x58, 0x94, 0x98, - 0x0b, 0x35, 0x52, 0xc9, 0x87, 0x8b, 0xc7, 0x1d, 0x62, 0x47, 0x70, 0x49, 0x62, 0x49, 0xaa, 0x90, - 0x0d, 0x17, 0x1b, 0x44, 0x5e, 0x82, 0x51, 0x81, 0x51, 0x83, 0xdb, 0x48, 0x4e, 0x0f, 0xbb, 0x9d, - 0x7a, 0x01, 0x60, 0x55, 0x4e, 0x2c, 0x27, 0xee, 0xc9, 0x33, 0x04, 0x41, 0xf5, 0x38, 0x79, 0x9c, - 0x78, 0x24, 0xc7, 0x78, 0xe1, 0x91, 0x1c, 0xe3, 0x83, 0x47, 0x72, 0x8c, 0x13, 0x1e, 0xcb, 0x31, - 0x5c, 0x78, 0x2c, 0xc7, 0x70, 0xe3, 0xb1, 0x1c, 0x43, 0x94, 0x5e, 0x7a, 0x66, 0x49, 0x46, 0x69, - 0x92, 0x5e, 0x72, 0x7e, 0xae, 0x3e, 0xd8, 0x44, 0xdd, 0x94, 0xfc, 0xdc, 0xc4, 0xcc, 0x3c, 0x08, - 0x47, 0xbf, 0x02, 0xe1, 0xcc, 0x92, 0xca, 0x82, 0xd4, 0xe2, 0x24, 0x36, 0xb0, 0xf3, 0x8c, 0x01, - 0x01, 0x00, 0x00, 0xff, 0xff, 0xe0, 0x5e, 0x4f, 0xe3, 0x19, 0x01, 0x00, 0x00, -} - -func (m *GenesisState) 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 *GenesisState) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GenesisState) 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 - } - i -= size - i = encodeVarintGenesis(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func encodeVarintGenesis(dAtA []byte, offset int, v uint64) int { - offset -= sovGenesis(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *GenesisState) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.Params.Size() - n += 1 + l + sovGenesis(uint64(l)) - return n -} - -func sovGenesis(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozGenesis(x uint64) (n int) { - return sovGenesis(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *GenesisState) 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 ErrIntOverflowGenesis - } - 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: GenesisState: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: GenesisState: 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) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenesis - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenesis - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenesis - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Params.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenesis(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthGenesis - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipGenesis(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - depth := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenesis - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenesis - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - case 1: - iNdEx += 8 - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenesis - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthGenesis - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupGenesis - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthGenesis - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF -} - -var ( - ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") -) diff --git a/x/resolver/types/genesis_test.go b/x/resolver/types/genesis_test.go deleted file mode 100644 index f5c5ef88..00000000 --- a/x/resolver/types/genesis_test.go +++ /dev/null @@ -1,42 +0,0 @@ -package types_test - -import ( - "testing" - - "github.com/stretchr/testify/require" - - "github.com/mycel-domain/mycel/x/resolver/types" -) - -func TestGenesisState_Validate(t *testing.T) { - tests := []struct { - desc string - genState *types.GenesisState - valid bool - }{ - { - desc: "default is valid", - genState: types.DefaultGenesis(), - valid: true, - }, - { - desc: "valid genesis state", - genState: &types.GenesisState{ - - // this line is used by starport scaffolding # types/genesis/validField - }, - valid: true, - }, - // this line is used by starport scaffolding # types/genesis/testcase - } - for _, tc := range tests { - t.Run(tc.desc, func(t *testing.T) { - err := tc.genState.Validate() - if tc.valid { - require.NoError(t, err) - } else { - require.Error(t, err) - } - }) - } -} diff --git a/x/resolver/types/keys.go b/x/resolver/types/keys.go deleted file mode 100644 index 7f59a765..00000000 --- a/x/resolver/types/keys.go +++ /dev/null @@ -1,19 +0,0 @@ -package types - -const ( - // ModuleName defines the module name - ModuleName = "resolver" - - // StoreKey defines the primary module store key - StoreKey = ModuleName - - // RouterKey defines the module's message routing key - RouterKey = ModuleName - - // MemStoreKey defines the in-memory store key - MemStoreKey = "mem_resolver" -) - -func KeyPrefix(p string) []byte { - return []byte(p) -} diff --git a/x/resolver/types/params.go b/x/resolver/types/params.go deleted file mode 100644 index cc90a6d8..00000000 --- a/x/resolver/types/params.go +++ /dev/null @@ -1,40 +0,0 @@ -package types - -import ( - "gopkg.in/yaml.v2" - - paramtypes "github.com/cosmos/cosmos-sdk/x/params/types" -) - -var _ paramtypes.ParamSet = (*Params)(nil) - -// ParamKeyTable the param key table for launch module -func ParamKeyTable() paramtypes.KeyTable { - return paramtypes.NewKeyTable().RegisterParamSet(&Params{}) -} - -// NewParams creates a new Params instance -func NewParams() Params { - return Params{} -} - -// DefaultParams returns a default set of parameters -func DefaultParams() Params { - return NewParams() -} - -// ParamSetPairs get the params.ParamSet -func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs { - return paramtypes.ParamSetPairs{} -} - -// Validate validates the set of params -func (p Params) Validate() error { - return nil -} - -// String implements the Stringer interface. -func (p Params) String() string { - out, _ := yaml.Marshal(p) - return string(out) -} diff --git a/x/resolver/types/params.pb.go b/x/resolver/types/params.pb.go deleted file mode 100644 index bd43e156..00000000 --- a/x/resolver/types/params.pb.go +++ /dev/null @@ -1,267 +0,0 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: mycel/resolver/v1beta1/params.proto - -package types - -import ( - fmt "fmt" - _ "github.com/cosmos/gogoproto/gogoproto" - proto "github.com/cosmos/gogoproto/proto" - io "io" - math "math" - math_bits "math/bits" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package - -// Params defines the parameters for the module. -type Params struct { -} - -func (m *Params) Reset() { *m = Params{} } -func (*Params) ProtoMessage() {} -func (*Params) Descriptor() ([]byte, []int) { - return fileDescriptor_48b41cf1b387c9d4, []int{0} -} -func (m *Params) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Params.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 *Params) XXX_Merge(src proto.Message) { - xxx_messageInfo_Params.Merge(m, src) -} -func (m *Params) XXX_Size() int { - return m.Size() -} -func (m *Params) XXX_DiscardUnknown() { - xxx_messageInfo_Params.DiscardUnknown(m) -} - -var xxx_messageInfo_Params proto.InternalMessageInfo - -func init() { - proto.RegisterType((*Params)(nil), "mycel.resolver.v1beta1.Params") -} - -func init() { - proto.RegisterFile("mycel/resolver/v1beta1/params.proto", fileDescriptor_48b41cf1b387c9d4) -} - -var fileDescriptor_48b41cf1b387c9d4 = []byte{ - // 163 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0xce, 0xad, 0x4c, 0x4e, - 0xcd, 0xd1, 0x2f, 0x4a, 0x2d, 0xce, 0xcf, 0x29, 0x4b, 0x2d, 0xd2, 0x2f, 0x33, 0x4c, 0x4a, 0x2d, - 0x49, 0x34, 0xd4, 0x2f, 0x48, 0x2c, 0x4a, 0xcc, 0x2d, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, - 0x12, 0x03, 0x2b, 0xd2, 0x83, 0x29, 0xd2, 0x83, 0x2a, 0x92, 0x12, 0x49, 0xcf, 0x4f, 0xcf, 0x07, - 0x2b, 0xd1, 0x07, 0xb1, 0x20, 0xaa, 0x95, 0xf8, 0xb8, 0xd8, 0x02, 0xc0, 0xba, 0xad, 0x58, 0x66, - 0x2c, 0x90, 0x67, 0x70, 0xf2, 0x38, 0xf1, 0x48, 0x8e, 0xf1, 0xc2, 0x23, 0x39, 0xc6, 0x07, 0x8f, - 0xe4, 0x18, 0x27, 0x3c, 0x96, 0x63, 0xb8, 0xf0, 0x58, 0x8e, 0xe1, 0xc6, 0x63, 0x39, 0x86, 0x28, - 0xbd, 0xf4, 0xcc, 0x92, 0x8c, 0xd2, 0x24, 0xbd, 0xe4, 0xfc, 0x5c, 0x7d, 0xb0, 0x15, 0xba, 0x29, - 0xf9, 0xb9, 0x89, 0x99, 0x79, 0x10, 0x8e, 0x7e, 0x05, 0xc2, 0x59, 0x25, 0x95, 0x05, 0xa9, 0xc5, - 0x49, 0x6c, 0x60, 0x0b, 0x8c, 0x01, 0x01, 0x00, 0x00, 0xff, 0xff, 0x3e, 0xb2, 0x61, 0x4c, 0xb5, - 0x00, 0x00, 0x00, -} - -func (m *Params) 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 *Params) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func encodeVarintParams(dAtA []byte, offset int, v uint64) int { - offset -= sovParams(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *Params) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func sovParams(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozParams(x uint64) (n int) { - return sovParams(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *Params) 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 ErrIntOverflowParams - } - 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: Params: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Params: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipParams(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthParams - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipParams(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - depth := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowParams - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowParams - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - case 1: - iNdEx += 8 - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowParams - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthParams - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupParams - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthParams - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF -} - -var ( - ErrInvalidLengthParams = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowParams = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group") -) diff --git a/x/resolver/types/query.pb.go b/x/resolver/types/query.pb.go deleted file mode 100644 index 37a9ecb0..00000000 --- a/x/resolver/types/query.pb.go +++ /dev/null @@ -1,2588 +0,0 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: mycel/resolver/v1beta1/query.proto - -package types - -import ( - context "context" - fmt "fmt" - _ "github.com/cosmos/gogoproto/gogoproto" - grpc1 "github.com/cosmos/gogoproto/grpc" - proto "github.com/cosmos/gogoproto/proto" - types "github.com/mycel-domain/mycel/x/registry/types" - _ "google.golang.org/genproto/googleapis/api/annotations" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" - io "io" - math "math" - math_bits "math/bits" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// 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 { -} - -func (m *QueryParamsRequest) Reset() { *m = QueryParamsRequest{} } -func (m *QueryParamsRequest) String() string { return proto.CompactTextString(m) } -func (*QueryParamsRequest) ProtoMessage() {} -func (*QueryParamsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_d9dcb5275900fe88, []int{0} -} -func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryParamsRequest.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 *QueryParamsRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryParamsRequest.Merge(m, src) -} -func (m *QueryParamsRequest) XXX_Size() int { - return m.Size() -} -func (m *QueryParamsRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryParamsRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryParamsRequest 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"` -} - -func (m *QueryParamsResponse) Reset() { *m = QueryParamsResponse{} } -func (m *QueryParamsResponse) String() string { return proto.CompactTextString(m) } -func (*QueryParamsResponse) ProtoMessage() {} -func (*QueryParamsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_d9dcb5275900fe88, []int{1} -} -func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryParamsResponse.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 *QueryParamsResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryParamsResponse.Merge(m, src) -} -func (m *QueryParamsResponse) XXX_Size() int { - return m.Size() -} -func (m *QueryParamsResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryParamsResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryParamsResponse proto.InternalMessageInfo - -func (m *QueryParamsResponse) GetParams() Params { - if m != nil { - return m.Params - } - return Params{} -} - -type QueryWalletRecordRequest struct { - DomainName string `protobuf:"bytes,1,opt,name=domain_name,json=domainName,proto3" json:"domain_name,omitempty"` - DomainParent string `protobuf:"bytes,2,opt,name=domain_parent,json=domainParent,proto3" json:"domain_parent,omitempty"` - WalletRecordType string `protobuf:"bytes,3,opt,name=wallet_record_type,json=walletRecordType,proto3" json:"wallet_record_type,omitempty"` -} - -func (m *QueryWalletRecordRequest) Reset() { *m = QueryWalletRecordRequest{} } -func (m *QueryWalletRecordRequest) String() string { return proto.CompactTextString(m) } -func (*QueryWalletRecordRequest) ProtoMessage() {} -func (*QueryWalletRecordRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_d9dcb5275900fe88, []int{2} -} -func (m *QueryWalletRecordRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryWalletRecordRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryWalletRecordRequest.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 *QueryWalletRecordRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryWalletRecordRequest.Merge(m, src) -} -func (m *QueryWalletRecordRequest) XXX_Size() int { - return m.Size() -} -func (m *QueryWalletRecordRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryWalletRecordRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryWalletRecordRequest proto.InternalMessageInfo - -func (m *QueryWalletRecordRequest) GetDomainName() string { - if m != nil { - return m.DomainName - } - return "" -} - -func (m *QueryWalletRecordRequest) GetDomainParent() string { - if m != nil { - return m.DomainParent - } - return "" -} - -func (m *QueryWalletRecordRequest) GetWalletRecordType() string { - if m != nil { - return m.WalletRecordType - } - return "" -} - -type QueryWalletRecordResponse struct { - Value *types.WalletRecord `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` -} - -func (m *QueryWalletRecordResponse) Reset() { *m = QueryWalletRecordResponse{} } -func (m *QueryWalletRecordResponse) String() string { return proto.CompactTextString(m) } -func (*QueryWalletRecordResponse) ProtoMessage() {} -func (*QueryWalletRecordResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_d9dcb5275900fe88, []int{3} -} -func (m *QueryWalletRecordResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryWalletRecordResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryWalletRecordResponse.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 *QueryWalletRecordResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryWalletRecordResponse.Merge(m, src) -} -func (m *QueryWalletRecordResponse) XXX_Size() int { - return m.Size() -} -func (m *QueryWalletRecordResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryWalletRecordResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryWalletRecordResponse proto.InternalMessageInfo - -func (m *QueryWalletRecordResponse) GetValue() *types.WalletRecord { - if m != nil { - return m.Value - } - return nil -} - -type QueryDnsRecordRequest struct { - DomainName string `protobuf:"bytes,1,opt,name=domain_name,json=domainName,proto3" json:"domain_name,omitempty"` - DomainParent string `protobuf:"bytes,2,opt,name=domain_parent,json=domainParent,proto3" json:"domain_parent,omitempty"` - DnsRecordType string `protobuf:"bytes,3,opt,name=dns_record_type,json=dnsRecordType,proto3" json:"dns_record_type,omitempty"` -} - -func (m *QueryDnsRecordRequest) Reset() { *m = QueryDnsRecordRequest{} } -func (m *QueryDnsRecordRequest) String() string { return proto.CompactTextString(m) } -func (*QueryDnsRecordRequest) ProtoMessage() {} -func (*QueryDnsRecordRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_d9dcb5275900fe88, []int{4} -} -func (m *QueryDnsRecordRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryDnsRecordRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryDnsRecordRequest.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 *QueryDnsRecordRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryDnsRecordRequest.Merge(m, src) -} -func (m *QueryDnsRecordRequest) XXX_Size() int { - return m.Size() -} -func (m *QueryDnsRecordRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryDnsRecordRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryDnsRecordRequest proto.InternalMessageInfo - -func (m *QueryDnsRecordRequest) GetDomainName() string { - if m != nil { - return m.DomainName - } - return "" -} - -func (m *QueryDnsRecordRequest) GetDomainParent() string { - if m != nil { - return m.DomainParent - } - return "" -} - -func (m *QueryDnsRecordRequest) GetDnsRecordType() string { - if m != nil { - return m.DnsRecordType - } - return "" -} - -type QueryDnsRecordResponse struct { - Value *types.DnsRecord `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` -} - -func (m *QueryDnsRecordResponse) Reset() { *m = QueryDnsRecordResponse{} } -func (m *QueryDnsRecordResponse) String() string { return proto.CompactTextString(m) } -func (*QueryDnsRecordResponse) ProtoMessage() {} -func (*QueryDnsRecordResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_d9dcb5275900fe88, []int{5} -} -func (m *QueryDnsRecordResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryDnsRecordResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryDnsRecordResponse.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 *QueryDnsRecordResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryDnsRecordResponse.Merge(m, src) -} -func (m *QueryDnsRecordResponse) XXX_Size() int { - return m.Size() -} -func (m *QueryDnsRecordResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryDnsRecordResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryDnsRecordResponse proto.InternalMessageInfo - -func (m *QueryDnsRecordResponse) GetValue() *types.DnsRecord { - if m != nil { - return m.Value - } - return nil -} - -type QueryAllRecordsRequest struct { - DomainName string `protobuf:"bytes,1,opt,name=domain_name,json=domainName,proto3" json:"domain_name,omitempty"` - DomainParent string `protobuf:"bytes,2,opt,name=domain_parent,json=domainParent,proto3" json:"domain_parent,omitempty"` -} - -func (m *QueryAllRecordsRequest) Reset() { *m = QueryAllRecordsRequest{} } -func (m *QueryAllRecordsRequest) String() string { return proto.CompactTextString(m) } -func (*QueryAllRecordsRequest) ProtoMessage() {} -func (*QueryAllRecordsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_d9dcb5275900fe88, []int{6} -} -func (m *QueryAllRecordsRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryAllRecordsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryAllRecordsRequest.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 *QueryAllRecordsRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryAllRecordsRequest.Merge(m, src) -} -func (m *QueryAllRecordsRequest) XXX_Size() int { - return m.Size() -} -func (m *QueryAllRecordsRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryAllRecordsRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryAllRecordsRequest proto.InternalMessageInfo - -func (m *QueryAllRecordsRequest) GetDomainName() string { - if m != nil { - return m.DomainName - } - return "" -} - -func (m *QueryAllRecordsRequest) GetDomainParent() string { - if m != nil { - return m.DomainParent - } - return "" -} - -type QueryAllRecordsResponse struct { - Values map[string]*types.Record `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` -} - -func (m *QueryAllRecordsResponse) Reset() { *m = QueryAllRecordsResponse{} } -func (m *QueryAllRecordsResponse) String() string { return proto.CompactTextString(m) } -func (*QueryAllRecordsResponse) ProtoMessage() {} -func (*QueryAllRecordsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_d9dcb5275900fe88, []int{7} -} -func (m *QueryAllRecordsResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryAllRecordsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryAllRecordsResponse.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 *QueryAllRecordsResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryAllRecordsResponse.Merge(m, src) -} -func (m *QueryAllRecordsResponse) XXX_Size() int { - return m.Size() -} -func (m *QueryAllRecordsResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryAllRecordsResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryAllRecordsResponse proto.InternalMessageInfo - -func (m *QueryAllRecordsResponse) GetValues() map[string]*types.Record { - if m != nil { - return m.Values - } - return nil -} - -type QueryTextRecordRequest struct { - DomainName string `protobuf:"bytes,1,opt,name=domain_name,json=domainName,proto3" json:"domain_name,omitempty"` - DomainParent string `protobuf:"bytes,2,opt,name=domain_parent,json=domainParent,proto3" json:"domain_parent,omitempty"` - Key string `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty"` -} - -func (m *QueryTextRecordRequest) Reset() { *m = QueryTextRecordRequest{} } -func (m *QueryTextRecordRequest) String() string { return proto.CompactTextString(m) } -func (*QueryTextRecordRequest) ProtoMessage() {} -func (*QueryTextRecordRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_d9dcb5275900fe88, []int{8} -} -func (m *QueryTextRecordRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryTextRecordRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryTextRecordRequest.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 *QueryTextRecordRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryTextRecordRequest.Merge(m, src) -} -func (m *QueryTextRecordRequest) XXX_Size() int { - return m.Size() -} -func (m *QueryTextRecordRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryTextRecordRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryTextRecordRequest proto.InternalMessageInfo - -func (m *QueryTextRecordRequest) GetDomainName() string { - if m != nil { - return m.DomainName - } - return "" -} - -func (m *QueryTextRecordRequest) GetDomainParent() string { - if m != nil { - return m.DomainParent - } - return "" -} - -func (m *QueryTextRecordRequest) GetKey() string { - if m != nil { - return m.Key - } - return "" -} - -type QueryTextRecordResponse struct { - Value *types.TextRecord `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` -} - -func (m *QueryTextRecordResponse) Reset() { *m = QueryTextRecordResponse{} } -func (m *QueryTextRecordResponse) String() string { return proto.CompactTextString(m) } -func (*QueryTextRecordResponse) ProtoMessage() {} -func (*QueryTextRecordResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_d9dcb5275900fe88, []int{9} -} -func (m *QueryTextRecordResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryTextRecordResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryTextRecordResponse.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 *QueryTextRecordResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryTextRecordResponse.Merge(m, src) -} -func (m *QueryTextRecordResponse) XXX_Size() int { - return m.Size() -} -func (m *QueryTextRecordResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryTextRecordResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryTextRecordResponse proto.InternalMessageInfo - -func (m *QueryTextRecordResponse) GetValue() *types.TextRecord { - if m != nil { - return m.Value - } - return nil -} - -func init() { - proto.RegisterType((*QueryParamsRequest)(nil), "mycel.resolver.v1beta1.QueryParamsRequest") - proto.RegisterType((*QueryParamsResponse)(nil), "mycel.resolver.v1beta1.QueryParamsResponse") - proto.RegisterType((*QueryWalletRecordRequest)(nil), "mycel.resolver.v1beta1.QueryWalletRecordRequest") - proto.RegisterType((*QueryWalletRecordResponse)(nil), "mycel.resolver.v1beta1.QueryWalletRecordResponse") - proto.RegisterType((*QueryDnsRecordRequest)(nil), "mycel.resolver.v1beta1.QueryDnsRecordRequest") - proto.RegisterType((*QueryDnsRecordResponse)(nil), "mycel.resolver.v1beta1.QueryDnsRecordResponse") - proto.RegisterType((*QueryAllRecordsRequest)(nil), "mycel.resolver.v1beta1.QueryAllRecordsRequest") - proto.RegisterType((*QueryAllRecordsResponse)(nil), "mycel.resolver.v1beta1.QueryAllRecordsResponse") - proto.RegisterMapType((map[string]*types.Record)(nil), "mycel.resolver.v1beta1.QueryAllRecordsResponse.ValuesEntry") - proto.RegisterType((*QueryTextRecordRequest)(nil), "mycel.resolver.v1beta1.QueryTextRecordRequest") - proto.RegisterType((*QueryTextRecordResponse)(nil), "mycel.resolver.v1beta1.QueryTextRecordResponse") -} - -func init() { - proto.RegisterFile("mycel/resolver/v1beta1/query.proto", fileDescriptor_d9dcb5275900fe88) -} - -var fileDescriptor_d9dcb5275900fe88 = []byte{ - // 734 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x96, 0x5d, 0x6b, 0x13, 0x4d, - 0x14, 0xc7, 0x33, 0xc9, 0xd3, 0x3c, 0xf4, 0xa4, 0xc5, 0x32, 0xd6, 0x1a, 0x83, 0x6c, 0x75, 0x2a, - 0x52, 0xac, 0xdd, 0xed, 0x8b, 0x60, 0xa9, 0xde, 0x58, 0x14, 0xbc, 0x2a, 0x6d, 0x5a, 0x5a, 0x14, - 0x31, 0x4c, 0x93, 0x61, 0x0d, 0xdd, 0xdd, 0xd9, 0xee, 0x6e, 0xd2, 0x2e, 0x25, 0x37, 0x82, 0xb7, - 0x22, 0x08, 0x7e, 0x23, 0xa1, 0xe2, 0x4d, 0xa1, 0x37, 0x5e, 0x89, 0xa4, 0x7e, 0x01, 0xbf, 0x81, - 0x64, 0x66, 0xf2, 0xb2, 0x79, 0xeb, 0x16, 0xec, 0x5d, 0x3a, 0x7b, 0xfe, 0xe7, 0xfc, 0x7f, 0x67, - 0xe6, 0x1c, 0x0a, 0xc4, 0x0e, 0x8b, 0xcc, 0x32, 0x3c, 0xe6, 0x73, 0xab, 0xca, 0x3c, 0xa3, 0xba, - 0xb8, 0xc7, 0x02, 0xba, 0x68, 0x1c, 0x54, 0x98, 0x17, 0xea, 0xae, 0xc7, 0x03, 0x8e, 0xa7, 0x44, - 0x8c, 0xde, 0x8c, 0xd1, 0x55, 0x4c, 0x6e, 0xd2, 0xe4, 0x26, 0x17, 0x21, 0x46, 0xe3, 0x97, 0x8c, - 0xce, 0xdd, 0x36, 0x39, 0x37, 0x2d, 0x66, 0x50, 0xb7, 0x6c, 0x50, 0xc7, 0xe1, 0x01, 0x0d, 0xca, - 0xdc, 0xf1, 0xd5, 0xd7, 0x85, 0x66, 0x3d, 0xb3, 0xec, 0x07, 0x5e, 0xd8, 0xaa, 0xe7, 0xb3, 0x22, - 0x77, 0x4a, 0x05, 0x8b, 0x55, 0x99, 0x55, 0x28, 0x71, 0x9b, 0x96, 0x1d, 0xa5, 0x98, 0x19, 0xe0, - 0xd0, 0xa5, 0x1e, 0xb5, 0x55, 0x5a, 0x32, 0x09, 0x78, 0xb3, 0xe1, 0x78, 0x43, 0x1c, 0xe6, 0xd9, - 0x41, 0x85, 0xf9, 0x01, 0xd9, 0x82, 0xeb, 0x91, 0x53, 0xdf, 0xe5, 0x8e, 0xcf, 0xf0, 0x53, 0x48, - 0x4b, 0x71, 0x16, 0xdd, 0x41, 0xb3, 0x99, 0x25, 0x4d, 0xef, 0x0f, 0xa8, 0x4b, 0xdd, 0xda, 0x7f, - 0x27, 0x3f, 0xa7, 0x13, 0x79, 0xa5, 0x21, 0x1f, 0x11, 0x64, 0x45, 0xd6, 0x5d, 0x6a, 0x59, 0x2c, - 0xc8, 0xb3, 0x22, 0xf7, 0x4a, 0xaa, 0x22, 0x9e, 0x86, 0x8c, 0x34, 0x5f, 0x70, 0xa8, 0xcd, 0x44, - 0xfe, 0xd1, 0x3c, 0xc8, 0xa3, 0x75, 0x6a, 0x33, 0x3c, 0x03, 0xe3, 0x2a, 0xc0, 0xa5, 0x1e, 0x73, - 0x82, 0x6c, 0x52, 0x84, 0x8c, 0xc9, 0xc3, 0x0d, 0x71, 0x86, 0x1f, 0x02, 0x3e, 0x14, 0xc9, 0x0b, - 0x9e, 0xc8, 0x5e, 0x08, 0x42, 0x97, 0x65, 0x53, 0x22, 0x72, 0xe2, 0xb0, 0xa3, 0xec, 0x76, 0xe8, - 0x32, 0xb2, 0x0b, 0xb7, 0xfa, 0xf8, 0x51, 0xac, 0xab, 0x30, 0x52, 0xa5, 0x56, 0x85, 0x29, 0xd4, - 0x7b, 0x2d, 0x54, 0xd9, 0xff, 0x16, 0x6a, 0x44, 0x2c, 0x25, 0xe4, 0x03, 0x82, 0x1b, 0x22, 0xf3, - 0x73, 0xc7, 0xbf, 0x0a, 0xcc, 0xfb, 0x70, 0xad, 0xe4, 0xf8, 0x7d, 0x18, 0xc7, 0x4b, 0xcd, 0x82, - 0x02, 0x70, 0x13, 0xa6, 0xba, 0x6d, 0x28, 0xba, 0xc7, 0x51, 0xba, 0xbb, 0x83, 0xe8, 0xda, 0x4a, - 0x85, 0xf6, 0x56, 0xa5, 0x7c, 0x66, 0x59, 0xf2, 0x83, 0xff, 0x4f, 0xd1, 0xc8, 0x37, 0x04, 0x37, - 0x7b, 0x0a, 0x28, 0xd3, 0x5b, 0x90, 0x16, 0x26, 0x1a, 0xcf, 0x2f, 0x35, 0x9b, 0x59, 0x7a, 0x32, - 0xe8, 0xf9, 0x0d, 0x48, 0xa0, 0xef, 0x08, 0xf5, 0x0b, 0x27, 0xf0, 0xc2, 0xbc, 0x4a, 0x95, 0x7b, - 0x05, 0x99, 0x8e, 0x63, 0x3c, 0x01, 0xa9, 0x7d, 0x16, 0x2a, 0xf7, 0x8d, 0x9f, 0xf8, 0x51, 0xb3, - 0x55, 0xc9, 0xae, 0x37, 0xdf, 0xd5, 0xaa, 0x48, 0x9f, 0x56, 0x93, 0x2b, 0x88, 0xb8, 0xaa, 0x57, - 0xdb, 0xec, 0xe8, 0x4a, 0x5e, 0xbb, 0xf2, 0x9a, 0x6a, 0x79, 0x25, 0x5b, 0xaa, 0x79, 0x9d, 0x15, - 0x55, 0xf3, 0x56, 0xa2, 0x37, 0x4e, 0x06, 0x61, 0x74, 0x48, 0xa5, 0x60, 0xe9, 0xcf, 0xff, 0x30, - 0x22, 0xb2, 0xe2, 0x2f, 0x08, 0xd2, 0x72, 0xb4, 0xf1, 0x83, 0xa1, 0xbd, 0x8f, 0x6c, 0x93, 0xdc, - 0x5c, 0xac, 0x58, 0xe9, 0x93, 0x2c, 0xbf, 0x3f, 0xfb, 0xfd, 0x39, 0x39, 0x8f, 0xe7, 0x0c, 0x21, - 0x9a, 0x97, 0xc4, 0xc6, 0xd0, 0x5d, 0x86, 0xeb, 0x08, 0xc6, 0x3a, 0x07, 0x11, 0x2f, 0x0c, 0x2d, - 0xd9, 0x67, 0x01, 0xe5, 0x16, 0x2f, 0xa1, 0x50, 0x56, 0x6d, 0x61, 0xd5, 0xc4, 0x2c, 0x96, 0xd5, - 0xc8, 0x62, 0x32, 0x8e, 0x3b, 0xee, 0xbf, 0xd6, 0xfa, 0x4b, 0x5e, 0x76, 0xcd, 0x38, 0xee, 0xdd, - 0x62, 0x35, 0x7c, 0x86, 0x60, 0xb4, 0x35, 0x8f, 0x78, 0x7e, 0xa8, 0xdf, 0xee, 0xc5, 0x93, 0xd3, - 0xe3, 0x86, 0x2b, 0x36, 0x53, 0xb0, 0x51, 0x5c, 0x88, 0xc5, 0xd6, 0xde, 0x46, 0x17, 0x81, 0x75, - 0xed, 0xad, 0x1a, 0xfe, 0x8a, 0x00, 0xda, 0xa3, 0x8a, 0xf5, 0xd8, 0x33, 0x2d, 0xb9, 0x8c, 0x4b, - 0xee, 0x00, 0xb2, 0x23, 0xc0, 0x36, 0xf0, 0x7a, 0x2c, 0x30, 0x6a, 0x59, 0xca, 0xae, 0x3f, 0x9c, - 0x0c, 0x7f, 0x47, 0x00, 0xed, 0xd9, 0xb9, 0x80, 0xa3, 0x67, 0x23, 0x5c, 0xc0, 0xd1, 0x3b, 0xcf, - 0xe4, 0x8d, 0xe0, 0xd8, 0xc1, 0xdb, 0xb1, 0x38, 0x02, 0x76, 0x14, 0xf7, 0xe9, 0xed, 0xb3, 0xb0, - 0xb6, 0xf6, 0xf2, 0xa4, 0xae, 0xa1, 0xd3, 0xba, 0x86, 0x7e, 0xd5, 0x35, 0xf4, 0xe9, 0x5c, 0x4b, - 0x9c, 0x9e, 0x6b, 0x89, 0x1f, 0xe7, 0x5a, 0xe2, 0xb5, 0x6e, 0x96, 0x83, 0x77, 0x95, 0x3d, 0xbd, - 0xc8, 0xed, 0x7e, 0x95, 0x8f, 0xda, 0xb5, 0x1b, 0xf7, 0xeb, 0xef, 0xa5, 0xc5, 0xff, 0x19, 0xcb, - 0x7f, 0x03, 0x00, 0x00, 0xff, 0xff, 0xe6, 0xc3, 0x7c, 0x62, 0x30, 0x09, 0x00, 0x00, -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConn - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 - -// QueryClient is the client API for Query service. -// -// 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 QueryWalletRecord items. - WalletRecord(ctx context.Context, in *QueryWalletRecordRequest, opts ...grpc.CallOption) (*QueryWalletRecordResponse, error) - // Queries a list of DnsRecord items. - DnsRecord(ctx context.Context, in *QueryDnsRecordRequest, opts ...grpc.CallOption) (*QueryDnsRecordResponse, error) - // Queries a list of AllRecord items. - AllRecords(ctx context.Context, in *QueryAllRecordsRequest, opts ...grpc.CallOption) (*QueryAllRecordsResponse, error) - // Queries a list of TextRecord items. - TextRecord(ctx context.Context, in *QueryTextRecordRequest, opts ...grpc.CallOption) (*QueryTextRecordResponse, error) -} - -type queryClient struct { - cc grpc1.ClientConn -} - -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.resolver.v1beta1.Query/Params", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *queryClient) WalletRecord(ctx context.Context, in *QueryWalletRecordRequest, opts ...grpc.CallOption) (*QueryWalletRecordResponse, error) { - out := new(QueryWalletRecordResponse) - err := c.cc.Invoke(ctx, "/mycel.resolver.v1beta1.Query/WalletRecord", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *queryClient) DnsRecord(ctx context.Context, in *QueryDnsRecordRequest, opts ...grpc.CallOption) (*QueryDnsRecordResponse, error) { - out := new(QueryDnsRecordResponse) - err := c.cc.Invoke(ctx, "/mycel.resolver.v1beta1.Query/DnsRecord", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *queryClient) AllRecords(ctx context.Context, in *QueryAllRecordsRequest, opts ...grpc.CallOption) (*QueryAllRecordsResponse, error) { - out := new(QueryAllRecordsResponse) - err := c.cc.Invoke(ctx, "/mycel.resolver.v1beta1.Query/AllRecords", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *queryClient) TextRecord(ctx context.Context, in *QueryTextRecordRequest, opts ...grpc.CallOption) (*QueryTextRecordResponse, error) { - out := new(QueryTextRecordResponse) - err := c.cc.Invoke(ctx, "/mycel.resolver.v1beta1.Query/TextRecord", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// 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 QueryWalletRecord items. - WalletRecord(context.Context, *QueryWalletRecordRequest) (*QueryWalletRecordResponse, error) - // Queries a list of DnsRecord items. - DnsRecord(context.Context, *QueryDnsRecordRequest) (*QueryDnsRecordResponse, error) - // Queries a list of AllRecord items. - AllRecords(context.Context, *QueryAllRecordsRequest) (*QueryAllRecordsResponse, error) - // Queries a list of TextRecord items. - TextRecord(context.Context, *QueryTextRecordRequest) (*QueryTextRecordResponse, 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) WalletRecord(ctx context.Context, req *QueryWalletRecordRequest) (*QueryWalletRecordResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method WalletRecord not implemented") -} -func (*UnimplementedQueryServer) DnsRecord(ctx context.Context, req *QueryDnsRecordRequest) (*QueryDnsRecordResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method DnsRecord not implemented") -} -func (*UnimplementedQueryServer) AllRecords(ctx context.Context, req *QueryAllRecordsRequest) (*QueryAllRecordsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method AllRecords not implemented") -} -func (*UnimplementedQueryServer) TextRecord(ctx context.Context, req *QueryTextRecordRequest) (*QueryTextRecordResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method TextRecord 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) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).Params(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/mycel.resolver.v1beta1.Query/Params", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).Params(ctx, req.(*QueryParamsRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Query_WalletRecord_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryWalletRecordRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).WalletRecord(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/mycel.resolver.v1beta1.Query/WalletRecord", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).WalletRecord(ctx, req.(*QueryWalletRecordRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Query_DnsRecord_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryDnsRecordRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).DnsRecord(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/mycel.resolver.v1beta1.Query/DnsRecord", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).DnsRecord(ctx, req.(*QueryDnsRecordRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Query_AllRecords_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryAllRecordsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).AllRecords(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/mycel.resolver.v1beta1.Query/AllRecords", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).AllRecords(ctx, req.(*QueryAllRecordsRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Query_TextRecord_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryTextRecordRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).TextRecord(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/mycel.resolver.v1beta1.Query/TextRecord", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).TextRecord(ctx, req.(*QueryTextRecordRequest)) - } - return interceptor(ctx, in, info, handler) -} - -var _Query_serviceDesc = grpc.ServiceDesc{ - ServiceName: "mycel.resolver.v1beta1.Query", - HandlerType: (*QueryServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "Params", - Handler: _Query_Params_Handler, - }, - { - MethodName: "WalletRecord", - Handler: _Query_WalletRecord_Handler, - }, - { - MethodName: "DnsRecord", - Handler: _Query_DnsRecord_Handler, - }, - { - MethodName: "AllRecords", - Handler: _Query_AllRecords_Handler, - }, - { - MethodName: "TextRecord", - Handler: _Query_TextRecord_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "mycel/resolver/v1beta1/query.proto", -} - -func (m *QueryParamsRequest) 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 *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *QueryParamsResponse) 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 *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryParamsResponse) 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 - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *QueryWalletRecordRequest) 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 *QueryWalletRecordRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryWalletRecordRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.WalletRecordType) > 0 { - i -= len(m.WalletRecordType) - copy(dAtA[i:], m.WalletRecordType) - i = encodeVarintQuery(dAtA, i, uint64(len(m.WalletRecordType))) - i-- - dAtA[i] = 0x1a - } - if len(m.DomainParent) > 0 { - i -= len(m.DomainParent) - copy(dAtA[i:], m.DomainParent) - i = encodeVarintQuery(dAtA, i, uint64(len(m.DomainParent))) - i-- - dAtA[i] = 0x12 - } - if len(m.DomainName) > 0 { - i -= len(m.DomainName) - copy(dAtA[i:], m.DomainName) - i = encodeVarintQuery(dAtA, i, uint64(len(m.DomainName))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *QueryWalletRecordResponse) 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 *QueryWalletRecordResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryWalletRecordResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Value != nil { - { - size, err := m.Value.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 *QueryDnsRecordRequest) 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 *QueryDnsRecordRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryDnsRecordRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.DnsRecordType) > 0 { - i -= len(m.DnsRecordType) - copy(dAtA[i:], m.DnsRecordType) - i = encodeVarintQuery(dAtA, i, uint64(len(m.DnsRecordType))) - i-- - dAtA[i] = 0x1a - } - if len(m.DomainParent) > 0 { - i -= len(m.DomainParent) - copy(dAtA[i:], m.DomainParent) - i = encodeVarintQuery(dAtA, i, uint64(len(m.DomainParent))) - i-- - dAtA[i] = 0x12 - } - if len(m.DomainName) > 0 { - i -= len(m.DomainName) - copy(dAtA[i:], m.DomainName) - i = encodeVarintQuery(dAtA, i, uint64(len(m.DomainName))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *QueryDnsRecordResponse) 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 *QueryDnsRecordResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryDnsRecordResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Value != nil { - { - size, err := m.Value.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 *QueryAllRecordsRequest) 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 *QueryAllRecordsRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryAllRecordsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.DomainParent) > 0 { - i -= len(m.DomainParent) - copy(dAtA[i:], m.DomainParent) - i = encodeVarintQuery(dAtA, i, uint64(len(m.DomainParent))) - i-- - dAtA[i] = 0x12 - } - if len(m.DomainName) > 0 { - i -= len(m.DomainName) - copy(dAtA[i:], m.DomainName) - i = encodeVarintQuery(dAtA, i, uint64(len(m.DomainName))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *QueryAllRecordsResponse) 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 *QueryAllRecordsResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryAllRecordsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Values) > 0 { - for k := range m.Values { - v := m.Values[k] - baseI := i - if v != nil { - { - size, err := v.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - i -= len(k) - copy(dAtA[i:], k) - i = encodeVarintQuery(dAtA, i, uint64(len(k))) - i-- - dAtA[i] = 0xa - i = encodeVarintQuery(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *QueryTextRecordRequest) 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 *QueryTextRecordRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryTextRecordRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Key) > 0 { - i -= len(m.Key) - copy(dAtA[i:], m.Key) - i = encodeVarintQuery(dAtA, i, uint64(len(m.Key))) - i-- - dAtA[i] = 0x1a - } - if len(m.DomainParent) > 0 { - i -= len(m.DomainParent) - copy(dAtA[i:], m.DomainParent) - i = encodeVarintQuery(dAtA, i, uint64(len(m.DomainParent))) - i-- - dAtA[i] = 0x12 - } - if len(m.DomainName) > 0 { - i -= len(m.DomainName) - copy(dAtA[i:], m.DomainName) - i = encodeVarintQuery(dAtA, i, uint64(len(m.DomainName))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *QueryTextRecordResponse) 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 *QueryTextRecordResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryTextRecordResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Value != nil { - { - size, err := m.Value.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 - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *QueryParamsRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *QueryParamsResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.Params.Size() - n += 1 + l + sovQuery(uint64(l)) - return n -} - -func (m *QueryWalletRecordRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.DomainName) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) - } - l = len(m.DomainParent) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) - } - l = len(m.WalletRecordType) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) - } - return n -} - -func (m *QueryWalletRecordResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Value != nil { - l = m.Value.Size() - n += 1 + l + sovQuery(uint64(l)) - } - return n -} - -func (m *QueryDnsRecordRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.DomainName) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) - } - l = len(m.DomainParent) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) - } - l = len(m.DnsRecordType) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) - } - return n -} - -func (m *QueryDnsRecordResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Value != nil { - l = m.Value.Size() - n += 1 + l + sovQuery(uint64(l)) - } - return n -} - -func (m *QueryAllRecordsRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.DomainName) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) - } - l = len(m.DomainParent) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) - } - return n -} - -func (m *QueryAllRecordsResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Values) > 0 { - for k, v := range m.Values { - _ = k - _ = v - l = 0 - if v != nil { - l = v.Size() - l += 1 + sovQuery(uint64(l)) - } - mapEntrySize := 1 + len(k) + sovQuery(uint64(len(k))) + l - n += mapEntrySize + 1 + sovQuery(uint64(mapEntrySize)) - } - } - return n -} - -func (m *QueryTextRecordRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.DomainName) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) - } - l = len(m.DomainParent) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) - } - l = len(m.Key) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) - } - return n -} - -func (m *QueryTextRecordResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Value != nil { - l = m.Value.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 { - 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: QueryParamsRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryParamsRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryParamsResponse) 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: QueryParamsResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryParamsResponse: 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) - } - 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 err := m.Params.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 *QueryWalletRecordRequest) 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: QueryWalletRecordRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryWalletRecordRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DomainName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DomainName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DomainParent", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DomainParent = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field WalletRecordType", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.WalletRecordType = string(dAtA[iNdEx:postIndex]) - 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 *QueryWalletRecordResponse) 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: QueryWalletRecordResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryWalletRecordResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Value", 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.Value == nil { - m.Value = &types.WalletRecord{} - } - if err := m.Value.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 *QueryDnsRecordRequest) 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: QueryDnsRecordRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryDnsRecordRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DomainName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DomainName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DomainParent", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DomainParent = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DnsRecordType", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DnsRecordType = string(dAtA[iNdEx:postIndex]) - 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 *QueryDnsRecordResponse) 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: QueryDnsRecordResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryDnsRecordResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Value", 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.Value == nil { - m.Value = &types.DnsRecord{} - } - if err := m.Value.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 *QueryAllRecordsRequest) 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: QueryAllRecordsRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryAllRecordsRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DomainName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DomainName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DomainParent", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DomainParent = string(dAtA[iNdEx:postIndex]) - 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 *QueryAllRecordsResponse) 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: QueryAllRecordsResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryAllRecordsResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Values", 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.Values == nil { - m.Values = make(map[string]*types.Record) - } - var mapkey string - var mapvalue *types.Record - for iNdEx < postIndex { - entryPreIndex := 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) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthQuery - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthQuery - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var mapmsglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - mapmsglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if mapmsglen < 0 { - return ErrInvalidLengthQuery - } - postmsgIndex := iNdEx + mapmsglen - if postmsgIndex < 0 { - return ErrInvalidLengthQuery - } - if postmsgIndex > l { - return io.ErrUnexpectedEOF - } - mapvalue = &types.Record{} - if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil { - return err - } - iNdEx = postmsgIndex - } else { - iNdEx = entryPreIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.Values[mapkey] = mapvalue - 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 *QueryTextRecordRequest) 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: QueryTextRecordRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryTextRecordRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DomainName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DomainName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DomainParent", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DomainParent = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Key = string(dAtA[iNdEx:postIndex]) - 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 *QueryTextRecordResponse) 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: QueryTextRecordResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryTextRecordResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Value", 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.Value == nil { - m.Value = &types.TextRecord{} - } - if err := m.Value.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 - depth := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowQuery - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowQuery - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - case 1: - iNdEx += 8 - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowQuery - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthQuery - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupQuery - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthQuery - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF -} - -var ( - ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") -) diff --git a/x/resolver/types/query.pb.gw.go b/x/resolver/types/query.pb.gw.go deleted file mode 100644 index ec877f31..00000000 --- a/x/resolver/types/query.pb.gw.go +++ /dev/null @@ -1,711 +0,0 @@ -// Code generated by protoc-gen-grpc-gateway. DO NOT EDIT. -// source: mycel/resolver/v1beta1/query.proto - -/* -Package types is a reverse proxy. - -It translates gRPC into RESTful JSON APIs. -*/ -package types - -import ( - "context" - "io" - "net/http" - - "github.com/golang/protobuf/descriptor" - "github.com/golang/protobuf/proto" - "github.com/grpc-ecosystem/grpc-gateway/runtime" - "github.com/grpc-ecosystem/grpc-gateway/utilities" - "google.golang.org/grpc" - "google.golang.org/grpc/codes" - "google.golang.org/grpc/grpclog" - "google.golang.org/grpc/metadata" - "google.golang.org/grpc/status" -) - -// Suppress "imported and not used" errors -var _ codes.Code -var _ io.Reader -var _ status.Status -var _ = runtime.String -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 - var metadata runtime.ServerMetadata - - msg, err := client.Params(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 - var metadata runtime.ServerMetadata - - msg, err := server.Params(ctx, &protoReq) - return msg, metadata, err - -} - -func request_Query_WalletRecord_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryWalletRecordRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["domain_name"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "domain_name") - } - - protoReq.DomainName, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "domain_name", err) - } - - val, ok = pathParams["domain_parent"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "domain_parent") - } - - protoReq.DomainParent, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "domain_parent", err) - } - - val, ok = pathParams["wallet_record_type"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "wallet_record_type") - } - - protoReq.WalletRecordType, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "wallet_record_type", err) - } - - msg, err := client.WalletRecord(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_Query_WalletRecord_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryWalletRecordRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["domain_name"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "domain_name") - } - - protoReq.DomainName, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "domain_name", err) - } - - val, ok = pathParams["domain_parent"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "domain_parent") - } - - protoReq.DomainParent, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "domain_parent", err) - } - - val, ok = pathParams["wallet_record_type"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "wallet_record_type") - } - - protoReq.WalletRecordType, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "wallet_record_type", err) - } - - msg, err := server.WalletRecord(ctx, &protoReq) - return msg, metadata, err - -} - -func request_Query_DnsRecord_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryDnsRecordRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["domain_name"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "domain_name") - } - - protoReq.DomainName, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "domain_name", err) - } - - val, ok = pathParams["domain_parent"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "domain_parent") - } - - protoReq.DomainParent, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "domain_parent", err) - } - - val, ok = pathParams["dns_record_type"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "dns_record_type") - } - - protoReq.DnsRecordType, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "dns_record_type", err) - } - - msg, err := client.DnsRecord(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_Query_DnsRecord_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryDnsRecordRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["domain_name"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "domain_name") - } - - protoReq.DomainName, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "domain_name", err) - } - - val, ok = pathParams["domain_parent"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "domain_parent") - } - - protoReq.DomainParent, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "domain_parent", err) - } - - val, ok = pathParams["dns_record_type"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "dns_record_type") - } - - protoReq.DnsRecordType, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "dns_record_type", err) - } - - msg, err := server.DnsRecord(ctx, &protoReq) - return msg, metadata, err - -} - -func request_Query_AllRecords_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryAllRecordsRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["domain_name"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "domain_name") - } - - protoReq.DomainName, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "domain_name", err) - } - - val, ok = pathParams["domain_parent"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "domain_parent") - } - - protoReq.DomainParent, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "domain_parent", err) - } - - msg, err := client.AllRecords(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_Query_AllRecords_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryAllRecordsRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["domain_name"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "domain_name") - } - - protoReq.DomainName, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "domain_name", err) - } - - val, ok = pathParams["domain_parent"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "domain_parent") - } - - protoReq.DomainParent, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "domain_parent", err) - } - - msg, err := server.AllRecords(ctx, &protoReq) - return msg, metadata, err - -} - -func request_Query_TextRecord_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryTextRecordRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["domain_name"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "domain_name") - } - - protoReq.DomainName, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "domain_name", err) - } - - val, ok = pathParams["domain_parent"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "domain_parent") - } - - protoReq.DomainParent, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "domain_parent", err) - } - - val, ok = pathParams["key"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "key") - } - - protoReq.Key, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "key", err) - } - - msg, err := client.TextRecord(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_Query_TextRecord_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryTextRecordRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["domain_name"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "domain_name") - } - - protoReq.DomainName, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "domain_name", err) - } - - val, ok = pathParams["domain_parent"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "domain_parent") - } - - protoReq.DomainParent, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "domain_parent", err) - } - - val, ok = pathParams["key"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "key") - } - - protoReq.Key, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "key", err) - } - - msg, err := server.TextRecord(ctx, &protoReq) - return msg, metadata, err - -} - -// RegisterQueryHandlerServer registers the http handlers for service Query to "mux". -// UnaryRPC :call QueryServer directly. -// StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. -// 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) { - 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_Params_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_Params_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_Query_WalletRecord_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_WalletRecord_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_WalletRecord_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_Query_DnsRecord_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_DnsRecord_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_DnsRecord_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_Query_AllRecords_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_AllRecords_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_AllRecords_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_Query_TextRecord_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_TextRecord_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_TextRecord_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - return nil -} - -// RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but -// automatically dials to "endpoint" and closes the connection when "ctx" gets done. -func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) { - conn, err := grpc.Dial(endpoint, opts...) - if err != nil { - return err - } - defer func() { - if err != nil { - if cerr := conn.Close(); cerr != nil { - grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) - } - return - } - go func() { - <-ctx.Done() - if cerr := conn.Close(); cerr != nil { - grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) - } - }() - }() - - return RegisterQueryHandler(ctx, mux, conn) -} - -// RegisterQueryHandler registers the http handlers for service Query to "mux". -// The handlers forward requests to the grpc endpoint over "conn". -func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error { - return RegisterQueryHandlerClient(ctx, mux, NewQueryClient(conn)) -} - -// RegisterQueryHandlerClient registers the http handlers for service Query -// to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QueryClient". -// Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QueryClient" -// doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in -// "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_WalletRecord_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_WalletRecord_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_WalletRecord_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_Query_DnsRecord_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_DnsRecord_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_DnsRecord_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_Query_AllRecords_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_AllRecords_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_AllRecords_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_Query_TextRecord_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_TextRecord_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_TextRecord_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - return nil -} - -var ( - pattern_Query_Params_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4}, []string{"mycel-domain", "mycel", "resolver", "v1beta1", "params"}, "", runtime.AssumeColonVerbOpt(false))) - - pattern_Query_WalletRecord_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4, 1, 0, 4, 1, 5, 5, 1, 0, 4, 1, 5, 6, 1, 0, 4, 1, 5, 7}, []string{"mycel-domain", "mycel", "resolver", "v1beta1", "wallet_record", "domain_name", "domain_parent", "wallet_record_type"}, "", runtime.AssumeColonVerbOpt(false))) - - pattern_Query_DnsRecord_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4, 1, 0, 4, 1, 5, 5, 1, 0, 4, 1, 5, 6, 1, 0, 4, 1, 5, 7}, []string{"mycel-domain", "mycel", "resolver", "v1beta1", "dns_record", "domain_name", "domain_parent", "dns_record_type"}, "", runtime.AssumeColonVerbOpt(false))) - - pattern_Query_AllRecords_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4, 1, 0, 4, 1, 5, 5, 1, 0, 4, 1, 5, 6}, []string{"mycel-domain", "mycel", "resolver", "v1beta1", "all_records", "domain_name", "domain_parent"}, "", runtime.AssumeColonVerbOpt(false))) - - pattern_Query_TextRecord_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4, 1, 0, 4, 1, 5, 5, 1, 0, 4, 1, 5, 6, 1, 0, 4, 1, 5, 7}, []string{"mycel-domain", "mycel", "resolver", "v1beta1", "text_record", "domain_name", "domain_parent", "key"}, "", runtime.AssumeColonVerbOpt(false))) -) - -var ( - forward_Query_Params_0 = runtime.ForwardResponseMessage - - forward_Query_WalletRecord_0 = runtime.ForwardResponseMessage - - forward_Query_DnsRecord_0 = runtime.ForwardResponseMessage - - forward_Query_AllRecords_0 = runtime.ForwardResponseMessage - - forward_Query_TextRecord_0 = runtime.ForwardResponseMessage -) diff --git a/x/resolver/types/tx.pb.go b/x/resolver/types/tx.pb.go deleted file mode 100644 index 8a18f98a..00000000 --- a/x/resolver/types/tx.pb.go +++ /dev/null @@ -1,81 +0,0 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: mycel/resolver/v1beta1/tx.proto - -package types - -import ( - context "context" - fmt "fmt" - grpc1 "github.com/cosmos/gogoproto/grpc" - proto "github.com/cosmos/gogoproto/proto" - grpc "google.golang.org/grpc" - math "math" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package - -func init() { proto.RegisterFile("mycel/resolver/v1beta1/tx.proto", fileDescriptor_573c89342dbc9785) } - -var fileDescriptor_573c89342dbc9785 = []byte{ - // 140 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0xcf, 0xad, 0x4c, 0x4e, - 0xcd, 0xd1, 0x2f, 0x4a, 0x2d, 0xce, 0xcf, 0x29, 0x4b, 0x2d, 0xd2, 0x2f, 0x33, 0x4c, 0x4a, 0x2d, - 0x49, 0x34, 0xd4, 0x2f, 0xa9, 0xd0, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, 0x03, 0x2b, 0xd0, - 0x83, 0x29, 0xd0, 0x83, 0x2a, 0x30, 0x62, 0xe5, 0x62, 0xf6, 0x2d, 0x4e, 0x77, 0xf2, 0x38, 0xf1, - 0x48, 0x8e, 0xf1, 0xc2, 0x23, 0x39, 0xc6, 0x07, 0x8f, 0xe4, 0x18, 0x27, 0x3c, 0x96, 0x63, 0xb8, - 0xf0, 0x58, 0x8e, 0xe1, 0xc6, 0x63, 0x39, 0x86, 0x28, 0xbd, 0xf4, 0xcc, 0x92, 0x8c, 0xd2, 0x24, - 0xbd, 0xe4, 0xfc, 0x5c, 0x7d, 0xb0, 0x19, 0xba, 0x29, 0xf9, 0xb9, 0x89, 0x99, 0x79, 0x10, 0x8e, - 0x7e, 0x05, 0xc2, 0xce, 0x92, 0xca, 0x82, 0xd4, 0xe2, 0x24, 0x36, 0xb0, 0x7d, 0xc6, 0x80, 0x00, - 0x00, 0x00, 0xff, 0xff, 0x7d, 0xd0, 0x62, 0xba, 0x92, 0x00, 0x00, 0x00, -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConn - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 - -// MsgClient is the client API for Msg service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type MsgClient interface { -} - -type msgClient struct { - cc grpc1.ClientConn -} - -func NewMsgClient(cc grpc1.ClientConn) MsgClient { - return &msgClient{cc} -} - -// MsgServer is the server API for Msg service. -type MsgServer interface { -} - -// UnimplementedMsgServer can be embedded to have forward compatible implementations. -type UnimplementedMsgServer struct { -} - -func RegisterMsgServer(s grpc1.Server, srv MsgServer) { - s.RegisterService(&_Msg_serviceDesc, srv) -} - -var _Msg_serviceDesc = grpc.ServiceDesc{ - ServiceName: "mycel.resolver.v1beta1.Msg", - HandlerType: (*MsgServer)(nil), - Methods: []grpc.MethodDesc{}, - Streams: []grpc.StreamDesc{}, - Metadata: "mycel/resolver/v1beta1/tx.proto", -} diff --git a/x/resolver/types/types.go b/x/resolver/types/types.go deleted file mode 100644 index ab1254f4..00000000 --- a/x/resolver/types/types.go +++ /dev/null @@ -1 +0,0 @@ -package types