types

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2018 License: Apache-2.0 Imports: 11 Imported by: 3

Documentation

Index

Constants

View Source
const (
	Qos         = int64(1e8)
	BlockReward = int64(0 * Qos)
)

Variables

View Source
var (
	DefaultCLIHome  = os.ExpandEnv("$HOME/.qoscli")
	DefaultNodeHome = os.ExpandEnv("$HOME/.qosd")
)

Functions

func GetDefaultChainId added in v0.0.2

func GetDefaultChainId() (string, error)

Get default chain-id.

Types

type QSC

type QSC = types.BaseCoin

func NewQSC

func NewQSC(name string, amount types.BigInt) *QSC

type QSCs

type QSCs = types.BaseCoins

func ParseCoins added in v0.0.2

func ParseCoins(str string) (btypes.BigInt, QSCs, error)

Parse QOS and QSCs from string str example : 100qos,100qstar

type Validator added in v0.0.2

type Validator struct {
	Name        string         `json:"name""`
	ConsPubKey  crypto.PubKey  `json:"cons_pubkey"`
	Operator    btypes.Address `json:"operator"`
	VotingPower int64          `json:"voting_power"`
	Height      int64          `json:"height"`
}

func NewValidator added in v0.0.2

func NewValidator(name string, consPubKey crypto.PubKey, operator btypes.Address, votingPower int64, height int64) Validator

func (Validator) ToABCIValidator added in v0.0.2

func (val Validator) ToABCIValidator() (abciVal abci.Validator)

Jump to

Keyboard shortcuts

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