Documentation
¶
Overview ¶
Package common provides formatting utilities
Package common provides wrapper types for go-ethereum's common types
Index ¶
- Constants
- Variables
- func BigMax(x, y *big.Int) *big.Int
- func BigMin(x, y *big.Int) *big.Int
- func IsHex(str string) bool
- type Address
- type AddressEIP55
- type Hash
- type MixedcaseAddress
- type PrettyAge
- type PrettyBytes
- type PrettyDuration
- type StorageSize
- type U2560
- type UnprefixedAddress
- type UnprefixedHash
Constants ¶
View Source
const ( HashLength = common.HashLength AddressLength = common.AddressLength )
Re-export constants
Variables ¶
View Source
var ( Big0 = common.Big0 Big1 = common.Big1 Big2 = common.Big2 Big3 = common.Big3 Big32 = common.Big32 Big256 = common.Big256 Big257 = common.Big257 )
Re-export common big integers
View Source
var ( BytesToHash = common.BytesToHash BigToHash = common.BigToHash HexToHash = common.HexToHash BytesToAddress = common.BytesToAddress BigToAddress = common.BigToAddress HexToAddress = common.HexToAddress IsHexAddress = common.IsHexAddress Hex2Bytes = common.Hex2Bytes FromHex = common.FromHex CopyBytes = common.CopyBytes LeftPadBytes = common.LeftPadBytes RightPadBytes = common.RightPadBytes TrimLeftZeroes = common.TrimLeftZeroes TrimRightZeroes = common.TrimRightZeroes Bytes2Hex = common.Bytes2Hex NewMixedcaseAddress = common.NewMixedcaseAddress )
Re-export functions
Functions ¶
Types ¶
type AddressEIP55 ¶
Re-export types
type PrettyBytes ¶
type PrettyBytes = common.PrettyBytes
PrettyBytes is a wrapper for byte sizes for pretty printing
type PrettyDuration ¶
type PrettyDuration = common.PrettyDuration
PrettyDuration is a wrapper for time.Duration for pretty printing
Directories
¶
| Path | Synopsis |
|---|---|
|
Package bitutil provides wrapper types for go-ethereum's bitutil implementation
|
Package bitutil provides wrapper types for go-ethereum's bitutil implementation |
|
Package compiler provides compatibility layer for removed compiler functionality
|
Package compiler provides compatibility layer for removed compiler functionality |
|
Package hexutil provides wrapper types for go-ethereum's hexutil implementation
|
Package hexutil provides wrapper types for go-ethereum's hexutil implementation |
|
Package lru provides wrapper types for go-ethereum's lru implementation
|
Package lru provides wrapper types for go-ethereum's lru implementation |
|
Package math provides wrapper types for go-ethereum's math implementation
|
Package math provides wrapper types for go-ethereum's math implementation |
|
Package prque provides wrapper types for go-ethereum's prque implementation
|
Package prque provides wrapper types for go-ethereum's prque implementation |
Click to show internal directories.
Click to hide internal directories.