encoding

package
v0.1.31 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2026 License: MIT Imports: 4 Imported by: 0

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