Documentation ¶
Index ¶
- func AddInt(a, b int) (int, error)
- func AddInt64(a, b int64) (int64, error)
- func AddUint64(a, b uint64) (uint64, error)
- func Dup(b []byte) []byte
- func EnsureTimeout(tm tm, expected uint64)
- func FromBase58JSON(value []byte, size int, name string) ([]byte, error)
- func FromBase58JSONUnchecked(value []byte, name string) ([]byte, error)
- func FromHexJSON(value []byte, size int, name string) ([]byte, error)
- func FromHexJSONUnchecked(value []byte, name string) ([]byte, error)
- func GetStatePath() (string, error)
- func ReplaceInvalidUtf8Chars(s string) string
- func SetupLogger(level string) (*zap.Logger, *zap.SugaredLogger)
- func ToBase58JSON(b []byte) []byte
- func ToBase64JSON(b []byte) []byte
- func ToHexJSON(b []byte) []byte
- func UnixMillisFromTime(t time.Time) int64
- func UnixMillisToTime(ts int64) time.Time
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnsureTimeout ¶ added in v0.8.0
func EnsureTimeout(tm tm, expected uint64)
EnsureTimeout ensures that no way when expected can be higher than current, but if somehow its happened...
func FromBase58JSONUnchecked ¶ added in v0.10.0
func FromHexJSON ¶ added in v0.10.0
func FromHexJSONUnchecked ¶ added in v0.10.0
func GetStatePath ¶
func ReplaceInvalidUtf8Chars ¶ added in v0.8.0
ReplaceInvalidUtf8Chars replaces invalid utf8 characters with '?' to reproduce JVM behaviour.
func SetupLogger ¶
func SetupLogger(level string) (*zap.Logger, *zap.SugaredLogger)
func ToBase58JSON ¶
func ToBase64JSON ¶ added in v0.6.0
func UnixMillisFromTime ¶ added in v0.10.0
func UnixMillisToTime ¶ added in v0.10.0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.