Documentation ¶
Index ¶
- func ErrFailedToMarshalInfraProvider(err error) sdk.Error
- func ErrFailedToMarshalInfraProviderList(err error) sdk.Error
- func ErrFailedToUnmarshalInfraProvider(err error) sdk.Error
- func ErrFailedToUnmarshalInfraProviderList(err error) sdk.Error
- func ErrInfraProviderListNotFound() sdk.Error
- func ErrInfraProviderNotFound() sdk.Error
- func GetInfraProviderKey(accKey types.AccountKey) []byte
- func GetInfraProviderListKey() []byte
- type InfraProvider
- type InfraProviderList
- type InfraProviderStorage
- func (is InfraProviderStorage) DoesInfraProviderExist(ctx sdk.Context, accKey types.AccountKey) bool
- func (is InfraProviderStorage) GetInfraProvider(ctx sdk.Context, accKey types.AccountKey) (*InfraProvider, sdk.Error)
- func (is InfraProviderStorage) GetInfraProviderList(ctx sdk.Context) (*InfraProviderList, sdk.Error)
- func (is InfraProviderStorage) InitGenesis(ctx sdk.Context) error
- func (is InfraProviderStorage) SetInfraProvider(ctx sdk.Context, accKey types.AccountKey, InfraProvider *InfraProvider) sdk.Error
- func (is InfraProviderStorage) SetInfraProviderList(ctx sdk.Context, lst *InfraProviderList) sdk.Error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ErrFailedToMarshalInfraProvider ¶
marshal error
func ErrFailedToUnmarshalInfraProvider ¶
unmarshal error
func GetInfraProviderKey ¶
func GetInfraProviderKey(accKey types.AccountKey) []byte
func GetInfraProviderListKey ¶
func GetInfraProviderListKey() []byte
Types ¶
type InfraProvider ¶
type InfraProvider struct { Username types.AccountKey `json:"username"` Usage int64 `json:"usage"` }
type InfraProviderList ¶
type InfraProviderList struct {
AllInfraProviders []types.AccountKey `json:"all_infra_providers"`
}
type InfraProviderStorage ¶
type InfraProviderStorage struct {
// contains filtered or unexported fields
}
func NewInfraProviderStorage ¶
func NewInfraProviderStorage(key sdk.StoreKey) InfraProviderStorage
func (InfraProviderStorage) DoesInfraProviderExist ¶
func (is InfraProviderStorage) DoesInfraProviderExist(ctx sdk.Context, accKey types.AccountKey) bool
func (InfraProviderStorage) GetInfraProvider ¶
func (is InfraProviderStorage) GetInfraProvider( ctx sdk.Context, accKey types.AccountKey) (*InfraProvider, sdk.Error)
func (InfraProviderStorage) GetInfraProviderList ¶
func (is InfraProviderStorage) GetInfraProviderList(ctx sdk.Context) (*InfraProviderList, sdk.Error)
func (InfraProviderStorage) InitGenesis ¶
func (is InfraProviderStorage) InitGenesis(ctx sdk.Context) error
func (InfraProviderStorage) SetInfraProvider ¶
func (is InfraProviderStorage) SetInfraProvider( ctx sdk.Context, accKey types.AccountKey, InfraProvider *InfraProvider) sdk.Error
func (InfraProviderStorage) SetInfraProviderList ¶
func (is InfraProviderStorage) SetInfraProviderList(ctx sdk.Context, lst *InfraProviderList) sdk.Error
Click to show internal directories.
Click to hide internal directories.