Package com.oceanprotocol.squid.models
Class Balance
- java.lang.Object
-
- com.oceanprotocol.squid.models.Balance
-
public class Balance extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Balance.Unit
-
Field Summary
Fields Modifier and Type Field Description private BigInteger
drops
private BigInteger
eth
-
Constructor Summary
Constructors Constructor Description Balance()
Balance(BigInteger eth, BigInteger drops)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BigDecimal
dropsToOcean(BigInteger drops)
BigInteger
getDrops()
BigInteger
getEth()
BigDecimal
getOceanTokens()
static BigInteger
oceanToDrops(BigInteger ocean)
String
toString()
-
-
-
Field Detail
-
eth
private BigInteger eth
-
drops
private BigInteger drops
-
-
Constructor Detail
-
Balance
public Balance()
-
Balance
public Balance(BigInteger eth, BigInteger drops)
-
-
Method Detail
-
getEth
public BigInteger getEth()
-
getDrops
public BigInteger getDrops()
-
getOceanTokens
public BigDecimal getOceanTokens()
-
dropsToOcean
public static BigDecimal dropsToOcean(BigInteger drops)
-
oceanToDrops
public static BigInteger oceanToDrops(BigInteger ocean)
-
-