idx

package
v0.0.0-...-59e56fa Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ShortTermGas is short-window settings for gas power
	ShortTermGas = 0
	// LongTermGas is long-window settings for gas power
	LongTermGas = 1
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Block

type Block uint64

Block numeration.

func BytesToBlock

func BytesToBlock(b []byte) Block

BytesToBlock converts bytes to block index.

func (Block) Bytes

func (b Block) Bytes() []byte

Bytes gets the byte representation of the index.

type Epoch

type Epoch uint32

Epoch numeration.

func BytesToEpoch

func BytesToEpoch(b []byte) Epoch

BytesToEpoch converts bytes to epoch index.

func (Epoch) Bytes

func (e Epoch) Bytes() []byte

Bytes gets the byte representation of the index.

type Event

type Event uint32

Event numeration.

func BytesToEvent

func BytesToEvent(b []byte) Event

BytesToEvent converts bytes to event index.

func (Event) Bytes

func (e Event) Bytes() []byte

Bytes gets the byte representation of the index.

type Frame

type Frame uint32

Frame numeration.

func BytesToFrame

func BytesToFrame(b []byte) Frame

BytesToFrame converts bytes to block index.

func (Frame) Bytes

func (f Frame) Bytes() []byte

Bytes gets the byte representation of the index.

type Lamport

type Lamport uint32

Lamport numeration.

func BytesToLamport

func BytesToLamport(b []byte) Lamport

BytesToLamport converts bytes to block index.

func MaxLamport

func MaxLamport(x, y Lamport) Lamport

MaxLamport return max value

func (Lamport) Bytes

func (l Lamport) Bytes() []byte

Bytes gets the byte representation of the index.

type Pack

type Pack uint32

Pack numeration.

func BytesToPack

func BytesToPack(b []byte) Pack

BytesToPack converts bytes to block index.

func (Pack) Bytes

func (p Pack) Bytes() []byte

Bytes gets the byte representation of the index.

type StakerID

type StakerID uint32

StakerID numeration.

func BytesToStakerID

func BytesToStakerID(b []byte) StakerID

BytesToStakerID converts bytes to staker index.

func (StakerID) Bytes

func (s StakerID) Bytes() []byte

Bytes gets the byte representation of the index.

type Txn

type Txn uint32

Txn numeration.

func BytesToTxn

func BytesToTxn(b []byte) Txn

BytesToTxn converts bytes to transaction index.

func (Txn) Bytes

func (t Txn) Bytes() []byte

Bytes gets the byte representation of the index.

type Validator

type Validator uint32

Validator numeration.

func BytesToValidator

func BytesToValidator(b []byte) Validator

BytesToValidator converts bytes to validator index.

func (Validator) Bytes

func (v Validator) Bytes() []byte

Bytes gets the byte representation of the index.

Jump to

Keyboard shortcuts

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