Skip to content

Commit 047dcd9

Browse files
committed
Merge branch 'release/2.7.0'
2 parents 315d1d0 + ffb25b7 commit 047dcd9

File tree

15 files changed

+130
-127
lines changed

15 files changed

+130
-127
lines changed

CHANGELOG.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
# 2.7.0
2+
3+
<!-- Release notes generated using configuration in .github/release.yml at release/2.7.0 -->
4+
5+
## What's Changed
6+
### Enhancements
7+
* Comments: Regenerate code with the latest specification file (88320845) by @github-actions in https://github.com/algorand/java-algorand-sdk/pull/770
8+
* BlockHeaders: Implement blockheaders endpoint cross-SDK test. by @gmalouf in https://github.com/algorand/java-algorand-sdk/pull/771
9+
* API: Support for header-only flag on /v2/block algod endpoint. by @gmalouf in https://github.com/algorand/java-algorand-sdk/pull/774
10+
11+
## New Contributors
12+
* @dependabot made their first contribution in https://github.com/algorand/java-algorand-sdk/pull/655
13+
14+
**Full Changelog**: https://github.com/algorand/java-algorand-sdk/compare/2.6.0...2.7.0
15+
116
# 2.6.0
217

318
<!-- Release notes generated using configuration in .github/release.yml at release/2.6.0 -->

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Maven:
1919
<dependency>
2020
<groupId>com.algorand</groupId>
2121
<artifactId>algosdk</artifactId>
22-
<version>2.6.0</version>
22+
<version>2.7.0</version>
2323
</dependency>
2424
```
2525

examples/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
<dependency>
4343
<groupId>com.squareup.okio</groupId>
4444
<artifactId>okio</artifactId>
45-
<version>1.6.0</version>
45+
<version>1.17.6</version>
4646
</dependency>
4747
<dependency>
4848
<groupId>commons-codec</groupId>
@@ -69,7 +69,7 @@
6969
<dependency>
7070
<groupId>org.bouncycastle</groupId>
7171
<artifactId>bcprov-jdk15to18</artifactId>
72-
<version>1.66</version>
72+
<version>1.78</version>
7373
</dependency>
7474
<dependency>
7575
<groupId>org.msgpack</groupId>

pom.xml

100755100644
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
<groupId>com.algorand</groupId>
66
<artifactId>algosdk</artifactId>
7-
<version>2.6.0</version>
7+
<version>2.7.0</version>
88
<packaging>jar</packaging>
99

1010
<name>${project.groupId}:${project.artifactId}</name>
@@ -85,7 +85,7 @@
8585
<dependency>
8686
<groupId>com.squareup.okio</groupId>
8787
<artifactId>okio</artifactId>
88-
<version>1.6.0</version>
88+
<version>1.17.6</version>
8989
</dependency>
9090
<dependency>
9191
<groupId>commons-codec</groupId>

src/main/java/com/algorand/algosdk/v2/client/algod/GetBlock.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,15 @@ public GetBlock(Client client, Long round) {
2525
this.round = round;
2626
}
2727

28+
/**
29+
* If true, only the block header (exclusive of payset or certificate) may be
30+
* included in response.
31+
*/
32+
public GetBlock headerOnly(Boolean headerOnly) {
33+
addQuery("header-only", String.valueOf(headerOnly));
34+
return this;
35+
}
36+
2837
/**
2938
* Execute the query.
3039
* @return the query response object.

src/main/java/com/algorand/algosdk/v2/client/algod/GetBlockHeader.java

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

src/main/java/com/algorand/algosdk/v2/client/common/AlgodClient.java

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
import com.algorand.algosdk.v2.client.algod.GetBlock;
1414
import com.algorand.algosdk.v2.client.algod.GetBlockTxids;
1515
import com.algorand.algosdk.v2.client.algod.GetBlockHash;
16-
import com.algorand.algosdk.v2.client.algod.GetBlockHeader;
1716
import com.algorand.algosdk.v2.client.algod.GetTransactionProof;
1817
import com.algorand.algosdk.v2.client.algod.GetBlockLogs;
1918
import com.algorand.algosdk.v2.client.algod.GetSupply;
@@ -181,14 +180,6 @@ public GetBlockHash GetBlockHash(Long round) {
181180
return new GetBlockHash((Client) this, round);
182181
}
183182

184-
/**
185-
* Get the block header for the block on the given round.
186-
* /v2/blocks/{round}/header
187-
*/
188-
public GetBlockHeader GetBlockHeader(Long round) {
189-
return new GetBlockHeader((Client) this, round);
190-
}
191-
192183
/**
193184
* Get a proof for a transaction in a block.
194185
* /v2/blocks/{round}/transactions/{txid}/proof

src/main/java/com/algorand/algosdk/v2/client/indexer/LookupAccountByID.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,7 @@ public LookupAccountByID includeAll(Boolean includeAll) {
5050
}
5151

5252
/**
53-
* Deprecated and disallowed. This parameter used to include results for a
54-
* specified round. Requests with this parameter set are now rejected.
53+
* Include results for the specified round.
5554
*/
5655
public LookupAccountByID round(Long round) {
5756
addQuery("round", String.valueOf(round));

src/main/java/com/algorand/algosdk/v2/client/indexer/SearchForAccounts.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,11 @@ public SearchForAccounts next(String next) {
104104
}
105105

106106
/**
107-
* Deprecated and disallowed. This parameter used to include results for a
108-
* specified round. Requests with this parameter set are now rejected.
107+
* Include results for the specified round. For performance reasons, this parameter
108+
* may be disabled on some configurations. Using application-id or asset-id filters
109+
* will return both creator and opt-in accounts. Filtering by include-all will
110+
* return creator and opt-in accounts for deleted assets and accounts. Non-opt-in
111+
* managers are not included in the results when asset-id is used.
109112
*/
110113
public SearchForAccounts round(Long round) {
111114
addQuery("round", String.valueOf(round));

src/main/java/com/algorand/algosdk/v2/client/model/BlockHeaderResponse.java

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

0 commit comments

Comments
 (0)