Skip to content

Commit

Permalink
[2.0.0]
Browse files Browse the repository at this point in the history
Javadoc improved
  • Loading branch information
GoodforGod committed May 16, 2023
1 parent e6bee19 commit c64a301
Show file tree
Hide file tree
Showing 17 changed files with 114 additions and 108 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
[![Maintainability Rating](https://sonarcloud.io/api/project_badges/measure?project=GoodforGod_java-etherscan-api&metric=sqale_rating)](https://sonarcloud.io/dashboard?id=GoodforGod_java-etherscan-api)
[![Lines of Code](https://sonarcloud.io/api/project_badges/measure?project=GoodforGod_java-etherscan-api&metric=ncloc)](https://sonarcloud.io/dashboard?id=GoodforGod_java-etherscan-api)

[Etherscan.io](https://etherscan.io/apis) Java API implementation.
[Etherscan.io](https://docs.etherscan.io/) Java API implementation.

Library supports all available EtherScan *API* calls for all available *Ethereum Networks* for *etherscan.io*
Library supports EtherScan *API* for all available *Ethereum Networks* for *etherscan.io*

## Dependency :rocket:

Expand Down
62 changes: 33 additions & 29 deletions src/main/java/io/goodforgod/api/etherscan/AccountAPI.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public interface AccountAPI {
* @throws EtherScanException parent exception class
*/
@NotNull
Balance balance(String address) throws EtherScanException;
Balance balance(@NotNull String address) throws EtherScanException;

/**
* ERC20 token balance for address
Expand All @@ -32,7 +32,7 @@ public interface AccountAPI {
* @throws EtherScanException parent exception class
*/
@NotNull
TokenBalance balance(String address, String contract) throws EtherScanException;
TokenBalance balance(@NotNull String address, @NotNull String contract) throws EtherScanException;

/**
* Maximum 20 address for single batch request If address MORE THAN 20, then there will be more than
Expand All @@ -43,7 +43,7 @@ public interface AccountAPI {
* @throws EtherScanException parent exception class
*/
@NotNull
List<Balance> balances(List<String> addresses) throws EtherScanException;
List<Balance> balances(@NotNull List<String> addresses) throws EtherScanException;

/**
* All txs for given address
Expand All @@ -55,13 +55,13 @@ public interface AccountAPI {
* @throws EtherScanException parent exception class
*/
@NotNull
List<Tx> txs(String address, long startBlock, long endBlock) throws EtherScanException;
List<Tx> txs(@NotNull String address, long startBlock, long endBlock) throws EtherScanException;

@NotNull
List<Tx> txs(String address, long startBlock) throws EtherScanException;
List<Tx> txs(@NotNull String address, long startBlock) throws EtherScanException;

@NotNull
List<Tx> txs(String address) throws EtherScanException;
List<Tx> txs(@NotNull String address) throws EtherScanException;

/**
* All internal txs for given address
Expand All @@ -73,13 +73,13 @@ public interface AccountAPI {
* @throws EtherScanException parent exception class
*/
@NotNull
List<TxInternal> txsInternal(String address, long startBlock, long endBlock) throws EtherScanException;
List<TxInternal> txsInternal(@NotNull String address, long startBlock, long endBlock) throws EtherScanException;

@NotNull
List<TxInternal> txsInternal(String address, long startBlock) throws EtherScanException;
List<TxInternal> txsInternal(@NotNull String address, long startBlock) throws EtherScanException;

@NotNull
List<TxInternal> txsInternal(String address) throws EtherScanException;
List<TxInternal> txsInternal(@NotNull String address) throws EtherScanException;

/**
* All internal tx for given transaction hash
Expand All @@ -89,7 +89,7 @@ public interface AccountAPI {
* @throws EtherScanException parent exception class
*/
@NotNull
List<TxInternal> txsInternalByHash(String txhash) throws EtherScanException;
List<TxInternal> txsInternalByHash(@NotNull String txhash) throws EtherScanException;

/**
* All ERC-20 token txs for given address
Expand All @@ -101,13 +101,13 @@ public interface AccountAPI {
* @throws EtherScanException parent exception class
*/
@NotNull
List<TxErc20> txsErc20(String address, long startBlock, long endBlock) throws EtherScanException;
List<TxErc20> txsErc20(@NotNull String address, long startBlock, long endBlock) throws EtherScanException;

@NotNull
List<TxErc20> txsErc20(String address, long startBlock) throws EtherScanException;
List<TxErc20> txsErc20(@NotNull String address, long startBlock) throws EtherScanException;

@NotNull
List<TxErc20> txsErc20(String address) throws EtherScanException;
List<TxErc20> txsErc20(@NotNull String address) throws EtherScanException;

/**
* All ERC-20 token txs for given address and contract address
Expand All @@ -120,13 +120,14 @@ public interface AccountAPI {
* @throws EtherScanException parent exception class
*/
@NotNull
List<TxErc20> txsErc20(String address, String contractAddress, long startBlock, long endBlock) throws EtherScanException;
List<TxErc20> txsErc20(@NotNull String address, @NotNull String contractAddress, long startBlock, long endBlock)
throws EtherScanException;

@NotNull
List<TxErc20> txsErc20(String address, String contractAddress, long startBlock) throws EtherScanException;
List<TxErc20> txsErc20(@NotNull String address, @NotNull String contractAddress, long startBlock) throws EtherScanException;

@NotNull
List<TxErc20> txsErc20(String address, String contractAddress) throws EtherScanException;
List<TxErc20> txsErc20(@NotNull String address, @NotNull String contractAddress) throws EtherScanException;

/**
* All ERC-721 (NFT) token txs for given address
Expand All @@ -138,13 +139,13 @@ public interface AccountAPI {
* @throws EtherScanException parent exception class
*/
@NotNull
List<TxErc721> txsErc721(String address, long startBlock, long endBlock) throws EtherScanException;
List<TxErc721> txsErc721(@NotNull String address, long startBlock, long endBlock) throws EtherScanException;

@NotNull
List<TxErc721> txsErc721(String address, long startBlock) throws EtherScanException;
List<TxErc721> txsErc721(@NotNull String address, long startBlock) throws EtherScanException;

@NotNull
List<TxErc721> txsErc721(String address) throws EtherScanException;
List<TxErc721> txsErc721(@NotNull String address) throws EtherScanException;

/**
* All ERC-721 (NFT) token txs for given address
Expand All @@ -156,13 +157,14 @@ public interface AccountAPI {
* @throws EtherScanException parent exception class
*/
@NotNull
List<TxErc721> txsErc721(String address, String contractAddress, long startBlock, long endBlock) throws EtherScanException;
List<TxErc721> txsErc721(@NotNull String address, @NotNull String contractAddress, long startBlock, long endBlock)
throws EtherScanException;

@NotNull
List<TxErc721> txsErc721(String address, String contractAddress, long startBlock) throws EtherScanException;
List<TxErc721> txsErc721(@NotNull String address, @NotNull String contractAddress, long startBlock) throws EtherScanException;

@NotNull
List<TxErc721> txsErc721(String address, String contractAddress) throws EtherScanException;
List<TxErc721> txsErc721(@NotNull String address, @NotNull String contractAddress) throws EtherScanException;

/**
* All ERC-721 (NFT) token txs for given address
Expand All @@ -174,13 +176,13 @@ public interface AccountAPI {
* @throws EtherScanException parent exception class
*/
@NotNull
List<TxErc1155> txsErc1155(String address, long startBlock, long endBlock) throws EtherScanException;
List<TxErc1155> txsErc1155(@NotNull String address, long startBlock, long endBlock) throws EtherScanException;

@NotNull
List<TxErc1155> txsErc1155(String address, long startBlock) throws EtherScanException;
List<TxErc1155> txsErc1155(@NotNull String address, long startBlock) throws EtherScanException;

@NotNull
List<TxErc1155> txsErc1155(String address) throws EtherScanException;
List<TxErc1155> txsErc1155(@NotNull String address) throws EtherScanException;

/**
* All ERC-721 (NFT) token txs for given address
Expand All @@ -192,13 +194,15 @@ public interface AccountAPI {
* @throws EtherScanException parent exception class
*/
@NotNull
List<TxErc1155> txsErc1155(String address, String contractAddress, long startBlock, long endBlock) throws EtherScanException;
List<TxErc1155> txsErc1155(@NotNull String address, @NotNull String contractAddress, long startBlock, long endBlock)
throws EtherScanException;

@NotNull
List<TxErc1155> txsErc1155(String address, String contractAddress, long startBlock) throws EtherScanException;
List<TxErc1155> txsErc1155(@NotNull String address, @NotNull String contractAddress, long startBlock)
throws EtherScanException;

@NotNull
List<TxErc1155> txsErc1155(String address, String contractAddress) throws EtherScanException;
List<TxErc1155> txsErc1155(@NotNull String address, @NotNull String contractAddress) throws EtherScanException;

/**
* All blocks mined by address
Expand All @@ -208,5 +212,5 @@ public interface AccountAPI {
* @throws EtherScanException parent exception class
*/
@NotNull
List<Block> blocksMined(String address) throws EtherScanException;
List<Block> blocksMined(@NotNull String address) throws EtherScanException;
}
Loading

0 comments on commit c64a301

Please sign in to comment.