Documentation ¶
Index ¶
- func CalcBlockConfirmationRisk(rawConfirmationRisk *big.Int) *big.Float
- func GetMapSortedKeys(m map[string]interface{}) []string
- func GetObjFileds(obj interface{}) []string
- func GetObjJsonFieldTags(obj interface{}) []string
- func Has0xPrefix(input string) bool
- func HexStringToBytes(hexStr string) (hexutil.Bytes, error)
- func IsNil(i interface{}) bool
- func Keccak256(hexStr string) (string, error)
- func PanicIfErr(err error)
- func PanicIfErrf(err error, msg string, args ...interface{})
- func PrettyJSON(value interface{}) string
- func PrivateKeyToPublicKey(privateKey string) string
- func PublicKeyToCommonAddress(publicKey string) (common.Address, error)
- type RpcError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CalcBlockConfirmationRisk ¶ added in v0.1.1
CalcBlockConfirmationRisk calculates block revert rate
func GetMapSortedKeys ¶ added in v0.1.1
func GetObjFileds ¶ added in v0.1.1
func GetObjFileds(obj interface{}) []string
func GetObjJsonFieldTags ¶ added in v0.1.1
func GetObjJsonFieldTags(obj interface{}) []string
func Has0xPrefix ¶ added in v0.1.1
Has0xPrefix returns true if input starts with '0x' or '0X'
func HexStringToBytes ¶ added in v0.1.1
HexStringToBytes converts hex string to bytes
func PanicIfErr ¶ added in v0.1.1
func PanicIfErr(err error)
PanicIfErr panic and reports error message
func PanicIfErrf ¶ added in v0.1.1
PanicIfErrf panic and reports error message with args
func PrettyJSON ¶ added in v0.1.1
func PrettyJSON(value interface{}) string
PrettyJSON json marshal value and pretty with indent
func PrivateKeyToPublicKey ¶
PrivateKeyToPublicKey calculates public key from private key
Types ¶
Click to show internal directories.
Click to hide internal directories.