From 511a798edfe2c7d368fe65e26a4d2edc60706d2c Mon Sep 17 00:00:00 2001 From: zale144 Date: Fri, 11 Oct 2024 16:32:22 +0200 Subject: [PATCH] Revert state update pruning feature --- app/keepers/keepers.go | 1 - .../dymension/rollapp/params.proto | 3 - .../dymension/rollapp/state_info.proto | 8 +- x/rollapp/keeper/hooks.go | 38 ----- x/rollapp/keeper/liveness_test.go | 5 - x/rollapp/keeper/msg_server_update_state.go | 2 - x/rollapp/keeper/params.go | 6 - x/rollapp/keeper/state_info.go | 57 -------- x/rollapp/keeper/state_info_test.go | 68 --------- x/rollapp/types/events.go | 1 - x/rollapp/types/expected_keepers.go | 3 - x/rollapp/types/key_state_info.go | 21 +-- x/rollapp/types/key_state_info_test.go | 42 ------ x/rollapp/types/key_timestamped_state_info.go | 35 ----- x/rollapp/types/params.go | 19 +-- x/rollapp/types/params.pb.go | 112 ++++----------- x/rollapp/types/state_info.go | 4 - x/rollapp/types/state_info.pb.go | 130 +++++------------- 18 files changed, 71 insertions(+), 484 deletions(-) delete mode 100644 x/rollapp/keeper/hooks.go delete mode 100644 x/rollapp/types/key_state_info_test.go delete mode 100644 x/rollapp/types/key_timestamped_state_info.go diff --git a/app/keepers/keepers.go b/app/keepers/keepers.go index 3c3eee4a6..08e4b2d6a 100644 --- a/app/keepers/keepers.go +++ b/app/keepers/keepers.go @@ -586,7 +586,6 @@ func (a *AppKeepers) SetupHooks() { a.IncentivesKeeper.Hooks(), a.TxFeesKeeper.Hooks(), a.DelayedAckKeeper.GetEpochHooks(), - a.RollappKeeper.GetEpochHooks(), ), ) diff --git a/proto/dymensionxyz/dymension/rollapp/params.proto b/proto/dymensionxyz/dymension/rollapp/params.proto index e2d2899e7..7348d6e10 100644 --- a/proto/dymensionxyz/dymension/rollapp/params.proto +++ b/proto/dymensionxyz/dymension/rollapp/params.proto @@ -29,7 +29,4 @@ message Params { (gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"app_registration_fee\"" ]; - // state_info_deletion_epoch_identifier is used to control the interval at which the state info records will be deleted. - string state_info_deletion_epoch_identifier = 8 - [ (gogoproto.moretags) = "yaml:\"state_info_deletion_epoch_identifier\"" ]; } diff --git a/proto/dymensionxyz/dymension/rollapp/state_info.proto b/proto/dymensionxyz/dymension/rollapp/state_info.proto index a8ade3d99..f8a265ce7 100644 --- a/proto/dymensionxyz/dymension/rollapp/state_info.proto +++ b/proto/dymensionxyz/dymension/rollapp/state_info.proto @@ -47,14 +47,8 @@ message StateInfo { // BDs is a list of block description objects (one per block) // the list must be ordered by height, starting from startHeight to startHeight+numBlocks-1 BlockDescriptors BDs = 9 [(gogoproto.nullable) = false]; - // created_at is the timestamp at which the StateInfo was created - google.protobuf.Timestamp created_at = 10 [ - (gogoproto.stdtime) = true, - (gogoproto.nullable) = false, - (gogoproto.moretags) = "yaml:\"created_at\"" - ]; // DrsVersion is a DRS version used by the rollapp. - string drs_version = 11; + string drs_version = 10; } // StateInfoSummary is a compact representation of StateInfo diff --git a/x/rollapp/keeper/hooks.go b/x/rollapp/keeper/hooks.go deleted file mode 100644 index 2d91cd5fb..000000000 --- a/x/rollapp/keeper/hooks.go +++ /dev/null @@ -1,38 +0,0 @@ -package keeper - -import ( - sdk "github.com/cosmos/cosmos-sdk/types" - epochstypes "github.com/osmosis-labs/osmosis/v15/x/epochs/types" -) - -var _ epochstypes.EpochHooks = epochHooks{} - -type epochHooks struct { - Keeper -} - -func (k Keeper) GetEpochHooks() epochstypes.EpochHooks { - return epochHooks{ - Keeper: k, - } -} - -// AfterEpochEnd is the epoch end hook. -// We want to clean up all the state info records that are older than the sequencer unbonding time. -func (e epochHooks) AfterEpochEnd(ctx sdk.Context, epochIdentifier string, _ int64) error { - if epochIdentifier != e.StateInfoDeletionEpochIdentifier(ctx) { - return nil - } - - currentTimestamp := ctx.BlockTime() - // for the time being, we can assume that the sequencer unbonding time will not change, therefore - // we can assume that the number of resulting deletable state updates will remain constant - seqUnbondingTime := e.sequencerKeeper.UnbondingTime(ctx) - endTimestamp := currentTimestamp.Add(-seqUnbondingTime) - - e.DeleteStateInfoUntilTimestamp(ctx, endTimestamp) - return nil -} - -// BeforeEpochStart is the epoch start hook. -func (e epochHooks) BeforeEpochStart(sdk.Context, string, int64) error { return nil } diff --git a/x/rollapp/keeper/liveness_test.go b/x/rollapp/keeper/liveness_test.go index 6d3c2e81f..870403b6c 100644 --- a/x/rollapp/keeper/liveness_test.go +++ b/x/rollapp/keeper/liveness_test.go @@ -5,7 +5,6 @@ import ( "fmt" "slices" "testing" - "time" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/dymensionxyz/sdk-utils/utils/urand" @@ -191,10 +190,6 @@ type livenessMockSequencerKeeper struct { jails map[string]int } -func (l livenessMockSequencerKeeper) UnbondingTime(sdk.Context) (res time.Duration) { - return time.Minute -} - func newLivenessMockSequencerKeeper() livenessMockSequencerKeeper { return livenessMockSequencerKeeper{ make(map[string]int), diff --git a/x/rollapp/keeper/msg_server_update_state.go b/x/rollapp/keeper/msg_server_update_state.go index 3fd41c361..8e905466e 100644 --- a/x/rollapp/keeper/msg_server_update_state.go +++ b/x/rollapp/keeper/msg_server_update_state.go @@ -96,7 +96,6 @@ func (k msgServer) UpdateState(goCtx context.Context, msg *types.MsgUpdateState) }) creationHeight := uint64(ctx.BlockHeight()) - blockTime := ctx.BlockTime() stateInfo := types.NewStateInfo( msg.RollappId, newIndex, @@ -106,7 +105,6 @@ func (k msgServer) UpdateState(goCtx context.Context, msg *types.MsgUpdateState) msg.DAPath, creationHeight, msg.BDs, - blockTime, msg.DrsVersion, ) // Write new state information to the store indexed by diff --git a/x/rollapp/keeper/params.go b/x/rollapp/keeper/params.go index 312325334..eaca0da56 100644 --- a/x/rollapp/keeper/params.go +++ b/x/rollapp/keeper/params.go @@ -14,7 +14,6 @@ func (k Keeper) GetParams(ctx sdk.Context) types.Params { k.LivenessSlashInterval(ctx), k.LivenessJailBlocks(ctx), k.AppRegistrationFee(ctx), - k.StateInfoDeletionEpochIdentifier(ctx), ) } @@ -49,8 +48,3 @@ func (k Keeper) AppRegistrationFee(ctx sdk.Context) (res sdk.Coin) { k.paramstore.Get(ctx, types.KeyAppRegistrationFee, &res) return } - -func (k Keeper) StateInfoDeletionEpochIdentifier(ctx sdk.Context) (res string) { - k.paramstore.Get(ctx, types.KeyStateInfoDeletionEpochIdentifier, &res) - return -} diff --git a/x/rollapp/keeper/state_info.go b/x/rollapp/keeper/state_info.go index 754a6dd03..734734740 100644 --- a/x/rollapp/keeper/state_info.go +++ b/x/rollapp/keeper/state_info.go @@ -2,7 +2,6 @@ package keeper import ( "fmt" - "time" "github.com/cosmos/cosmos-sdk/store/prefix" sdk "github.com/cosmos/cosmos-sdk/types" @@ -17,12 +16,6 @@ func (k Keeper) SetStateInfo(ctx sdk.Context, stateInfo types.StateInfo) { store.Set(types.StateInfoKey( stateInfo.StateInfoIndex, ), b) - - // store a key prefixed with the creation timestamp - storeTS := prefix.NewStore(ctx.KVStore(k.storeKey), types.KeyPrefix(types.TimestampedStateInfoKeyPrefix)) - storeTS.Set(types.StateInfoTimestampKey( - stateInfo, - ), []byte{}) } // GetStateInfo returns a stateInfo from its index @@ -93,53 +86,3 @@ func (k Keeper) GetAllStateInfo(ctx sdk.Context) (list []types.StateInfo) { return } - -// DeleteStateInfoUntilTimestamp deletes all stateInfo until the given timestamp -func (k Keeper) DeleteStateInfoUntilTimestamp(ctx sdk.Context, endTimestampExcl time.Time) { - store := prefix.NewStore(ctx.KVStore(k.storeKey), types.KeyPrefix(types.StateInfoKeyPrefix)) - storeTS := prefix.NewStore(ctx.KVStore(k.storeKey), types.KeyPrefix(types.TimestampedStateInfoKeyPrefix)) - - // Note that for the active sequencer, the latest state info index will not be within the range of - // the state updates to be deleted, as it will be more recent. - // For a sequencer that is inactive for 21 days or more, it will be within range, furthermore - // the latest state info index and the latest finalized state info index will be the same. - latestIndexes := k.GetAllLatestStateInfoIndex(ctx) - skipStateInfoIndexes := make(map[string]uint64, len(latestIndexes)) - for _, index := range latestIndexes { - skipStateInfoIndexes[index.RollappId] = index.Index - } - - k.IterateStateInfoWithTimestamp(storeTS, endTimestampExcl.UnixMicro(), func(keyTS []byte) bool { - key := types.StateInfoIndexKeyFromTimestampKey(keyTS) - // skip latest stateInfo and latest finalized stateInfo - stateInfoIndex := types.StateInfoIndexFromKey(key) - index := skipStateInfoIndexes[stateInfoIndex.RollappId] - if index == stateInfoIndex.Index { - return false - } - - store.Delete(key) - storeTS.Delete(keyTS) - return false - }) -} - -// IterateStateInfoWithTimestamp iterates over stateInfo until timestamp -func (k Keeper) IterateStateInfoWithTimestamp(store prefix.Store, endTimestampUNIX int64, fn func(key []byte) (stop bool)) { - endKey := types.StateInfoTimestampKeyPrefix(endTimestampUNIX) - iterator := store.ReverseIterator(nil, endKey) - - defer iterator.Close() // nolint: errcheck - - for ; iterator.Valid(); iterator.Next() { - if fn(iterator.Key()) { - break - } - } -} - -// HasStateInfoTimestampKey checks if the stateInfo has a timestamp key - used for testing -func (k Keeper) HasStateInfoTimestampKey(ctx sdk.Context, stateInfo types.StateInfo) bool { - storeTS := prefix.NewStore(ctx.KVStore(k.storeKey), types.KeyPrefix(types.TimestampedStateInfoKeyPrefix)) - return storeTS.Has(types.StateInfoTimestampKey(stateInfo)) -} diff --git a/x/rollapp/keeper/state_info_test.go b/x/rollapp/keeper/state_info_test.go index 99123fffa..eccf43c98 100644 --- a/x/rollapp/keeper/state_info_test.go +++ b/x/rollapp/keeper/state_info_test.go @@ -3,10 +3,8 @@ package keeper_test import ( "strconv" "testing" - "time" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" keepertest "github.com/dymensionxyz/dymension/v3/testutil/keeper" @@ -81,69 +79,3 @@ func TestStateInfoGetAll(t *testing.T) { nullify.Fill(k.GetAllStateInfo(ctx)), ) } - -func TestKeeper_DeleteStateInfoUntilTimestamp(t *testing.T) { - k, ctx := keepertest.RollappKeeper(t) - - ts1 := time.Date(2020, time.May, 1, 10, 22, 0, 0, time.UTC) - ts2 := ts1.Add(9 * time.Second) - ts3 := ts2.Add(11 * time.Second) - ts4 := ts3.Add(13 * time.Second) - - items := []types.StateInfo{ - {CreatedAt: ts1}, - {CreatedAt: ts2}, - {CreatedAt: ts3}, - {CreatedAt: ts4}, - } - for i := range items { - items[i].StateInfoIndex.RollappId = strconv.Itoa(i + 1) - items[i].StateInfoIndex.Index = 1 + uint64(i) - - k.SetStateInfo(ctx, items[i]) - } - - lastItem := items[len(items)-1] - latestStateInfoIndex := types.StateInfoIndex{ - RollappId: lastItem.StateInfoIndex.RollappId, - Index: lastItem.StateInfoIndex.Index, - } - k.SetLatestStateInfoIndex(ctx, latestStateInfoIndex) - - // delete all before ts3: only ts3 and ts4 should be found - k.DeleteStateInfoUntilTimestamp(ctx, ts2.Add(time.Second)) - - for _, item := range items { - _, found := k.GetStateInfo(ctx, - item.StateInfoIndex.RollappId, - item.StateInfoIndex.Index, - ) - - foundTSKey := k.HasStateInfoTimestampKey(ctx, item) - - if item.CreatedAt.After(ts2) { - assert.True(t, found) - assert.True(t, foundTSKey) - continue - } - assert.Falsef(t, found, "item %v", item) - assert.False(t, foundTSKey) - } - - // delete all: only ts4 should be found, as it's the latest and has an index - k.DeleteStateInfoUntilTimestamp(ctx, ts4.Add(time.Second)) - - info3 := items[2] - _, found := k.GetStateInfo(ctx, - info3.StateInfoIndex.RollappId, - info3.StateInfoIndex.Index, - ) - assert.False(t, found) - - info4 := items[3] - _, found = k.GetStateInfo(ctx, - info4.StateInfoIndex.RollappId, - info4.StateInfoIndex.Index, - ) - assert.True(t, found) -} diff --git a/x/rollapp/types/events.go b/x/rollapp/types/events.go index e342f81bd..e67366db2 100644 --- a/x/rollapp/types/events.go +++ b/x/rollapp/types/events.go @@ -11,7 +11,6 @@ const ( AttributeKeyNumBlocks = "num_blocks" AttributeKeyDAPath = "da_path" AttributeKeyStatus = "status" - AttributeKeyCreatedAt = "created_at" // EventTypeFraud is emitted when a fraud evidence is submitted EventTypeFraud = "fraud_proposal" diff --git a/x/rollapp/types/expected_keepers.go b/x/rollapp/types/expected_keepers.go index d98bc4622..5286cb3d1 100644 --- a/x/rollapp/types/expected_keepers.go +++ b/x/rollapp/types/expected_keepers.go @@ -1,8 +1,6 @@ package types import ( - "time" - sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/ibc-go/v7/modules/core/exported" ) @@ -23,7 +21,6 @@ type ChannelKeeper interface { type SequencerKeeper interface { SlashLiveness(ctx sdk.Context, rollappID string) error JailLiveness(ctx sdk.Context, rollappID string) error - UnbondingTime(ctx sdk.Context) (res time.Duration) } // BankKeeper defines the expected interface needed to retrieve account balances. diff --git a/x/rollapp/types/key_state_info.go b/x/rollapp/types/key_state_info.go index ef3fba926..1b92f13ad 100644 --- a/x/rollapp/types/key_state_info.go +++ b/x/rollapp/types/key_state_info.go @@ -10,8 +10,7 @@ var _ binary.ByteOrder const ( // StateInfoKeyPrefix is the prefix to retrieve all StateInfo - StateInfoKeyPrefix = "StateInfo/value/" - StateInfoIndexKeyPartLength = 8 + 1 + 1 // BigEndian + "/" + "/" + StateInfoKeyPrefix = "StateInfo/value/" ) // StateInfoKey returns the store key to retrieve a StateInfo from the index fields @@ -30,21 +29,3 @@ func StateInfoKey( return key } - -// StateInfoIndexFromKey returns the StateInfoIndex from a store key. -// The value of StateInfoIndexKeyPartLength will always be shorter than the key itself, -// because the key contains the rollappId and the BigEndian representation of the index, -// which is always 8 bytes long. -func StateInfoIndexFromKey(key []byte) StateInfoIndex { - l := len(key) - rollappId := string(key[:l-StateInfoIndexKeyPartLength]) - return StateInfoIndex{ - RollappId: rollappId, - Index: sdk.BigEndianToUint64(key[len(rollappId)+1 : l-1]), - } -} - -// StateInfoIndexKeyFromTimestampKey returns the StateInfoIndex key from a timestamp key by removing the timestamp prefix. -func StateInfoIndexKeyFromTimestampKey(keyTS []byte) []byte { - return keyTS[TimestampPrefixLen:] // remove the timestamp prefix -} diff --git a/x/rollapp/types/key_state_info_test.go b/x/rollapp/types/key_state_info_test.go deleted file mode 100644 index b0b70c081..000000000 --- a/x/rollapp/types/key_state_info_test.go +++ /dev/null @@ -1,42 +0,0 @@ -package types - -import ( - "math/rand" - "reflect" - "testing" - - "github.com/dymensionxyz/sdk-utils/utils/urand" -) - -// nolint: gosec -func TestStateInfoIndexFromKey(t *testing.T) { - index := StateInfoIndex{ - RollappId: urand.RollappID(), - Index: rand.Uint64(), - } - - type args struct { - key []byte - } - - tests := []struct { - name string - args args - want StateInfoIndex - }{ - { - name: "Test StateInfoIndexFromKey", - args: args{ - key: StateInfoKey(index), - }, - want: index, - }, - } - for _, tt := range tests { - t.Run(tt.name, func(t *testing.T) { - if got := StateInfoIndexFromKey(tt.args.key); !reflect.DeepEqual(got, tt.want) { - t.Errorf("StateInfoIndexFromKey() = %v, want %v", got, tt.want) - } - }) - } -} diff --git a/x/rollapp/types/key_timestamped_state_info.go b/x/rollapp/types/key_timestamped_state_info.go deleted file mode 100644 index b6508107a..000000000 --- a/x/rollapp/types/key_timestamped_state_info.go +++ /dev/null @@ -1,35 +0,0 @@ -package types - -import ( - "encoding/binary" - "fmt" -) - -var _ binary.ByteOrder - -const ( - // TimestampedStateInfoKeyPrefix is the prefix to retrieve all StateInfo with the timestamp prefix - TimestampedStateInfoKeyPrefix = "TimestampedStateInfoKeyPrefix/value/" - // TimestampPrefixLen is the length of the timestamp prefix: len(fmt.Sprint(time.Time{}.UnixMicro())) + 1 - TimestampPrefixLen = 17 -) - -// StateInfoTimestampKeyPrefix returns the store key prefix to range over all state infos with the timestamp prefix -func StateInfoTimestampKeyPrefix(timestampUNIX int64) []byte { - return []byte(fmt.Sprint(timestampUNIX)) -} - -// StateInfoTimestampKey returns the store key to retrieve state infos using the timestamp prefix -func StateInfoTimestampKey( - stateInfo StateInfo, -) []byte { - var key []byte - - timestampPrefix := StateInfoTimestampKeyPrefix(stateInfo.CreatedAt.UnixMicro()) - stateInfoKey := StateInfoKey(stateInfo.StateInfoIndex) - key = append(key, timestampPrefix...) - key = append(key, []byte("/")...) - key = append(key, stateInfoKey...) - - return key -} diff --git a/x/rollapp/types/params.go b/x/rollapp/types/params.go index 3d804322a..540c6c9dc 100644 --- a/x/rollapp/types/params.go +++ b/x/rollapp/types/params.go @@ -9,7 +9,6 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" paramtypes "github.com/cosmos/cosmos-sdk/x/params/types" "github.com/dymensionxyz/sdk-utils/utils/uparam" - "github.com/osmosis-labs/osmosis/v15/x/epochs/types" "gopkg.in/yaml.v2" "github.com/dymensionxyz/dymension/v3/app/params" @@ -31,9 +30,6 @@ var ( // DYM is 1dym DYM = sdk.NewIntFromBigInt(new(big.Int).Exp(big.NewInt(10), big.NewInt(18), nil)) DefaultAppRegistrationFee = sdk.NewCoin(params.BaseDenom, DYM) - - // KeyStateInfoDeletionEpochIdentifier defines the key to store the epoch identifier - KeyStateInfoDeletionEpochIdentifier = []byte("StateInfoDeletionEpochIdentifier") ) const ( @@ -44,7 +40,6 @@ const ( DefaultLivenessSlashBlocks = uint64(7200) // 12 hours at 1 block per 6 seconds DefaultLivenessSlashInterval = uint64(3600) // 1 hour at 1 block per 6 seconds DefaultLivenessJailBlocks = uint64(28800) // 48 hours at 1 block per 6 seconds - defaultEpochIdentifier = "hour" ) // ParamKeyTable the param key table for launch module @@ -59,15 +54,13 @@ func NewParams( livenessSlashInterval uint64, livenessJailBlocks uint64, appRegistrationFee sdk.Coin, - epochIdentifier string, ) Params { return Params{ - DisputePeriodInBlocks: disputePeriodInBlocks, - LivenessSlashBlocks: livenessSlashBlocks, - LivenessSlashInterval: livenessSlashInterval, - LivenessJailBlocks: livenessJailBlocks, - AppRegistrationFee: appRegistrationFee, - StateInfoDeletionEpochIdentifier: epochIdentifier, + DisputePeriodInBlocks: disputePeriodInBlocks, + LivenessSlashBlocks: livenessSlashBlocks, + LivenessSlashInterval: livenessSlashInterval, + LivenessJailBlocks: livenessJailBlocks, + AppRegistrationFee: appRegistrationFee, } } @@ -78,7 +71,6 @@ func DefaultParams() Params { DefaultLivenessSlashInterval, DefaultLivenessJailBlocks, DefaultAppRegistrationFee, - defaultEpochIdentifier, ) } @@ -90,7 +82,6 @@ func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs { paramtypes.NewParamSetPair(KeyLivenessSlashInterval, &p.LivenessSlashInterval, validateLivenessSlashInterval), paramtypes.NewParamSetPair(KeyLivenessJailBlocks, &p.LivenessJailBlocks, validateLivenessJailBlocks), paramtypes.NewParamSetPair(KeyAppRegistrationFee, &p.AppRegistrationFee, validateAppRegistrationFee), - paramtypes.NewParamSetPair(KeyStateInfoDeletionEpochIdentifier, &p.StateInfoDeletionEpochIdentifier, types.ValidateEpochIdentifierInterface), } } diff --git a/x/rollapp/types/params.pb.go b/x/rollapp/types/params.pb.go index 544b7efef..e53d22453 100644 --- a/x/rollapp/types/params.pb.go +++ b/x/rollapp/types/params.pb.go @@ -38,8 +38,6 @@ type Params struct { LivenessJailBlocks uint64 `protobuf:"varint,6,opt,name=liveness_jail_blocks,json=livenessJailBlocks,proto3" json:"liveness_jail_blocks,omitempty" yaml:"liveness_jail_blocks"` // app_registration_fee is the fee for registering an App AppRegistrationFee types.Coin `protobuf:"bytes,7,opt,name=app_registration_fee,json=appRegistrationFee,proto3" json:"app_registration_fee" yaml:"app_registration_fee"` - // state_info_deletion_epoch_identifier is used to control the interval at which the state info records will be deleted. - StateInfoDeletionEpochIdentifier string `protobuf:"bytes,8,opt,name=state_info_deletion_epoch_identifier,json=stateInfoDeletionEpochIdentifier,proto3" json:"state_info_deletion_epoch_identifier,omitempty" yaml:"state_info_deletion_epoch_identifier"` } func (m *Params) Reset() { *m = Params{} } @@ -109,13 +107,6 @@ func (m *Params) GetAppRegistrationFee() types.Coin { return types.Coin{} } -func (m *Params) GetStateInfoDeletionEpochIdentifier() string { - if m != nil { - return m.StateInfoDeletionEpochIdentifier - } - return "" -} - func init() { proto.RegisterType((*Params)(nil), "dymensionxyz.dymension.rollapp.Params") } @@ -125,38 +116,34 @@ func init() { } var fileDescriptor_75a44aa904ae1ba5 = []byte{ - // 486 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x93, 0xcd, 0x6e, 0xd3, 0x40, - 0x10, 0xc7, 0x63, 0x6a, 0x42, 0x30, 0x97, 0xca, 0x24, 0x22, 0x14, 0x64, 0x47, 0x2e, 0x87, 0x48, - 0x95, 0xbc, 0x2a, 0xe5, 0xd4, 0x63, 0xf8, 0x90, 0x92, 0x03, 0x2a, 0x86, 0x53, 0x85, 0x64, 0xad, - 0xed, 0x49, 0xb2, 0xb0, 0xde, 0x5d, 0x79, 0xb7, 0x51, 0xc3, 0x85, 0x57, 0xe0, 0xc8, 0x91, 0xc7, - 0xe9, 0xb1, 0x47, 0x4e, 0x16, 0x4a, 0x5e, 0x00, 0xf9, 0x09, 0x50, 0xd6, 0x1f, 0x84, 0x2a, 0x95, - 0xb8, 0x79, 0xff, 0xf3, 0x9b, 0xdf, 0xac, 0x34, 0x5e, 0xeb, 0x28, 0x59, 0xa6, 0xc0, 0x24, 0xe1, - 0xec, 0x72, 0xf9, 0x05, 0x35, 0x07, 0x94, 0x71, 0x4a, 0xb1, 0x10, 0x48, 0xe0, 0x0c, 0xa7, 0xd2, - 0x17, 0x19, 0x57, 0xdc, 0x76, 0xb6, 0x61, 0xbf, 0x39, 0xf8, 0x15, 0x7c, 0xd0, 0x9d, 0xf1, 0x19, - 0xd7, 0x28, 0xda, 0x7c, 0x95, 0x5d, 0x07, 0x4e, 0xcc, 0x65, 0xca, 0x25, 0x8a, 0xb0, 0x04, 0xb4, - 0x38, 0x8e, 0x40, 0xe1, 0x63, 0x14, 0x73, 0xc2, 0xca, 0xba, 0xf7, 0xdb, 0xb4, 0xda, 0x67, 0x7a, - 0x8c, 0xfd, 0xd1, 0xea, 0x27, 0x44, 0x8a, 0x0b, 0x05, 0xa1, 0x80, 0x8c, 0xf0, 0x24, 0x24, 0x2c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 0xb0, 0x82, 0x90, 0xb0, 0x29, 0x0f, 0x13, 0xa0, 0xa0, 0x79, 0x10, 0x3c, - 0x9e, 0x87, 0x24, 0x01, 0xa6, 0xc8, 0x94, 0x40, 0xd6, 0xef, 0x0c, 0x8c, 0xe1, 0xfd, 0x11, 0x2a, - 0x72, 0xf7, 0xa8, 0x1c, 0xf1, 0x3f, 0x5d, 0x5e, 0x30, 0xd0, 0xd8, 0x98, 0x4d, 0xf9, 0xab, 0x0a, - 0x7a, 0xbd, 0x61, 0xc6, 0x0d, 0x72, 0x6a, 0x7e, 0xff, 0xe1, 0xb6, 0x26, 0x66, 0xe7, 0xce, 0xfe, - 0xde, 0xc4, 0xec, 0xec, 0xed, 0x9b, 0xa3, 0xb7, 0x57, 0x2b, 0xc7, 0xb8, 0x5e, 0x39, 0xc6, 0xaf, - 0x95, 0x63, 0x7c, 0x5b, 0x3b, 0xad, 0xeb, 0xb5, 0xd3, 0xfa, 0xb9, 0x76, 0x5a, 0xe7, 0x2f, 0x66, - 0x44, 0xcd, 0x2f, 0x22, 0x3f, 0xe6, 0x29, 0xba, 0xe5, 0x69, 0x2c, 0x4e, 0xd0, 0x65, 0xf3, 0x3e, - 0xd4, 0x52, 0x80, 0x8c, 0xda, 0xfa, 0x4f, 0x3e, 0xf9, 0x13, 0x00, 0x00, 0xff, 0xff, 0xa9, 0xd2, - 0xe3, 0x18, 0x4e, 0x03, 0x00, 0x00, + // 427 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x92, 0x4f, 0x6f, 0xd3, 0x30, + 0x18, 0x87, 0x13, 0x1a, 0xca, 0x14, 0x2e, 0x53, 0x68, 0x45, 0x19, 0xc8, 0xae, 0xbc, 0xcb, 0x24, + 0x24, 0x5b, 0x63, 0x9c, 0x76, 0x2c, 0x12, 0xd2, 0x7a, 0x40, 0x23, 0x70, 0x9a, 0x90, 0x22, 0xa7, + 0x35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9, 0x1b, 0x00, + 0x00, 0xff, 0xff, 0xd4, 0xcf, 0x4a, 0xc3, 0xcd, 0x02, 0x00, 0x00, } func (m *Params) Marshal() (dAtA []byte, err error) { @@ -179,13 +166,6 @@ func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l - if len(m.StateInfoDeletionEpochIdentifier) > 0 { - i -= len(m.StateInfoDeletionEpochIdentifier) - copy(dAtA[i:], m.StateInfoDeletionEpochIdentifier) - i = encodeVarintParams(dAtA, i, uint64(len(m.StateInfoDeletionEpochIdentifier))) - i-- - dAtA[i] = 0x42 - } { size, err := m.AppRegistrationFee.MarshalToSizedBuffer(dAtA[:i]) if err != nil { @@ -250,10 +230,6 @@ func (m *Params) Size() (n int) { } l = m.AppRegistrationFee.Size() n += 1 + l + sovParams(uint64(l)) - l = len(m.StateInfoDeletionEpochIdentifier) - if l > 0 { - n += 1 + l + sovParams(uint64(l)) - } return n } @@ -401,38 +377,6 @@ func (m *Params) Unmarshal(dAtA []byte) error { return err } iNdEx = postIndex - case 8: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field StateInfoDeletionEpochIdentifier", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowParams - } - 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 ErrInvalidLengthParams - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthParams - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.StateInfoDeletionEpochIdentifier = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipParams(dAtA[iNdEx:]) diff --git a/x/rollapp/types/state_info.go b/x/rollapp/types/state_info.go index af5651a3f..b9aa7d409 100644 --- a/x/rollapp/types/state_info.go +++ b/x/rollapp/types/state_info.go @@ -2,7 +2,6 @@ package types import ( "strconv" - "time" sdk "github.com/cosmos/cosmos-sdk/types" @@ -18,7 +17,6 @@ func NewStateInfo( daPath string, height uint64, BDs BlockDescriptors, - createdAt time.Time, drsVersion string, ) *StateInfo { stateInfoIndex := StateInfoIndex{RollappId: rollappId, Index: newIndex} @@ -32,7 +30,6 @@ func NewStateInfo( CreationHeight: height, Status: status, BDs: BDs, - CreatedAt: createdAt, DrsVersion: drsVersion, } } @@ -73,7 +70,6 @@ func (s *StateInfo) GetEvents() []sdk.Attribute { sdk.NewAttribute(AttributeKeyNumBlocks, strconv.FormatUint(s.NumBlocks, 10)), sdk.NewAttribute(AttributeKeyDAPath, s.DAPath), sdk.NewAttribute(AttributeKeyStatus, s.Status.String()), - sdk.NewAttribute(AttributeKeyCreatedAt, s.CreatedAt.Format(time.RFC3339)), } return eventAttributes } diff --git a/x/rollapp/types/state_info.pb.go b/x/rollapp/types/state_info.pb.go index 36748d303..01c9d40e2 100644 --- a/x/rollapp/types/state_info.pb.go +++ b/x/rollapp/types/state_info.pb.go @@ -7,20 +7,17 @@ import ( fmt "fmt" _ "github.com/cosmos/gogoproto/gogoproto" proto "github.com/cosmos/gogoproto/proto" - github_com_cosmos_gogoproto_types "github.com/cosmos/gogoproto/types" types "github.com/dymensionxyz/dymension/v3/x/common/types" _ "google.golang.org/protobuf/types/known/timestamppb" io "io" math "math" math_bits "math/bits" - time "time" ) // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Marshal var _ = fmt.Errorf var _ = math.Inf -var _ = time.Kitchen // This is a compile-time assertion to ensure that this generated file // is compatible with the proto package it is being compiled against. @@ -110,10 +107,8 @@ type StateInfo struct { // BDs is a list of block description objects (one per block) // the list must be ordered by height, starting from startHeight to startHeight+numBlocks-1 BDs BlockDescriptors `protobuf:"bytes,9,opt,name=BDs,proto3" json:"BDs"` - // created_at is the timestamp at which the StateInfo was created - CreatedAt time.Time `protobuf:"bytes,10,opt,name=created_at,json=createdAt,proto3,stdtime" json:"created_at" yaml:"created_at"` // DrsVersion is a DRS version used by the rollapp. - DrsVersion string `protobuf:"bytes,11,opt,name=drs_version,json=drsVersion,proto3" json:"drs_version,omitempty"` + DrsVersion string `protobuf:"bytes,10,opt,name=drs_version,json=drsVersion,proto3" json:"drs_version,omitempty"` } func (m *StateInfo) Reset() { *m = StateInfo{} } @@ -205,13 +200,6 @@ func (m *StateInfo) GetBDs() BlockDescriptors { return BlockDescriptors{} } -func (m *StateInfo) GetCreatedAt() time.Time { - if m != nil { - return m.CreatedAt - } - return time.Time{} -} - func (m *StateInfo) GetDrsVersion() string { if m != nil { return m.DrsVersion @@ -352,43 +340,40 @@ func init() { } var fileDescriptor_750f3a9f16533ec4 = []byte{ - // 568 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x54, 0x41, 0x6a, 0xdb, 0x40, - 0x14, 0xf5, 0xd8, 0x8e, 0x13, 0x8d, 0xc1, 0x24, 0x43, 0x28, 0xc2, 0xb4, 0xb2, 0x11, 0xb4, 0x98, - 0x2e, 0xa4, 0x92, 0xb4, 0x9b, 0x42, 0x17, 0x31, 0xa6, 0xc4, 0x5d, 0x94, 0x56, 0x09, 0xa5, 0x94, - 0x82, 0x91, 0xad, 0xb1, 0x2c, 0x2a, 0xcd, 0xa8, 0x33, 0xa3, 0x60, 0xe7, 0x14, 0xe9, 0x3d, 0x7a, - 0x90, 0x2c, 0xb3, 0x6b, 0x57, 0x69, 0xb1, 0x6f, 0xd0, 0x13, 0x94, 0x19, 0x29, 0x52, 0xe2, 0xd8, - 0x0d, 0x04, 0xba, 0xd3, 0x7f, 0xfa, 0xef, 0xf1, 0xfe, 0xfb, 0x9f, 0x81, 0xb6, 0x37, 0x8b, 0x30, - 0xe1, 0x01, 0x25, 0xd3, 0xd9, 0x69, 0x51, 0xd8, 0x8c, 0x86, 0xa1, 0x1b, 0xc7, 0x36, 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x3e, 0xad, 0x8f, 0xe9, 0xeb, 0x80, 0xb8, 0x61, - 0x70, 0xaa, 0x7a, 0xde, 0x27, 0x38, 0xc1, 0x2b, 0xa4, 0xc0, 0xca, 0x73, 0x19, 0xc2, 0x9d, 0xf1, - 0x32, 0x59, 0x2f, 0xb7, 0x2b, 0xf7, 0x8e, 0xe4, 0xb6, 0x5c, 0xf7, 0xed, 0xf9, 0xdc, 0x00, 0x17, - 0x73, 0x03, 0xfc, 0x9e, 0x1b, 0xe0, 0x6c, 0x61, 0x94, 0x2e, 0x16, 0x46, 0xe9, 0xe7, 0xc2, 0x28, - 0x7d, 0x7a, 0xee, 0x07, 0x62, 0x92, 0x0c, 0x65, 0x1c, 0xeb, 0x9e, 0xbc, 0x93, 0x7d, 0x7b, 0x9a, - 0xbf, 0x37, 0x62, 0x16, 0x63, 0x3e, 0xac, 0xa9, 0xeb, 0xd9, 0xff, 0x1b, 0x00, 0x00, 0xff, 0xff, - 0x8a, 0x35, 0x1b, 0xf6, 0x26, 0x05, 0x00, 0x00, + // 519 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x94, 0x4f, 0x8b, 0xd3, 0x40, + 0x18, 0xc6, 0x3b, 0x4d, 0xb7, 0xbb, 0x99, 0x42, 0x59, 0x87, 0x45, 0xc2, 0x22, 0x69, 0x28, 0x28, + 0xc5, 0x43, 0x22, 0xbb, 0x7a, 0xf4, 0x60, 0x29, 0xb2, 0xf5, 0x20, 0x9a, 0x15, 0x0f, 0x22, 0x94, + 0xfc, 0x99, 0xa6, 0x83, 0xc9, 0x4c, 0x9c, 0x99, 0x2c, 0xed, 0x7e, 0x0a, 0x3f, 0x88, 0x77, 0xbf, + 0xc2, 0x1e, 0xf7, 0xa6, 0x27, 0x91, 0xf6, 0x8b, 0x48, 0x26, 0x21, 0xd9, 0xed, 0xb6, 0x2e, 0x14, + 0xbc, 0xf5, 0x7d, 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c, 0x34, 0x2d, 0x6d, 0x67, 0x24, 0x77, 0xed, 0x86, 0x6f, 0xaf, 0x96, 0x26, 0xb8, 0x5e, 0x9a, + 0xe0, 0xcf, 0xd2, 0x04, 0xdf, 0x56, 0x66, 0xe3, 0x7a, 0x65, 0x36, 0x7e, 0xad, 0xcc, 0xc6, 0xa7, + 0xe7, 0x11, 0x91, 0xb3, 0xcc, 0xcf, 0x71, 0x6c, 0x7b, 0x98, 0x2e, 0x4e, 0x9d, 0x79, 0xf5, 0x2a, + 0xc8, 0x45, 0x8a, 0x85, 0xdf, 0x56, 0xdf, 0xf7, 0xe9, 0xdf, 0x00, 0x00, 0x00, 0xff, 0xff, 0xe2, + 0x90, 0x6b, 0xc9, 0xcc, 0x04, 0x00, 0x00, } func (m *StateInfoIndex) Marshal() (dAtA []byte, err error) { @@ -451,16 +436,8 @@ func (m *StateInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { copy(dAtA[i:], m.DrsVersion) i = encodeVarintStateInfo(dAtA, i, uint64(len(m.DrsVersion))) i-- - dAtA[i] = 0x5a - } - n1, err1 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo(m.CreatedAt, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(m.CreatedAt):]) - if err1 != nil { - return 0, err1 + dAtA[i] = 0x52 } - i -= n1 - i = encodeVarintStateInfo(dAtA, i, uint64(n1)) - i-- - dAtA[i] = 0x52 { size, err := m.BDs.MarshalToSizedBuffer(dAtA[:i]) if err != nil { @@ -660,8 +637,6 @@ func (m *StateInfo) Size() (n int) { } l = m.BDs.Size() n += 1 + l + sovStateInfo(uint64(l)) - l = github_com_cosmos_gogoproto_types.SizeOfStdTime(m.CreatedAt) - n += 1 + l + sovStateInfo(uint64(l)) l = len(m.DrsVersion) if l > 0 { n += 1 + l + sovStateInfo(uint64(l)) @@ -1047,39 +1022,6 @@ func (m *StateInfo) Unmarshal(dAtA []byte) error { } iNdEx = postIndex case 10: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CreatedAt", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowStateInfo - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthStateInfo - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthStateInfo - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(&m.CreatedAt, dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 11: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field DrsVersion", wireType) }