storjtoken

package
v0.0.0-...-b4d4280 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2024 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Overview

Package storjtoken provides STORJ token related functionality

Index

Constants

This section is empty.

Variables

View Source
var (
	// DefaultContractAddress is the address of the STORJ Token Contract
	// on the Ethereum network.
	DefaultContractAddress = common.HexToAddress("0xb64ef51c888972c908cfacf59b47c1afbc0ab8ac")

	// DefaultChainID is the chain id for Mainnet:
	// https://github.com/ethereum/EIPs/blob/master/EIPS/eip-155.md#list-of-chain-ids
	DefaultChainID = big.NewInt(0x1)
)

Functions

func FromUSD

func FromUSD(usd, price decimal.Decimal, decimals int32) *big.Int

FromUSD converts from USD to STORJ WEI, at the given price (rounded down).

func Pretty

func Pretty(token *big.Int, digits int32) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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