Documentation ¶
Index ¶
- type BigInt
- func (b *BigInt) Add(n *big.Int)
- func (b BigInt) Equals(n *big.Int) bool
- func (b BigInt) Gt(n *big.Int) bool
- func (b BigInt) Gte(n *big.Int) bool
- func (b BigInt) Int() *big.Int
- func (b BigInt) Int64() int64
- func (b BigInt) Lt(n *big.Int) bool
- func (b BigInt) Lte(n *big.Int) bool
- func (b BigInt) MarshalJSON() ([]byte, error)
- func (b BigInt) MarshalText() ([]byte, error)
- func (b *BigInt) Scan(src interface{}) error
- func (b BigInt) String() string
- func (b *BigInt) Sub(n *big.Int)
- func (b BigInt) Uint64() uint64
- func (b *BigInt) UnmarshalJSON(text []byte) error
- func (b *BigInt) UnmarshalText(text []byte) error
- func (b BigInt) Value() (driver.Value, error)
- type Hash
- func (h *Hash) Hash() common.Hash
- func (h Hash) IsValidAddress() bool
- func (h Hash) IsValidTxnHash() bool
- func (h Hash) IsZeroValue() bool
- func (h *Hash) MarshalText() ([]byte, error)
- func (h *Hash) Scan(src interface{}) error
- func (h Hash) String() string
- func (h Hash) ToAddress() common.Address
- func (h Hash) ToHash() common.Hash
- func (h *Hash) UnmarshalText(src []byte) error
- func (h Hash) Value() (driver.Value, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BigInt ¶
BigInt is a type alias for big.Int used for JSON/Database marshalling.
For JSON values we encoded BigInt's as strings.
For Database values we encoded BigInt's as NUMERIC(78).
func ToBigIntArray ¶
func ToBigIntFromInt64 ¶
func (BigInt) MarshalJSON ¶
MarshalJSON implements json.Marshaler
func (BigInt) MarshalText ¶
MarshalText implements encoding.TextMarshaler.
func (*BigInt) UnmarshalJSON ¶
UnmarshalJSON implements json.Unmarshaler
func (*BigInt) UnmarshalText ¶
UnmarshalText implements encoding.TextUnmarshaler.
type Hash ¶
type Hash string
Hash is a type alias for common.Hash used for data normalization with JSON/Database marshalling.
func HashFromString ¶
func (Hash) IsValidAddress ¶
func (Hash) IsValidTxnHash ¶
func (Hash) IsZeroValue ¶
func (*Hash) MarshalText ¶
UnmarshalText implements encoding.TextMarshaler.
func (*Hash) UnmarshalText ¶
UnmarshalText implements encoding.TextUnmarshaler.
Click to show internal directories.
Click to hide internal directories.