coins

package
v2.0.0-beta.7 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsZero

func IsZero[T withAmount](coins []T) (bool, error)

IsZero check if given coins are zero.

func ParseCoin

func ParseCoin(input string) (*basev1beta1.Coin, error)

ParseCoin parses a coin from a string. The string must be in the format <amount><denom>, where <amount> is a number and <denom> is a valid denom.

func ParseCoinsNormalized

func ParseCoinsNormalized(coins string) ([]*base.Coin, error)

func ParseDecCoin

func ParseDecCoin(input string) (*basev1beta1.DecCoin, error)

ParseDecCoin parses a decCoin from a string. The string must be in the format <amount><denom>, where <amount> is a number and <denom> is a valid denom.

func ParseDecCoins

func ParseDecCoins(coins string) ([]*base.DecCoin, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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