dbtypes

package
v0.0.0-...-80b22ab Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2021 License: AGPL-3.0 Imports: 1 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BlockIsEmpty

func BlockIsEmpty(s *StoreBlock) bool

BlockIsEmpty returns true if block is empty

func EnvelopeIsEmpty

func EnvelopeIsEmpty(e *Envelope) bool

EnvelopeIsEmpty returns true if env is empty

func TxIsEmpty

func TxIsEmpty(s *Transaction) bool

TxIsEmpty returns true if tx is empty

func ValidatorIsEmpty

func ValidatorIsEmpty(v *Validator) bool

ValidatorIsEmpty returns true if validator is empty

Types

type BlockchainInfo

type BlockchainInfo struct {
	Network           string    `json:"Network,omitempty"`
	Version           string    `json:"Version,omitempty"`
	LatestBlockHeight int64     `json:"LatestBlockHeight,omitempty"`
	GenesisTimeStamp  time.Time `json:"GenesisTimeStamp,omitempty"`
	ChainID           string    `json:"ChainID,omitempty"`
	BlockTime         []int32   `json:"BlockTime,omitempty"`
	BlockTimeStamp    int32     `json:"BlockTimeStamp,omitempty"`
	Height            int64     `json:"Height,omitempty"`
	MaxBytes          int64     `json:"MaxBytes,omitempty"`
	Syncing           bool      `json:"syncing,omitempty"`
}

BlockchainInfo mirrors the BlockchainInfo proto type

type Envelope

type Envelope struct {
	EncryptionKeyIndexes []int32 `json:"EncryptionKeyIndexes,omitempty"`
	Nullifier            string  `json:"Nullifier,omitempty"`
	ProcessID            string  `json:"ProcessID,omitempty"`
	Package              []byte  `json:"Package,omitempty"`
	ProcessHeight        int64   `json:"ProcessHeight,omitempty"`
	GlobalHeight         int64   `json:"GlobalHeight,omitempty"`
	TxHeight             int64   `json:"TxHeight,omitempty"`
}

Envelope mirrors the Envelope proto type

type Height

type Height struct {
	Height int64 `json:"Height,omitempty"`
}

Height mirrors the Height proto type

type HeightMap

type HeightMap struct {
	Heights map[string]int64 `json:"heights,omitempty"`
}

type ItemList

type ItemList struct {
	Items [][]byte `json:"items,omitempty"`
}

ItemList mirrors the ItemList proto type

type Process

type Process struct {
	ID          string  `json:"ID,omitempty"`
	EntityID    string  `json:"EntityID,omitempty"`
	LocalHeight *Height `json:"LocalHeight,omitempty"`
}

Process mirrors the Process proto type

type StoreBlock

type StoreBlock struct {
	Hash     []byte    `json:"Hash,omitempty"`
	Height   int64     `json:"Height,omitempty"`
	NumTxs   int64     `json:"NumTxs,omitempty"`
	Time     time.Time `json:"Time,omitempty"`
	Proposer []byte    `json:"Proposer,omitempty"`
}

StoreBlock mirrors the StoreBlock proto type

type Transaction

type Transaction struct {
	Height    int64  `json:"Height,omitempty"`
	Index     uint32 `json:"Index,omitempty"`
	Tx        []byte `json:"Tx,omitempty"`
	TxHeight  int64  `json:"TxHeight,omitempty"`
	Nullifier string `json:"Nullifier,omitempty"`
	Hash      []byte `json:"Hash,omitempty"`
}

Transaction mirrors the Transaction proto type

type Validator

type Validator struct {
	Address          []byte  `json:"Address,omitempty"`
	PubKey           []byte  `json:"PubKey,omitempty"`
	VotingPower      int64   `json:"VotingPower,omitempty"`
	ProposerPriority int64   `json:"ProposerPriority,omitempty"`
	Height           *Height `json:"height,omitempty"`
}

Validator mirrors the Validator proto type

Jump to

Keyboard shortcuts

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