func ReportsOfValidatorPrefixKey(reqID RequestID, val sdk.ValAddress) []byte {
	buf := append(ReportStoreKeyPrefix, sdk.Uint64ToBigEndian(uint64(reqID))...)
	buf = append(buf, val.Bytes()...)
	return buf
}
ReportsOfValidatorPrefixKey returns the prefix key to get all reports for a request from a validator.
package types
import (
	sdk "github.com/cosmos/cosmos-sdk/types"
)
const (
	ModuleName = "oracle"
	Version = "bandchain-1"
	StoreKey = ModuleName
	QuerierRoute = ModuleName
	RouterKey = ModuleName
	PortID = ModuleName
)
var (
	RollingSeedSizeInBytes = 32
	GlobalStoreKeyPrefix = []byte{0x00}
	RollingSeedStoreKey = append(GlobalStoreKeyPrefix, []byte("RollingSeed")...)
	RequestCountStoreKey = append(GlobalStoreKeyPrefix, []byte("RequestCount")...)
	RequestLastExpiredStoreKey = append(GlobalStoreKeyPrefix, []byte("RequestLastExpired")...)
	PendingResolveListStoreKey = append(GlobalStoreKeyPrefix, []byte("PendingList")...)
	DataSourceCountStoreKey = append(GlobalStoreKeyPrefix, []byte("DataSourceCount")...)
	OracleScriptCountStoreKey = append(GlobalStoreKeyPrefix, []byte("OracleScriptCount")...)
	RequestStoreKeyPrefix = []byte{0x01}
	ReportStoreKeyPrefix = []byte{0x02}
	DataSourceStoreKeyPrefix = []byte{0x03}
	OracleScriptStoreKeyPrefix = []byte{0x04}
	ValidatorStatusKeyPrefix = []byte{0x05}
	ResultStoreKeyPrefix = []byte{0xff}
	PortKey = []byte{0xf0}
)
func RequestStoreKey(requestID RequestID) []byte {
	return append(RequestStoreKeyPrefix, sdk.Uint64ToBigEndian(uint64(requestID))...)
}
func ReportStoreKey(requestID RequestID) []byte {
	return append(ReportStoreKeyPrefix, sdk.Uint64ToBigEndian(uint64(requestID))...)
}
func DataSourceStoreKey(dataSourceID DataSourceID) []byte {
	return append(DataSourceStoreKeyPrefix, sdk.Uint64ToBigEndian(uint64(dataSourceID))...)
}
func OracleScriptStoreKey(oracleScriptID OracleScriptID) []byte {
	return append(OracleScriptStoreKeyPrefix, sdk.Uint64ToBigEndian(uint64(oracleScriptID))...)
}
func ValidatorStatusStoreKey(v sdk.ValAddress) []byte {
	return append(ValidatorStatusKeyPrefix, v.Bytes()...)
}
func ResultStoreKey(requestID RequestID) []byte {
	return append(ResultStoreKeyPrefix, sdk.Uint64ToBigEndian(uint64(requestID))...)
}