diff --git a/CHANGELOG.md b/CHANGELOG.md index acec00728..f6d929fbd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,28 @@ As this project is pre 1.0, breaking changes may happen for minor version bumps. ## Pending +## 0.41.0-beta.0 +* Add support for Soroban Preview 10. ([#490](https://github.com/stellar/java-stellar-sdk/issues/490)) +* Correct the data type of certain fields to store the expected design values. ([#497](https://github.com/stellar/java-stellar-sdk/pull/497)) +* Add source account comparison to `ClawbackClaimableBalanceOperation`, `LiquidityPoolWithdrawOperation`, and `LiquidityPoolDepositOperation` for equality check. ([#484](https://github.com/stellar/java-stellar-sdk/pull/484)) +* Add basic implementation of `liquidity_pools?account` ([#426](https://github.com/stellar/java-stellar-sdk/pull/426)) + +### Breaking changes +* `Utils.claimableBalanceIdToXDR` and `Utils.xdrToClaimableBalanceId` have been removed. ([#503](https://github.com/stellar/java-stellar-sdk/pull/503)) +* The types of the following fields have changed. ([#498](https://github.com/stellar/java-stellar-sdk/pull/498)) + | field | before | now | + | ----------------------------------------- | ------ | ---------- | + | LedgerBounds.minLedger | int | long | + | LedgerBounds.maxLedger | int | long | + | MemoId.id | long | BigInteger | + | TimeBounds.minTime | long | BigInteger | + | TimeBounds.maxTime | long | BigInteger | + | TransactionBuilder.baseFee | int | long | + | TransactionPreconditions.TIMEOUT_INFINITE | long | BigInteger | + | TransactionPreconditions.minSeqAge | Long | BigInteger | + | TransactionPreconditions.minSeqLedgerGap | int | long | + + ## 0.40.0 * Add strkey support for contract ids ([#471](https://github.com/stellar/java-stellar-sdk/pull/471)) * Fix NPE in `KeyPair.equals()` method ([#474](https://github.com/stellar/java-stellar-sdk/pull/474)) diff --git a/build.gradle b/build.gradle index a8455fde2..b52c646e7 100644 --- a/build.gradle +++ b/build.gradle @@ -25,7 +25,7 @@ spotless { sourceCompatibility = JavaVersion.VERSION_1_8.toString() -version = '0.40.0' +version = '0.41.0-beta.0' group = 'stellar' jar.enabled = false diff --git a/src/main/java/org/stellar/sdk/TransactionBuilder.java b/src/main/java/org/stellar/sdk/TransactionBuilder.java index da85d14f5..fa5e70ed9 100644 --- a/src/main/java/org/stellar/sdk/TransactionBuilder.java +++ b/src/main/java/org/stellar/sdk/TransactionBuilder.java @@ -264,7 +264,13 @@ public static org.stellar.sdk.xdr.TimeBounds buildTimeBounds(long minTime, long } /** - * Sets Soroban data to the transaction. TODO: After adding SorobanServer, add more descriptions. + * Sets the transaction's internal Soroban transaction data (resources, footprint, etc.). + * + *

For non-contract(non-Soroban) transactions, this setting has no effect. In the case of + * Soroban transactions, this is either an instance of {@link SorobanTransactionData} or a + * base64-encoded string of said structure. This is usually obtained from the simulation response + * based on a transaction with a Soroban operation (e.g. {@link InvokeHostFunctionOperation}, + * providing necessary resource and storage footprint estimations for contract invocation. * * @param sorobanData Soroban data to set * @return Builder object so you can chain methods. @@ -275,9 +281,15 @@ public TransactionBuilder setSorobanData(SorobanTransactionData sorobanData) { } /** - * Sets Soroban data to the transaction. TODO: After adding SorobanServer, add more descriptions. + * Sets the transaction's internal Soroban transaction data (resources, footprint, etc.). * - * @param sorobanData Soroban data to set + *

For non-contract(non-Soroban) transactions, this setting has no effect. In the case of + * Soroban transactions, this is either an instance of {@link SorobanTransactionData} or a + * base64-encoded string of said structure. This is usually obtained from the simulation response + * based on a transaction with a Soroban operation (e.g. {@link InvokeHostFunctionOperation}, + * providing necessary resource and storage footprint estimations for contract invocation. + * + * @param sorobanData base64 encoded Soroban data to set * @return Builder object so you can chain methods. */ public TransactionBuilder setSorobanData(String sorobanData) {