client

package
v0.0.0-...-785a6da Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	UnsignedAccTx    = make(map[[32]byte]*protocol.AccTx)
	UnsignedConfigTx = make(map[[32]byte]*protocol.ConfigTx)
	UnsignedFundsTx  = make(map[[32]byte]*protocol.FundsTx)
)

Functions

func CheckAccount

func CheckAccount(address [64]byte) (*Account, []*FundsTxJson, error)

func GetAccount

func GetAccount(address [64]byte) (*Account, []*FundsTxJson, error)

func InitLogging

func InitLogging()

func Sync

func Sync()

Update allBlockHeaders to the latest header. Start listening to broadcasted headers after.

Types

type Account

type Account struct {
	Address       [64]byte `json:"-"`
	AddressString string   `json:"address"`
	Balance       uint64   `json:"balance"`
	TxCnt         uint32   `json:"txCnt"`
	IsCreated     bool     `json:"isCreated"`
	IsRoot        bool     `json:"isRoot"`
	IsStaking     bool     `json:"isStaking"`
}

func (Account) String

func (acc Account) String() string

type FundsTxJson

type FundsTxJson struct {
	Header byte   `json:"header"`
	Hash   string `json:"hash"`
	Amount uint64 `json:"amount"`
	Fee    uint64 `json:"fee"`
	TxCnt  uint32 `json:"txCnt"`
	From   string `json:"from"`
	To     string `json:"to"`
	Sig1   string `json:"sig1"`
	Sig2   string `json:"sig2"`
	Status string `json:"status"`
}

func ConvertFundsTx

func ConvertFundsTx(fundsTx *protocol.FundsTx, status string) (fundsTxJson *FundsTxJson)

Jump to

Keyboard shortcuts

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