A port of abi-decoder to Kotlin for use with Kotlin/Java projects.
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
<dependency>
<groupId>org.github.prettymuchbryce</groupId>
<artifactId>abidecoder</artifactId>
<version>master-SNAPSHOT</version>
</dependency>
repositories {
maven { url 'https://jitpack.io' }
}
compile 'com.github.prettymuchbryce:abidecoder:master-SNAPSHOT'
package main;
import com.prettymuchbryce.abidecoder.Decoder;
public class Main {
public static void main(String[] args) {
Decoder d = new Decoder();
d.addAbi(myAbiJsonString);
Decoder.DecodedMethod result = d.decodeMethod(methodData);
System.out.print(result);
}
}
Please see unit tests for more usage examples.