Documentation ¶
Index ¶
- func GetDidIDBytes(id string) []byte
- type Keeper
- func (k Keeper) DeleteFromState(ctx *sdk.Context, stateKey string)
- func (k Keeper) GetAllDid(ctx *sdk.Context) (list []types.StateValue)
- func (k Keeper) GetDid(ctx *sdk.Context, id string) (types.StateValue, error)
- func (k Keeper) GetDidCount(ctx *sdk.Context) uint64
- func (k Keeper) GetDidNamespace(ctx *sdk.Context) string
- func (k Keeper) GetFromState(ctx *sdk.Context, stateKey string) string
- func (k Keeper) HasDid(ctx *sdk.Context, id string) bool
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) SetDid(ctx *sdk.Context, stateValue *types.StateValue) error
- func (k Keeper) SetDidCount(ctx *sdk.Context, count uint64)
- func (k Keeper) SetDidNamespace(ctx *sdk.Context, namespace string)
- func (k Keeper) SetToState(ctx *sdk.Context, stateKey string, stateValue []byte)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDidIDBytes ¶
GetDidIDBytes returns the byte representation of the ID
Types ¶
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
func NewKeeper ¶
func NewKeeper(cdc codec.BinaryCodec, storeKey storetypes.StoreKey) *Keeper
func (Keeper) DeleteFromState ¶
DeleteFromState - remove value from State by key
func (Keeper) GetAllDid ¶
func (k Keeper) GetAllDid(ctx *sdk.Context) (list []types.StateValue)
GetAllDid returns all did Loads all DIDs in memory. Use only for genesis export.
func (Keeper) GetDidCount ¶
GetDidCount get the total number of did
func (Keeper) GetDidNamespace ¶
GetDidNamespace get did namespace
func (Keeper) GetFromState ¶
GetFromState - get State value
func (Keeper) SetDid ¶
SetDid set a specific did in the store. Updates DID counter if the DID is new.
func (Keeper) SetDidCount ¶
SetDidCount set the total number of did
func (Keeper) SetDidNamespace ¶
SetDidNamespace set did namespace
Click to show internal directories.
Click to hide internal directories.