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

Commit55788d5

Browse files
guggioGoodforGod
authored andcommitted
[2.0.0-SNAPSHOT]
Refactoring of token transfers- Inclusion of tokenID in Erc721 transfers- Support for Erc1155 transfers(cherry picked from commitca4b7d5)
1 parentbf9f02b commit55788d5

File tree

7 files changed

+128
-33
lines changed

7 files changed

+128
-33
lines changed
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
packageio.api.etherscan.model;
2+
3+
publicabstractclassBaseTxTokenextendsBaseTx {
4+
5+
privatelongnonce;
6+
privateStringblockHash;
7+
privateStringtokenName;
8+
privateStringtokenSymbol;
9+
privateinttransactionIndex;
10+
privatelonggasPrice;
11+
privatelongcumulativeGasUsed;
12+
privatelongconfirmations;
13+
14+
publiclonggetNonce() {
15+
returnnonce;
16+
}
17+
18+
publicStringgetBlockHash() {
19+
returnblockHash;
20+
}
21+
22+
publicStringgetTokenName() {
23+
returntokenName;
24+
}
25+
26+
publicStringgetTokenSymbol() {
27+
returntokenSymbol;
28+
}
29+
30+
publicintgetTransactionIndex() {
31+
returntransactionIndex;
32+
}
33+
34+
publiclonggetGasPrice() {
35+
returngasPrice;
36+
}
37+
38+
publiclonggetCumulativeGasUsed() {
39+
returncumulativeGasUsed;
40+
}
41+
42+
publiclonggetConfirmations() {
43+
returnconfirmations;
44+
}
45+
46+
@Override
47+
publicStringtoString() {
48+
return"BaseTxToken{" +
49+
"nonce=" +nonce +
50+
", blockHash='" +blockHash +'\'' +
51+
", tokenName='" +tokenName +'\'' +
52+
", tokenSymbol='" +tokenSymbol +'\'' +
53+
", transactionIndex=" +transactionIndex +
54+
", gasPrice=" +gasPrice +
55+
", cumulativeGasUsed=" +cumulativeGasUsed +
56+
", confirmations=" +confirmations +
57+
'}' +super.toString();
58+
}
59+
}
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
packageio.api.etherscan.model;
2+
3+
importjava.math.BigInteger;
4+
5+
publicclassTxErc1155extendsBaseTxToken {
6+
7+
privateBigIntegertokenID;
8+
privateBigIntegertokenValue;
9+
10+
publicBigIntegergetTokenID() {
11+
returntokenID;
12+
}
13+
14+
publicBigIntegergetTokenValue() {
15+
returntokenValue;
16+
}
17+
18+
@Override
19+
publicStringtoString() {
20+
return"TxErc1155{" +
21+
"tokenID=" +tokenID +
22+
", tokenValue=" +tokenValue +
23+
'}' +super.toString();
24+
}
25+
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
packageio.api.etherscan.model;
2+
3+
importjava.math.BigInteger;
4+
5+
publicclassTxErc20extendsBaseTxToken {
6+
7+
privateBigIntegertokenDecimal;
8+
9+
publicBigIntegergetTokenDecimal() {
10+
returntokenDecimal;
11+
}
12+
13+
@Override
14+
publicStringtoString() {
15+
return"TxErc20{" +
16+
"tokenDecimal=" +tokenDecimal +
17+
'}' +super.toString();
18+
}
19+
}
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
packageio.api.etherscan.model;
2+
3+
importjava.math.BigInteger;
4+
5+
publicclassTxErc721extendsBaseTxToken {
6+
7+
privateBigIntegertokenID;
8+
privateBigIntegertokenDecimal;
9+
10+
publicBigIntegergetTokenID() {
11+
returntokenID;
12+
}
13+
14+
publicBigIntegergetTokenDecimal() {
15+
returntokenDecimal;
16+
}
17+
18+
@Override
19+
publicStringtoString() {
20+
return"TxErc721{" +
21+
"tokenID=" +tokenID +
22+
", tokenDecimal=" +tokenDecimal +
23+
'}' +super.toString();
24+
}
25+
}

‎src/main/java/io/goodforgod/api/etherscan/model/response/TxErc1155ResponseTO.java‎

Lines changed: 0 additions & 11 deletions
This file was deleted.

‎src/main/java/io/goodforgod/api/etherscan/model/response/TxErc20ResponseTO.java‎

Lines changed: 0 additions & 11 deletions
This file was deleted.

‎src/main/java/io/goodforgod/api/etherscan/model/response/TxErc721ResponseTO.java‎

Lines changed: 0 additions & 11 deletions
This file was deleted.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp