Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JAV-324 Deprecate encrypted transfers #339

Merged
merged 1 commit into from
Aug 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## Unreleased
- Added `MessageSigningDigest` class to generate digests for message signing
- Added support for company identity attributes
- Deprecated encrypted transfers. They are partially removed since protocol version 7

## 7.1.0
- Removed unnecessary `amount` parameter from `InvokeInstanceRequest`.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
import com.concordium.sdk.types.Nonce;
import lombok.*;

/**
* @deprecated Encrypted transfers are deprecated and partially removed since protocol version 7
*/
@Deprecated
@Getter
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
Expand Down Expand Up @@ -34,7 +38,9 @@ private EncryptedTransferTransaction(
* @return Initialized {@link EncryptedTransferTransaction}.
* @throws TransactionCreationException On failure to create the Transaction from input params.
* Ex when any of the input param is NULL.
* @deprecated Encrypted transfers are deprecated and partially removed since protocol version 7
*/
@Deprecated
@Builder
public static EncryptedTransferTransaction from(final EncryptedAmountTransferData data,
final AccountAddress receiver,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
import com.concordium.sdk.types.Nonce;
import lombok.*;

/**
* @deprecated Encrypted transfers are deprecated and partially removed since protocol version 7
*/
@Deprecated
@Getter
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
Expand Down Expand Up @@ -38,7 +42,9 @@ private EncryptedTransferWithMemoTransaction(
* @return Initialized {@link EncryptedTransferWithMemoTransaction}.
* @throws TransactionCreationException On failure to create the Transaction from input params.
* Ex when any of the input param is NULL.
* @deprecated Encrypted transfers are deprecated and partially removed since protocol version 7
*/
@Deprecated
@Builder
public static EncryptedTransferWithMemoTransaction from(
final EncryptedAmountTransferData data,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
* TransactionFactory provides convenient functions for building a
* {@link Transaction}
*/
@SuppressWarnings("DeprecatedIsStillUsed")
public class TransactionFactory {

/**
Expand Down Expand Up @@ -149,7 +150,9 @@ public static TransferToPublicTransaction.TransferToPublicTransactionBuilder new
* creating a {@link TransferToEncryptedTransaction}
*
* @return the builder for a {@link TransferToEncryptedTransaction}
* @deprecated Encrypted transfers are deprecated and partially removed since protocol version 7
*/
@Deprecated
public static TransferToEncryptedTransaction.TransferToEncryptedTransactionBuilder newTransferToEncrypted() {
return TransferToEncryptedTransaction.builder();
}
Expand All @@ -160,8 +163,9 @@ public static TransferToEncryptedTransaction.TransferToEncryptedTransactionBuild
* creating a {@link EncryptedTransferTransaction}
*
* @return the builder for a {@link EncryptedTransferTransaction}
* @deprecated Encrypted transfers are deprecated and partially removed since protocol version 7
*/

@Deprecated
public static EncryptedTransferTransaction.EncryptedTransferTransactionBuilder newEncryptedTransfer() {
return EncryptedTransferTransaction.builder();
}
Expand All @@ -172,7 +176,9 @@ public static EncryptedTransferTransaction.EncryptedTransferTransactionBuilder n
* creating a {@link EncryptedTransferTransaction}
*
* @return the builder for a {@link EncryptedTransferTransaction}
* @deprecated Encrypted transfers are deprecated and partially removed since protocol version 7
*/
@Deprecated
public static EncryptedTransferTransaction.EncryptedTransferTransactionBuilder newEncryptedTransfer(
CryptographicParameters cryptographicParameters,
AccountEncryptedAmount accountEncryptedAmount,
Expand Down Expand Up @@ -204,8 +210,9 @@ public static EncryptedTransferTransaction.EncryptedTransferTransactionBuilder n
* creating a {@link EncryptedTransferWithMemoTransaction}
*
* @return the builder for a {@link EncryptedTransferWithMemoTransaction}
* @deprecated Encrypted transfers are deprecated and partially removed since protocol version 7
*/

@Deprecated
public static EncryptedTransferWithMemoTransaction.EncryptedTransferWithMemoTransactionBuilder newEncryptedTransferWithMemo() {
return EncryptedTransferWithMemoTransaction.builder();
}
Expand All @@ -215,7 +222,9 @@ public static EncryptedTransferWithMemoTransaction.EncryptedTransferWithMemoTran
* creating a {@link EncryptedTransferWithMemoTransaction}
*
* @return the builder for a {@link EncryptedTransferWithMemoTransaction}
* @deprecated Encrypted transfers are deprecated and partially removed since protocol version 7
*/
@Deprecated
public static EncryptedTransferWithMemoTransaction.EncryptedTransferWithMemoTransactionBuilder newEncryptedTransferWithMemo(
CryptographicParameters cryptographicParameters,
AccountEncryptedAmount accountEncryptedAmount,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@

/**
* Construct a transaction to transfer from public to encrypted balance of the sender account.
*
* @deprecated Encrypted transfers are deprecated and partially removed since protocol version 7
*/
@Deprecated
@Getter
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
Expand All @@ -33,7 +36,9 @@ private TransferToEncryptedTransaction(
* @return Initialized {@link TransferToEncryptedTransaction}.
* @throws TransactionCreationException On failure to create the Transaction from input params.
* Ex when any of the input param is NULL.
* @deprecated Encrypted transfers are deprecated and partially removed since protocol version 7
*/
@Deprecated
@Builder
public static TransferToEncryptedTransaction from(
final CCDAmount amount,
Expand Down
Loading