stats

package
v0.74.0-preview.11 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2024 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Blockchain

type Blockchain struct {
	// contains filtered or unexported fields
}

Blockchain hold stats over all the vega node.

func NewBlockchain

func NewBlockchain() *Blockchain

NewBlockchain instantiate a new Blockchain.

func (*Blockchain) AddCurrentTradesInBatch

func (b *Blockchain) AddCurrentTradesInBatch(i uint64)

func (*Blockchain) AddTotalAmendOrder

func (b *Blockchain) AddTotalAmendOrder(val uint64) uint64

func (*Blockchain) AddTotalCancelOrder

func (b *Blockchain) AddTotalCancelOrder(val uint64) uint64

func (*Blockchain) AddTotalCreateOrder

func (b *Blockchain) AddTotalCreateOrder(val uint64) uint64

AddTotalCreateOrder - increment total created orders.

func (*Blockchain) AddTotalOrders

func (b *Blockchain) AddTotalOrders(val uint64) uint64

AddTotalOrders increment total orders.

func (*Blockchain) AddTotalTrades

func (b *Blockchain) AddTotalTrades(val uint64) uint64

AddTotalTrades increment total trades.

func (Blockchain) AverageOrdersPerBatch

func (b Blockchain) AverageOrdersPerBatch() uint64

AverageOrdersPerBatch returns the average number of orders accepted per blocks.

func (*Blockchain) AverageTxPerBatch

func (b *Blockchain) AverageTxPerBatch() uint64

AverageTxPerBatch return the average number of transaction per block.

func (*Blockchain) AverageTxSizeBytes

func (b *Blockchain) AverageTxSizeBytes() uint64

AverageTxSizeBytes return the average size in bytes of the transaction sent to vega.

func (Blockchain) BlockDuration

func (b Blockchain) BlockDuration() uint64

BlockDuration return the duration it took to generate the last block.

func (Blockchain) CurrentEventsInBatch added in v0.68.0

func (b Blockchain) CurrentEventsInBatch() uint64

func (Blockchain) CurrentOrdersInBatch

func (b Blockchain) CurrentOrdersInBatch() uint64

func (Blockchain) CurrentTradesInBatch

func (b Blockchain) CurrentTradesInBatch() uint64

func (*Blockchain) EventsPerSecond added in v0.68.0

func (b *Blockchain) EventsPerSecond() uint64

func (Blockchain) Hash

func (b Blockchain) Hash() string

func (Blockchain) Height

func (b Blockchain) Height() uint64

Height returns the current heights of the chain.

func (*Blockchain) IncCurrentOrdersInBatch

func (b *Blockchain) IncCurrentOrdersInBatch()

func (*Blockchain) IncHeight

func (b *Blockchain) IncHeight()

IncHeight increment the height of the chain.

func (*Blockchain) IncTotalAmendOrder

func (b *Blockchain) IncTotalAmendOrder()

func (*Blockchain) IncTotalBatches

func (b *Blockchain) IncTotalBatches()

IncTotalBatches increment total batches.

func (*Blockchain) IncTotalCancelOrder

func (b *Blockchain) IncTotalCancelOrder()

func (*Blockchain) IncTotalCreateOrder

func (b *Blockchain) IncTotalCreateOrder()

func (*Blockchain) IncTotalOrders

func (b *Blockchain) IncTotalOrders()

func (*Blockchain) IncTotalTxCurrentBatch

func (b *Blockchain) IncTotalTxCurrentBatch()

func (*Blockchain) IncrementEventCount