types

package
v1.14.0 Latest Latest
Warning

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

Go to latest
Published: May 3, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Height

type Height uint32

func HeightFromBytesLE

func HeightFromBytesLE(data []byte) Height

HeightFromBytesLE creates a Height from a byte slice in little-endian format.

func (Height) BytesLE

func (h Height) BytesLE() []byte

BytesLE encodes the height as a byte slice in little-endian format.

func (Height) SafeDecrease

func (h Height) SafeDecrease(count uint32) Height

SafeDecrease returns the result of subtracting other from h, but it returns 0 if the result would be negative.

func (Height) SafeIncrease

func (h Height) SafeIncrease(count uint32) Height

SafeIncrease returns a new Height that is the result of adding count to h.

func (Height) SafeSub

func (h Height) SafeSub(other Height) uint32

SafeSub returns the result of subtracting other from h, but it returns 0 if the result would be negative.

type Round

type Round int16

func RoundFromBytesLE

func RoundFromBytesLE(data []byte) Round

RoundFromBytesLE creates a Round from a byte slice in little-endian format.

func (Round) BytesLE

func (h Round) BytesLE() []byte

BytesLE encodes the Round as a byte slice in little-endian format.

func (Round) SafeDecrease

func (h Round) SafeDecrease(count uint32) Round

SafeDecrease returns the result of subtracting other from h, but it returns 0 if the result would be negative.

func (Round) SafeIncrease

func (h Round) SafeIncrease(count uint32) Round

SafeIncrease returns a new Round that is the result of adding count to h.

func (Round) SafeSub

func (h Round) SafeSub(other Round) uint32

SafeSub returns the result of subtracting other from h, but it returns 0 if the result would be negative.

Directories

Path Synopsis
Package account provides functionality for managing account information.
Package account provides functionality for managing account information.
tx
Package validator provides functionality for managing validator information.
Package validator provides functionality for managing validator information.

Jump to

Keyboard shortcuts

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