Documentation ¶
Index ¶
- func ErrDeveloperListNotFound() sdk.Error
- func ErrDeveloperNotFound() sdk.Error
- func ErrFailedToMarshalDeveloper(err error) sdk.Error
- func ErrFailedToMarshalDeveloperList(err error) sdk.Error
- func ErrFailedToUnmarshalDeveloper(err error) sdk.Error
- func ErrFailedToUnmarshalDeveloperList(err error) sdk.Error
- func GetDeveloperKey(accKey types.AccountKey) []byte
- func GetDeveloperListKey() []byte
- type Developer
- type DeveloperList
- type DeveloperStorage
- func (ds DeveloperStorage) DeleteDeveloper(ctx sdk.Context, username types.AccountKey) sdk.Error
- func (ds DeveloperStorage) DoesDeveloperExist(ctx sdk.Context, accKey types.AccountKey) bool
- func (ds DeveloperStorage) GetDeveloper(ctx sdk.Context, accKey types.AccountKey) (*Developer, sdk.Error)
- func (ds DeveloperStorage) GetDeveloperList(ctx sdk.Context) (*DeveloperList, sdk.Error)
- func (ds DeveloperStorage) InitGenesis(ctx sdk.Context) error
- func (ds DeveloperStorage) SetDeveloper(ctx sdk.Context, accKey types.AccountKey, developer *Developer) sdk.Error
- func (ds DeveloperStorage) SetDeveloperList(ctx sdk.Context, lst *DeveloperList) sdk.Error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ErrDeveloperListNotFound ¶
ErrDeveloperListNotFound - error if developer list is not found in KVStore
func ErrDeveloperNotFound ¶
ErrDeveloperNotFound - error if developer is not found in KVStore
func ErrFailedToMarshalDeveloper ¶
ErrFailedToMarshalDeveloper - error if marshal developer failed
func ErrFailedToMarshalDeveloperList ¶
ErrFailedToMarshalDeveloperList - error if marshal developer list failed
func ErrFailedToUnmarshalDeveloper ¶
ErrFailedToUnmarshalDeveloper - error if unmarshal developer failed
func ErrFailedToUnmarshalDeveloperList ¶
ErrFailedToUnmarshalDeveloperList - error if unmarshal developer list failed
func GetDeveloperKey ¶
func GetDeveloperKey(accKey types.AccountKey) []byte
GetDeveloperKey - "developer substore" + "developer"
func GetDeveloperListKey ¶
func GetDeveloperListKey() []byte
GetDeveloperListKey - "developerlist substore"
Types ¶
type Developer ¶
type Developer struct { Username types.AccountKey `json:"username"` Deposit types.Coin `json:"deposit"` AppConsumption types.Coin `json:"app_consumption"` Website string `json:"web_site"` Description string `json:"description"` AppMetaData string `json:"app_meta_data"` }
Developer - developer is account with developer deposit, can get developer inflation
type DeveloperList ¶
type DeveloperList struct {
AllDevelopers []types.AccountKey `json:"all_developers"`
}
DeveloperList - list of developers
type DeveloperStorage ¶
type DeveloperStorage struct {
// contains filtered or unexported fields
}
DeveloperStorage - developer storage
func NewDeveloperStorage ¶
func NewDeveloperStorage(key sdk.StoreKey) DeveloperStorage
DeveloperStorage - new developer storage
func (DeveloperStorage) DeleteDeveloper ¶
func (ds DeveloperStorage) DeleteDeveloper(ctx sdk.Context, username types.AccountKey) sdk.Error
DeleteDeveloper - delete developer from KVStore
func (DeveloperStorage) DoesDeveloperExist ¶
func (ds DeveloperStorage) DoesDeveloperExist(ctx sdk.Context, accKey types.AccountKey) bool
DoesDeveloperExist - check if developer in KVStore or not
func (DeveloperStorage) GetDeveloper ¶
func (ds DeveloperStorage) GetDeveloper( ctx sdk.Context, accKey types.AccountKey) (*Developer, sdk.Error)
GetDeveloper - get developer from KVStore
func (DeveloperStorage) GetDeveloperList ¶
func (ds DeveloperStorage) GetDeveloperList(ctx sdk.Context) (*DeveloperList, sdk.Error)
GetDeveloperList - get developer list from KVStore
func (DeveloperStorage) InitGenesis ¶
func (ds DeveloperStorage) InitGenesis(ctx sdk.Context) error
InitGenesis - initialize developer storage
func (DeveloperStorage) SetDeveloper ¶
func (ds DeveloperStorage) SetDeveloper( ctx sdk.Context, accKey types.AccountKey, developer *Developer) sdk.Error
SetDeveloper - set developer to KVStore
func (DeveloperStorage) SetDeveloperList ¶
func (ds DeveloperStorage) SetDeveloperList(ctx sdk.Context, lst *DeveloperList) sdk.Error
SetDeveloperList - set developer list to KVStore