utils

package
v1.15.0 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MsgsGroupByAddress

func MsgsGroupByAddress(msgs []*types.SignedMessage) map[address.Address][]*types.SignedMessage

func ReadConfig

func ReadConfig(path string, cfg interface{}) error

func SetupLogLevels

func SetupLogLevels()

func StringToTipsetKey

func StringToTipsetKey(str string) (types.TipSetKey, error)

func TryConvertParams

func TryConvertParams(in interface{}) (interface{}, error)

func WriteConfig

func WriteConfig(path string, cfg interface{}) error

func WriteJson

func WriteJson(filePath string, obj interface{}) error

WriteJson original data will be cleared

Types

type NonceMap

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

func NewNonceMap

func NewNonceMap() *NonceMap

func (*NonceMap) Add

func (nonceMap *NonceMap) Add(addr address.Address, val uint64)

func (*NonceMap) Each

func (nonceMap *NonceMap) Each(f func(addr address.Address, val uint64))

func (*NonceMap) Get

func (nonceMap *NonceMap) Get(addr address.Address) (uint64, bool)

func (*NonceMap) Len

func (nonceMap *NonceMap) Len() int

Jump to

Keyboard shortcuts

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