Documentation ¶
Index ¶
- type Keeper
- func (k Keeper) Codec() codec.BinaryMarshaler
- func (k Keeper) CreateCertificate(ctx sdk.Context, owner sdk.Address, crt []byte, pubkey []byte) error
- func (k Keeper) GetCertificateByID(ctx sdk.Context, id types.CertID) (types.Certificate, bool)
- func (k Keeper) RevokeCertificate(ctx sdk.Context, id types.CertID) error
- func (k Keeper) WithCertificates(ctx sdk.Context, fn func(certificate types.Certificate) bool)
- func (k Keeper) WithCertificatesState(ctx sdk.Context, state types.Certificate_State, ...)
- func (k Keeper) WithOwner(ctx sdk.Context, id sdk.Address, fn func(types.Certificate) bool)
- func (k Keeper) WithOwnerState(ctx sdk.Context, id sdk.Address, state types.Certificate_State, ...)
- type Querier
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) CreateCertificate ¶
func (Keeper) GetCertificateByID ¶
GetCertificateByID returns a provider with given auditor and owner id
func (Keeper) RevokeCertificate ¶
func (Keeper) WithCertificates ¶
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) 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
func (Querier) Certificates ¶
func (q Querier) Certificates(c context.Context, req *types.QueryCertificatesRequest) (*types.QueryCertificatesResponse, error)
Click to show internal directories.
Click to hide internal directories.