Skip to content

Commit d9386ea

Browse files
authored
Merge pull request #3 from authenteq/master
Update from authenteq
2 parents 0e1b317 + 3eff471 commit d9386ea

22 files changed

+609
-481
lines changed

.travis.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ jdk:
44
- oraclejdk8
55
install: true
66

7+
before_script:
8+
- mvn install:install-file -Dfile=$TRAVIS_BUILD_DIR/libs/java-crypto-conditions-2.0.0-SNAPSHOT.jar -DgroupId=org.interledger -DartifactId=java-crypto-conditions -Dversion=2.0.0-SNAPSHOT -Dpackaging=jar
9+
710
branches:
811
only:
912
- master

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -115,25 +115,25 @@ BigchainDbConfigBuilder
115115
<h4>Send a Transaction</h4>
116116

117117
```java
118-
TransactionApi.sendTransaction(Transaction transaction) throws IOException
118+
TransactionsApi.sendTransaction(Transaction transaction) throws IOException
119119
```
120120

121121
<h4>Send a Transaction with Callback</h4>
122122

123123
```java
124-
TransactionApi.sendTransaction(Transaction transaction, final GenericCallback callback)
124+
TransactionsApi.sendTransaction(Transaction transaction, final GenericCallback callback)
125125
```
126126

127127
<h4>Get Transaction given a Transaction Id</h4>
128128

129129
```java
130-
Transaction TransactionApi.getTransactionById(String id) throws IOException
130+
Transaction TransactionsApi.getTransactionById(String id) throws IOException
131131
```
132132

133133
<h4>Get Transaction given an Asset Id</h4>
134134

135135
```java
136-
Transactions TransactionApi.getTransactionsByAssetId(String assetId, Operations operation)
136+
Transactions TransactionsApi.getTransactionsByAssetId(String assetId, Operations operation)
137137
```
138138

139139
<h3>Outputs</h3>

pom.xml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,6 @@
6868
<artifactId>commons-codec</artifactId>
6969
<version>1.10</version>
7070
</dependency>
71-
<dependency>
72-
<groupId>org.json</groupId>
73-
<artifactId>json</artifactId>
74-
<version>20170516</version>
75-
</dependency>
7671
<dependency>
7772
<groupId>com.google.code.gson</groupId>
7873
<artifactId>gson</artifactId>

src/main/java/com/authenteq/api/TransactionsApi.java

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
import com.authenteq.util.NetworkUtils;
1111
import okhttp3.RequestBody;
1212
import okhttp3.Response;
13-
import org.json.JSONException;
1413

1514
import java.io.IOException;
1615
import java.util.logging.Logger;
@@ -75,20 +74,16 @@ public static Transaction getTransactionById(String id) throws IOException {
7574
* @param operation
7675
* the operation
7776
* @return the transactions by asset id
78-
* @throws JSONException
79-
* the JSON exception
8077
* @throws IOException
8178
* Signals that an I/O exception has occurred.
8279
*/
8380
public static Transactions getTransactionsByAssetId(String assetId, Operations operation)
84-
throws JSONException, IOException {
81+
throws IOException {
8582
LOGGER.info("getTransactionsByAssetId Call :" + assetId + " operation " + operation);
8683
Response response = NetworkUtils.sendGetRequest(
8784
BigChainDBGlobals.getBaseUrl() + BigchainDbApi.TRANSACTIONS + "?asset_id=" + assetId + "&operation=" + operation);
8885
String body = response.body().string();
8986
response.close();
9087
return JsonUtils.fromJson(body, Transactions.class);
91-
9288
}
93-
9489
}

src/main/java/com/authenteq/builders/BigchainDbConfigBuilder.java

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
import java.util.concurrent.TimeUnit;
99
import java.util.logging.Logger;
1010

11-
import com.authenteq.api.AccountApi;
1211
import com.authenteq.constants.BigchainDbApi;
1312
import com.authenteq.model.ApiEndpoints;
1413
import com.authenteq.model.BigChainDBGlobals;
@@ -25,9 +24,8 @@
2524
* The Class BigchainDbConfigBuilder.
2625
*/
2726
public class BigchainDbConfigBuilder {
28-
29-
private static final Logger LOGGER = Logger.getLogger(AccountApi.class.getName());
30-
27+
28+
private static final Logger LOGGER = Logger.getLogger(BigchainDbConfigBuilder.class.getName());
3129
/**
3230
* Instantiates a new bigchain db config builder.
3331
*/
@@ -74,11 +72,6 @@ public interface ITokens {
7472
* Setup.
7573
*/
7674
void setup();
77-
78-
/**
79-
* Setup.
80-
*/
81-
8275
}
8376

8477
/**

0 commit comments

Comments
 (0)