test

package
v3.3.9 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

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

func (parser *FakeCoinParser) SprintBaseCoin(baseCoin sdk.Int, denom string) (string, error)

FIXME: NOT IMPLEMENTED

Jump to

Keyboard shortcuts

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