coin

package
v0.0.0-...-08ff881 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CoinType_name = map[int32]string{
	0: "Zeta",
	1: "Gas",
	2: "ERC20",
	3: "Cmd",
	4: "NoAssetCall",
}
View Source
var CoinType_value = map[string]int32{
	"Zeta":        0,
	"Gas":         1,
	"ERC20":       2,
	"Cmd":         3,
	"NoAssetCall": 4,
}

Functions

func AzetaPerZeta

func AzetaPerZeta() sdk.Dec

func GetAzetaDecFromAmountInZeta

func GetAzetaDecFromAmountInZeta(zetaAmount string) (sdk.Dec, error)

Types

type CoinType

type CoinType int32
const (
	CoinType_Zeta        CoinType = 0
	CoinType_Gas         CoinType = 1
	CoinType_ERC20       CoinType = 2
	CoinType_Cmd         CoinType = 3
	CoinType_NoAssetCall CoinType = 4
)

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