Documentation ¶
Index ¶
- func DivByDecimal(v, d any) (*decimal.Decimal, error)
- func EtherToGwei(amount any) (*decimal.Decimal, error)
- func EtherToWei(amount any) (*decimal.Decimal, error)
- func GasFee(gasLimit, gasPrice any) (*decimal.Decimal, error)
- func GasFeeInEth(gasLimit, gasPrice any) (*decimal.Decimal, error)
- func GasFeeInGwei(gasLimit, gasPrice any) (*decimal.Decimal, error)
- func GasFeeInWei(gasLimit, gasPrice any) (*decimal.Decimal, error)
- func GweiToEther(amount any) (*decimal.Decimal, error)
- func GweiToWei(amount any) (*decimal.Decimal, error)
- func MulByDecimal(v, d any) (*decimal.Decimal, error)
- func MustEtherToGwei(amount any) *decimal.Decimal
- func MustEtherToWei(amount any) *decimal.Decimal
- func MustGweiToEther(amount any) *decimal.Decimal
- func MustGweiToWei(amount any) *decimal.Decimal
- func MustToAddress(iaddress any) *common.Address
- func MustWeiToEther(amount any) *decimal.Decimal
- func MustWeiToGwei(amount any) *decimal.Decimal
- func PrettyGasInfo(gasLimit, gasPrice any) (*types.GasInfo, error)
- func ToAddress(iaddress any) (*common.Address, error)
- func ToDecimal(x any) (*decimal.Decimal, error)
- func WeiToEther(amount any) (*decimal.Decimal, error)
- func WeiToGwei(amount any) (*decimal.Decimal, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DivByDecimal ¶
DivByDecimal return x / 10^d
func MulByDecimal ¶
MulByDecimal return x * 10^d
func MustEtherToGwei ¶
func MustEtherToWei ¶
func MustGweiToEther ¶
func MustGweiToWei ¶
func MustToAddress ¶
func MustWeiToEther ¶
func MustWeiToGwei ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.