Documentation
¶
Index ¶
- Constants
- func NewModule(k *Keeper) module.AppModule
- type Keeper
- func (k *Keeper) Create(req cosmostypes.Request, owner cosmostypes.AccAddress, resourceHash hash.Hash, ...) (*ownership.Ownership, error)
- func (k *Keeper) Delete(req cosmostypes.Request, owner cosmostypes.AccAddress, resourceHash hash.Hash) error
- func (k *Keeper) List(req cosmostypes.Request) ([]*ownership.Ownership, error)
- type SDK
Constants ¶
View Source
const ModuleName = "ownership"
ModuleName is the name of this module.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Keeper ¶ added in v0.18.3
type Keeper struct {
// contains filtered or unexported fields
}
Keeper holds the logic to read and write data.
func NewKeeper ¶ added in v0.18.3
func NewKeeper(storeKey *cosmostypes.KVStoreKey) *Keeper
NewKeeper initialize a new keeper.
func (*Keeper) Create ¶ added in v0.18.3
func (k *Keeper) Create(req cosmostypes.Request, owner cosmostypes.AccAddress, resourceHash hash.Hash, resource ownership.Ownership_Resource) (*ownership.Ownership, error)
Create creates a new ownership.
func (*Keeper) Delete ¶ added in v0.18.3
func (k *Keeper) Delete(req cosmostypes.Request, owner cosmostypes.AccAddress, resourceHash hash.Hash) error
Delete deletes a ownership.
Click to show internal directories.
Click to hide internal directories.