Skip to content

Commit c1e995f

Browse files
iSnowGoodforGod
authored andcommitted
Method to get all events without a topic filter
(cherry picked from commit 235be0d)
1 parent 4a570d2 commit c1e995f

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/main/java/io/api/etherscan/model/query/impl/LogQueryBuilder.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import io.api.etherscan.core.ILogsApi;
44
import io.api.etherscan.error.LogQueryException;
5+
import io.api.etherscan.model.query.IQueryBuilder;
56
import io.api.etherscan.util.BasicUtils;
67

78
/**
@@ -12,7 +13,7 @@
1213
* @author GoodforGod
1314
* @since 31.10.2018
1415
*/
15-
public class LogQueryBuilder {
16+
public class LogQueryBuilder implements IQueryBuilder {
1617

1718
private static final long MIN_BLOCK = 0;
1819
private static final long MAX_BLOCK = 99999999999L;
@@ -75,4 +76,9 @@ public LogTopicQuadro topic(String topic0, String topic1, String topic2, String
7576

7677
return new LogTopicQuadro(address, startBlock, endBlock, topic0, topic1, topic2, topic3);
7778
}
79+
80+
@Override
81+
public LogQuery build() throws LogQueryException {
82+
return new LogQuery("&address=" + this.address + "&fromBlock=" + this.startBlock + "&toBlock=" + this.endBlock);
83+
}
7884
}

0 commit comments

Comments
 (0)