Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CertificateKey ¶ added in v0.38.0
CertificateKey creates a store key of the format: prefix_bytes | owner_address_len (1 byte) | owner_address_bytes | serial_bytes
func CertificateKeyLegacy ¶ added in v0.38.0
CertificateKeyLegacy creates a store key of the format: prefix_bytes | owner_address_len (1 byte) | owner_address_bytes | serial_bytes
func CertificatePrefix ¶
Types ¶
type Keeper ¶
type Keeper interface {
Querier() types.QueryServer
Codec() codec.BinaryCodec
StoreKey() sdk.StoreKey
CreateCertificate(sdk.Context, sdk.Address, []byte, []byte) error
RevokeCertificate(sdk.Context, types.CertID) error
GetCertificateByID(ctx sdk.Context, id types.CertID) (types.CertificateResponse, bool)
WithCertificates(ctx sdk.Context, fn func(id types.CertID, certificate types.CertificateResponse) bool)
WithCertificatesState(ctx sdk.Context, state types.Certificate_State, fn func(certificate types.CertificateResponse) bool)
WithOwner(ctx sdk.Context, id sdk.Address, fn func(types.CertificateResponse) bool)
WithOwnerState(ctx sdk.Context, id sdk.Address, state types.Certificate_State, fn func(types.CertificateResponse) bool)
}
Keeper of the provider store
Click to show internal directories.
Click to hide internal directories.