diff --git a/x/tx-boundary/types/boundary.pb.go b/x/tx-boundary/types/boundary.pb.go index 81b5835e6..675954d58 100644 --- a/x/tx-boundary/types/boundary.pb.go +++ b/x/tx-boundary/types/boundary.pb.go @@ -27,8 +27,8 @@ const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package // Boundary defines the number of tx limit and block per tx generation time type Boundary struct { - Boundary uint64 `protobuf:"varint,1,opt,name=boundary,proto3" json:"boundary,omitempty"` - BlocksPerGeneration uint64 `protobuf:"varint,2,opt,name=blocks_per_generation,json=blocksPerGeneration,proto3" json:"blocks_per_generation,omitempty"` + TxLimit uint64 `protobuf:"varint,1,opt,name=tx_limit,json=txLimit,proto3" json:"tx_limit,omitempty"` + BlocksPerGeneration int64 `protobuf:"varint,2,opt,name=blocks_per_generation,json=blocksPerGeneration,proto3" json:"blocks_per_generation,omitempty"` } func (m *Boundary) Reset() { *m = Boundary{} } @@ -64,22 +64,84 @@ func (m *Boundary) XXX_DiscardUnknown() { var xxx_messageInfo_Boundary proto.InternalMessageInfo -func (m *Boundary) GetBoundary() uint64 { +func (m *Boundary) GetTxLimit() uint64 { if m != nil { - return m.Boundary + return m.TxLimit } return 0 } -func (m *Boundary) GetBlocksPerGeneration() uint64 { +func (m *Boundary) GetBlocksPerGeneration() int64 { if m != nil { return m.BlocksPerGeneration } return 0 } +// Boundary defines the number of delegate and redelegate per Addr +type LimitPerAddr struct { + DelegateCount uint64 `protobuf:"varint,1,opt,name=delegate_count,json=delegateCount,proto3" json:"delegate_count,omitempty"` + ReledegateCount uint64 `protobuf:"varint,2,opt,name=reledegate_count,json=reledegateCount,proto3" json:"reledegate_count,omitempty"` + LatestUpdateBlock int64 `protobuf:"varint,3,opt,name=latest_update_block,json=latestUpdateBlock,proto3" json:"latest_update_block,omitempty"` +} + +func (m *LimitPerAddr) Reset() { *m = LimitPerAddr{} } +func (m *LimitPerAddr) String() string { return proto.CompactTextString(m) } +func (*LimitPerAddr) ProtoMessage() {} +func (*LimitPerAddr) Descriptor() ([]byte, []int) { + return fileDescriptor_668b8d6584310f2c, []int{1} +} +func (m *LimitPerAddr) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *LimitPerAddr) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_LimitPerAddr.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 *LimitPerAddr) XXX_Merge(src proto.Message) { + xxx_messageInfo_LimitPerAddr.Merge(m, src) +} +func (m *LimitPerAddr) XXX_Size() int { + return m.Size() +} +func (m *LimitPerAddr) XXX_DiscardUnknown() { + xxx_messageInfo_LimitPerAddr.DiscardUnknown(m) +} + +var xxx_messageInfo_LimitPerAddr proto.InternalMessageInfo + +func (m *LimitPerAddr) GetDelegateCount() uint64 { + if m != nil { + return m.DelegateCount + } + return 0 +} + +func (m *LimitPerAddr) GetReledegateCount() uint64 { + if m != nil { + return m.ReledegateCount + } + return 0 +} + +func (m *LimitPerAddr) GetLatestUpdateBlock() int64 { + if m != nil { + return m.LatestUpdateBlock + } + return 0 +} + func init() { proto.RegisterType((*Boundary)(nil), "centauri.txboundary.v1beta1.Boundary") + proto.RegisterType((*LimitPerAddr)(nil), "centauri.txboundary.v1beta1.LimitPerAddr") } func init() { @@ -87,22 +149,27 @@ func init() { } var fileDescriptor_668b8d6584310f2c = []byte{ - // 226 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xd2, 0x4a, 0x4e, 0xcd, 0x2b, - 0x49, 0x2c, 0x2d, 0xca, 0xd4, 0x2f, 0xa9, 0x48, 0xca, 0x2f, 0xcd, 0x4b, 0x49, 0x2c, 0xaa, 0xd4, - 0x2f, 0x33, 0x4c, 0x4a, 0x2d, 0x49, 0x34, 0xd4, 0x87, 0x09, 0xe8, 0x15, 0x14, 0xe5, 0x97, 0xe4, - 0x0b, 0x49, 0xc3, 0xd4, 0xea, 0x21, 0xd4, 0xea, 0x41, 0xd5, 0x4a, 0x89, 0xa4, 0xe7, 0xa7, 0xe7, - 0x83, 0xd5, 0xe9, 0x83, 0x58, 0x10, 0x2d, 0x52, 0x72, 0xe9, 0xf9, 0xf9, 0xe9, 0x39, 0xa9, 0xfa, - 0x60, 0x5e, 0x52, 0x69, 0x9a, 0x7e, 0x4a, 0x69, 0x51, 0x62, 0x49, 0x66, 0x7e, 0x1e, 0x54, 0x5e, - 0x1e, 0x5d, 0xbe, 0x24, 0x33, 0x37, 0xb5, 0xb8, 0x24, 0x31, 0xb7, 0x00, 0xa2, 0x40, 0x29, 0x8a, - 0x8b, 0xc3, 0x09, 0x6a, 0x95, 0x90, 0x14, 0x17, 0x07, 0xcc, 0x5a, 0x09, 0x46, 0x05, 0x46, 0x0d, - 0x96, 0x20, 0x38, 0x5f, 0xc8, 0x88, 0x4b, 0x34, 0x29, 0x27, 0x3f, 0x39, 0xbb, 0x38, 0xbe, 0x20, - 0xb5, 0x28, 0x3e, 0x3d, 0x35, 0x2f, 0x15, 0x62, 0x8f, 0x04, 0x13, 0x58, 0xa1, 0x30, 0x44, 0x32, - 0x20, 0xb5, 0xc8, 0x1d, 0x2e, 0xe5, 0xa4, 0x7b, 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, 0xc2, 0x15, 0xfa, 0x25, 0x15, 0xba, 0xf0, 0xf0, 0x28, 0xa9, 0x2c, 0x48, 0x2d, 0x4e, - 0x62, 0x03, 0xbb, 0xc8, 0x18, 0x10, 0x00, 0x00, 0xff, 0xff, 0x60, 0xbc, 0x7c, 0x92, 0x33, 0x01, - 0x00, 0x00, + // 318 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x5c, 0x91, 0xcd, 0x4a, 0xf3, 0x40, + 0x14, 0x86, 0x3b, 0xed, 0xc7, 0x67, 0x19, 0xfc, 0x4d, 0x15, 0x6a, 0x85, 0xb1, 0x14, 0x84, 0x2a, + 0x34, 0x43, 0xf5, 0x0a, 0xac, 0x0b, 0x37, 0x2e, 0x4a, 0xc1, 0x85, 0x6e, 0xc2, 0xa4, 0x73, 0x0c, + 0xc1, 0x34, 0x13, 0x26, 0x67, 0x24, 0xbd, 0x8b, 0x5e, 0x96, 0xcb, 0x2e, 0x5d, 0x4a, 0x7b, 0x23, + 0x92, 0x99, 0xa6, 0x15, 0x77, 0x39, 0xef, 0xf3, 0x1c, 0xde, 0x43, 0x86, 0xde, 0x4c, 0x21, 0x45, + 0x61, 0x74, 0xcc, 0xb1, 0x08, 0x95, 0x49, 0xa5, 0xd0, 0x73, 0xfe, 0x31, 0x0c, 0x01, 0xc5, 0x90, + 0x57, 0x81, 0x9f, 0x69, 0x85, 0xca, 0xbb, 0xa8, 0x5c, 0x7f, 0xe7, 0xfa, 0x1b, 0xb7, 0x73, 0x1a, + 0xa9, 0x48, 0x59, 0x8f, 0x97, 0x5f, 0x6e, 0xa5, 0xc3, 0x22, 0xa5, 0xa2, 0x04, 0xb8, 0x9d, 0x42, + 0xf3, 0xc6, 0xa5, 0xd1, 0x02, 0x63, 0x95, 0x6e, 0xf8, 0xe5, 0x5f, 0x8e, 0xf1, 0x0c, 0x72, 0x14, + 0xb3, 0xcc, 0x09, 0xbd, 0x17, 0xda, 0x1c, 0x6d, 0xaa, 0xbc, 0x73, 0xda, 0xc4, 0x22, 0x48, 0xe2, + 0x59, 0x8c, 0x6d, 0xd2, 0x25, 0xfd, 0x7f, 0x93, 0x3d, 0x2c, 0x9e, 0xca, 0xd1, 0xbb, 0xa5, 0x67, + 0x61, 0xa2, 0xa6, 0xef, 0x79, 0x90, 0x81, 0x0e, 0x22, 0x48, 0xc1, 0xd5, 0xb4, 0xeb, 0x5d, 0xd2, + 0x6f, 0x4c, 0x5a, 0x0e, 0x8e, 0x41, 0x3f, 0x6e, 0x51, 0x6f, 0x41, 0xe8, 0xbe, 0xdd, 0x1e, 0x83, + 0xbe, 0x97, 0x52, 0x7b, 0x57, 0xf4, 0x50, 0x42, 0x02, 0x91, 0x40, 0x08, 0xa6, 0xca, 0xa4, 0x55, + 0xcb, 0x41, 0x95, 0x3e, 0x94, 0xa1, 0x77, 0x4d, 0x8f, 0x35, 0x24, 0x20, 0x7f, 0x8b, 0x75, 0x2b, + 0x1e, 0xed, 0x72, 0xa7, 0xfa, 0xb4, 0x95, 0x08, 0x84, 0x1c, 0x03, 0x93, 0xc9, 0xd2, 0xb6, 0x77, + 0xb4, 0x1b, 0xf6, 0xa8, 0x13, 0x87, 0x9e, 0x2d, 0x19, 0x95, 0x60, 0x34, 0xf8, 0x5c, 0x31, 0xb2, + 0x5c, 0x31, 0xf2, 0xbd, 0x62, 0x64, 0xb1, 0x66, 0xb5, 0xe5, 0x9a, 0xd5, 0xbe, 0xd6, 0xac, 0xf6, + 0xda, 0x2a, 0x38, 0x16, 0x83, 0xed, 0x0b, 0xe1, 0x3c, 0x83, 0x3c, 0xfc, 0x6f, 0xff, 0xd1, 0xdd, + 0x4f, 0x00, 0x00, 0x00, 0xff, 0xff, 0xaa, 0x16, 0x56, 0x93, 0xc5, 0x01, 0x00, 0x00, } func (m *Boundary) Marshal() (dAtA []byte, err error) { @@ -130,8 +197,46 @@ func (m *Boundary) MarshalToSizedBuffer(dAtA []byte) (int, error) { i-- dAtA[i] = 0x10 } - if m.Boundary != 0 { - i = encodeVarintBoundary(dAtA, i, uint64(m.Boundary)) + if m.TxLimit != 0 { + i = encodeVarintBoundary(dAtA, i, uint64(m.TxLimit)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *LimitPerAddr) 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 *LimitPerAddr) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *LimitPerAddr) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.LatestUpdateBlock != 0 { + i = encodeVarintBoundary(dAtA, i, uint64(m.LatestUpdateBlock)) + i-- + dAtA[i] = 0x18 + } + if m.ReledegateCount != 0 { + i = encodeVarintBoundary(dAtA, i, uint64(m.ReledegateCount)) + i-- + dAtA[i] = 0x10 + } + if m.DelegateCount != 0 { + i = encodeVarintBoundary(dAtA, i, uint64(m.DelegateCount)) i-- dAtA[i] = 0x8 } @@ -155,8 +260,8 @@ func (m *Boundary) Size() (n int) { } var l int _ = l - if m.Boundary != 0 { - n += 1 + sovBoundary(uint64(m.Boundary)) + if m.TxLimit != 0 { + n += 1 + sovBoundary(uint64(m.TxLimit)) } if m.BlocksPerGeneration != 0 { n += 1 + sovBoundary(uint64(m.BlocksPerGeneration)) @@ -164,6 +269,24 @@ func (m *Boundary) Size() (n int) { return n } +func (m *LimitPerAddr) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.DelegateCount != 0 { + n += 1 + sovBoundary(uint64(m.DelegateCount)) + } + if m.ReledegateCount != 0 { + n += 1 + sovBoundary(uint64(m.ReledegateCount)) + } + if m.LatestUpdateBlock != 0 { + n += 1 + sovBoundary(uint64(m.LatestUpdateBlock)) + } + return n +} + func sovBoundary(x uint64) (n int) { return (math_bits.Len64(x|1) + 6) / 7 } @@ -201,9 +324,9 @@ func (m *Boundary) Unmarshal(dAtA []byte) error { switch fieldNum { case 1: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Boundary", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field TxLimit", wireType) } - m.Boundary = 0 + m.TxLimit = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowBoundary @@ -213,7 +336,7 @@ func (m *Boundary) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Boundary |= uint64(b&0x7F) << shift + m.TxLimit |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -232,7 +355,114 @@ func (m *Boundary) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.BlocksPerGeneration |= uint64(b&0x7F) << shift + m.BlocksPerGeneration |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipBoundary(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthBoundary + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *LimitPerAddr) 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 ErrIntOverflowBoundary + } + 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: LimitPerAddr: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: LimitPerAddr: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DelegateCount", wireType) + } + m.DelegateCount = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBoundary + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.DelegateCount |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ReledegateCount", wireType) + } + m.ReledegateCount = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBoundary + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ReledegateCount |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LatestUpdateBlock", wireType) + } + m.LatestUpdateBlock = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBoundary + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.LatestUpdateBlock |= int64(b&0x7F) << shift if b < 0x80 { break } diff --git a/x/tx-boundary/types/query.pb.go b/x/tx-boundary/types/query.pb.go new file mode 100644 index 000000000..462aaf6d0 --- /dev/null +++ b/x/tx-boundary/types/query.pb.go @@ -0,0 +1,874 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: centauri/txboundary/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" + _ "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 + +// QueryDelegateBoundaryRequest is the request type for the Query/DelegateBoundary RPC method. +type QueryDelegateBoundaryRequest struct { +} + +func (m *QueryDelegateBoundaryRequest) Reset() { *m = QueryDelegateBoundaryRequest{} } +func (m *QueryDelegateBoundaryRequest) String() string { return proto.CompactTextString(m) } +func (*QueryDelegateBoundaryRequest) ProtoMessage() {} +func (*QueryDelegateBoundaryRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_9eb43e8f98660cf8, []int{0} +} +func (m *QueryDelegateBoundaryRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryDelegateBoundaryRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryDelegateBoundaryRequest.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 *QueryDelegateBoundaryRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryDelegateBoundaryRequest.Merge(m, src) +} +func (m *QueryDelegateBoundaryRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryDelegateBoundaryRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryDelegateBoundaryRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryDelegateBoundaryRequest proto.InternalMessageInfo + +// QueryDelegateBoundaryResponse is the response type for the Query/DelegateBoundary RPC method. +type QueryDelegateBoundaryResponse struct { + // boundary defines the boundary for the delegate tx + Boundary Boundary `protobuf:"bytes,1,opt,name=boundary,proto3" json:"boundary"` +} + +func (m *QueryDelegateBoundaryResponse) Reset() { *m = QueryDelegateBoundaryResponse{} } +func (m *QueryDelegateBoundaryResponse) String() string { return proto.CompactTextString(m) } +func (*QueryDelegateBoundaryResponse) ProtoMessage() {} +func (*QueryDelegateBoundaryResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_9eb43e8f98660cf8, []int{1} +} +func (m *QueryDelegateBoundaryResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryDelegateBoundaryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryDelegateBoundaryResponse.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 *QueryDelegateBoundaryResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryDelegateBoundaryResponse.Merge(m, src) +} +func (m *QueryDelegateBoundaryResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryDelegateBoundaryResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryDelegateBoundaryResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryDelegateBoundaryResponse proto.InternalMessageInfo + +func (m *QueryDelegateBoundaryResponse) GetBoundary() Boundary { + if m != nil { + return m.Boundary + } + return Boundary{} +} + +// QueryRedelegateBoundaryRequest is the request type for the Query/ReDelegateBoundary RPC method. +type QueryRedelegateBoundaryRequest struct { +} + +func (m *QueryRedelegateBoundaryRequest) Reset() { *m = QueryRedelegateBoundaryRequest{} } +func (m *QueryRedelegateBoundaryRequest) String() string { return proto.CompactTextString(m) } +func (*QueryRedelegateBoundaryRequest) ProtoMessage() {} +func (*QueryRedelegateBoundaryRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_9eb43e8f98660cf8, []int{2} +} +func (m *QueryRedelegateBoundaryRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryRedelegateBoundaryRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryRedelegateBoundaryRequest.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 *QueryRedelegateBoundaryRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryRedelegateBoundaryRequest.Merge(m, src) +} +func (m *QueryRedelegateBoundaryRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryRedelegateBoundaryRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryRedelegateBoundaryRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryRedelegateBoundaryRequest proto.InternalMessageInfo + +// QueryRedelegateBoundaryResponse is the response type for the Query/ReDelegateBoundary RPC +// method. +type QueryRedelegateBoundaryResponse struct { + // boundary defines the boundary for the redelegate tx + Boundary Boundary `protobuf:"bytes,1,opt,name=boundary,proto3" json:"boundary"` +} + +func (m *QueryRedelegateBoundaryResponse) Reset() { *m = QueryRedelegateBoundaryResponse{} } +func (m *QueryRedelegateBoundaryResponse) String() string { return proto.CompactTextString(m) } +func (*QueryRedelegateBoundaryResponse) ProtoMessage() {} +func (*QueryRedelegateBoundaryResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_9eb43e8f98660cf8, []int{3} +} +func (m *QueryRedelegateBoundaryResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryRedelegateBoundaryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryRedelegateBoundaryResponse.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 *QueryRedelegateBoundaryResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryRedelegateBoundaryResponse.Merge(m, src) +} +func (m *QueryRedelegateBoundaryResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryRedelegateBoundaryResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryRedelegateBoundaryResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryRedelegateBoundaryResponse proto.InternalMessageInfo + +func (m *QueryRedelegateBoundaryResponse) GetBoundary() Boundary { + if m != nil { + return m.Boundary + } + return Boundary{} +} + +func init() { + proto.RegisterType((*QueryDelegateBoundaryRequest)(nil), "centauri.txboundary.v1beta1.QueryDelegateBoundaryRequest") + proto.RegisterType((*QueryDelegateBoundaryResponse)(nil), "centauri.txboundary.v1beta1.QueryDelegateBoundaryResponse") + proto.RegisterType((*QueryRedelegateBoundaryRequest)(nil), "centauri.txboundary.v1beta1.QueryRedelegateBoundaryRequest") + proto.RegisterType((*QueryRedelegateBoundaryResponse)(nil), "centauri.txboundary.v1beta1.QueryRedelegateBoundaryResponse") +} + +func init() { + proto.RegisterFile("centauri/txboundary/v1beta1/query.proto", fileDescriptor_9eb43e8f98660cf8) +} + +var fileDescriptor_9eb43e8f98660cf8 = []byte{ + // 340 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x52, 0x3d, 0x4b, 0xc3, 0x40, + 0x18, 0xce, 0xf9, 0x85, 0x9c, 0x8b, 0x9c, 0x0e, 0x12, 0xeb, 0xb5, 0x04, 0x44, 0x51, 0x92, 0xa3, + 0x2d, 0x0e, 0x7e, 0x4c, 0x45, 0x70, 0xb6, 0xa3, 0xdb, 0xb5, 0x7d, 0x89, 0x95, 0x9a, 0x37, 0xcd, + 0x5d, 0xa4, 0x5d, 0xfd, 0x05, 0x8a, 0xff, 0xc7, 0x51, 0x3a, 0x16, 0x5c, 0x9c, 0x44, 0x5a, 0x7f, + 0x88, 0x34, 0x4d, 0x22, 0x54, 0x13, 0xa1, 0xb8, 0x05, 0x9e, 0xef, 0xf7, 0x42, 0xf7, 0x9a, 0xe0, + 0x69, 0x19, 0x06, 0x6d, 0xa1, 0x7b, 0x0d, 0x0c, 0xbd, 0x96, 0x0c, 0xfa, 0xe2, 0xae, 0xdc, 0x00, + 0x2d, 0xcb, 0xa2, 0x1b, 0x42, 0xd0, 0x77, 0xfc, 0x00, 0x35, 0xb2, 0xed, 0x84, 0xe8, 0x7c, 0x13, + 0x9d, 0x98, 0x68, 0x6e, 0xba, 0xe8, 0x62, 0xc4, 0x13, 0x93, 0xaf, 0xa9, 0xc4, 0x2c, 0xb8, 0x88, + 0x6e, 0x07, 0x84, 0xf4, 0xdb, 0x42, 0x7a, 0x1e, 0x6a, 0xa9, 0xdb, 0xe8, 0xa9, 0x18, 0x3d, 0xc8, + 0x4b, 0x4e, 0x13, 0x22, 0xae, 0xc5, 0x69, 0xe1, 0x72, 0xd2, 0xe5, 0x1c, 0x3a, 0xe0, 0x4a, 0x0d, + 0xb5, 0x18, 0xae, 0x43, 0x37, 0x04, 0xa5, 0xad, 0x6b, 0xba, 0x93, 0x81, 0x2b, 0x1f, 0x3d, 0x05, + 0xec, 0x82, 0xae, 0x26, 0x96, 0x5b, 0xa4, 0x44, 0xf6, 0xd7, 0x2a, 0xbb, 0x4e, 0xce, 0x20, 0x27, + 0x31, 0xa8, 0x2d, 0x0d, 0xde, 0x8b, 0x46, 0x3d, 0x15, 0x5b, 0x25, 0xca, 0xa3, 0xa4, 0x3a, 0xb4, + 0x32, 0xba, 0xdc, 0xd0, 0x62, 0x26, 0xe3, 0x9f, 0xdb, 0x54, 0x1e, 0x17, 0xe9, 0x72, 0x14, 0xc6, + 0x9e, 0x09, 0x5d, 0x9f, 0x5d, 0xcf, 0x8e, 0x73, 0x5d, 0xf3, 0x2e, 0x6a, 0x9e, 0xcc, 0x23, 0x9d, + 0xce, 0xb3, 0xaa, 0xf7, 0xaf, 0x9f, 0x4f, 0x0b, 0x36, 0x3b, 0x14, 0x4d, 0x54, 0xb7, 0xa8, 0x7e, + 0x7b, 0xe0, 0xe4, 0x36, 0x09, 0xc0, 0x5e, 0x08, 0x65, 0x3f, 0x4f, 0xc6, 0x4e, 0xff, 0xee, 0x91, + 0xf9, 0x14, 0xe6, 0xd9, 0x7c, 0xe2, 0x78, 0xc6, 0x51, 0x34, 0x43, 0x30, 0x3b, 0x67, 0x46, 0x00, + 0xb3, 0x43, 0x6a, 0xf6, 0x60, 0xc4, 0xc9, 0x70, 0xc4, 0xc9, 0xc7, 0x88, 0x93, 0x87, 0x31, 0x37, + 0x86, 0x63, 0x6e, 0xbc, 0x8d, 0xb9, 0x71, 0xb5, 0xd1, 0x13, 0xba, 0x67, 0xa7, 0x1e, 0xba, 0xef, + 0x83, 0x6a, 0xac, 0x44, 0x7f, 0x78, 0xf5, 0x2b, 0x00, 0x00, 0xff, 0xff, 0x5c, 0xd6, 0xca, 0x4a, + 0x89, 0x03, 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 { + // DelegateBoundary returns the boundary for the delegate tx. + DelegateBoundary(ctx context.Context, in *QueryDelegateBoundaryRequest, opts ...grpc.CallOption) (*QueryDelegateBoundaryResponse, error) + // RedelegateBoundary returns the boundary for the redelegate tx. + RedelegateBoundary(ctx context.Context, in *QueryRedelegateBoundaryRequest, opts ...grpc.CallOption) (*QueryRedelegateBoundaryResponse, error) +} + +type queryClient struct { + cc grpc1.ClientConn +} + +func NewQueryClient(cc grpc1.ClientConn) QueryClient { + return &queryClient{cc} +} + +func (c *queryClient) DelegateBoundary(ctx context.Context, in *QueryDelegateBoundaryRequest, opts ...grpc.CallOption) (*QueryDelegateBoundaryResponse, error) { + out := new(QueryDelegateBoundaryResponse) + err := c.cc.Invoke(ctx, "/centauri.txboundary.v1beta1.Query/DelegateBoundary", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) RedelegateBoundary(ctx context.Context, in *QueryRedelegateBoundaryRequest, opts ...grpc.CallOption) (*QueryRedelegateBoundaryResponse, error) { + out := new(QueryRedelegateBoundaryResponse) + err := c.cc.Invoke(ctx, "/centauri.txboundary.v1beta1.Query/RedelegateBoundary", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// QueryServer is the server API for Query service. +type QueryServer interface { + // DelegateBoundary returns the boundary for the delegate tx. + DelegateBoundary(context.Context, *QueryDelegateBoundaryRequest) (*QueryDelegateBoundaryResponse, error) + // RedelegateBoundary returns the boundary for the redelegate tx. + RedelegateBoundary(context.Context, *QueryRedelegateBoundaryRequest) (*QueryRedelegateBoundaryResponse, error) +} + +// UnimplementedQueryServer can be embedded to have forward compatible implementations. +type UnimplementedQueryServer struct { +} + +func (*UnimplementedQueryServer) DelegateBoundary(ctx context.Context, req *QueryDelegateBoundaryRequest) (*QueryDelegateBoundaryResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method DelegateBoundary not implemented") +} +func (*UnimplementedQueryServer) RedelegateBoundary(ctx context.Context, req *QueryRedelegateBoundaryRequest) (*QueryRedelegateBoundaryResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method RedelegateBoundary not implemented") +} + +func RegisterQueryServer(s grpc1.Server, srv QueryServer) { + s.RegisterService(&_Query_serviceDesc, srv) +} + +func _Query_DelegateBoundary_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryDelegateBoundaryRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).DelegateBoundary(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/centauri.txboundary.v1beta1.Query/DelegateBoundary", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).DelegateBoundary(ctx, req.(*QueryDelegateBoundaryRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_RedelegateBoundary_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryRedelegateBoundaryRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).RedelegateBoundary(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/centauri.txboundary.v1beta1.Query/RedelegateBoundary", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).RedelegateBoundary(ctx, req.(*QueryRedelegateBoundaryRequest)) + } + return interceptor(ctx, in, info, handler) +} + +var _Query_serviceDesc = grpc.ServiceDesc{ + ServiceName: "centauri.txboundary.v1beta1.Query", + HandlerType: (*QueryServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "DelegateBoundary", + Handler: _Query_DelegateBoundary_Handler, + }, + { + MethodName: "RedelegateBoundary", + Handler: _Query_RedelegateBoundary_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "centauri/txboundary/v1beta1/query.proto", +} + +func (m *QueryDelegateBoundaryRequest) 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 *QueryDelegateBoundaryRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryDelegateBoundaryRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *QueryDelegateBoundaryResponse) 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 *QueryDelegateBoundaryResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryDelegateBoundaryResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size, err := m.Boundary.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 *QueryRedelegateBoundaryRequest) 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 *QueryRedelegateBoundaryRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryRedelegateBoundaryRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *QueryRedelegateBoundaryResponse) 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 *QueryRedelegateBoundaryResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryRedelegateBoundaryResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size, err := m.Boundary.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 *QueryDelegateBoundaryRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *QueryDelegateBoundaryResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.Boundary.Size() + n += 1 + l + sovQuery(uint64(l)) + return n +} + +func (m *QueryRedelegateBoundaryRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *QueryRedelegateBoundaryResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.Boundary.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 *QueryDelegateBoundaryRequest) 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: QueryDelegateBoundaryRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryDelegateBoundaryRequest: 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 *QueryDelegateBoundaryResponse) 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: QueryDelegateBoundaryResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryDelegateBoundaryResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Boundary", 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.Boundary.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 *QueryRedelegateBoundaryRequest) 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: QueryRedelegateBoundaryRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryRedelegateBoundaryRequest: 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 *QueryRedelegateBoundaryResponse) 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: QueryRedelegateBoundaryResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryRedelegateBoundaryResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Boundary", 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.Boundary.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/tx-boundary/types/query.pb.gw.go b/x/tx-boundary/types/query.pb.gw.go new file mode 100644 index 000000000..54a830aea --- /dev/null +++ b/x/tx-boundary/types/query.pb.gw.go @@ -0,0 +1,218 @@ +// Code generated by protoc-gen-grpc-gateway. DO NOT EDIT. +// source: centauri/txboundary/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_DelegateBoundary_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryDelegateBoundaryRequest + var metadata runtime.ServerMetadata + + msg, err := client.DelegateBoundary(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_DelegateBoundary_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryDelegateBoundaryRequest + var metadata runtime.ServerMetadata + + msg, err := server.DelegateBoundary(ctx, &protoReq) + return msg, metadata, err + +} + +func request_Query_RedelegateBoundary_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryRedelegateBoundaryRequest + var metadata runtime.ServerMetadata + + msg, err := client.RedelegateBoundary(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_RedelegateBoundary_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryRedelegateBoundaryRequest + var metadata runtime.ServerMetadata + + msg, err := server.RedelegateBoundary(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_DelegateBoundary_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_DelegateBoundary_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_DelegateBoundary_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_RedelegateBoundary_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_RedelegateBoundary_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_RedelegateBoundary_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_DelegateBoundary_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_DelegateBoundary_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_DelegateBoundary_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_RedelegateBoundary_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_RedelegateBoundary_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_RedelegateBoundary_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + return nil +} + +var ( + pattern_Query_DelegateBoundary_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"cosmos", "txboundary", "v1beta1", "delegateboundary"}, "", runtime.AssumeColonVerbOpt(false))) + + pattern_Query_RedelegateBoundary_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"cosmos", "txboundary", "v1beta1", "redelegateboundary"}, "", runtime.AssumeColonVerbOpt(false))) +) + +var ( + forward_Query_DelegateBoundary_0 = runtime.ForwardResponseMessage + + forward_Query_RedelegateBoundary_0 = runtime.ForwardResponseMessage +) diff --git a/x/tx-boundary/types/tx.pb.go b/x/tx-boundary/types/tx.pb.go new file mode 100644 index 000000000..e96348dd7 --- /dev/null +++ b/x/tx-boundary/types/tx.pb.go @@ -0,0 +1,996 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: centauri/txboundary/v1beta1/tx.proto + +package types + +import ( + context "context" + fmt "fmt" + _ "github.com/cosmos/cosmos-proto" + _ "github.com/cosmos/cosmos-sdk/types" + _ "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" + 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 + +// MsgUpdateDelegateBoundary is the Msg/UpdateDelegateBoundary request type. +// +// Since: cosmos-sdk 0.47 +type MsgUpdateDelegateBoundary struct { + // authority is the address that controls the module (defaults to x/gov unless + // overwritten). + Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` + // boundary defines the x/tx-boundary parameters to update. + // + // NOTE: All parameters must be supplied. + Boundary Boundary `protobuf:"bytes,2,opt,name=boundary,proto3" json:"boundary"` +} + +func (m *MsgUpdateDelegateBoundary) Reset() { *m = MsgUpdateDelegateBoundary{} } +func (m *MsgUpdateDelegateBoundary) String() string { return proto.CompactTextString(m) } +func (*MsgUpdateDelegateBoundary) ProtoMessage() {} +func (*MsgUpdateDelegateBoundary) Descriptor() ([]byte, []int) { + return fileDescriptor_148586c432693946, []int{0} +} +func (m *MsgUpdateDelegateBoundary) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgUpdateDelegateBoundary) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgUpdateDelegateBoundary.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 *MsgUpdateDelegateBoundary) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgUpdateDelegateBoundary.Merge(m, src) +} +func (m *MsgUpdateDelegateBoundary) XXX_Size() int { + return m.Size() +} +func (m *MsgUpdateDelegateBoundary) XXX_DiscardUnknown() { + xxx_messageInfo_MsgUpdateDelegateBoundary.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgUpdateDelegateBoundary proto.InternalMessageInfo + +func (m *MsgUpdateDelegateBoundary) GetAuthority() string { + if m != nil { + return m.Authority + } + return "" +} + +func (m *MsgUpdateDelegateBoundary) GetBoundary() Boundary { + if m != nil { + return m.Boundary + } + return Boundary{} +} + +// MsgUpdateDelegateBoundaryResponse defines the response structure for executing a +// MsgUpdateDelegateBoundary message. +// +// Since: cosmos-sdk 0.47 +type MsgUpdateDelegateBoundaryResponse struct { +} + +func (m *MsgUpdateDelegateBoundaryResponse) Reset() { *m = MsgUpdateDelegateBoundaryResponse{} } +func (m *MsgUpdateDelegateBoundaryResponse) String() string { return proto.CompactTextString(m) } +func (*MsgUpdateDelegateBoundaryResponse) ProtoMessage() {} +func (*MsgUpdateDelegateBoundaryResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_148586c432693946, []int{1} +} +func (m *MsgUpdateDelegateBoundaryResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgUpdateDelegateBoundaryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgUpdateDelegateBoundaryResponse.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 *MsgUpdateDelegateBoundaryResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgUpdateDelegateBoundaryResponse.Merge(m, src) +} +func (m *MsgUpdateDelegateBoundaryResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgUpdateDelegateBoundaryResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgUpdateDelegateBoundaryResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgUpdateDelegateBoundaryResponse proto.InternalMessageInfo + +// MsgUpdateRedelegateBoundary is the Msg/MsgUpdateRedelegateBoundary request type. +// +// Since: cosmos-sdk 0.47 +type MsgUpdateRedelegateBoundary struct { + // authority is the address that controls the module (defaults to x/gov unless + // overwritten). + Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` + // boundary defines the x/tx-boundary parameters to update. + // + // NOTE: All parameters must be supplied. + Boundary Boundary `protobuf:"bytes,2,opt,name=boundary,proto3" json:"boundary"` +} + +func (m *MsgUpdateRedelegateBoundary) Reset() { *m = MsgUpdateRedelegateBoundary{} } +func (m *MsgUpdateRedelegateBoundary) String() string { return proto.CompactTextString(m) } +func (*MsgUpdateRedelegateBoundary) ProtoMessage() {} +func (*MsgUpdateRedelegateBoundary) Descriptor() ([]byte, []int) { + return fileDescriptor_148586c432693946, []int{2} +} +func (m *MsgUpdateRedelegateBoundary) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgUpdateRedelegateBoundary) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgUpdateRedelegateBoundary.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 *MsgUpdateRedelegateBoundary) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgUpdateRedelegateBoundary.Merge(m, src) +} +func (m *MsgUpdateRedelegateBoundary) XXX_Size() int { + return m.Size() +} +func (m *MsgUpdateRedelegateBoundary) XXX_DiscardUnknown() { + xxx_messageInfo_MsgUpdateRedelegateBoundary.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgUpdateRedelegateBoundary proto.InternalMessageInfo + +func (m *MsgUpdateRedelegateBoundary) GetAuthority() string { + if m != nil { + return m.Authority + } + return "" +} + +func (m *MsgUpdateRedelegateBoundary) GetBoundary() Boundary { + if m != nil { + return m.Boundary + } + return Boundary{} +} + +// MsgUpdateRedelegateBoundaryResponse defines the response structure for executing a +// MsgUpdateRedelegateBoundary message. +// +// Since: cosmos-sdk 0.47 +type MsgUpdateRedelegateBoundaryResponse struct { +} + +func (m *MsgUpdateRedelegateBoundaryResponse) Reset() { *m = MsgUpdateRedelegateBoundaryResponse{} } +func (m *MsgUpdateRedelegateBoundaryResponse) String() string { return proto.CompactTextString(m) } +func (*MsgUpdateRedelegateBoundaryResponse) ProtoMessage() {} +func (*MsgUpdateRedelegateBoundaryResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_148586c432693946, []int{3} +} +func (m *MsgUpdateRedelegateBoundaryResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgUpdateRedelegateBoundaryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgUpdateRedelegateBoundaryResponse.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 *MsgUpdateRedelegateBoundaryResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgUpdateRedelegateBoundaryResponse.Merge(m, src) +} +func (m *MsgUpdateRedelegateBoundaryResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgUpdateRedelegateBoundaryResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgUpdateRedelegateBoundaryResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgUpdateRedelegateBoundaryResponse proto.InternalMessageInfo + +func init() { + proto.RegisterType((*MsgUpdateDelegateBoundary)(nil), "centauri.txboundary.v1beta1.MsgUpdateDelegateBoundary") + proto.RegisterType((*MsgUpdateDelegateBoundaryResponse)(nil), "centauri.txboundary.v1beta1.MsgUpdateDelegateBoundaryResponse") + proto.RegisterType((*MsgUpdateRedelegateBoundary)(nil), "centauri.txboundary.v1beta1.MsgUpdateRedelegateBoundary") + proto.RegisterType((*MsgUpdateRedelegateBoundaryResponse)(nil), "centauri.txboundary.v1beta1.MsgUpdateRedelegateBoundaryResponse") +} + +func init() { + proto.RegisterFile("centauri/txboundary/v1beta1/tx.proto", fileDescriptor_148586c432693946) +} + +var fileDescriptor_148586c432693946 = []byte{ + // 407 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x49, 0x4e, 0xcd, 0x2b, + 0x49, 0x2c, 0x2d, 0xca, 0xd4, 0x2f, 0xa9, 0x48, 0xca, 0x2f, 0xcd, 0x4b, 0x49, 0x2c, 0xaa, 0xd4, + 0x2f, 0x33, 0x4c, 0x4a, 0x2d, 0x49, 0x34, 0xd4, 0x2f, 0xa9, 0xd0, 0x2b, 0x28, 0xca, 0x2f, 0xc9, + 0x17, 0x92, 0x86, 0xa9, 0xd2, 0x43, 0xa8, 0xd2, 0x83, 0xaa, 0x92, 0x12, 0x4f, 0xce, 0x2f, 0xce, + 0xcd, 0x2f, 0xd6, 0xcf, 0x2d, 0x4e, 0xd7, 0x2f, 0x33, 0x04, 0x51, 0x10, 0x5d, 0x52, 0x82, 0x89, + 0xb9, 0x99, 0x79, 0xf9, 0xfa, 0x60, 0x12, 0x2a, 0x24, 0x92, 0x9e, 0x9f, 0x9e, 0x0f, 0x66, 0xea, + 0x83, 0x58, 0x50, 0x51, 0x49, 0x88, 0x09, 0xf1, 0x10, 0x09, 0x08, 0x07, 0x2a, 0xa5, 0x85, 0xcf, + 0x7d, 0x70, 0xa7, 0x40, 0xd4, 0xca, 0x41, 0x1d, 0x92, 0x94, 0x58, 0x9c, 0x0a, 0x57, 0x93, 0x9c, + 0x9f, 0x99, 0x07, 0x91, 0x57, 0x7a, 0xca, 0xc8, 0x25, 0xe9, 0x5b, 0x9c, 0x1e, 0x5a, 0x90, 0x92, + 0x58, 0x92, 0xea, 0x92, 0x9a, 0x93, 0x9a, 0x9e, 0x58, 0x92, 0xea, 0x04, 0x35, 0x43, 0xc8, 0x8c, + 0x8b, 0x33, 0xb1, 0xb4, 0x24, 0x23, 0xbf, 0x28, 0xb3, 0xa4, 0x52, 0x82, 0x51, 0x81, 0x51, 0x83, + 0xd3, 0x49, 0xe2, 0xd2, 0x16, 0x5d, 0x11, 0xa8, 0x73, 0x1c, 0x53, 0x52, 0x8a, 0x52, 0x8b, 0x8b, + 0x83, 0x4b, 0x8a, 0x32, 0xf3, 0xd2, 0x83, 0x10, 0x4a, 0x85, 0x7c, 0xb8, 0x38, 0x60, 0xee, 0x90, + 0x60, 0x52, 0x60, 0xd4, 0xe0, 0x36, 0x52, 0xd5, 0xc3, 0x13, 0x5c, 0x7a, 0x30, 0x0b, 0x9d, 0x38, + 0x4f, 0xdc, 0x93, 0x67, 0x58, 0xf1, 0x7c, 0x83, 0x16, 0x63, 0x10, 0xdc, 0x04, 0x2b, 0xa7, 0xa6, + 0xe7, 0x1b, 0xb4, 0x10, 0xa6, 0x77, 0x3d, 0xdf, 0xa0, 0xa5, 0x0f, 0x0f, 0x82, 0x0a, 0xe4, 0x40, + 0xc0, 0xe9, 0x13, 0x25, 0x65, 0x2e, 0x45, 0x9c, 0x92, 0x41, 0xa9, 0xc5, 0x05, 0xf9, 0x79, 0xc5, + 0xa9, 0x4a, 0xcf, 0x19, 0xb9, 0xa4, 0xe1, 0xaa, 0x82, 0x52, 0x53, 0x86, 0x6f, 0x70, 0xa8, 0x72, + 0x29, 0xe3, 0xf1, 0x28, 0x2c, 0x40, 0x8c, 0x76, 0x30, 0x71, 0x31, 0xfb, 0x16, 0xa7, 0x0b, 0x4d, + 0x60, 0xe4, 0x12, 0xc3, 0x95, 0x44, 0xf0, 0xfa, 0x04, 0xa7, 0x0b, 0xa4, 0xec, 0xc8, 0xd3, 0x07, + 0x73, 0x9a, 0xd0, 0x34, 0x46, 0x2e, 0x09, 0x9c, 0x11, 0x65, 0x41, 0x9c, 0xe1, 0x98, 0x3a, 0xa5, + 0x1c, 0xc8, 0xd5, 0x09, 0x73, 0x98, 0x14, 0x6b, 0x03, 0x28, 0xbe, 0x9c, 0x74, 0x4f, 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, 0x18, 0x14, 0x47, 0xba, 0xf0, 0x48, 0x2a, 0xa9, + 0x2c, 0x48, 0x2d, 0x4e, 0x62, 0x03, 0x67, 0x47, 0x63, 0x40, 0x00, 0x00, 0x00, 0xff, 0xff, 0x2e, + 0x6a, 0x87, 0xa9, 0x7c, 0x04, 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 { + UpdateDelegateBoundary(ctx context.Context, in *MsgUpdateDelegateBoundary, opts ...grpc.CallOption) (*MsgUpdateDelegateBoundaryResponse, error) + UpdateRedelegateBoundary(ctx context.Context, in *MsgUpdateRedelegateBoundary, opts ...grpc.CallOption) (*MsgUpdateRedelegateBoundaryResponse, error) +} + +type msgClient struct { + cc grpc1.ClientConn +} + +func NewMsgClient(cc grpc1.ClientConn) MsgClient { + return &msgClient{cc} +} + +func (c *msgClient) UpdateDelegateBoundary(ctx context.Context, in *MsgUpdateDelegateBoundary, opts ...grpc.CallOption) (*MsgUpdateDelegateBoundaryResponse, error) { + out := new(MsgUpdateDelegateBoundaryResponse) + err := c.cc.Invoke(ctx, "/centauri.txboundary.v1beta1.Msg/UpdateDelegateBoundary", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) UpdateRedelegateBoundary(ctx context.Context, in *MsgUpdateRedelegateBoundary, opts ...grpc.CallOption) (*MsgUpdateRedelegateBoundaryResponse, error) { + out := new(MsgUpdateRedelegateBoundaryResponse) + err := c.cc.Invoke(ctx, "/centauri.txboundary.v1beta1.Msg/UpdateRedelegateBoundary", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// MsgServer is the server API for Msg service. +type MsgServer interface { + UpdateDelegateBoundary(context.Context, *MsgUpdateDelegateBoundary) (*MsgUpdateDelegateBoundaryResponse, error) + UpdateRedelegateBoundary(context.Context, *MsgUpdateRedelegateBoundary) (*MsgUpdateRedelegateBoundaryResponse, error) +} + +// UnimplementedMsgServer can be embedded to have forward compatible implementations. +type UnimplementedMsgServer struct { +} + +func (*UnimplementedMsgServer) UpdateDelegateBoundary(ctx context.Context, req *MsgUpdateDelegateBoundary) (*MsgUpdateDelegateBoundaryResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateDelegateBoundary not implemented") +} +func (*UnimplementedMsgServer) UpdateRedelegateBoundary(ctx context.Context, req *MsgUpdateRedelegateBoundary) (*MsgUpdateRedelegateBoundaryResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateRedelegateBoundary not implemented") +} + +func RegisterMsgServer(s grpc1.Server, srv MsgServer) { + s.RegisterService(&_Msg_serviceDesc, srv) +} + +func _Msg_UpdateDelegateBoundary_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgUpdateDelegateBoundary) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).UpdateDelegateBoundary(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/centauri.txboundary.v1beta1.Msg/UpdateDelegateBoundary", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).UpdateDelegateBoundary(ctx, req.(*MsgUpdateDelegateBoundary)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_UpdateRedelegateBoundary_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgUpdateRedelegateBoundary) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).UpdateRedelegateBoundary(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/centauri.txboundary.v1beta1.Msg/UpdateRedelegateBoundary", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).UpdateRedelegateBoundary(ctx, req.(*MsgUpdateRedelegateBoundary)) + } + return interceptor(ctx, in, info, handler) +} + +var _Msg_serviceDesc = grpc.ServiceDesc{ + ServiceName: "centauri.txboundary.v1beta1.Msg", + HandlerType: (*MsgServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "UpdateDelegateBoundary", + Handler: _Msg_UpdateDelegateBoundary_Handler, + }, + { + MethodName: "UpdateRedelegateBoundary", + Handler: _Msg_UpdateRedelegateBoundary_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "centauri/txboundary/v1beta1/tx.proto", +} + +func (m *MsgUpdateDelegateBoundary) 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 *MsgUpdateDelegateBoundary) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgUpdateDelegateBoundary) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size, err := m.Boundary.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + if len(m.Authority) > 0 { + i -= len(m.Authority) + copy(dAtA[i:], m.Authority) + i = encodeVarintTx(dAtA, i, uint64(len(m.Authority))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgUpdateDelegateBoundaryResponse) 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 *MsgUpdateDelegateBoundaryResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgUpdateDelegateBoundaryResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *MsgUpdateRedelegateBoundary) 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 *MsgUpdateRedelegateBoundary) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgUpdateRedelegateBoundary) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size, err := m.Boundary.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + if len(m.Authority) > 0 { + i -= len(m.Authority) + copy(dAtA[i:], m.Authority) + i = encodeVarintTx(dAtA, i, uint64(len(m.Authority))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgUpdateRedelegateBoundaryResponse) 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 *MsgUpdateRedelegateBoundaryResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgUpdateRedelegateBoundaryResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func encodeVarintTx(dAtA []byte, offset int, v uint64) int { + offset -= sovTx(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *MsgUpdateDelegateBoundary) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Authority) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = m.Boundary.Size() + n += 1 + l + sovTx(uint64(l)) + return n +} + +func (m *MsgUpdateDelegateBoundaryResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *MsgUpdateRedelegateBoundary) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Authority) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = m.Boundary.Size() + n += 1 + l + sovTx(uint64(l)) + return n +} + +func (m *MsgUpdateRedelegateBoundaryResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func sovTx(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozTx(x uint64) (n int) { + return sovTx(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *MsgUpdateDelegateBoundary) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgUpdateDelegateBoundary: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgUpdateDelegateBoundary: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Authority", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Authority = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Boundary", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Boundary.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgUpdateDelegateBoundaryResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgUpdateDelegateBoundaryResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgUpdateDelegateBoundaryResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgUpdateRedelegateBoundary) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgUpdateRedelegateBoundary: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgUpdateRedelegateBoundary: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Authority", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Authority = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Boundary", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Boundary.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgUpdateRedelegateBoundaryResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgUpdateRedelegateBoundaryResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgUpdateRedelegateBoundaryResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipTx(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, ErrIntOverflowTx + } + 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, ErrIntOverflowTx + } + 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, ErrIntOverflowTx + } + 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, ErrInvalidLengthTx + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupTx + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthTx + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthTx = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowTx = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group") +)