From 612a4cf80ed1102da02e757c38f5be7647990d41 Mon Sep 17 00:00:00 2001 From: Tanmay Date: Tue, 22 Aug 2023 10:46:00 -0400 Subject: [PATCH] moved back to old proto schema --- proto/observer/keygen.proto | 1 - x/observer/types/keygen.pb.go | 28 ++++++++++++++-------------- 2 files changed, 14 insertions(+), 15 deletions(-) diff --git a/proto/observer/keygen.proto b/proto/observer/keygen.proto index 904438081e..127cb78a43 100644 --- a/proto/observer/keygen.proto +++ b/proto/observer/keygen.proto @@ -16,4 +16,3 @@ message Keygen { repeated string granteePubkeys = 3; int64 blockNumber = 4; // the blocknum that the key needs to be generated } - diff --git a/x/observer/types/keygen.pb.go b/x/observer/types/keygen.pb.go index 896831bc9e..491e6290f9 100644 --- a/x/observer/types/keygen.pb.go +++ b/x/observer/types/keygen.pb.go @@ -53,9 +53,9 @@ func (KeygenStatus) EnumDescriptor() ([]byte, []int) { } type Keygen struct { - Status KeygenStatus `protobuf:"varint,1,opt,name=status,proto3,enum=zetachain.zetacore.observer.KeygenStatus" json:"status,omitempty"` - GranteePubkeys []string `protobuf:"bytes,2,rep,name=granteePubkeys,proto3" json:"granteePubkeys,omitempty"` - BlockNumber int64 `protobuf:"varint,3,opt,name=blockNumber,proto3" json:"blockNumber,omitempty"` + Status KeygenStatus `protobuf:"varint,2,opt,name=status,proto3,enum=zetachain.zetacore.observer.KeygenStatus" json:"status,omitempty"` + GranteePubkeys []string `protobuf:"bytes,3,rep,name=granteePubkeys,proto3" json:"granteePubkeys,omitempty"` + BlockNumber int64 `protobuf:"varint,4,opt,name=blockNumber,proto3" json:"blockNumber,omitempty"` } func (m *Keygen) Reset() { *m = Keygen{} } @@ -126,11 +126,11 @@ var fileDescriptor_4efb2de738775c96 = []byte{ 0xc9, 0x17, 0x92, 0xae, 0x4a, 0x2d, 0x49, 0x4c, 0xce, 0x48, 0xcc, 0xcc, 0xd3, 0x03, 0xb3, 0xf2, 0x8b, 0x52, 0xf5, 0x60, 0x2a, 0xa5, 0x44, 0x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x5a, 0x5c, 0x2c, 0xc0, 0x28, 0x24, 0x00, 0xd6, 0xe5, 0x9e, 0x9a, 0xe7, 0x96, 0x98, 0x99, 0x93, 0x9a, 0x22, 0xc0, @@ -138,8 +138,8 @@ var fileDescriptor_4efb2de738775c96 = []byte{ 0x31, 0x3e, 0x78, 0x24, 0xc7, 0x38, 0xe1, 0xb1, 0x1c, 0xc3, 0x85, 0xc7, 0x72, 0x0c, 0x37, 0x1e, 0xcb, 0x31, 0x44, 0xe9, 0xa7, 0x67, 0x96, 0x64, 0x94, 0x26, 0xe9, 0x25, 0xe7, 0xe7, 0xea, 0x83, 0x3c, 0xa9, 0x0b, 0xf6, 0xaf, 0x3e, 0xcc, 0xbf, 0xfa, 0x15, 0xfa, 0xf0, 0xa0, 0x2e, 0xa9, 0x2c, - 0x48, 0x2d, 0x4e, 0x62, 0x03, 0x87, 0x9b, 0x31, 0x20, 0x00, 0x00, 0xff, 0xff, 0x7c, 0xac, 0x1f, - 0xb4, 0x83, 0x01, 0x00, 0x00, + 0x48, 0x2d, 0x4e, 0x62, 0x03, 0x87, 0x9b, 0x31, 0x20, 0x00, 0x00, 0xff, 0xff, 0xd3, 0xf7, 0xb2, + 0x79, 0x83, 0x01, 0x00, 0x00, } func (m *Keygen) Marshal() (dAtA []byte, err error) { @@ -165,7 +165,7 @@ func (m *Keygen) MarshalToSizedBuffer(dAtA []byte) (int, error) { if m.BlockNumber != 0 { i = encodeVarintKeygen(dAtA, i, uint64(m.BlockNumber)) i-- - dAtA[i] = 0x18 + dAtA[i] = 0x20 } if len(m.GranteePubkeys) > 0 { for iNdEx := len(m.GranteePubkeys) - 1; iNdEx >= 0; iNdEx-- { @@ -173,13 +173,13 @@ func (m *Keygen) MarshalToSizedBuffer(dAtA []byte) (int, error) { copy(dAtA[i:], m.GranteePubkeys[iNdEx]) i = encodeVarintKeygen(dAtA, i, uint64(len(m.GranteePubkeys[iNdEx]))) i-- - dAtA[i] = 0x12 + dAtA[i] = 0x1a } } if m.Status != 0 { i = encodeVarintKeygen(dAtA, i, uint64(m.Status)) i-- - dAtA[i] = 0x8 + dAtA[i] = 0x10 } return len(dAtA) - i, nil } @@ -251,7 +251,7 @@ func (m *Keygen) Unmarshal(dAtA []byte) error { return fmt.Errorf("proto: Keygen: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { - case 1: + case 2: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) } @@ -270,7 +270,7 @@ func (m *Keygen) Unmarshal(dAtA []byte) error { break } } - case 2: + case 3: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field GranteePubkeys", wireType) } @@ -302,7 +302,7 @@ func (m *Keygen) Unmarshal(dAtA []byte) error { } m.GranteePubkeys = append(m.GranteePubkeys, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex - case 3: + case 4: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field BlockNumber", wireType) }