coin

package
v1.4.1 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: 0

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