Documentation ¶
Index ¶
- func BipToPip(bip sdkmath.Int) sdkmath.Int
- func CalcHashSHA256(str string) []byte
- func DecToDecWithE18(dec sdk.Dec) sdk.Dec
- func DecToIntWithE18(dec sdk.Dec) sdkmath.Int
- func DurationToString(d time.Duration) string
- func EtherToWei(ether sdkmath.Int) sdkmath.Int
- func FinneyToWei(finney sdkmath.Int) sdkmath.Int
- func GetReserveLimitFromCRR(crr uint) sdkmath.Int
- func JoinAccAddresses(values []sdk.AccAddress) string
- func JoinUints64(values []uint64) string
- func WeiToEther(wei sdkmath.Int) sdkmath.Int
- func WeiToFinney(wei sdkmath.Int) sdkmath.Int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CalcHashSHA256 ¶ added in v0.0.8
CalcHashSHA256 returns sha256 hash (32 bytes) calculated from specified string.
func DecToDecWithE18 ¶ added in v0.0.8
DecToDecWithE18 converts Dec to Dec*10^18.
func DecToIntWithE18 ¶ added in v0.0.8
DecToIntWithE18 converts Dec to Int (dec*10^18 and truncate).
func DurationToString ¶
DurationToString converts provided duration to human readable string presentation.
func EtherToWei ¶
EtherToWei converts number 1 to 1 * 10^18.
func FinneyToWei ¶
FinneyToWei convert number 1 to 1 * 10^15
func GetReserveLimitFromCRR ¶
GetReserveLimitFromCRR returns coin reserve limit for specific CRR value.
func JoinAccAddresses ¶
func JoinAccAddresses(values []sdk.AccAddress) string
JoinAccAddresses returns string containing all provided address joined with ",".
func JoinUints64 ¶
JoinUints returns string containing all provided uint values joined with ",".
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.