encoding

package
v0.1.37 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2026 License: MIT Imports: 4 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Float64ToRat added in v0.0.13

func Float64ToRat(f float64) (*big.Rat, error)

Float64ToRat converts a float64 to a big.Rat for precise decimal arithmetic. TODO_FUTURE: Consider switching to string representations for tokenomics % allocations since CosmosSDK will deprecate float64 values with zero copy encoding of scalar values. Ref: https://docs.cosmos.network/main/build/rfc/rfc-002-zero-copy-encoding

func NormalizeMorseAddress added in v0.1.17

func NormalizeMorseAddress(morseAddress string) string

NormalizeMorseAddress defines canonical and unambiguous representation for a morse address or module name; upper-case.

func NormalizeTxHashHex

func NormalizeTxHashHex(txHash string) string

NormalizeTxHashHex defines canonical and unambiguous representation for a transaction hash hexadecimal string; lower-case.

func TxHashBytesToNormalizedHex

func TxHashBytesToNormalizedHex(txHash []byte) string

TxHashBytesToNormalizedHex converts a transaction hash bytes to a normalized hexadecimal string representation.

Types

This section is empty.

Jump to

Keyboard shortcuts

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