diff --git a/build.gradle b/build.gradle index 1c03ebe..38813ee 100644 --- a/build.gradle +++ b/build.gradle @@ -2,7 +2,7 @@ apply plugin: 'java' apply plugin: 'idea' apply plugin: 'maven' -project.version = "1.0.0-SNAPSHOT" +project.version = "1.0.1-SNAPSHOT" project.group = 'com.codingchili.ethereumingest' sourceCompatibility = 1.8 @@ -20,7 +20,7 @@ repositories { } dependencies { - compile 'com.github.codingchili.chili-core:core:1.0.9-SNAPSHOT' + compile 'com.github.codingchili.chili-core:core:1.0.18-SNAPSHOT@jar' compile 'org.web3j:core:2.3.1' } diff --git a/src/main/java/com/codingchili/ethereumingest/Service.java b/src/main/java/com/codingchili/ethereumingest/Service.java index a5ec9a9..8b4c4fc 100644 --- a/src/main/java/com/codingchili/ethereumingest/Service.java +++ b/src/main/java/com/codingchili/ethereumingest/Service.java @@ -19,7 +19,7 @@ public class Service implements CoreService { public static void main(String[] args) throws IOException { system().setHandlers(1).setListeners(1); launcher().setApplication("Ethereum Ingest") - .setVersion("1.0.0") + .setVersion("1.0.1") .setAuthor("codingchili@github") .setClustered(true) .deployable(Service.class); diff --git a/src/main/java/com/codingchili/ethereumingest/importer/ApplicationContext.java b/src/main/java/com/codingchili/ethereumingest/importer/ApplicationContext.java index 83b3024..a1fdb4e 100644 --- a/src/main/java/com/codingchili/ethereumingest/importer/ApplicationContext.java +++ b/src/main/java/com/codingchili/ethereumingest/importer/ApplicationContext.java @@ -81,7 +81,7 @@ private Future> storage(Class storable, new StorageLoader(context) .withDB(index, index) - .withClass(storable) + .withValue(storable) .withPlugin(config.getStoragePlugin()) .build((storage) -> { if (storage.succeeded()) { diff --git a/src/main/java/com/codingchili/ethereumingest/model/ApplicationConfig.java b/src/main/java/com/codingchili/ethereumingest/model/ApplicationConfig.java index 04161c2..7a941b2 100644 --- a/src/main/java/com/codingchili/ethereumingest/model/ApplicationConfig.java +++ b/src/main/java/com/codingchili/ethereumingest/model/ApplicationConfig.java @@ -104,8 +104,9 @@ public String getPath() { } @Override - public void setPath(String path) { + public ApplicationConfig setPath(String path) { ApplicationConfig.path = path; + return this; } public String getBlockIndex() { diff --git a/src/main/java/com/codingchili/ethereumingest/model/StorableBlock.java b/src/main/java/com/codingchili/ethereumingest/model/StorableBlock.java index 0e79114..179ee62 100644 --- a/src/main/java/com/codingchili/ethereumingest/model/StorableBlock.java +++ b/src/main/java/com/codingchili/ethereumingest/model/StorableBlock.java @@ -31,7 +31,7 @@ public StorableBlock(EthBlock.Block block) { } @Override - public String id() { + public String getId() { return hash; } diff --git a/src/main/java/com/codingchili/ethereumingest/model/StorableTransaction.java b/src/main/java/com/codingchili/ethereumingest/model/StorableTransaction.java index 010395e..88e8b4d 100644 --- a/src/main/java/com/codingchili/ethereumingest/model/StorableTransaction.java +++ b/src/main/java/com/codingchili/ethereumingest/model/StorableTransaction.java @@ -39,7 +39,7 @@ public void setTimestamp(String timestamp) { } @Override - public String id() { + public String getId() { return getHash(); }