Documentation ¶
Index ¶
- Variables
- type Adam
- func (l *Adam) Add(x, y *Adam) *Adam
- func (l *Adam) Cmp(y *Adam) int
- func (l *Adam) IsZero() bool
- func (l Adam) MarshalJSON() ([]byte, error)
- func (l *Adam) MarshalText() ([]byte, error)
- func (l *Adam) Scan(value interface{}) error
- func (l *Adam) Set(x *Adam) *Adam
- func (l *Adam) SetInt64(w int64) *Adam
- func (l *Adam) SetString(s string, base int) (*Adam, bool)
- func (l *Adam) String() string
- func (*Adam) Symbol() string
- func (l *Adam) Text(base int) string
- func (l *Adam) ToHash() common.Hash
- func (l *Adam) ToInt() *big.Int
- func (l *Adam) UnmarshalJSON(data []byte) error
- func (l *Adam) UnmarshalText(text []byte) error
- func (l Adam) Value() (driver.Value, error)
- type Eth
- func (e *Eth) Cmp(y *Eth) int
- func (e *Eth) IsZero() bool
- func (e Eth) MarshalJSON() ([]byte, error)
- func (e *Eth) MarshalText() ([]byte, error)
- func (e *Eth) Scan(value interface{}) error
- func (e *Eth) SetInt64(w int64) *Eth
- func (e *Eth) SetString(s string, base int) (*Eth, bool)
- func (e *Eth) String() string
- func (*Eth) Symbol() string
- func (e *Eth) ToInt() *big.Int
- func (e *Eth) UnmarshalJSON(data []byte) error
- func (e *Eth) UnmarshalText(text []byte) error
- func (e Eth) Value() (driver.Value, error)
Constants ¶
This section is empty.
Variables ¶
var ErrNoQuotesForCurrency = errors.New("cannot unmarshal json.Number into currency")
Functions ¶
This section is empty.
Types ¶
type Adam ¶
Adam contains a field to represent the smallest units of ADAM
func (Adam) MarshalJSON ¶
MarshalJSON implements the json.Marshaler interface.
func (*Adam) MarshalText ¶
MarshalText implements the encoding.TextMarshaler interface.
func (*Adam) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaler interface.
func (*Adam) UnmarshalText ¶
UnmarshalText implements the encoding.TextUnmarshaler interface.
type Eth ¶
Eth contains a field to represent the smallest units of ETH
func NewEthValue ¶
NewEthValue returns a new struct to represent ETH from it's smallest unit (wei)
func NewEthValueS ¶
NewEthValueS returns a new struct to represent ETH from a string value of Eth (not wei)
func (Eth) MarshalJSON ¶
MarshalJSON implements the json.Marshaler interface.
func (*Eth) MarshalText ¶
MarshalText implements the encoding.TextMarshaler interface.
func (*Eth) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaler interface.
func (*Eth) UnmarshalText ¶
UnmarshalText implements the encoding.TextUnmarshaler interface.