helpers

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2022 License: Apache-2.0 Imports: 9 Imported by: 11

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatConsensusDenomination

func FormatConsensusDenomination(net *config.Network, amount types.Quantity) string

FormatConsensusDenomination formats the given base unit amount as a consensus layer denomination.

func FormatParaTimeDenomination

func FormatParaTimeDenomination(pt *config.ParaTime, amount types.BaseUnits) string

FormatParaTimeDenomination formats the given base unit amount as a ParaTime denomination.

func ParseConsensusDenomination

func ParseConsensusDenomination(net *config.Network, amount string) (*types.Quantity, error)

ParseConsensusDenomination parses an amount for the consensus layer denomination.

func ParseParaTimeDenomination

func ParseParaTimeDenomination(pt *config.ParaTime, amount string, denom types.Denomination) (*types.BaseUnits, error)

ParseParaTimeDenomination parses an amount for the given ParaTime denomination.

func ResolveAddress

func ResolveAddress(net *config.Network, address string) (*types.Address, error)

ResolveAddress resolves a string address into the corresponding account address.

Types

This section is empty.

Jump to

Keyboard shortcuts

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