Documentation ¶
Index ¶
- type FakeCoinParser
- func (parser *FakeCoinParser) GetBaseUnit() string
- func (parser *FakeCoinParser) MustSprintBaseCoin(baseCoin sdk.Int, denom string) string
- func (parser *FakeCoinParser) ParseCoin(s string) (sdk.Coin, error)
- func (parser *FakeCoinParser) ParseCoinToa(s string) (string, error)
- func (parser *FakeCoinParser) ParseCoins(s string) (sdk.Coins, error)
- func (parser *FakeCoinParser) ParseCoinsToa(s string) (string, error)
- func (parser *FakeCoinParser) SprintBaseCoin(baseCoin sdk.Int, denom string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeCoinParser ¶
type FakeCoinParser struct {
// contains filtered or unexported fields
}
FakeCoinParser maintains string to sdk.Coin mapping for testing
func NewFakeCoinParser ¶
func NewFakeCoinParser(mapping map[string]sdk.Coin) *FakeCoinParser
func NewFakeCoinParserWithBaseUnit ¶
func NewFakeCoinParserWithBaseUnit(mapping map[string]sdk.Coin, baseUnit string) *FakeCoinParser
func (*FakeCoinParser) GetBaseUnit ¶
func (parser *FakeCoinParser) GetBaseUnit() string
func (*FakeCoinParser) MustSprintBaseCoin ¶
func (parser *FakeCoinParser) MustSprintBaseCoin(baseCoin sdk.Int, denom string) string
FIXME: NOT IMPLEMENTED
func (*FakeCoinParser) ParseCoin ¶
func (parser *FakeCoinParser) ParseCoin(s string) (sdk.Coin, error)
func (*FakeCoinParser) ParseCoinToa ¶
func (parser *FakeCoinParser) ParseCoinToa(s string) (string, error)
func (*FakeCoinParser) ParseCoins ¶
func (parser *FakeCoinParser) ParseCoins(s string) (sdk.Coins, error)
func (*FakeCoinParser) ParseCoinsToa ¶
func (parser *FakeCoinParser) ParseCoinsToa(s string) (string, error)
func (*FakeCoinParser) SprintBaseCoin ¶
FIXME: NOT IMPLEMENTED
Click to show internal directories.
Click to hide internal directories.