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 ¶
- func Addresses() (sdk.AccAddress, sdk.AccAddress)
- type Configuration
- func (c Configuration) GetConfiguration(_ sdk.Context) configuration.Config
- func (c Configuration) GetDomainGracePeriod(c_ sdk.Context) time.Duration
- func (c Configuration) GetDomainRenewDuration(_ sdk.Context) time.Duration
- func (c Configuration) GetFees(_ sdk.Context) *configuration.Fees
- func (c Configuration) GetValidDomainNameRegexp(_ sdk.Context) string
- func (c Configuration) IsOwner(_ sdk.Context, addr sdk.AccAddress) bool
- type SupplyKeeper
- type SupplyKeeperMock
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 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)
Click to show internal directories.
Click to hide internal directories.