package types

import (
	sdk "github.com/cosmos/cosmos-sdk/types"
)

const (
	ModuleName    = "bandwidth"
	StoreKey      = ModuleName
	TStoreKey     = "transient_bandwidth"
	BandwidthName = "bandwidth"
)

var (
	GlobalStoreKeyPrefix  = []byte{0x00}
	AccountStoreKeyPrefix = []byte{0x01}
	BlockStoreKeyPrefix   = []byte{0x02}
	ParamsKey             = []byte{0x02}

	LastBandwidthPrice = append(GlobalStoreKeyPrefix, []byte("lastBandwidthPrice")...)
	TotalBandwidth     = append(GlobalStoreKeyPrefix, []byte("totalBandwidth")...)
	BlockBandwidth     = append(GlobalStoreKeyPrefix, []byte("blockBandwidth")...)
)

func AccountStoreKey(addr string) []byte {
	return append(AccountStoreKeyPrefix, []byte(addr)...)
}

func BlockStoreKey(blockNumber uint64) []byte {
	return append(BlockStoreKeyPrefix, sdk.Uint64ToBigEndian(blockNumber)...)
}

Synonyms

go-cyber/app/keepers/keys.go
go-cyber/x/rank/types/keys.go
go-cyber/x/dmn/types/keys.go
go-cyber/x/resources/types/keys.go
space-pussy/x/grid/types/keys.go
go-cyber/x/graph/types/keys.go
space-pussy/x/cyberbank/types/keys.go
space-pussy/x/dmn/types/keys.go
go-cyber/x/liquidity/types/keys.go
go-cyber/x/grid/types/keys.go
go-cyber/x/cyberbank/types/keys.go
go-cyber/x/clock/types/keys.go
space-pussy/x/resources/types/keys.go
space-pussy/x/rank/types/keys.go
space-pussy/x/graph/types/keys.go
go-cyber/x/tokenfactory/types/keys.go
space-pussy/x/bandwidth/types/keys.go

Neighbours