All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.rotilho.jnano.commons.NanoUnit Maven / Gradle / Ivy

Go to download

JNano provides a set of low level Nano operations that includes signing, seed generation, block hashing and account creation.

There is a newer version: 1.5.0
Show newest version
package com.rotilho.jnano.commons;

import java.math.BigDecimal;

import lombok.Getter;
import lombok.RequiredArgsConstructor;

@Getter
@RequiredArgsConstructor
public enum NanoUnit {
    GIGA("Gnano", new BigDecimal("1000000000000000000000000000000000")),
    NANO("Nano", new BigDecimal("1000000000000000000000000000000")),
    KILO("knano", new BigDecimal("1000000000000000000000000000")),
    SMALL_NANO("nano", new BigDecimal("1000000000000000000000000")),
    MILLI("mnano", new BigDecimal("1000000000000000000000")),
    MICRO("unano", new BigDecimal("1000000000000000000")),
    RAW("raw", new BigDecimal("1"));

    private final String prefix;
    private final BigDecimal multiplier;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy