utils

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 9 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OpenDB

func OpenDB(rootDir string) (dbm.DB, error)

func OpenTraceWriter

func OpenTraceWriter(traceWriterFile string) (w io.Writer, err error)

func ParseJsonFromFile

func ParseJsonFromFile[T any](path string) ([]T, error)

ParseJsonFromFile parses a json file into a slice of type T

func RegisterDenoms

func RegisterDenoms(denom, baseDenom string, decimals int64)

RegisterDenoms registers the base and display denominations to the SDK.

func SetPrefixes

func SetPrefixes(config *sdk.Config, accountAddressPrefix string)

Set config for prefixes

func WaitForQuitSignals

func WaitForQuitSignals() server.ErrorCode

WaitForQuitSignals waits for SIGINT and SIGTERM and returns.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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