Documentation ¶
Index ¶
- func NewQuerier(k Keeper) sdk.Querier
- type Cache
- func (c *Cache) DelAdvertisement(key string)
- func (c *Cache) GetAdvertisement(key string) (*types.Advertisement, bool)
- func (c *Cache) GetAllAdvertisements() []*types.Advertisement
- func (c *Cache) PrepareAdvertisements(advertisements []*types.Advertisement)
- func (c *Cache) Reset()
- func (c *Cache) SetAdvertisement(advertisement *types.Advertisement)
- type Keeper
- func (k Keeper) AdvertisementExists(ctx sdk.Context, key string) bool
- func (k Keeper) DeleteAdvertisement(ctx sdk.Context, key string)
- func (k Keeper) Deposit(ctx sdk.Context, key string, from sdk.AccAddress, amount sdk.Coin) error
- func (k Keeper) GetAdvertisement(ctx sdk.Context, key string) (*types.Advertisement, error)
- func (k Keeper) GetAdvertisements(ctx sdk.Context) []*types.Advertisement
- func (k Keeper) GetAdvertisementsFromStore(ctx sdk.Context) []*types.Advertisement
- func (k Keeper) GetSupplyKeeper() types.SupplyKeeper
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) SetAdvertisement(ctx sdk.Context, advertisement *types.Advertisement)
- func (k Keeper) Withdraw(ctx sdk.Context, key string, to sdk.AccAddress, amount sdk.Coin) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewQuerier ¶
NewQuerier creates a new querier for halborn clients.
Types ¶
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
Cache caches data
func (*Cache) DelAdvertisement ¶
func (*Cache) GetAdvertisement ¶
func (c *Cache) GetAdvertisement(key string) (*types.Advertisement, bool)
func (*Cache) GetAllAdvertisements ¶
func (c *Cache) GetAllAdvertisements() []*types.Advertisement
func (*Cache) PrepareAdvertisements ¶
func (c *Cache) PrepareAdvertisements(advertisements []*types.Advertisement)
func (*Cache) SetAdvertisement ¶
func (c *Cache) SetAdvertisement(advertisement *types.Advertisement)
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
Keeper of the halborn store
func (Keeper) AdvertisementExists ¶
Check if the key exists in the store
func (Keeper) DeleteAdvertisement ¶
DeleteAdvertisement deletes a advertisement
func (Keeper) GetAdvertisement ¶
GetAdvertisement returns the advertisement information
func (Keeper) GetAdvertisements ¶
func (k Keeper) GetAdvertisements(ctx sdk.Context) []*types.Advertisement
GetAdvertisements returns all advertisements
func (Keeper) GetAdvertisementsFromStore ¶
func (k Keeper) GetAdvertisementsFromStore(ctx sdk.Context) []*types.Advertisement
GetAdvertisements returns all advertisements from store without cache
func (Keeper) GetSupplyKeeper ¶
func (k Keeper) GetSupplyKeeper() types.SupplyKeeper
GetSupplyKeeper returns supply Keeper
func (Keeper) SetAdvertisement ¶
func (k Keeper) SetAdvertisement(ctx sdk.Context, advertisement *types.Advertisement)
SetAdvertisement sets a advertisement
Click to show internal directories.
Click to hide internal directories.