keeper

package
v0.0.0-...-2f51787 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 30, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	QueryOrgData = "org_data"
	QueryOrgs    = "org_list"
	QueryUsers   = "org_users"
)

Variables

This section is empty.

Functions

func NewQuerier

func NewQuerier(keeper Keeper) sdk.Querier

NewQuerier is the module level router for state queries

Types

type Keeper

type Keeper struct {
	// contains filtered or unexported fields
}

func NewKeeper

func NewKeeper(coinKeeper bank.Keeper, storeKey sdk.StoreKey, cdc *codec.Codec) Keeper

func (Keeper) AddUser

func (k Keeper) AddUser(ctx sdk.Context, name string, msg types.MsgAddUser)

Add a user to org metadata

func (Keeper) DeleteOrg

func (k Keeper) DeleteOrg(ctx sdk.Context, name string)

Deletes the entire org metadata struct for a name

func (Keeper) DeleteUser

func (k Keeper) DeleteUser(ctx sdk.Context, name string, msg types.MsgDeleteUser)

Add a user to org metadata

func (Keeper) GetOrgData

func (k Keeper) GetOrgData(ctx sdk.Context, name string) types.Org

Gets the entire org metadata struct for a name

func (Keeper) GetOrgsIterator

func (k Keeper) GetOrgsIterator(ctx sdk.Context) sdk.Iterator

Get an iterator over all names in which the keys are the orgs and the values are the org data

func (Keeper) GetOwner

func (k Keeper) GetOwner(ctx sdk.Context, name string) sdk.AccAddress

func (Keeper) IsNamePresent

func (k Keeper) IsNamePresent(ctx sdk.Context, name string) bool

Check if the name is present in the store or not

func (Keeper) SetOrg

func (k Keeper) SetOrg(ctx sdk.Context, name string, org types.Org)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL