Documentation
¶
Index ¶
- Constants
- func Bytes2Hex(bytes []byte) string
- func Bytes2HexP(bytes []byte) string
- func HasTheSameSign(x, y decimal.Decimal) bool
- func Hex2Bytes(str string) ([]byte, error)
- func MustDecimalToBigInt(d decimal.Decimal) *big.Int
- func SplitAmount(position, amount decimal.Decimal) (close, open decimal.Decimal)
- func String2BigInt(str string) (*big.Int, error)
- func StringToDecimal(str string) (decimal.Decimal, error)
- func ToGwei(n decimal.Decimal) decimal.Decimal
- func ToRate(n decimal.Decimal) decimal.Decimal
- func ToWad(n decimal.Decimal) decimal.Decimal
- type Hash
Constants ¶
View Source
const (
// HashLength is the expected length of the hash
HashLength = 32
)
Variables ¶
This section is empty.
Functions ¶
func HasTheSameSign ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.