token

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2024 License: GPL-3.0, GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Token

type Token big.Int

Token is a decimal number with 18 decimal digits

func MustNew

func MustNew(str string) *Token

MustNew creates an instance of Token from a string

func (*Token) BigInt

func (t *Token) BigInt() *big.Int

BigInt returns big.Int representation

func (Token) MarshalJSON

func (t Token) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaller

func (*Token) String

func (t *Token) String() string

String implements fmt.Stringer

func (*Token) UnmarshalJSON

func (t *Token) UnmarshalJSON(b []byte) error

UnmarshalJSON implements json.Unmarshaller

Jump to

Keyboard shortcuts

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