types

package
v0.24.0 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ModeTestNet = "testnet"
	ModeMainNet = "mainnet"
	ModeCustom  = "custom"
)
View Source
const BlockAssemblerCodeHash = "0x9bd7e06f3ecf4be0f2fcd2188b23f1b9fcc88e5d4b65a8637b17723bbda3cce8"
View Source
const HexStrPrefix = "0x"
View Source
const OneCKBShannon = 100000000 // 10^8

Variables

This section is empty.

Functions

This section is empty.

Types

type HexStr

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

func NewHexStr

func NewHexStr(data []byte) *HexStr

func ParseHexStr

func ParseHexStr(hexStr string) (*HexStr, error)

func (*HexStr) Append

func (hs *HexStr) Append(a HexStr) *HexStr

func (*HexStr) AppendBytes

func (hs *HexStr) AppendBytes(bin []byte) *HexStr

func (*HexStr) Bytes

func (hs *HexStr) Bytes() []byte

func (*HexStr) Hex

func (hs *HexStr) Hex() string

func (*HexStr) Len

func (hs *HexStr) Len() int

func (HexStr) ToHexUint64

func (hs HexStr) ToHexUint64() (uint64, error)

type HexUint64

type HexUint64 uint64

func ParseHexUint64

func ParseHexUint64(str string) (*HexUint64, error)

func (HexUint64) BigEndianBytes

func (hexNumber HexUint64) BigEndianBytes(paddingBytes int) []byte

func (HexUint64) Hex

func (hexNumber HexUint64) Hex() string

func (HexUint64) LittleEndianBytes

func (hexNumber HexUint64) LittleEndianBytes(paddingBytes int) []byte

func (HexUint64) LittleEndianString

func (hexNumber HexUint64) LittleEndianString(paddingBytes int) string

func (HexUint64) Uint64

func (hexNumber HexUint64) Uint64() uint64

func (*HexUint64) UnmarshalJSON

func (hexNumber *HexUint64) UnmarshalJSON(data []byte) error

type Mode

type Mode string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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