Documentation ¶
Index ¶
- func FormatConsensusDenomination(net *config.Network, amount types.Quantity) string
- func FormatParaTimeDenomination(pt *config.ParaTime, amount types.BaseUnits) string
- func ParseConsensusDenomination(net *config.Network, amount string) (*types.Quantity, error)
- func ParseParaTimeDenomination(pt *config.ParaTime, amount string, denom types.Denomination) (*types.BaseUnits, error)
- func ResolveAddress(net *config.Network, address string) (*types.Address, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatConsensusDenomination ¶
FormatConsensusDenomination formats the given base unit amount as a consensus layer denomination.
func FormatParaTimeDenomination ¶
FormatParaTimeDenomination formats the given base unit amount as a ParaTime denomination.
func ParseConsensusDenomination ¶
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.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.