-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #120 from binance-chain/release/v1.1.2
Release/v1.1.2
- Loading branch information
Showing
64 changed files
with
2,166 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
src/main/java/com/binance/dex/api/client/BinanceTransactionApi.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package com.binance.dex.api.client; | ||
|
||
import com.binance.dex.api.client.domain.TransactionPageV2; | ||
import retrofit2.Call; | ||
import retrofit2.http.GET; | ||
import retrofit2.http.Path; | ||
import retrofit2.http.Query; | ||
|
||
public interface BinanceTransactionApi { | ||
@GET("api/v1/txs") | ||
Call<TransactionPageV2> getTransactions(@Query(value = "startTime") Long startTime, | ||
@Query(value = "endTime") Long endTime, | ||
@Query(value = "type") String type, | ||
@Query(value = "asset") String asset, | ||
@Query(value = "address") String address, | ||
@Query(value = "addressType") String addressType, | ||
@Query(value = "offset") Integer offset, | ||
@Query(value = "limit") Integer limit); | ||
|
||
@GET("api/v1/blocks/{blockHeight}/txs") | ||
Call<TransactionPageV2> getTransactionsInBlock(@Path("blockHeight") long blockHeight); | ||
} |
37 changes: 37 additions & 0 deletions
37
src/main/java/com/binance/dex/api/client/domain/TransactionPageV2.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
package com.binance.dex.api.client.domain; | ||
|
||
import com.binance.dex.api.client.BinanceDexConstants; | ||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties; | ||
import org.apache.commons.lang3.builder.ToStringBuilder; | ||
|
||
import java.util.List; | ||
|
||
@JsonIgnoreProperties(ignoreUnknown = true) | ||
public class TransactionPageV2 { | ||
private Long total; | ||
private List<TransactionV2> txs; | ||
|
||
public Long getTotal() { | ||
return total; | ||
} | ||
|
||
public void setTotal(Long total) { | ||
this.total = total; | ||
} | ||
|
||
public List<TransactionV2> getTxs() { | ||
return txs; | ||
} | ||
|
||
public void setTxs(List<TransactionV2> txs) { | ||
this.txs = txs; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return new ToStringBuilder(this, BinanceDexConstants.BINANCE_DEX_TO_STRING_STYLE) | ||
.append("total", total) | ||
.append("txs", txs) | ||
.toString(); | ||
} | ||
} |
Oops, something went wrong.