Package net.osslabz.evm.abi.definition
Class SolidityType
java.lang.Object
net.osslabz.evm.abi.definition.SolidityType
- Direct Known Subclasses:
SolidityType.ArrayType,SolidityType.Bytes32Type,SolidityType.BytesType,SolidityType.NumericType,SolidityType.TupleType
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondecode(byte[] encoded) abstract Objectdecode(byte[] encoded, int offset) abstract byte[]Encodes the value according to specific type rulesThe canonical type name (used for the method signature creation) E.g.intgetName()The type name as it was specified in the interface descriptionstatic SolidityTypebooleantoString()
-
Field Details
-
name
-
-
Constructor Details
-
SolidityType
-
-
Method Details
-
getType
-
getName
The type name as it was specified in the interface description -
getCanonicalName
The canonical type name (used for the method signature creation) E.g. 'int' - canonical 'int256' -
encode
Encodes the value according to specific type rules- Parameters:
value-
-
decode
-
decode
-
getFixedSize
public int getFixedSize()- Returns:
- fixed size in bytes. For the dynamic types returns IntType.getFixedSize() which is effectively the int offset to dynamic data
-
isDynamicType
public boolean isDynamicType() -
toString
-