util

package
v0.0.0-...-ae82b82 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BTCValueToUSD

func BTCValueToUSD(satsValue *types.BigInt) float64

func BlockHeightString

func BlockHeightString(height int64) string

func FormatNumber

func FormatNumber(number string) string

func FutureBlock

func FutureBlock(height int64, lastBlock int64) types.Block

func GitCommit

func GitCommit() string

func HexToASCII

func HexToASCII(hexstring string) string

func Int64ToBTC

func Int64ToBTC(sats int64) *types.BigInt

func IsScriptInBurnScripts

func IsScriptInBurnScripts(script string, burnScripts []types.BurnScript) bool

func IsScriptInNotes

func IsScriptInNotes(script string, noteList []notes.Note) bool

func NoEscapeHTML

func NoEscapeHTML(str string) template.HTML

func PrettyDuration

func PrettyDuration(t time.Time, significantPlaces int) string

func PrettyPrintJSON

func PrettyPrintJSON(data interface{}) (string, error)

func RevaluePriceWithAdjustedSupply

func RevaluePriceWithAdjustedSupply(expectedSupply, circulatingSupply *types.BigInt, currentPrice float64) float64

Types

This section is empty.

Jump to

Keyboard shortcuts

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