Documentation ¶
Index ¶
- func ChecksEqual(whichChecks, withChecks types.Checks) bool
- func CoinsEqual(whichCoins, withCoins types.Coins) bool
- func CreateNewCheck(chainID, coinAmountStr, nonceStr, password string, dueBlock uint64) types.Check
- type Helper
- func (sh *Helper) BuyCoin(sender sdk.AccAddress, coinToBuy, maxCoinToSell sdk.Coin, ok bool)
- func (sh *Helper) CheckRedeem(sender sdk.AccAddress, check, proof string, ok bool)
- func (sh *Helper) CreateCoin(sender sdk.AccAddress, title, symbol string, crr uint64, ...) types.Coin
- func (sh *Helper) CreateCoinWithContext(ctx sdk.Context, sender sdk.AccAddress, title, symbol string, crr uint64, ...) types.Coin
- func (sh *Helper) GetCoin(symbol string, ok bool)
- func (sh *Helper) Handle(ctx sdk.Context, msg sdk.Msg, ok bool) *sdk.Result
- func (sh *Helper) MultiSendCoin(sender sdk.AccAddress, sends []types.Send, ok bool)
- func (sh *Helper) SellAllCoin(sender sdk.AccAddress, coinToSell, minCoinToBuy sdk.Coin, ok bool)
- func (sh *Helper) SellCoin(sender sdk.AccAddress, coinToSell, maxCoinToBuy sdk.Coin, ok bool)
- func (sh *Helper) SendCoin(sender, receiver sdk.AccAddress, coin sdk.Coin, ok bool)
- func (sh *Helper) UpdateCoin(sender sdk.AccAddress, symbol string, limitVolume sdk.Int, identity string, ...)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ChecksEqual ¶
func CoinsEqual ¶
Types ¶
type Helper ¶
Helper is a structure which wraps the staking handler and provides methods useful in tests
func (*Helper) CheckRedeem ¶
func (sh *Helper) CheckRedeem(sender sdk.AccAddress, check, proof string, ok bool)
CheckRedeem create msg and handle redeem check
func (*Helper) CreateCoin ¶
func (sh *Helper) CreateCoin(sender sdk.AccAddress, title, symbol string, crr uint64, initVolume, initReserve, limitVolume sdk.Int, identity string, ok bool) types.Coin
CreateCoin create msg and handle create coin
func (*Helper) CreateCoinWithContext ¶
func (sh *Helper) CreateCoinWithContext(ctx sdk.Context, sender sdk.AccAddress, title, symbol string, crr uint64, initVolume, initReserve, limitVolume sdk.Int, identity string, ok bool) types.Coin
CreateCoinWithContext create msg and handle create coin with custom context
func (*Helper) MultiSendCoin ¶
MultiSendCoin create msg and handler send coin to other addresses
func (*Helper) SellAllCoin ¶
SellAllCoin create msg and handler sell all coins request
func (*Helper) UpdateCoin ¶
func (sh *Helper) UpdateCoin(sender sdk.AccAddress, symbol string, limitVolume sdk.Int, identity string, ok bool)
UpdateCoin create msg and handle update coin
Click to show internal directories.
Click to hide internal directories.