keeper

package
v0.2.2-0...-13ba25a Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	QueryZone         = "queryZone"
	QueryOrganization = "queryOrganization"
	QueryACLAccount   = "queryACLAccount"
)

Variables

This section is empty.

Functions

func NewQuerier

func NewQuerier(k Keeper) cTypes.Querier

Types

type Keeper

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

func NewKeeper

func NewKeeper(storeKey cTypes.StoreKey, accountKeeper aclTypes.AccountKeeper, cdc *codec.Codec) Keeper

func (Keeper) CheckValidGenesisAddress

func (keeper Keeper) CheckValidGenesisAddress(ctx cTypes.Context, address cTypes.AccAddress) bool

func (Keeper) CheckValidOrganizationAddress

func (keeper Keeper) CheckValidOrganizationAddress(ctx cTypes.Context, zoneID aclTypes.ZoneID, organizationID aclTypes.OrganizationID, address cTypes.AccAddress) bool

func (Keeper) CheckValidZoneAddress

func (keeper Keeper) CheckValidZoneAddress(ctx cTypes.Context, id aclTypes.ZoneID, address cTypes.AccAddress) bool

func (Keeper) CheckZoneAndGetACL

func (keeper Keeper) CheckZoneAndGetACL(ctx cTypes.Context, from cTypes.AccAddress, to cTypes.AccAddress) (aclTypes.ACL, cTypes.Error)

CheckZoneAndGetACL : check if the from address is the zone address of the to address and returns back its acl details

func (Keeper) DefineACLAccount

func (keeper Keeper) DefineACLAccount(ctx cTypes.Context, toAddress cTypes.AccAddress, aclAccount aclTypes.ACLAccount) cTypes.Error

func (Keeper) DefineOrganizationAddress

func (keeper Keeper) DefineOrganizationAddress(ctx cTypes.Context, to cTypes.AccAddress,
	organizationID aclTypes.OrganizationID, zoneID aclTypes.ZoneID) cTypes.Error

DefineOrganizationAddress : Define Organization Address

func (Keeper) DefineZoneAddress

func (keeper Keeper) DefineZoneAddress(ctx cTypes.Context, to cTypes.AccAddress, zoneID aclTypes.ZoneID) cTypes.Error

func (Keeper) GetACLAccount

func (keeper Keeper) GetACLAccount(ctx cTypes.Context, address cTypes.AccAddress) (aclTypes.ACLAccount, cTypes.Error)

func (Keeper) GetACLAccounts

func (keeper Keeper) GetACLAccounts(ctx cTypes.Context) []aclTypes.ACLAccount

func (Keeper) GetAccountACLDetails

func (keeper Keeper) GetAccountACLDetails(ctx cTypes.Context, address cTypes.AccAddress) (aclTypes.ACLAccount, cTypes.Error)

func (Keeper) GetOrganization

func (keeper Keeper) GetOrganization(ctx cTypes.Context, id aclTypes.OrganizationID) (aclTypes.Organization, cTypes.Error)

func (Keeper) GetOrganizations

func (keeper Keeper) GetOrganizations(ctx cTypes.Context) []aclTypes.Organization

func (Keeper) GetOrganizationsByZoneID

func (keeper Keeper) GetOrganizationsByZoneID(ctx cTypes.Context, id aclTypes.ZoneID) []aclTypes.Organization

func (Keeper) GetZoneAddress

func (keeper Keeper) GetZoneAddress(ctx cTypes.Context, id aclTypes.ZoneID) (cTypes.AccAddress, cTypes.Error)

func (Keeper) SetACLAccount

func (keeper Keeper) SetACLAccount(ctx cTypes.Context, acl aclTypes.ACLAccount) cTypes.Error

func (Keeper) SetOrganization

func (keeper Keeper) SetOrganization(ctx cTypes.Context, id aclTypes.OrganizationID, organization aclTypes.Organization) cTypes.Error

func (Keeper) SetZoneAddress

func (keeper Keeper) SetZoneAddress(ctx cTypes.Context, id aclTypes.ZoneID, address cTypes.AccAddress) cTypes.Error

Jump to

Keyboard shortcuts

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