coin

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2025 License: MIT Imports: 6 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CoinType_name = map[int32]string{
	0: "PELL",
	1: "GAS",
	2: "ERC20",
	3: "CMD",
}
View Source
var CoinType_value = map[string]int32{
	"PELL":  0,
	"GAS":   1,
	"ERC20": 2,
	"CMD":   3,
}

Functions

func GetApellDecFromAmountInPell

func GetApellDecFromAmountInPell(pellAmount string) (math.LegacyDec, error)

Types

type CoinType

type CoinType int32

CoinType represents the type of coin

const (
	// Pell coin
	CoinType_PELL CoinType = 0
	// Gas coin
	CoinType_GAS CoinType = 1
	// ERC20 token
	CoinType_ERC20 CoinType = 2
	// not a real coin, rather a command
	CoinType_CMD CoinType = 3
)

func GetCoinType

func GetCoinType(coin string) (CoinType, error)

func (CoinType) EnumDescriptor

func (CoinType) EnumDescriptor() ([]byte, []int)

func (CoinType) String

func (x CoinType) String() string

Jump to

Keyboard shortcuts

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