Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Better connection exception reporting and small changes #6

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
GoodforGod merged 18 commits into GoodforGod:master from iSnow:master
Oct 18, 2020

Conversation

Copy link
Contributor

@iSnow iSnow commented Oct 5, 2020

Hi, I added

  • some checks for server errors and illegal requests in HttpExecutor
  • a method getTimeStampAsMillis() in Log
  • a link to a jitpack download or snapshots on the README.md

Also fixed the Travis link on the README.md

iSnow added 13 commits July 9, 2020 22:01
Copy link

codecov-commenter commented Oct 5, 2020
edited
Loading

Codecov Report

Merging #6 into master will decrease coverage by 20.57%.
The diff coverage is 24.13%.

Impacted file tree graph

@@ Coverage Diff @@
## master #6 +/- ##
===========================================
- Coverage 79.25% 58.67% -20.58% 
===========================================
 Files 71 72 +1 
 Lines 988 1014 +26 
 Branches 229 237 +8 
===========================================
- Hits 783 595 -188 
- Misses 67 326 +259 
+ Partials 138 93 -45 
Impacted Files Coverage Δ
...va/io/api/etherscan/error/ConnectionException.java 50.00% <0.00%> (-50.00%) ⬇️
...ava/io/api/etherscan/error/RateLimitException.java 0.00% <0.00%> (ø)
...a/io/api/etherscan/executor/impl/HttpExecutor.java 71.42% <0.00%> (-8.88%) ⬇️
src/main/java/io/api/etherscan/model/Log.java 4.16% <0.00%> (-48.22%) ⬇️
...pi/etherscan/model/query/impl/LogQueryBuilder.java 91.17% <0.00%> (-2.77%) ⬇️
...java/io/api/etherscan/core/impl/BasicProvider.java 76.66% <50.00%> (-4.29%) ⬇️
...in/java/io/api/etherscan/error/ParseException.java 75.00% <66.66%> (+75.00%) ⬆️
src/main/java/io/api/etherscan/model/Supply.java 0.00% <0.00%> (-100.00%) ⬇️
src/main/java/io/api/etherscan/model/TxToken.java 0.00% <0.00%> (-100.00%) ⬇️
...va/io/api/etherscan/error/ApiTimeoutException.java 0.00% <0.00%> (-100.00%) ⬇️
... and 31 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 00cff5f...f7bb00c. Read the comment docs.

@GoodforGod GoodforGod self-assigned this Oct 10, 2020
@GoodforGod GoodforGod added the enhancement New feature or request label Oct 10, 2020
@@ -1,8 +1,9 @@
# java-etherscan-api

![travis](https://travis-ci.org/GoodforGod/java-etherscan-api.svg?branch=master)
[![travis](https://travis-ci.org/GoodforGod/java-etherscan-api.svg?branch=master)](https://travis-ci.com/iSnow/java-etherscan-api)
Copy link
Owner

@GoodforGod GoodforGod Oct 10, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that this should be linked to https://jitpack.io/#goodforgod/java-etherscan-api as other links too

throw new ParseException(e.getMessage(), e.getCause());
if (e instanceof JsonSyntaxException) {
Map<String, Object> map = gson.fromJson(json, Map.class);
Object statusCode = map.get("status");
Copy link
Owner

@GoodforGod GoodforGod Oct 10, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the point to check for status & message if you only consider result field in the end?

@@ -7,8 +7,14 @@
* @since 29.10.2018
*/
public class ParseException extends ApiException {
String json;
Copy link
Owner

@GoodforGod GoodforGod Oct 10, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

private final it should be

Copy link
Owner

Hello and thanks for PR and improvements!

Copy link
Owner

It looks easier for me to merge and change all myself.

@GoodforGod GoodforGod merged commit cd06811 into GoodforGod:master Oct 18, 2020
Copy link
Owner

Partly merged via cherry pick

iSnow reacted with thumbs up emoji

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Reviewers

@GoodforGod GoodforGod GoodforGod left review comments

Labels
enhancement New feature or request
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /