From 13f3f610f0b321322e1098f3a8a0093cdfcff1fd Mon Sep 17 00:00:00 2001 From: Maximilian Breithecker <72022235+mbreithecker@users.noreply.github.com> Date: Thu, 13 Jul 2023 11:39:22 +0200 Subject: [PATCH] chore: use RFC3339 for bundles timestamp (#110) (cherry picked from commit 39987425be073fdad9efd7f80e904d3d24fc17c4) --- proto/kyve/query/v1beta1/bundles.proto | 2 +- testutil/integration/checks.go | 6 +- x/bundles/keeper/getters_bundles.go | 4 +- x/query/spec/01_concept.md | 2 +- x/query/types/bundles.pb.go | 182 ++++++++++++------------- 5 files changed, 99 insertions(+), 97 deletions(-) diff --git a/proto/kyve/query/v1beta1/bundles.proto b/proto/kyve/query/v1beta1/bundles.proto index 8e685589..56f5f900 100644 --- a/proto/kyve/query/v1beta1/bundles.proto +++ b/proto/kyve/query/v1beta1/bundles.proto @@ -79,7 +79,7 @@ message FinalizedAt { // height is the block height in which the bundle got finalized. string height = 1 [(gogoproto.customtype) = "cosmossdk.io/math.Int"]; // timestamp is the UNIX timestamp of the block in which the bundle got finalized. - string timestamp = 2 [(gogoproto.customtype) = "cosmossdk.io/math.Int"]; + string timestamp = 2; } // StakeSecurity represents the relative security of a finalized bundle diff --git a/testutil/integration/checks.go b/testutil/integration/checks.go index 971a28e9..e84c8c36 100644 --- a/testutil/integration/checks.go +++ b/testutil/integration/checks.go @@ -1,6 +1,8 @@ package integration import ( + "time" + "github.com/KYVENetwork/chain/x/bundles" bundlesTypes "github.com/KYVENetwork/chain/x/bundles/types" "github.com/KYVENetwork/chain/x/delegation" @@ -274,7 +276,9 @@ func checkFinalizedBundle(queryBundle querytypes.FinalizedBundle, rawBundle bund Expect(queryBundle.BundleSummary).To(Equal(rawBundle.BundleSummary)) Expect(queryBundle.DataHash).To(Equal(rawBundle.DataHash)) Expect(queryBundle.FinalizedAt.Height.Uint64()).To(Equal(rawBundle.FinalizedAt.Height)) - Expect(queryBundle.FinalizedAt.Timestamp.Uint64()).To(Equal(rawBundle.FinalizedAt.Timestamp)) + date, dateErr := time.Parse(time.RFC3339, queryBundle.FinalizedAt.Timestamp) + Expect(dateErr).To(BeNil()) + Expect(uint64(date.Unix())).To(Equal(rawBundle.FinalizedAt.Timestamp)) Expect(queryBundle.FromKey).To(Equal(rawBundle.FromKey)) Expect(queryBundle.StorageProviderId).To(Equal(uint64(rawBundle.StorageProviderId))) Expect(queryBundle.CompressionId).To(Equal(uint64(rawBundle.CompressionId))) diff --git a/x/bundles/keeper/getters_bundles.go b/x/bundles/keeper/getters_bundles.go index b4e13f15..95c8a63d 100644 --- a/x/bundles/keeper/getters_bundles.go +++ b/x/bundles/keeper/getters_bundles.go @@ -3,6 +3,7 @@ package keeper import ( "encoding/binary" "fmt" + "time" cosmossdk_io_math "cosmossdk.io/math" @@ -120,7 +121,6 @@ func (k Keeper) GetFinalizedBundle(ctx sdk.Context, poolId, id uint64) (val type func RawBundleToQueryBundle(rawFinalizedBundle types.FinalizedBundle, versionMap map[int32]uint64) (queryBundle queryTypes.FinalizedBundle) { finalizedHeight := cosmossdk_io_math.NewInt(int64(rawFinalizedBundle.FinalizedAt.Height)) - finalizedTimestamp := cosmossdk_io_math.NewInt(int64(rawFinalizedBundle.FinalizedAt.Timestamp)) finalizedBundle := queryTypes.FinalizedBundle{ PoolId: rawFinalizedBundle.PoolId, @@ -134,7 +134,7 @@ func RawBundleToQueryBundle(rawFinalizedBundle types.FinalizedBundle, versionMap DataHash: rawFinalizedBundle.DataHash, FinalizedAt: &queryTypes.FinalizedAt{ Height: &finalizedHeight, - Timestamp: &finalizedTimestamp, + Timestamp: time.Unix(int64(rawFinalizedBundle.FinalizedAt.Timestamp), 0).Format(time.RFC3339), }, FromKey: rawFinalizedBundle.FromKey, StorageProviderId: uint64(rawFinalizedBundle.StorageProviderId), diff --git a/x/query/spec/01_concept.md b/x/query/spec/01_concept.md index 550ba284..17ce21c1 100644 --- a/x/query/spec/01_concept.md +++ b/x/query/spec/01_concept.md @@ -64,7 +64,7 @@ returned. The different version are explained below. "data_hash": "string", "finalized_at": { "height": "number", - "timestamp": "number" + "timestamp": "RFC3339 date string" }, "from_key": "number", "storage_provider_id": "number", diff --git a/x/query/types/bundles.pb.go b/x/query/types/bundles.pb.go index ca389cb0..b87eb9d3 100644 --- a/x/query/types/bundles.pb.go +++ b/x/query/types/bundles.pb.go @@ -200,7 +200,7 @@ type FinalizedAt struct { // height is the block height in which the bundle got finalized. Height *cosmossdk_io_math.Int `protobuf:"bytes,1,opt,name=height,proto3,customtype=cosmossdk.io/math.Int" json:"height,omitempty"` // timestamp is the UNIX timestamp of the block in which the bundle got finalized. - Timestamp *cosmossdk_io_math.Int `protobuf:"bytes,2,opt,name=timestamp,proto3,customtype=cosmossdk.io/math.Int" json:"timestamp,omitempty"` + Timestamp string `protobuf:"bytes,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"` } func (m *FinalizedAt) Reset() { *m = FinalizedAt{} } @@ -236,6 +236,13 @@ func (m *FinalizedAt) XXX_DiscardUnknown() { var xxx_messageInfo_FinalizedAt proto.InternalMessageInfo +func (m *FinalizedAt) GetTimestamp() string { + if m != nil { + return m.Timestamp + } + return "" +} + // StakeSecurity represents the relative security of a finalized bundle type StakeSecurity struct { // valid_vote_power gives the amount of $KYVE stake that voted `valid`. @@ -1005,82 +1012,82 @@ func init() { func init() { proto.RegisterFile("kyve/query/v1beta1/bundles.proto", fileDescriptor_b49b126c38ac815c) } var fileDescriptor_b49b126c38ac815c = []byte{ - // 1193 bytes of a gzipped FileDescriptorProto + // 1191 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x57, 0xcf, 0x6f, 0x1b, 0x45, - 0x14, 0xce, 0xba, 0x8e, 0x7f, 0x3c, 0x37, 0xa6, 0x9d, 0xa6, 0xe9, 0xd6, 0x4d, 0x9d, 0x74, 0x11, - 0x24, 0x4a, 0xd1, 0x2e, 0x49, 0x0f, 0xa5, 0x27, 0x44, 0x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xba, 0xc2, 0xda, 0xad, 0x16, 0x8e, 0xba, 0x66, 0x4e, 0x1e, 0xcf, 0x28, 0xef, 0xae, 0x72, + 0xa2, 0x6b, 0x90, 0xf7, 0x30, 0xc7, 0x95, 0x06, 0x66, 0x0d, 0x33, 0xaf, 0xf0, 0x0a, 0xc7, 0x3d, + 0xcc, 0x1a, 0x68, 0x0b, 0x2e, 0xee, 0xc7, 0x34, 0x55, 0x30, 0x37, 0x61, 0xc5, 0x58, 0x2b, 0x6c, + 0x2e, 0xdb, 0xa7, 0x1f, 0x99, 0xdd, 0xa7, 0xf3, 0x63, 0xee, 0x16, 0xf6, 0x07, 0x06, 0xb2, 0xe1, + 0x72, 0x4c, 0x57, 0x18, 0xd1, 0x8e, 0xef, 0x91, 0x48, 0xf0, 0x76, 0x51, 0xf6, 0x37, 0xa7, 0x8f, + 0x76, 0xf4, 0x49, 0xd9, 0x13, 0xb8, 0x6b, 0xb4, 0x15, 0x46, 0x84, 0x31, 0x9f, 0x06, 0x22, 0x74, + 0x46, 0x86, 0xce, 0x24, 0xbc, 0x65, 0x0f, 0xdd, 0x83, 0x59, 0xc6, 0xf1, 0x01, 0xa9, 0x30, 0x52, + 0x6b, 0x47, 0x3e, 0xef, 0x9a, 0xb3, 0x12, 0xdc, 0x8d, 0x51, 0xe0, 0x76, 0x45, 0xe4, 0xae, 0x0e, + 0x74, 0x67, 0x58, 0xd2, 0xb4, 0xbe, 0x82, 0x42, 0x02, 0x3c, 0xda, 0x80, 0x4c, 0x83, 0xf8, 0xf5, + 0x06, 0x97, 0x63, 0x90, 0xdf, 0xba, 0xfa, 0xcf, 0xcb, 0xe5, 0x05, 0x35, 0x8f, 0xcc, 0x3b, 0xb0, + 0x7d, 0xea, 0xb4, 0x30, 0x6f, 0xd8, 0xe5, 0x80, 0xbb, 0x3a, 0x10, 0x2d, 0x41, 0x9e, 0xfb, 0x2d, + 0xc2, 0x38, 0x6e, 0x85, 0x72, 0x50, 0xf2, 0xee, 0xc0, 0x61, 0xfd, 0x6c, 0xc0, 0xcc, 0x09, 0x00, + 0xe8, 0x0e, 0x5c, 0xea, 0xe0, 0xa6, 0xef, 0x55, 0x3a, 0x94, 0x93, 0x4a, 0x48, 0x9f, 0x90, 0x68, + 0xf2, 0x65, 0xb3, 0x32, 0x65, 0x8f, 0x72, 0xb2, 0x23, 0x12, 0x44, 0x11, 0x4e, 0x39, 0x6e, 0x26, + 0x8b, 0xa4, 0x26, 0x16, 0x91, 0x29, 0xfd, 0x22, 0xd6, 0x33, 0x03, 0x96, 0x3e, 0x17, 0x54, 0x0d, + 0x6d, 0x03, 0x73, 0xc9, 0xe3, 0x36, 0x61, 0x1c, 0x6d, 0x03, 0x0c, 0x36, 0x4e, 0x82, 0x2c, 0x6c, + 0xbe, 0x6b, 0xab, 0xe2, 0xb6, 0x58, 0xcf, 0x21, 0xa6, 0x77, 0x70, 0x9d, 0xe8, 0x5c, 0x37, 0x91, + 0x99, 0xdc, 0xae, 0xd4, 0x89, 0xed, 0x9a, 0x87, 0x69, 0x35, 0xf0, 0x6a, 0x91, 0x94, 0x61, 0xfd, + 0x69, 0xc0, 0xf5, 0x31, 0xb8, 0x58, 0x48, 0x03, 0x46, 0xd0, 0x1e, 0xcc, 0x0d, 0x46, 0x53, 0x2b, + 0x8a, 0x69, 0xac, 0x5c, 0x58, 0x2b, 0x6c, 0xbe, 0x7d, 0xe6, 0x7c, 0xaa, 0x42, 0x5b, 0xe9, 0xe7, + 0x2f, 0x97, 0xa7, 0xdc, 0x4b, 0xfb, 0x43, 0xf5, 0xd1, 0xa7, 0x27, 0x1a, 0x4e, 0xc9, 0x86, 0x57, + 0x27, 0x36, 0xac, 0x40, 0x25, 0x3b, 0xb6, 0xb6, 0xe1, 0xda, 0xa8, 0x0e, 0x62, 0x62, 0xcf, 0x2b, + 0x37, 0x56, 0x67, 0xf4, 0x13, 0x9a, 0x44, 0x84, 0xf1, 0x86, 0x44, 0x58, 0x1f, 0xea, 0x27, 0x70, + 0xa7, 0x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, 0xe8, 0x43, 0x74, + 0x7f, 0x1c, 0x50, 0x2d, 0x3c, 0x49, 0x9c, 0x6a, 0xa7, 0x7b, 0xce, 0x61, 0x2c, 0x4a, 0x3d, 0xe7, + 0x70, 0xa0, 0x49, 0x3d, 0xf4, 0x9b, 0x01, 0x59, 0xbd, 0xb3, 0x68, 0xf5, 0x4c, 0xda, 0x06, 0x92, + 0x52, 0x5c, 0x9b, 0x1c, 0xa8, 0x21, 0x3f, 0x94, 0x90, 0xb7, 0xd1, 0xdd, 0xb1, 0xdc, 0x52, 0x3e, + 0x1a, 0xaf, 0x54, 0x1d, 0xe9, 0x88, 0x45, 0xa7, 0xb7, 0x75, 0xf7, 0xf9, 0x51, 0xc9, 0x78, 0x71, + 0x54, 0x32, 0xfe, 0x3d, 0x2a, 0x19, 0x3f, 0x1c, 0x97, 0xa6, 0x5e, 0x1c, 0x97, 0xa6, 0xfe, 0x3e, + 0x2e, 0x4d, 0x7d, 0xb9, 0x5e, 0xf7, 0x79, 0xa3, 0x5d, 0xb5, 0x6b, 0xb4, 0xe5, 0x3c, 0xf8, 0x62, + 0xef, 0x93, 0x47, 0x84, 0x3f, 0xa1, 0xd1, 0x81, 0x53, 0x6b, 0x60, 0x3f, 0x70, 0x9e, 0xea, 0x8b, + 0x79, 0x37, 0x24, 0xac, 0x9a, 0x91, 0xff, 0x44, 0x6e, 0xfd, 0x1f, 0x00, 0x00, 0xff, 0xff, 0x9f, + 0x9d, 0x46, 0xd3, 0x21, 0x0d, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -1494,15 +1501,10 @@ func (m *FinalizedAt) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l - if m.Timestamp != nil { - { - size := m.Timestamp.Size() - i -= size - if _, err := m.Timestamp.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - i = encodeVarintBundles(dAtA, i, uint64(size)) - } + if len(m.Timestamp) > 0 { + i -= len(m.Timestamp) + copy(dAtA[i:], m.Timestamp) + i = encodeVarintBundles(dAtA, i, uint64(len(m.Timestamp))) i-- dAtA[i] = 0x12 } @@ -2132,8 +2134,8 @@ func (m *FinalizedAt) Size() (n int) { l = m.Height.Size() n += 1 + l + sovBundles(uint64(l)) } - if m.Timestamp != nil { - l = m.Timestamp.Size() + l = len(m.Timestamp) + if l > 0 { n += 1 + l + sovBundles(uint64(l)) } return n @@ -2894,11 +2896,7 @@ func (m *FinalizedAt) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - var v cosmossdk_io_math.Int - m.Timestamp = &v - if err := m.Timestamp.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.Timestamp = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex