Movatterモバイル変換


[0]ホーム

URL:


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

Commit44a5fe4

Browse files
committed
1.0.2 Release
1 parent03f2538 commit44a5fe4

File tree

4 files changed

+13
-11
lines changed

4 files changed

+13
-11
lines changed

‎README.md‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ Library supports all available EtherScan *API* calls for all available *Ethereum
1414
<dependency>
1515
<groupId>com.github.goodforgod</groupId>
1616
<artifactId>java-etherscan-api</artifactId>
17-
<version>1.0.1</version>
17+
<version>1.0.2</version>
1818
</dependency>
1919
```
2020

2121
**Gradle**
2222
```groovy
2323
dependencies {
24-
compile 'com.github.goodforgod:java-etherscan-api:1.0.1'
24+
compile 'com.github.goodforgod:java-etherscan-api:1.0.2'
2525
}
2626
```
2727

@@ -165,6 +165,8 @@ Token API methods migrated to [Account](#account-api) & [Stats](#stats-api) resp
165165

166166
##Version History
167167

168+
**1.0.2** - Minor http client improvements.
169+
168170
**1.0.1** - Gorli & TOBALABA networks support.
169171

170172
**1.0.0** - Initial project with all API functionality, for all available networks, with tests coverage for all cases.

‎src/main/java/io/api/etherscan/model/BaseTx.java‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,13 +73,15 @@ public BigInteger getGasUsed() {
7373
@Override
7474
publicbooleanequals(Objecto) {
7575
if (this ==o)returntrue;
76-
if (o ==null ||getClass() !=o.getClass())returnfalse;
76+
if (!(oinstanceofBaseTx))returnfalse;
7777

7878
BaseTxbaseTx = (BaseTx)o;
7979

8080
if (blockNumber !=baseTx.blockNumber)returnfalse;
8181
if (timeStamp !=null ? !timeStamp.equals(baseTx.timeStamp) :baseTx.timeStamp !=null)returnfalse;
8282
if (hash !=null ? !hash.equals(baseTx.hash) :baseTx.hash !=null)returnfalse;
83+
if (from !=null ? !from.equals(baseTx.from) :baseTx.from !=null)returnfalse;
84+
if (to !=null ? !to.equals(baseTx.to) :baseTx.to !=null)returnfalse;
8385
returnvalue !=null ?value.equals(baseTx.value) :baseTx.value ==null;
8486
}
8587

@@ -88,6 +90,8 @@ public int hashCode() {
8890
intresult = (int) (blockNumber ^ (blockNumber >>>32));
8991
result =31 *result + (timeStamp !=null ?timeStamp.hashCode() :0);
9092
result =31 *result + (hash !=null ?hash.hashCode() :0);
93+
result =31 *result + (from !=null ?from.hashCode() :0);
94+
result =31 *result + (to !=null ?to.hashCode() :0);
9195
result =31 *result + (value !=null ?value.hashCode() :0);
9296
returnresult;
9397
}

‎src/main/java/io/api/etherscan/model/TxInternal.java‎

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,23 +34,19 @@ public String getErrCode() {
3434
@Override
3535
publicbooleanequals(Objecto) {
3636
if (this ==o)returntrue;
37-
if (o ==null ||getClass() !=o.getClass())returnfalse;
37+
if (!(oinstanceofTxInternal))returnfalse;
3838
if (!super.equals(o))returnfalse;
3939

4040
TxInternalthat = (TxInternal)o;
4141

4242
if (traceId !=that.traceId)returnfalse;
43-
if (isError !=that.isError)returnfalse;
44-
if (type !=null ? !type.equals(that.type) :that.type !=null)returnfalse;
4543
returnerrCode !=null ?errCode.equals(that.errCode) :that.errCode ==null;
4644
}
4745

4846
@Override
4947
publicinthashCode() {
5048
intresult =super.hashCode();
51-
result =31 *result + (type !=null ?type.hashCode() :0);
5249
result =31 *result + (int) (traceId ^ (traceId >>>32));
53-
result =31 *result +isError;
5450
result =31 *result + (errCode !=null ?errCode.hashCode() :0);
5551
returnresult;
5652
}

‎src/test/java/io/api/etherscan/account/AccountTxTokenTest.java‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@ public class AccountTxTokenTest extends Assert {
2020

2121
@Test
2222
publicvoidcorrect() {
23-
List<TxToken>txs =api.account().txsToken("0x05fBf1E3f105df6a4553f3C7f2ed93070A4BAB46");
23+
List<TxToken>txs =api.account().txsToken("0xE376F69ED2218076682e2b3B7b9099eC50aD68c4");
2424
assertNotNull(txs);
25-
assertEquals(106,txs.size());
25+
assertEquals(3,txs.size());
2626
assertTxs(txs);
2727
assertNotEquals(0,txs.get(0).getGasPrice());
2828
assertNotEquals(-1,txs.get(0).getNonce());
29-
assertNotNull(txs.get(0).toString());
3029

30+
assertNotNull(txs.get(0).toString());
3131
assertNotEquals(txs.get(0).toString(),txs.get(1).toString());
3232

3333
assertNotEquals(txs.get(0),txs.get(1));

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp