Documentation ¶
Index ¶
- func NewMsgServerImpl(k Keeper) types.MsgServer
- 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) EntityExists(ctx sdk.Context, entityDid string) bool
- 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) 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 Querier
- func (q Querier) Entity(c context.Context, req *types.QueryEntityRequest) (*types.QueryEntityResponse, error)
- func (q Querier) EntityIidDocument(c context.Context, req *types.QueryEntityIidDocumentRequest) (*types.QueryEntityIidDocumentResponse, error)
- func (q Querier) EntityList(c context.Context, req *types.QueryEntityListRequest) (*types.QueryEntityListResponse, error)
- func (q Querier) EntityMetaData(c context.Context, req *types.QueryEntityMetadataRequest) (*types.QueryEntityMetadataResponse, error)
- func (q Querier) EntityVerified(c context.Context, req *types.QueryEntityVerifiedRequest) (*types.QueryEntityVerifiedResponse, error)
- func (q Querier) Params(c context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
- type UnmarshalFn
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMsgServerImpl ¶
NewMsgServerImpl returns an implementation of the module MsgServer interface for the provided Keeper.
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) 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) 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 Querier ¶
type Querier struct {
Keeper
}
Querier defines a wrapper around the x/entity keeper providing gRPC method handlers.
func NewQuerier ¶
func (Querier) Entity ¶
func (q Querier) Entity(c context.Context, req *types.QueryEntityRequest) (*types.QueryEntityResponse, error)
func (Querier) EntityIidDocument ¶
func (q Querier) EntityIidDocument(c context.Context, req *types.QueryEntityIidDocumentRequest) (*types.QueryEntityIidDocumentResponse, error)
func (Querier) EntityList ¶
func (q Querier) EntityList(c context.Context, req *types.QueryEntityListRequest) (*types.QueryEntityListResponse, error)
func (Querier) EntityMetaData ¶
func (q Querier) EntityMetaData(c context.Context, req *types.QueryEntityMetadataRequest) (*types.QueryEntityMetadataResponse, error)
func (Querier) EntityVerified ¶
func (q Querier) EntityVerified(c context.Context, req *types.QueryEntityVerifiedRequest) (*types.QueryEntityVerifiedResponse, error)
func (Querier) Params ¶
func (q Querier) Params(c context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
type UnmarshalFn ¶
UnmarshalFn is a generic function to unmarshal bytes