Skip to content

Commit

Permalink
mini storage cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
manojkgorle committed Nov 29, 2024
1 parent 22bcb05 commit 74be5fa
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 17 deletions.
16 changes: 0 additions & 16 deletions storage/storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,33 +20,17 @@ const (
// metaDB
txPrefix = 0x0

// TODO: clean up the prefixes below
// stateDB
balancePrefix = 0x0
heightPrefix = 0x4
timestampPrefix = 0x5
feePrefix = 0x6
blockPrefix = 0x9
feeMarketPrefix = 0xa

ArcadiaRegistryPrefix = 0xf2
ArcadiaBidPrefix = 0xf4
GlobalRollupRegistryPrefix = 0xf5
ArcadiaInfoPrefix = 0xf6
)

const (
// ToDO: clean up
BalanceChunks uint16 = 1

// The length of data stored at GlobalRollupRegistryKey and ArcadiaRegistryKey depends on number of rollups registered.
// Each chunk gives a state storage of 64 bytes.
// Its safe to limit the data of state storage for GlobalRollupRegistryKey and ArcadiaRegistryKey to atleast 3 KiB.
GlobalRollupRegistryChunks uint16 = 3 * 16
ArcadiaRegistryChunks uint16 = 3 * 16

// 2 AddressLen* 33 + 1 MaxNameSpaceLen * 32 = 98 bytes
ArcadiaInfoChunks uint16 = 2
)

var (
Expand Down
1 change: 0 additions & 1 deletion storage/structs.go

This file was deleted.

0 comments on commit 74be5fa

Please sign in to comment.