mock

package
v0.9.8 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package mock contains utilities and types that simulate behaviour of other components of the app, with the possibility to force outputs. outcomes and errors

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Addresses added in v0.3.0

func Addresses() (sdk.AccAddress, sdk.AccAddress)

Types

type Configuration added in v0.9.1

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

func NewConfiguration added in v0.9.1

func NewConfiguration(fees *configuration.Fees, conf *configuration.Config) Configuration

func (Configuration) GetConfiguration added in v0.9.1

func (c Configuration) GetConfiguration(_ sdk.Context) configuration.Config

func (Configuration) GetDomainGracePeriod added in v0.9.1

func (c Configuration) GetDomainGracePeriod(c_ sdk.Context) time.Duration

func (Configuration) GetDomainRenewDuration added in v0.9.1

func (c Configuration) GetDomainRenewDuration(_ sdk.Context) time.Duration

func (Configuration) GetFees added in v0.9.1

func (c Configuration) GetFees(_ sdk.Context) *configuration.Fees

func (Configuration) GetValidDomainNameRegexp added in v0.9.1

func (c Configuration) GetValidDomainNameRegexp(_ sdk.Context) string

func (Configuration) IsOwner added in v0.9.1

func (c Configuration) IsOwner(_ sdk.Context, addr sdk.AccAddress) bool

type SupplyKeeper

type SupplyKeeper interface {
	SendCoinsFromAccountToModule(ctx sdk.Context, addr sdk.AccAddress, moduleName string, coins sdk.Coins) error
}

type SupplyKeeperMock

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

func NewSupplyKeeper

func NewSupplyKeeper() *SupplyKeeperMock

func (*SupplyKeeperMock) Mock

func (s *SupplyKeeperMock) Mock() SupplyKeeper

func (*SupplyKeeperMock) SetSendCoinsFromAccountToModule

func (s *SupplyKeeperMock) SetSendCoinsFromAccountToModule(f func(ctx sdk.Context, addr sdk.AccAddress, moduleName string, coins sdk.Coins) error)

Jump to

Keyboard shortcuts

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