Skip to content

Commit

Permalink
Deprecate encrypted transfers
Browse files Browse the repository at this point in the history
Encrypted transfers are deprecated and partially removed since protocol version 7
  • Loading branch information
Radiokot committed Aug 1, 2024
1 parent f4e37e0 commit e80f008
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 2 deletions.
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

0 comments on commit e80f008

Please sign in to comment.