tests

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2019 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Receiver          = "Receiver"
	TransferAccAddr   = sdk.AccAddress(crypto.AddressHash([]byte("transferAddress")))
	SenderAccAddr     sdk.AccAddress
	TestTokenDecimals = uint(18)
)

Functions

func GetDepositBoxInfo

func GetDepositBoxInfo() *params.BoxDepositParams

func GetFutureBoxInfo

func GetFutureBoxInfo() *params.BoxFutureParams

func GetLockBoxInfo

func GetLockBoxInfo() *params.BoxLockParams

Types

type IssueKeeper

type IssueKeeper struct {
}

func NewIssueKeeper

func NewIssueKeeper() IssueKeeper

New issue keeper Instance

func (IssueKeeper) GetIssue

func (keeper IssueKeeper) GetIssue(ctx sdk.Context, issueID string) *types.CoinIssueInfo

Returns issue by issueID

type MockHooks added in v0.7.0

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

Wrapper struct

func NewMockHooks added in v0.7.0

func NewMockHooks(bk box.Keeper) MockHooks

Create new box hooks

func (MockHooks) CanSend added in v0.7.0

func (hooks MockHooks) CanSend(ctx sdk.Context, fromAddr sdk.AccAddress, toAddr sdk.AccAddress, amt sdk.Coins) (bool, sdk.Error)

func (MockHooks) CheckMustMemoAddress added in v0.7.0

func (hooks MockHooks) CheckMustMemoAddress(ctx sdk.Context, toAddr sdk.AccAddress, memo string) (bool, sdk.Error)

Jump to

Keyboard shortcuts

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