Class SolidityType.UnsignedIntType

Enclosing class:
SolidityType

public static class SolidityType.UnsignedIntType extends SolidityType.NumericType
  • Constructor Details

    • UnsignedIntType

      public UnsignedIntType(String name)
  • Method Details

    • decodeInt

      public static BigInteger decodeInt(byte[] encoded, int offset)
    • encodeInt

      public static byte[] encodeInt(int i)
    • encodeInt

      public static byte[] encodeInt(BigInteger bigInt)
    • getCanonicalName

      public String getCanonicalName()
      Description copied from class: SolidityType
      The canonical type name (used for the method signature creation) E.g. 'int' - canonical 'int256'
      Overrides:
      getCanonicalName in class SolidityType
    • encode

      public byte[] encode(Object value)
      Description copied from class: SolidityType
      Encodes the value according to specific type rules
      Specified by:
      encode in class SolidityType
    • decode

      public Object decode(byte[] encoded, int offset)
      Specified by:
      decode in class SolidityType