wei

package module
v0.0.0-...-1d1de43 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2022 License: MIT Imports: 4 Imported by: 0

README

go-wei

GitHub Workflow Status GitHub Go Reference Coverage Go Report Card

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Wei

type Wei struct {
	// contains filtered or unexported fields
}

func New

func New(val uint64, decimals uint8) Wei

func NewFromBigInt

func NewFromBigInt(val *big.Int, decimals uint8) Wei

func (Wei) BigInt

func (w Wei) BigInt() *big.Int

func (Wei) Ether

func (w Wei) Ether() decimal.Decimal

func (Wei) MarshalJSON

func (w Wei) MarshalJSON() ([]byte, error)

func (*Wei) Scan

func (w *Wei) Scan(src interface{}) error

func (*Wei) SetDecimals

func (w *Wei) SetDecimals(d uint8)

func (*Wei) UnmarshalJSON

func (w *Wei) UnmarshalJSON(b []byte) error

Jump to

Keyboard shortcuts

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