Documentation ¶
Index ¶
- Constants
- func NewQuerier(keeper Keeper) sdk.Querier
- type Keeper
- func (k Keeper) DeleteGiveInfo(ctx sdk.Context, name string)
- func (k Keeper) GetGiveInfo(ctx sdk.Context, name string) types.GiveInfo
- func (k Keeper) GetInfo(ctx sdk.Context, timestamp string, co2 string, co string, ph string, ...)
- func (k Keeper) GetNamesIterator(ctx sdk.Context) sdk.Iterator
- func (k Keeper) GetOwner(ctx sdk.Context, name string) sdk.AccAddress
- func (k Keeper) HasOwner(ctx sdk.Context, name string) bool
- func (k Keeper) IsNamePresent(ctx sdk.Context, name string) bool
- func (k Keeper) SetGiveInfo(ctx sdk.Context, name string, GiveInfo types.GiveInfo)
- func (k Keeper) SetOwner(ctx sdk.Context, timestamp string, co2 string, co string, ph string, ...)
Constants ¶
View Source
const ( //QueryResolve = "resolve" QueryGiveInfo = "GiveInfo" QueryNames = "names" )
query endpoints supported by the smartcity Querier
Variables ¶
This section is empty.
Functions ¶
func NewQuerier ¶
NewQuerier is the module level router for state queries
Types ¶
type Keeper ¶
Keeper maintains the link to storage and exposes getter/setter methods for the various parts of the state machine
func (Keeper) DeleteGiveInfo ¶
Deletes the entire GiveInfo metadata struct for a name
func (Keeper) GetGiveInfo ¶
Gets the entire GiveInfo metadata struct for a name
func (Keeper) GetInfo ¶
func (k Keeper) GetInfo(ctx sdk.Context, timestamp string, co2 string, co string, ph string, turbi string, pays string, region string)
SetInfo - sets the value string that a name resolves to
func (Keeper) GetNamesIterator ¶
Get an iterator over all names in which the keys are the names and the values are the GiveInfo
func (Keeper) IsNamePresent ¶
Check if the name is present in the store or not
func (Keeper) SetGiveInfo ¶
Sets the entire GiveInfo metadata struct for a name
Click to show internal directories.
Click to hide internal directories.