Skip to content

Commit

Permalink
Release 3.0.0 (#68)
Browse files Browse the repository at this point in the history
  • Loading branch information
MilkywayPirate authored May 25, 2022
1 parent ce4dee6 commit d03f27f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Changelog

## Unreleased changes

## 3.0.0
- Stronger typing for various places in the API.
- Renamed GTUAmount to CCDAmount
- New CredentialRegistrationId type.
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,9 +141,9 @@ perform an orderly shutdown of the underlying grpc connection.

- `getAccountInfo`
```java
AccountInfo getAccountInfo(AccountAddress address, Hash blockHash) throws AccountNotFoundException
AccountInfo getAccountInfo(AccountRequest request, Hash blockHash) throws AccountNotFoundException
```
Retrieves the [AccountInfo](./concordium-java-sdk/blob/main/concordium-sdk/src/main/java/com/concordium/sdk/responses/accountinfo/AccountInfo.java) given an `AccountAddress` and a block `Hash`.
Retrieves the [AccountInfo](./concordium-java-sdk/blob/main/concordium-sdk/src/main/java/com/concordium/sdk/responses/accountinfo/AccountInfo.java) given an `AccountRequest` and a block `Hash`.
Throws a `AccountNotFoundException` if the account was not found.

- `getNextAccountNonce`
Expand Down Expand Up @@ -254,9 +254,9 @@ Client client = Client.from(connection);

```java
Hash blockHash = Hash.from("3d52e63350bfd21676ecbf6ce29688e3be6bff86cbacfe138aac107b64d29ba1");
AccountAddress accountAddress = AccountAddress.from("3uyRpq2NPSY4VJn8Qd1uWGcUQTGpCAarHTtqpneiSGqv36Uhna");
AccountRequest accountRequest = AccountRequest.from(AccountAddress.from("3uyRpq2NPSY4VJn8Qd1uWGcUQTGpCAarHTtqpneiSGqv36Uhna"));
try {
AccountInfo accountInfo = client.getAccountInfo(accountAddress, blockHash);
AccountInfo accountInfo = client.getAccountInfo(accountRequest, blockHash);
} catch(AccountNotFoundException e) {
Log.err(e.getMessage);
}
Expand Down
2 changes: 1 addition & 1 deletion concordium-sdk/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>com.concordium.sdk</groupId>
<artifactId>concordium-sdk</artifactId>
<version>2.4.1-SNAPSHOT</version>
<version>3.0.0</version>

<name>concordium-sdk</name>
<!-- FIXME change it to the project's website -->
Expand Down

0 comments on commit d03f27f

Please sign in to comment.