Documentation ¶
Index ¶
Constants ¶
View Source
const (
ModuleName = "provider"
)
Variables ¶
View Source
var ( ErrInvalidMessage = sdkerrors.Register(ModuleName, 101, "invalid message") ErrDuplicateProvider = sdkerrors.Register(ModuleName, 201, "duplicate provider") ErrProviderNotFound = sdkerrors.Register(ModuleName, 202, "provider not found") )
View Source
var ( ParamsKey = []byte{0x00} ProviderKeyPrefix = []byte{0x10} ActiveProviderKeyPrefix = append(ProviderKeyPrefix, 0x01) InactiveProviderKeyPrefix = append(ProviderKeyPrefix, 0x02) )
Functions ¶
func ActiveProviderKey ¶
func ActiveProviderKey(addr base.ProvAddress) []byte
func InactiveProviderKey ¶
func InactiveProviderKey(addr base.ProvAddress) (v []byte)
func NewErrorDuplicateProvider ¶
func NewErrorDuplicateProvider(addr base.ProvAddress) error
NewErrorDuplicateProvider returns an error indicating that the specified provider already exists.
func NewErrorProviderNotFound ¶
func NewErrorProviderNotFound(addr base.ProvAddress) error
NewErrorProviderNotFound returns an error indicating that the specified provider does not exist.
func NewErrorUnauthorized ¶
NewErrorUnauthorized returns an error indicating that the specified address is not authorized.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.