Documentation ¶
Index ¶
- Constants
- func NewEntityProposalHandler(k Keeper) govtypesv1.Handler
- 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) 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) ExportGenesis(ctx sdk.Context) *types.GenesisState
- 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) storetypes.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) InitGenesis(ctx sdk.Context, gs types.GenesisState)
- 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 ¶
const ( EntityNftContractName = "entity_nft" EntityNftContractSymbol = "entity" )
Variables ¶
This section is empty.
Functions ¶
func NewEntityProposalHandler ¶
func NewEntityProposalHandler(k Keeper) govtypesv1.Handler
NewEntityProposalHandler creates a new governance Handler for a ParamChangeProposal
func NewMsgServerImpl ¶
NewMsgServerImpl returns an implementation of the module MsgServer interface for the provided Keeper.
Types ¶
type Keeper ¶
type Keeper struct { IidKeeper types.IidKeeper WasmKeeper types.WasmKeeper WasmViewKeeper types.WasmViewKeeper ParamSpace paramstypes.Subspace AccountKeeper types.AccountKeeper AuthzKeeper types.AuthzKeeper // contains filtered or unexported fields }
func NewKeeper ¶
func NewKeeper( cdc codec.BinaryCodec, key storetypes.StoreKey, iidKeeper types.IidKeeper, wasmKeeper types.WasmKeeper, wasViewKeeper types.WasmViewKeeper, paramSpace paramstypes.Subspace, accountKeeper types.AccountKeeper, authzKeeper types.AuthzKeeper, ) 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) ExportGenesis ¶
func (k Keeper) ExportGenesis(ctx sdk.Context) *types.GenesisState
ExportGenesis returns the x/entity module's exported genesis.
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 entity docs by some arbitrary criteria.
func (Keeper) InitGenesis ¶
func (k Keeper) InitGenesis(ctx sdk.Context, gs types.GenesisState)
InitGenesis initializes the x/entity module's state from a provided genesis state.
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
nolint:staticcheck 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