testgov

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Helper

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

Helper is a structure which wraps the staking handler and provides methods useful in tests

func NewHelper

func NewHelper(t *testing.T, ctx sdk.Context, k gov.Keeper, denom string) *Helper

NewHelper creates staking Handler wrapper for tests

func (*Helper) Handle

func (gh *Helper) Handle(msg sdk.Msg, ok bool) *sdk.Result

Handle calls shield handler on a given message

func (*Helper) ShieldClaimProposal

func (gh *Helper) ShieldClaimProposal(proposer sdk.AccAddress, loss int64, poolID, purchaseID uint64, ok bool) *sdk.Result

func (*Helper) TurnBlock

func (sh *Helper) TurnBlock(ctx sdk.Context)

TurnBlock updates context and calls endblocker.

Jump to

Keyboard shortcuts

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