keeper

package
v0.0.0-...-0407c5b Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2020 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TestingStakeParams = staking.Params{
	UnbondingTime:     100,
	MaxValidators:     10,
	MaxEntries:        10,
	HistoricalEntries: 10,
	BondDenom:         "stake",
}

Functions

func MakeTestCodec

func MakeTestCodec() *codec.Codec

func NewQuerier

func NewQuerier(k Keeper) sdk.Querier

NewQuerier creates a new querier for copyrightedphrases clients.

Types

type Keeper

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

Keeper of the copyrightedphrases store

func NewKeeper

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

NewKeeper creates a copyrightedphrases keeper

func (Keeper) CreateCopyrightedText

func (k Keeper) CreateCopyrightedText(ctx sdk.Context, copyrightedText types.Texts)

CreateCopyrightedText register the copyrighted text.

func (Keeper) DeleteCopyrightedText

func (k Keeper) DeleteCopyrightedText(ctx sdk.Context, key string)

DeleteCopyrightedText deletes a copyrighted text

func (Keeper) Exists

func (k Keeper) Exists(ctx sdk.Context, key string) bool

Check if the key exists in the store

func (Keeper) GetCopyrightedText

func (k Keeper) GetCopyrightedText(ctx sdk.Context, key string) (types.Texts, error)

GetCopyrightedText returns the copyrighted text information

func (Keeper) GetNamesIterator

func (k Keeper) GetNamesIterator(ctx sdk.Context) sdk.Iterator

Get an iterator over all names in which the keys are the names and the values are the copyrightedText

func (Keeper) GetOwner

func (k Keeper) GetOwner(ctx sdk.Context, key string) sdk.AccAddress

Get owner of the item

func (Keeper) Logger

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

Logger returns a module-specific logger.

func (Keeper) SetCopyrightedText

func (k Keeper) SetCopyrightedText(ctx sdk.Context, name string, copyrightedText types.Texts)

SetCopyrightedText sets a copyrightedText

type TestKeepers

type TestKeepers struct {
	AccountKeeper           auth.AccountKeeper
	StakingKeeper           staking.Keeper
	CopyrightedPhraseKeeper Keeper
	DistKeeper              distribution.Keeper
	SupplyKeeper            supply.Keeper
	GovKeeper               gov.Keeper
	BankKeeper              bank.Keeper
}

func CreateTestInput

func CreateTestInput(t *testing.T, isCheckTx bool) (sdk.Context, TestKeepers)

encoders can be nil to accept the defaults, or set it to override some of the message handlers (like default)

Jump to

Keyboard shortcuts

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