keeper

package
v0.9.3 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Keeper

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

Keeper of the provider store

func NewKeeper

func NewKeeper(cdc codec.BinaryMarshaler, skey sdk.StoreKey) Keeper

NewKeeper creates and returns an instance for Market keeper

func (Keeper) Codec

func (k Keeper) Codec() codec.BinaryMarshaler

Codec returns keeper codec

func (Keeper) CreateCertificate

func (k Keeper) CreateCertificate(ctx sdk.Context, owner sdk.Address, crt []byte, pubkey []byte) error

func (Keeper) GetCertificateByID

func (k Keeper) GetCertificateByID(ctx sdk.Context, id types.CertID) (types.Certificate, bool)

GetCertificateByID returns a provider with given auditor and owner id

func (Keeper) RevokeCertificate

func (k Keeper) RevokeCertificate(ctx sdk.Context, id types.CertID) error

func (Keeper) WithCertificates

func (k Keeper) WithCertificates(ctx sdk.Context, fn func(certificate types.Certificate) bool)

WithCertificates iterates all certificates

func (Keeper) WithCertificatesState

func (k Keeper) WithCertificatesState(ctx sdk.Context, state types.Certificate_State, fn func(certificate types.Certificate) bool)

WithCertificates iterates all certificates

func (Keeper) WithOwner

func (k Keeper) WithOwner(ctx sdk.Context, id sdk.Address, fn func(types.Certificate) bool)

WithOwner iterates all certificates by owner

func (Keeper) WithOwnerState

func (k Keeper) WithOwnerState(ctx sdk.Context, id sdk.Address, state types.Certificate_State, fn func(types.Certificate) bool)

WithOwner iterates all certificates by owner

type Querier

type Querier struct {
	Keeper
}

Querier is used as Keeper will have duplicate methods if used directly, and gRPC names take precedence over keeper

Jump to

Keyboard shortcuts

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