keeper

package
v0.26.0 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewQuerier

func NewQuerier(k Keeper) sdk.Querier

NewQuerier creates a new querier for ownership clients.

Types

type Keeper

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

Keeper of the ownership store

func NewKeeper

func NewKeeper(cdc *codec.Codec, key sdk.StoreKey, bankKeeper types.BankKeeper) Keeper

NewKeeper creates a ownership keeper

func (Keeper) Delete

func (k Keeper) Delete(ctx sdk.Context, owner sdk.AccAddress, resourceHash hash.Hash) error

Delete deletes an ownership.

func (*Keeper) Import added in v0.25.1

func (k *Keeper) Import(ctx sdk.Context, ownerships []*ownership.Ownership) error

Import imports a list of ownerships into the store.

func (*Keeper) List

func (k *Keeper) List(ctx sdk.Context) ([]*ownership.Ownership, error)

List returns all ownerships.

func (Keeper) Logger

func (k Keeper) Logger(ctx sdk.Context) log.Logger

Logger returns a module-specific logger.

func (Keeper) Set

func (k Keeper) Set(ctx sdk.Context, owner sdk.AccAddress, resourceHash hash.Hash, resource ownership.Ownership_Resource, resourceAddress sdk.AccAddress) (*ownership.Ownership, error)

Set creates a new ownership.

func (Keeper) Withdraw added in v0.21.0

func (k Keeper) Withdraw(ctx sdk.Context, msg types.MsgWithdraw) error

Withdraw try to withdraw coins to owner rom specific resource.

Jump to

Keyboard shortcuts

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