ownershipsdk

package
v0.18.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 5, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const ModuleName = "ownership"

ModuleName is the name of this module.

Variables

This section is empty.

Functions

func NewModule added in v0.18.3

func NewModule(k *Keeper) module.AppModule

NewModule returns the module of this sdk.

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.

func (*Keeper) List added in v0.18.3

func (k *Keeper) List(req cosmostypes.Request) ([]*ownership.Ownership, error)

List returns all ownerships.

type SDK

type SDK struct {
	// contains filtered or unexported fields
}

SDK is the ownership sdk.

func New

func New(client *cosmos.Client) *SDK

New returns the ownership sdk.

func (*SDK) List

func (s *SDK) List() ([]*ownership.Ownership, error)

List returns all ownerships.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL