Skip to content

Commit

Permalink
Merge branch 'main' into smartContractSchema
Browse files Browse the repository at this point in the history
# Conflicts:
#	CHANGELOG.md
#	concordium-sdk/src/main/java/com/concordium/sdk/transactions/Hash.java
  • Loading branch information
magnusbechwind committed Dec 12, 2023
2 parents 0f7f6f5 + 7162b04 commit 5a29547
Show file tree
Hide file tree
Showing 226 changed files with 226 additions and 5,502 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

## Unreleased changes
- Added method `waitUntilFinalized` for waiting until a given transaction is finalized.
- Removed deprecated V1 API from the SDK. Consumers of the (now removed) `getBlockSummary` endpoint should refer to `GetBlockTransactionEvents`, `GetBlockSpecialEvents` and `GetBlockPendingUpdates`.
- Added support for GRPC V2 `GetWinningBakersEpoch` for getting a list of bakers that won the lottery in a particular historical epoch. Only available when querying a node with version at least 6.1.
- Added support for GRPC V2 `GetFirstBlockEpoch` for getting the block hash of the first finalized block in a specified epoch. Only available when querying a node with version at least 6.1.
- Added support for GRPC V2 `GetBakerEarliestWinTime` for getting the projected earliest time at which a particular baker will be required to bake a block. Only available when querying a node woth version at least 6.1.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import com.concordium.sdk.ClientV2;
import com.concordium.sdk.Connection;
import com.concordium.sdk.exceptions.BlockNotFoundException;
import com.concordium.sdk.exceptions.ClientInitializationException;
import com.concordium.sdk.requests.BlockQuery;
import picocli.CommandLine;
Expand All @@ -25,7 +24,7 @@ public class GetAncestors implements Callable<Integer> {
private String endpoint;

@Override
public Integer call() throws ClientInitializationException, MalformedURLException, BlockNotFoundException {
public Integer call() throws ClientInitializationException, MalformedURLException {
URL endpointUrl = new URL(this.endpoint);
Connection connection = Connection.newBuilder()
.host(endpointUrl.getHost())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import com.concordium.sdk.ClientV2;
import com.concordium.sdk.Connection;
import com.concordium.sdk.exceptions.BlockNotFoundException;
import com.concordium.sdk.exceptions.ClientInitializationException;
import com.concordium.sdk.requests.BlockQuery;
import picocli.CommandLine;
Expand All @@ -25,7 +24,7 @@ public class GetBakerList implements Callable<Integer> {
private String endpoint;

@Override
public Integer call() throws ClientInitializationException, MalformedURLException, BlockNotFoundException {
public Integer call() throws ClientInitializationException, MalformedURLException {
URL endpointUrl = new URL(this.endpoint);
Connection connection = Connection.newBuilder()
.host(endpointUrl.getHost())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,9 @@

import com.concordium.sdk.ClientV2;
import com.concordium.sdk.Connection;
import com.concordium.sdk.exceptions.BlockNotFoundException;
import com.concordium.sdk.exceptions.ClientInitializationException;
import com.concordium.sdk.requests.BlockQuery;
import com.concordium.sdk.responses.blockinfo.BlockInfo;
import lombok.var;
import picocli.CommandLine;
import picocli.CommandLine.Command;
import picocli.CommandLine.Option;
Expand All @@ -24,7 +22,7 @@ public class GetBlockInfo implements Callable<Integer> {
private String endpoint;

@Override
public Integer call() throws ClientInitializationException, MalformedURLException, BlockNotFoundException {
public Integer call() throws ClientInitializationException, MalformedURLException {
URL endpointUrl = new URL(this.endpoint);
Connection connection = Connection.newBuilder()
.host(endpointUrl.getHost())
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
package com.concordium.sdk.examples;

import com.concordium.grpc.v2.BlockItemStatus;
import com.concordium.sdk.ClientV2;
import com.concordium.sdk.Connection;
import com.concordium.sdk.exceptions.BlockNotFoundException;
import com.concordium.sdk.exceptions.ClientInitializationException;
import com.concordium.sdk.responses.transactionstatus.TransactionStatus;
import com.concordium.sdk.transactions.Hash;
import lombok.val;
import lombok.var;
Expand All @@ -30,7 +27,7 @@ public class GetBlockItemStatus implements Callable<Integer> {
private final Hash blockTransactionHashSuccess = Hash.from("1ea074f0e12e18684f2d6bbf2039c6db32d2fd5c28e6ba74c8e92f36e88b1901");

@Override
public Integer call() throws MalformedURLException, ClientInitializationException, BlockNotFoundException {
public Integer call() throws MalformedURLException, ClientInitializationException {
var endpointUrl = new URL(this.endpoint);

Connection connection = Connection.newBuilder()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import com.concordium.sdk.ClientV2;
import com.concordium.sdk.Connection;
import com.concordium.sdk.exceptions.BlockNotFoundException;
import com.concordium.sdk.exceptions.ClientInitializationException;
import com.concordium.sdk.responses.branch.Branch;
import picocli.CommandLine;
Expand All @@ -22,7 +21,7 @@ public class GetBranches implements Callable<Integer> {
private String endpoint;

@Override
public Integer call() throws ClientInitializationException, MalformedURLException, BlockNotFoundException {
public Integer call() throws ClientInitializationException, MalformedURLException {
URL endpointUrl = new URL(this.endpoint);
Connection connection = Connection.newBuilder()
.host(endpointUrl.getHost())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import com.concordium.sdk.ClientV2;
import com.concordium.sdk.Connection;
import com.concordium.sdk.exceptions.BlockNotFoundException;
import com.concordium.sdk.exceptions.ClientInitializationException;
import com.concordium.sdk.requests.BlockQuery;
import com.concordium.sdk.responses.cryptographicparameters.CryptographicParameters;
Expand All @@ -25,7 +24,7 @@ public class GetCryptographicParameters implements Callable<Integer> {
private String endpoint;

@Override
public Integer call() throws MalformedURLException, ClientInitializationException, BlockNotFoundException {
public Integer call() throws MalformedURLException, ClientInitializationException {
var endpointUrl = new URL(this.endpoint);

Connection connection = Connection.newBuilder()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,9 @@

import com.concordium.sdk.ClientV2;
import com.concordium.sdk.Connection;
import com.concordium.sdk.exceptions.BlockNotFoundException;
import com.concordium.sdk.exceptions.ClientInitializationException;
import com.concordium.sdk.responses.election.ElectionInfo;
import com.concordium.sdk.requests.BlockQuery;
import lombok.var;
import com.concordium.sdk.responses.election.ElectionInfo;
import picocli.CommandLine;
import picocli.CommandLine.Command;
import picocli.CommandLine.Option;
Expand All @@ -24,7 +22,7 @@ public class GetElectionInfo implements Callable<Integer> {
private String endpoint;

@Override
public Integer call() throws ClientInitializationException, MalformedURLException, BlockNotFoundException {
public Integer call() throws ClientInitializationException, MalformedURLException {
URL endpointUrl = new URL(this.endpoint);
Connection connection = Connection.newBuilder()
.host(endpointUrl.getHost())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import com.concordium.sdk.ClientV2;
import com.concordium.sdk.Connection;
import com.concordium.sdk.exceptions.BlockNotFoundException;
import com.concordium.sdk.exceptions.ClientInitializationException;
import com.concordium.sdk.requests.BlockQuery;
import picocli.CommandLine;
Expand All @@ -25,7 +24,7 @@ public class GetInstanceList implements Callable<Integer> {
private String endpoint;

@Override
public Integer call() throws ClientInitializationException, MalformedURLException, BlockNotFoundException {
public Integer call() throws ClientInitializationException, MalformedURLException {
URL endpointUrl = new URL(this.endpoint);
Connection connection = Connection.newBuilder()
.host(endpointUrl.getHost())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import com.concordium.sdk.ClientV2;
import com.concordium.sdk.Connection;
import com.concordium.sdk.exceptions.BlockNotFoundException;
import com.concordium.sdk.exceptions.ClientInitializationException;
import com.concordium.sdk.requests.BlockQuery;
import picocli.CommandLine;
Expand All @@ -25,7 +24,7 @@ public class GetModuleList implements Callable<Integer> {
private String endpoint;

@Override
public Integer call() throws ClientInitializationException, MalformedURLException, BlockNotFoundException {
public Integer call() throws ClientInitializationException, MalformedURLException {
URL endpointUrl = new URL(this.endpoint);
Connection connection = Connection.newBuilder()
.host(endpointUrl.getHost())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import com.concordium.sdk.ClientV2;
import com.concordium.sdk.Connection;
import com.concordium.sdk.responses.nodeinfov2.NodeInfo;
import com.concordium.sdk.responses.nodeinfo.NodeInfo;
import picocli.CommandLine;
import picocli.CommandLine.Command;
import picocli.CommandLine.Option;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import com.concordium.sdk.ClientV2;
import com.concordium.sdk.Connection;
import com.concordium.sdk.exceptions.BlockNotFoundException;
import com.concordium.sdk.exceptions.ClientInitializationException;
import com.concordium.sdk.requests.BlockQuery;
import picocli.CommandLine;
Expand All @@ -22,7 +21,7 @@ public class GetTokenomicsInfo implements Callable<Integer> {
private String endpoint;

@Override
public Integer call() throws ClientInitializationException, MalformedURLException, BlockNotFoundException {
public Integer call() throws ClientInitializationException, MalformedURLException {
URL endpointUrl = new URL(this.endpoint);
Connection connection = Connection.newBuilder()
.host(endpointUrl.getHost())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import com.concordium.sdk.ClientV2;
import com.concordium.sdk.Connection;
import com.concordium.sdk.exceptions.BlockNotFoundException;
import com.concordium.sdk.exceptions.ClientInitializationException;
import picocli.CommandLine;
import picocli.CommandLine.Command;
Expand All @@ -29,7 +28,7 @@ public static void main(String[] args) {
}

@Override
public Integer call() throws ClientInitializationException, MalformedURLException, BlockNotFoundException {
public Integer call() throws ClientInitializationException, MalformedURLException {
URL endpointUrl = new URL(this.endpoint);
Connection connection = Connection.newBuilder()
.host(endpointUrl.getHost())
Expand Down
Loading

0 comments on commit 5a29547

Please sign in to comment.