Documentation
¶
Index ¶
- Constants
- func NewModule(k *Keeper) module.AppModule
- type Keeper
- func (k *Keeper) Create(request cosmostypes.Request, msg *msgCreateService) (*service.Service, error)
- func (k *Keeper) Exists(request cosmostypes.Request, hash hash.Hash) (bool, error)
- func (k *Keeper) Get(request cosmostypes.Request, hash hash.Hash) (*service.Service, error)
- func (k *Keeper) Hash(serviceRequest *api.CreateServiceRequest) hash.Hash
- func (k *Keeper) List(request cosmostypes.Request) ([]*service.Service, error)
- type SDK
- func (s *SDK) Create(req *api.CreateServiceRequest) (*service.Service, error)
- func (s *SDK) Exists(hash hash.Hash) (bool, error)
- func (s *SDK) Get(hash hash.Hash) (*service.Service, error)
- func (s *SDK) Hash(req *api.CreateServiceRequest) (hash.Hash, error)
- func (s *SDK) List() ([]*service.Service, error)
Constants ¶
View Source
const ModuleName = "service"
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, ownerships *ownershipsdk.Keeper) *Keeper
NewKeeper initialize a new keeper.
func (*Keeper) Create ¶ added in v0.18.3
func (k *Keeper) Create(request cosmostypes.Request, msg *msgCreateService) (*service.Service, error)
Create creates a new service.
func (*Keeper) Exists ¶ added in v0.18.3
Exists returns true if a specific set of data exists in the database, false otherwise
type SDK ¶ added in v0.15.0
type SDK struct {
// contains filtered or unexported fields
}
SDK is the service sdk.
Click to show internal directories.
Click to hide internal directories.