Documentation ¶
Index ¶
- func ChecksEqual(whichChecks, withChecks types.Checks) bool
- func CoinsEqual(whichCoins, withCoins []types.Coin) bool
- func CreateNewCheck(chainID, coinStr, 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, denom string, crr uint64, ...) types.Coin
- func (sh *Helper) CreateCoinWithContext(ctx sdk.Context, sender sdk.AccAddress, title, denom string, crr uint64, ...) types.Coin
- func (sh *Helper) GetCoin(denom 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.MultiSendEntry, ok bool)
- func (sh *Helper) QueryCheck(hash []byte) types.Check
- func (sh *Helper) QueryChecks() []types.Check
- func (sh *Helper) QueryCoin(denom string) types.Coin
- func (sh *Helper) QueryCoins() []types.Coin
- func (sh *Helper) QueryParams() types.Params
- func (sh *Helper) SellAllCoin(sender sdk.AccAddress, coinDenomToSell string, minCoinToBuy sdk.Coin, ok bool)
- func (sh *Helper) SellCoin(sender sdk.AccAddress, coinToSell, maxCoinToBuy sdk.Coin, ok bool)
- func (sh *Helper) SendCoin(sender, recipient sdk.AccAddress, coin sdk.Coin, ok bool)
- func (sh *Helper) UpdateCoin(sender sdk.AccAddress, denom string, limitVolume sdkmath.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, denom string, crr uint64, initVolume, initReserve, limitVolume sdkmath.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, denom string, crr uint64, initVolume, initReserve, limitVolume sdkmath.Int, identity string, ok bool) types.Coin
CreateCoinWithContext create msg and handle create coin with custom context
func (*Helper) MultiSendCoin ¶
func (sh *Helper) MultiSendCoin(sender sdk.AccAddress, sends []types.MultiSendEntry, ok bool)
MultiSendCoin create msg and handler send coin to other addresses
func (*Helper) QueryChecks ¶ added in v0.0.8
func (*Helper) QueryCoins ¶ added in v0.0.8
func (*Helper) QueryParams ¶ added in v0.0.8
func (*Helper) SellAllCoin ¶
func (sh *Helper) SellAllCoin(sender sdk.AccAddress, coinDenomToSell string, minCoinToBuy sdk.Coin, ok bool)
SellAllCoin create msg and handler sell all coins request
func (*Helper) UpdateCoin ¶
func (sh *Helper) UpdateCoin(sender sdk.AccAddress, denom string, limitVolume sdkmath.Int, identity string, ok bool)
UpdateCoin create msg and handle update coin
Click to show internal directories.
Click to hide internal directories.