types

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: May 6, 2020 License: Apache-2.0 Imports: 7 Imported by: 1 module, 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

View Source
const CommitPrefixLength = 8

Variables

View Source
var KVTxType = []byte("kvTx-")
View Source
var (
	Version = "0.1.6"
)

Functions

func AppName

func AppName() string

func GetCommitVersion

func GetCommitVersion() string

func GetVersion

func GetVersion() string

func InitNodeInfo

func InitNodeInfo(app string)

Types

type KV added in v1.4.1

type KV struct {
	Key   []byte
	Value []byte
}

type KVs added in v1.4.1

type KVs []*KV

type LastBlockInfo

type LastBlockInfo struct {
	Height  int64  `json:"height"`
	AppHash []byte `json:"apphash"`
}

LastBlockInfo used for crash recover

type QueryType

type QueryType = byte
const (
	APIQueryTx                             = iota
	QueryType_Contract           QueryType = 0
	QueryType_Nonce              QueryType = 1
	QueryType_Balance            QueryType = 2
	QueryType_Receipt            QueryType = 3
	QueryType_Existence          QueryType = 4
	QueryType_PayLoad            QueryType = 5
	QueryType_TxRaw              QueryType = 6
	QueryTxLimit                 QueryType = 9
	QueryTypeContractByHeight    QueryType = 10
	QueryType_Key                QueryType = 11
	QueryType_Key_Prefix         QueryType = 12
	QueryType_Pending_Nonce      QueryType = 13
	QueryType_Key_Update_History QueryType = 14
)

type Receipt

type Receipt struct {
	TxHash  common.Hash
	Height  uint64
	Success bool
	Message string
}

Receipt used to record tx execute result

type Transaction

type Transaction struct {
	Data TxData
	// contains filtered or unexported fields
}

Transaction tx

func (*Transaction) DecodeRLP

func (tx *Transaction) DecodeRLP(b []byte) error

DecodeRLP implements rlp.Decoder

func (*Transaction) EncodeRLP

func (tx *Transaction) EncodeRLP() ([]byte, error)

EncodeRLP implements rlp.Encoder

func (*Transaction) Hash

func (tx *Transaction) Hash() (h ethcmn.Hash)

func (*Transaction) SigHash

func (tx *Transaction) SigHash() (h ethcmn.Hash)

type TxData

type TxData struct {
	Caller     ethcmn.Address
	PublicKey  []byte
	Signature  []byte
	TimeStamp  uint64
	CryptoType string
}

Jump to

Keyboard shortcuts

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