Skip to content

Commit a5cb912

Browse files
authored
pre-release: 2.0.0-beta0 (#711)
1 parent 1a34901 commit a5cb912

File tree

4 files changed

+20
-15
lines changed

4 files changed

+20
-15
lines changed

CHANGELOG.md

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,28 +2,33 @@
22

33
## Pending
44

5+
## 2.0.0-beta0
6+
57
### Update:
68
- feat: add `pollTransaction` method to `SorobanServer` to poll transaction status with retry strategy. ([#696](https://github.com/stellar/java-stellar-sdk/pull/696))
79
- feat: implement message signing and verification according to [SEP-53](https://github.com/stellar/stellar-protocol/blob/master/ecosystem/sep-0053.md), check `KeyPair.signMessage` and `KeyPair.verifyMessage` for more details. ([#698](https://github.com/stellar/java-stellar-sdk/pull/698))
8-
- feat: add `isValidEd25519SecretSeed`, `isValidPreAuthTx` and `isValidSha256Hash` to `StrKey` class, these functions can be used to validate the corresponding strkey.
9-
- feat: add med25519 public key support to `StrKey`.
10-
- feat: add muxed account, liquidity pool and claimable balance support to `Address` class.
11-
- feat: add `destinationMuxedId` and `destinationMuxedIdType` to `InvokeHostFunctionOperationResponse.AssetContractBalanceChange`.
12-
- feat: add `events` field to `GetTransactionsResponse.Transaction` and `GetTransactionResponse`, see [stellar-rpc#455](https://github.com/stellar/stellar-rpc/pull/455) for more details.
13-
- feat: add `oldestLedger`, `latestLedgerCloseTime` and `oldestLedgerCloseTime` fields to `GetEventsResponse`, and add `transactionIndex` and `operationIndex` fields to `GetEventsResponse.EventInfo`, check [Stellar RPC release log](https://github.com/stellar/stellar-rpc/releases/tag/v23.0.0-rc.1) for more information.
14-
- feat: add support for non-root authorization in `SorobanServer#simulateTransaction`.
10+
- feat: add `isValidEd25519SecretSeed`, `isValidPreAuthTx` and `isValidSha256Hash` to `StrKey` class, these functions can be used to validate the corresponding strkey. ([#702](https://github.com/stellar/java-stellar-sdk/pull/702))
11+
- feat: add med25519 public key support to `StrKey`. ([#702](https://github.com/stellar/java-stellar-sdk/pull/702))
12+
- feat: add liquidity pool and claimable balance support to `StrKey`. ([#701](https://github.com/stellar/java-stellar-sdk/pull/701))
13+
- feat: add muxed account, liquidity pool and claimable balance support to `Address` class. ([#703](https://github.com/stellar/java-stellar-sdk/pull/703))
14+
- feat(SorobanServer): add `destinationMuxedId` to `InvokeHostFunctionOperationResponse.AssetContractBalanceChange`. ([#710](https://github.com/stellar/java-stellar-sdk/pull/710) and ([#705](https://github.com/stellar/java-stellar-sdk/pull/705)))
15+
- feat(SorobanServer): add `events` field to `GetTransactionsResponse.Transaction` and `GetTransactionResponse`. ([#707](https://github.com/stellar/java-stellar-sdk/pull/707))
16+
- feat(SorobanServer): add `oldestLedger`, `latestLedgerCloseTime` and `oldestLedgerCloseTime` fields to `GetEventsResponse`, and add `transactionIndex` and `operationIndex` fields to `GetEventsResponse.EventInfo`, check [Stellar RPC release log](https://github.com/stellar/stellar-rpc/releases/tag/v23.0.0-rc.1) for more information.
17+
- feat(SorobanServer): add support for non-root authorization in `SorobanServer#simulateTransaction`. ([#708](https://github.com/stellar/java-stellar-sdk/pull/708))
1518

1619
### Breaking changes:
17-
- refactor!: the following functions in `StrKey` are marked as deprecated, they will be removed in the next major release; please refer to the documentation for each function to see the corresponding replacement functions:
20+
- chore: upgrade generated XDR definitions to Protocol 23. ([#699](https://github.com/stellar/java-stellar-sdk/pull/699))
21+
- refactor!: the following functions in `StrKey` are marked as deprecated, they will be removed in the next major release; please refer to the documentation for each function to see the corresponding replacement functions: ([#702](https://github.com/stellar/java-stellar-sdk/pull/702))
1822
- `StrKey#encodeEd25519PublicKey(AccountID)`
1923
- `StrKey#encodeMuxedAccount(MuxedAccount)`
2024
- `StrKey#decodeMuxedAccount(String)`
2125
- `StrKey#encodeToXDRAccountId(String)`
2226
- `StrKey#encodeToXDRMuxedAccount(String)`
23-
- refactor!: remove `numArchivedContracts` and `archivedContractsAmount` from `AssetResponse`.
24-
- refactor!: `GetTransactionsResponse.Transaction#getDiagnosticEventsXdr()` and `GetTransactionsResponse.Transaction#parseDiagnosticEventsXdr()` has been marked as deprecated, they will be removed in Stellar RPC soon, use `GetTransactionsResponse.Transaction#getEvents()` instead.
25-
- refactor!: remove deprecated `pagingToken` field from `GetEventsResponse.EventInfo`.
26-
- refactor!: `inSuccessfulContractCall` in `GetEventsResponse.EventInfo` has been marked as deprecated, it will be removed in the next release.
27+
- refactor!: rename `readBytes` to `diskReadBytes` and update related methods in SorobanDataBuilder. ([#700](https://github.com/stellar/java-stellar-sdk/pull/700))
28+
- refactor(HorizonServer)!: remove `numArchivedContracts` and `archivedContractsAmount` from `AssetResponse`. ([#704](https://github.com/stellar/java-stellar-sdk/pull/704))
29+
- refactor(SorobanServer)!: `GetTransactionsResponse.Transaction#getDiagnosticEventsXdr()` and `GetTransactionsResponse.Transaction#parseDiagnosticEventsXdr()` has been marked as deprecated, they will be removed in Stellar RPC soon, use `GetTransactionsResponse.Transaction#getEvents()` instead. ([#706](https://github.com/stellar/java-stellar-sdk/pull/706))
30+
- refactor(SorobanServer)!: remove deprecated `pagingToken` field from `GetEventsResponse.EventInfo`. ([#707](https://github.com/stellar/java-stellar-sdk/pull/707))
31+
- refactor(SorobanServer)!: `inSuccessfulContractCall` in `GetEventsResponse.EventInfo` has been marked as deprecated, it will be removed in the next release. ([#707](https://github.com/stellar/java-stellar-sdk/pull/707))
2732

2833
## 1.5.0
2934

android_test/app/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ dependencies {
6868
implementation("androidx.compose.material3:material3")
6969
// Since we are adding local jar(libs/stellar-sdk.jar) as dependency,
7070
// gradle cannot automatically download the required third-party dependencies.
71-
implementation(files("libs/stellar-sdk-1.5.0.jar"))
71+
implementation(files("libs/stellar-sdk-2.0.0-beta0.jar"))
7272
implementation("com.squareup.okhttp3:okhttp:4.11.0")
7373
implementation("com.squareup.okhttp3:okhttp-sse:4.11.0")
7474
implementation("com.moandjiezana.toml:toml4j:0.7.2")

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ plugins {
1111
}
1212

1313
group = "network.lightsail"
14-
version = "1.5.0"
14+
version = "2.0.0-beta0"
1515

1616
java {
1717
sourceCompatibility = JavaVersion.VERSION_1_8

examples/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ spotless {
2222

2323
dependencies {
2424
// Use https://central.sonatype.com/artifact/network.lightsail/stellar-sdk in prod.
25-
implementation("network.lightsail:stellar-sdk:1.5.0")
25+
implementation("network.lightsail:stellar-sdk:2.0.0-beta0")
2626
testImplementation(platform("org.junit:junit-bom:5.10.0"))
2727
testImplementation("org.junit.jupiter:junit-jupiter")
2828
}

0 commit comments

Comments
 (0)