keeper

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2020 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TestAddress, _ = sdk.AccAddressFromBech32("cosmos1lwmppctrr6ssnrmuyzu554dzf50apkfvd53jx0")

Testing variables

Functions

func NewQuerier

func NewQuerier(keeper Keeper) sdk.Querier

NewQuerier is the module level router for state queries

Types

type Keeper

type Keeper struct {
	StoreKey sdk.StoreKey
	// contains filtered or unexported fields
}

func NewKeeper

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

func SetupTestInput

func SetupTestInput() (cdc *codec.Codec, ctx sdk.Context, keeper Keeper)

This function create an environment to test modules

func (Keeper) GetGovernmentAddress

func (keeper Keeper) GetGovernmentAddress(ctx sdk.Context) sdk.AccAddress

GetGovernmentAddress returns the address that the government has currently

func (Keeper) SetGovernmentAddress

func (keeper Keeper) SetGovernmentAddress(ctx sdk.Context, address sdk.AccAddress) error

SetGovernmentAddress allows to set the given address as the one that the government will use later

type QueryGovernmentResponse added in v1.5.0

type QueryGovernmentResponse struct {
	GovernmentAddress string `json:"government_address"`
}

Jump to

Keyboard shortcuts

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