Documentation ¶
Index ¶
- Constants
- func NewMsgServerImpl(k Keeper) types.MsgServer
- func NewQuerier(k Keeper, legacyQuerierCdc *codec.LegacyAmino) sdk.Querier
- type Keeper
- func (k Keeper) CheckIfOwner(ctx sdk.Context, entityId, ownerAddress string) error
- func (k Keeper) CreateNewAccount(ctx sdk.Context, entityId, name string) (sdk.AccAddress, error)
- func (k Keeper) Delete(ctx sdk.Context, key []byte, prefix []byte)
- func (k Keeper) Entity(c context.Context, req *types.QueryEntityRequest) (*types.QueryEntityResponse, error)
- func (k Keeper) EntityExists(ctx sdk.Context, entityDid string) bool
- func (k Keeper) EntityIidDocument(c context.Context, req *types.QueryEntityIidDocumentRequest) (*types.QueryEntityIidDocumentResponse, error)
- func (k Keeper) EntityList(c context.Context, req *types.QueryEntityListRequest) (*types.QueryEntityListResponse, error)
- func (k Keeper) EntityMetaData(c context.Context, req *types.QueryEntityMetadataRequest) (*types.QueryEntityMetadataResponse, error)
- func (k Keeper) EntityVerified(c context.Context, req *types.QueryEntityVerifiedRequest) (*types.QueryEntityVerifiedResponse, error)
- func (k Keeper) Get(ctx sdk.Context, key []byte, prefix []byte, unmarshal UnmarshalFn) (i interface{}, found bool)
- func (k Keeper) GetAll(ctx sdk.Context, prefix []byte) sdk.Iterator
- func (k Keeper) GetAllEntity(ctx sdk.Context) []types.Entity
- func (k Keeper) GetAllEntityWithCondition(ctx sdk.Context, key []byte, entitySelector func(entity types.Entity) bool) (entities []types.Entity)
- func (k Keeper) GetEntity(ctx sdk.Context, key []byte) (types.Entity, bool)
- func (k Keeper) GetParams(ctx sdk.Context) (params types.Params)
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) Marshal(value interface{}) (bytes []byte)
- func (k Keeper) Params(c context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
- func (k Keeper) ResolveEntity(ctx sdk.Context, entityId string) (iidDocument iidTypes.IidDocument, entity types.Entity, err error)
- func (k Keeper) Set(ctx sdk.Context, key []byte, prefix []byte, i interface{}, marshal MarshalFn)
- func (k Keeper) SetEntity(ctx sdk.Context, key []byte, meta types.Entity)
- func (k Keeper) SetParams(ctx sdk.Context, params *types.Params)
- func (k Keeper) Unmarshal(data []byte, val codec.ProtoMarshaler) bool
- func (k Keeper) UnmarshalEntity(value []byte) (interface{}, bool)
- type MarshalFn
- type UnmarshalFn
Constants ¶
View Source
const (
QueryEntityDoc = "queryEntityDoc"
)
Variables ¶
This section is empty.
Functions ¶
func NewMsgServerImpl ¶
NewMsgServerImpl returns an implementation of the module MsgServer interface for the provided Keeper.
func NewQuerier ¶
func NewQuerier(k Keeper, legacyQuerierCdc *codec.LegacyAmino) sdk.Querier
Types ¶
type Keeper ¶
type Keeper struct { IidKeeper iidkeeper.Keeper WasmKeeper wasmtypes.ContractOpsKeeper WasmViewKeeper wasmtypes.ViewKeeper ParamSpace paramstypes.Subspace AccountKeeper authkeeper.AccountKeeper AuthzKeeper authzkeeper.Keeper // contains filtered or unexported fields }
func NewKeeper ¶
func NewKeeper(cdc codec.BinaryCodec, key sdk.StoreKey, memStoreKey sdk.StoreKey, iidKeeper iidkeeper.Keeper, wasmKeeper wasmkeeper.Keeper, paramSpace paramstypes.Subspace, accountKeeper authkeeper.AccountKeeper, authzKeeper authzkeeper.Keeper) Keeper
func (Keeper) CheckIfOwner ¶
checks if the provided address is the owner on the smart contract
func (Keeper) CreateNewAccount ¶
Create a module account for entity id and name of account as fragemnt in form: did#name
func (Keeper) Entity ¶
func (k Keeper) Entity(c context.Context, req *types.QueryEntityRequest) (*types.QueryEntityResponse, error)
func (Keeper) EntityIidDocument ¶
func (k Keeper) EntityIidDocument(c context.Context, req *types.QueryEntityIidDocumentRequest) (*types.QueryEntityIidDocumentResponse, error)
func (Keeper) EntityList ¶
func (k Keeper) EntityList(c context.Context, req *types.QueryEntityListRequest) (*types.QueryEntityListResponse, error)
func (Keeper) EntityMetaData ¶
func (k Keeper) EntityMetaData(c context.Context, req *types.QueryEntityMetadataRequest) (*types.QueryEntityMetadataResponse, error)
func (Keeper) EntityVerified ¶
func (k Keeper) EntityVerified(c context.Context, req *types.QueryEntityVerifiedRequest) (*types.QueryEntityVerifiedResponse, error)
func (Keeper) Get ¶
func (k Keeper) Get( ctx sdk.Context, key []byte, prefix []byte, unmarshal UnmarshalFn, ) (i interface{}, found bool)
Get gets an item from the store by bytes
func (Keeper) GetAllEntity ¶
GetAllEntity returns all the Entity docs
func (Keeper) GetAllEntityWithCondition ¶
func (k Keeper) GetAllEntityWithCondition( ctx sdk.Context, key []byte, entitySelector func(entity types.Entity) bool, ) (entities []types.Entity)
GetAllEntityWithCondition retrieve a list of entitiy docs by some arbitrary criteria.
func (Keeper) Params ¶
func (k Keeper) Params(c context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
func (Keeper) ResolveEntity ¶
func (k Keeper) ResolveEntity(ctx sdk.Context, entityId string) (iidDocument iidTypes.IidDocument, entity types.Entity, err error)
ResolveEntity returns the Entity and IidDocument
func (Keeper) Unmarshal ¶
func (k Keeper) Unmarshal(data []byte, val codec.ProtoMarshaler) bool
Unmarshal unmarshal a byte slice to a struct, return false in case of errors
func (Keeper) UnmarshalEntity ¶
type MarshalFn ¶
type MarshalFn func(value interface{}) []byte
MarshalFn is a generic function to marshal bytes
type UnmarshalFn ¶
UnmarshalFn is a generic function to unmarshal bytes
Click to show internal directories.
Click to hide internal directories.