func DepositsKey(proposalID uint64) []byte {
	bz := make([]byte, 8)
	binary.LittleEndian.PutUint64(bz, proposalID)
	return append(DepositsKeyPrefix, bz...)
}
DepositsKey gets the first part of the deposits key based on the proposalID
package types
import (
	"encoding/binary"
	"fmt"
	"time"
	"github.com/Dipper-Labs/Dipper-Protocol/app/protocol"
	sdk "github.com/Dipper-Labs/Dipper-Protocol/types"
)
const (
	ModuleName = protocol.GovModuleName
	StoreKey = ModuleName
	RouterKey = ModuleName
	QuerierRoute = ModuleName
	DefaultParamspace = ModuleName
)
var (
	ProposalsKeyPrefix          = []byte{0x00}
	ActiveProposalQueuePrefix   = []byte{0x01}
	InactiveProposalQueuePrefix = []byte{0x02}
	ProposalIDKey               = []byte{0x03}
	DepositsKeyPrefix = []byte{0x10}
	VotesKeyPrefix = []byte{0x20}
	SoftwareUpgradeKey   = []byte{0x30}
	SoftwareUpgradeValue = []byte{0x00}
)
var lenTime = len(sdk.FormatTimeBytes(time.Now()))
func ProposalKey(proposalID uint64) []byte {
	bz := make([]byte, 8)
	binary.LittleEndian.PutUint64(bz, proposalID)
	return append(ProposalsKeyPrefix, bz...)
}
func ActiveProposalByTimeKey(endTime time.Time) []byte {
	return append(ActiveProposalQueuePrefix, sdk.FormatTimeBytes(endTime)...)
}
func ActiveProposalQueueKey(proposalID uint64, endTime time.Time) []byte {
	bz := make([]byte, 8)
	binary.LittleEndian.PutUint64(bz, proposalID)
	return append(ActiveProposalByTimeKey(endTime), bz...)
}
func InactiveProposalByTimeKey(endTime time.Time) []byte {
	return append(InactiveProposalQueuePrefix, sdk.FormatTimeBytes(endTime)...)
}
func InactiveProposalQueueKey(proposalID uint64, endTime time.Time) []byte {
	bz := make([]byte, 8)
	binary.LittleEndian.PutUint64(bz, proposalID)
	return append(InactiveProposalByTimeKey(endTime), bz...)
}