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

Privacy RPC methods - @Deprecate #7903

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import org.hyperledger.besu.ethereum.api.jsonrpc.internal.response.JsonRpcResponse;
import org.hyperledger.besu.ethereum.api.jsonrpc.internal.response.RpcErrorType;

@Deprecated(since = "24.11.0")
public class DisabledPrivacyRpcMethod implements JsonRpcMethod {

private final String methodName;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

@Deprecated(since = "24.11.0")
public class MultiTenancyRpcMethodDecorator implements JsonRpcMethod {
private static final Logger LOG = LoggerFactory.getLogger(MultiTenancyRpcMethodDecorator.class);
private final JsonRpcMethod rpcMethod;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

import io.vertx.ext.auth.User;

@Deprecated(since = "24.11.0")
public class MultiTenancyUserUtil {
private static final String PRIVACY_USER_ID_CLAIM = "privacyUserId";
private static final String ENCLAVE_PRIVACY_PUBLIC_KEY_CLAIM = "privacyPublicKey";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@

import java.util.List;

@Deprecated(since = "24.11.0")
public class PrivGetFilterChanges implements JsonRpcMethod {

private final PrivacyController privacyController;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@

import java.util.List;

@Deprecated(since = "24.11.0")
public class PrivGetFilterLogs implements JsonRpcMethod {

private final PrivacyController privacyController;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
import org.hyperledger.besu.ethereum.privacy.MultiTenancyPrivacyController;
import org.hyperledger.besu.ethereum.privacy.PrivacyController;

@Deprecated(since = "24.11.0")
public class PrivUninstallFilter implements JsonRpcMethod {

private final FilterManager filterManager;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
import io.vertx.ext.auth.User;

@FunctionalInterface
@Deprecated(since = "24.11.0")
public interface PrivacyIdProvider {

String getPrivacyUserId(Optional<User> user);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

@Deprecated(since = "24.11.0")
public abstract class AbstractEeaSendRawTransaction implements JsonRpcMethod {
private static final Logger LOG = LoggerFactory.getLogger(AbstractEeaSendRawTransaction.class);
private final TransactionPool transactionPool;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

import org.hyperledger.besu.ethereum.api.jsonrpc.internal.response.RpcErrorType;

@Deprecated(since = "24.11.0")
public class JsonRpcErrorResponseException extends RuntimeException {

private final RpcErrorType jsonRpcError;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
import io.vertx.ext.auth.User;
import org.apache.tuweni.bytes.Bytes;

@Deprecated(since = "24.11.0")
public class PluginEeaSendRawTransaction extends AbstractEeaSendRawTransaction {
private final PrivacyController privacyController;
private final PrivacyIdProvider privacyIdProvider;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
import io.vertx.ext.auth.User;
import org.apache.tuweni.bytes.Bytes;

@Deprecated(since = "24.11.0")
public class RestrictedFlexibleEeaSendRawTransaction extends AbstractEeaSendRawTransaction {

private final PrivacyController privacyController;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
import io.vertx.ext.auth.User;
import org.apache.tuweni.bytes.Bytes;

@Deprecated(since = "24.11.0")
public class RestrictedOffchainEeaSendRawTransaction extends AbstractEeaSendRawTransaction {

final PrivacyController privacyController;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
import java.util.function.Supplier;
import java.util.stream.Stream;

@Deprecated(since = "24.11.0")
public abstract class AbstractPrivateTraceByHash implements JsonRpcMethod {

protected final Supplier<PrivateBlockTracer> blockTracerSupplier;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
import org.hyperledger.besu.ethereum.processing.TransactionProcessingResult;
import org.hyperledger.besu.ethereum.transaction.TransactionInvalidReason;

@Deprecated(since = "24.11.0")
public class PrivCall extends AbstractBlockParameterMethod {

private final PrivacyIdProvider privacyIdProvider;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

@Deprecated(since = "24.11.0")
public class PrivCreatePrivacyGroup implements JsonRpcMethod {

private static final Logger LOG = LoggerFactory.getLogger(PrivCreatePrivacyGroup.class);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

@Deprecated(since = "24.11.0")
public class PrivDebugGetStateRoot extends AbstractBlockParameterMethod {

private static final Logger LOG = LoggerFactory.getLogger(PrivDebugGetStateRoot.class);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

@Deprecated(since = "24.11.0")
public class PrivDeletePrivacyGroup implements JsonRpcMethod {

private static final Logger LOG = LoggerFactory.getLogger(PrivDeletePrivacyGroup.class);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

@Deprecated(since = "24.11.0")
public class PrivDistributeRawTransaction implements JsonRpcMethod {

private static final Logger LOG = LoggerFactory.getLogger(PrivDistributeRawTransaction.class);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
import org.slf4j.LoggerFactory;

@SuppressWarnings("MockNotUsedInProduction")
@Deprecated(since = "24.11.0")
public class PrivFindPrivacyGroup implements JsonRpcMethod {

private static final Logger LOG = LoggerFactory.getLogger(PrivFindPrivacyGroup.class);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@

import org.apache.tuweni.bytes.Bytes;

@Deprecated(since = "24.11.0")
public class PrivGetCode extends AbstractBlockParameterMethod {

private final PrivacyController privacyController;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

@Deprecated(since = "24.11.0")
public class PrivGetEeaTransactionCount implements JsonRpcMethod {

private static final Logger LOG = LoggerFactory.getLogger(PrivGetEeaTransactionCount.class);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
import java.util.List;
import java.util.Optional;

@Deprecated(since = "24.11.0")
public class PrivGetLogs implements JsonRpcMethod {

private final BlockchainQueries blockchainQueries;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
import org.hyperledger.besu.ethereum.api.jsonrpc.internal.response.JsonRpcSuccessResponse;
import org.hyperledger.besu.ethereum.core.PrivacyParameters;

@Deprecated(since = "24.11.0")
public class PrivGetPrivacyPrecompileAddress implements JsonRpcMethod {

private final Address privacyAddress;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

@Deprecated(since = "24.11.0")
public class PrivGetPrivateTransaction implements JsonRpcMethod {

private static final Logger LOG = LoggerFactory.getLogger(PrivGetPrivateTransaction.class);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

@Deprecated(since = "24.11.0")
public class PrivGetTransactionCount implements JsonRpcMethod {

private static final Logger LOG = LoggerFactory.getLogger(PrivGetTransactionCount.class);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

@Deprecated(since = "24.11.0")
public class PrivGetTransactionReceipt implements JsonRpcMethod {

private static final Logger LOG = LoggerFactory.getLogger(PrivGetTransactionReceipt.class);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
import org.hyperledger.besu.ethereum.privacy.MultiTenancyPrivacyController;
import org.hyperledger.besu.ethereum.privacy.PrivacyController;

@Deprecated(since = "24.11.0")
public class PrivNewFilter implements JsonRpcMethod {

private final FilterManager filterManager;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

@Deprecated(since = "24.11.0")
public class PrivTraceTransaction extends AbstractPrivateTraceByHash implements JsonRpcMethod {
private static final Logger LOG = LoggerFactory.getLogger(TraceTransaction.class);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

import java.util.Optional;

@Deprecated(since = "24.11.0")
public class PrivUtil {

public static void checkMembershipForAuthenticatedUser(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

@Deprecated(since = "24.11.0")
public class PrivxFindFlexiblePrivacyGroup implements JsonRpcMethod {

private static final Logger LOG = LoggerFactory.getLogger(PrivxFindFlexiblePrivacyGroup.class);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
import org.hyperledger.besu.ethereum.privacy.PrivacyController;

// Use PrivxFindFlexiblePrivacyGroup instead
@Deprecated
@Deprecated(since = "21.10.3")
public class PrivxFindOnchainPrivacyGroup extends PrivxFindFlexiblePrivacyGroup {

public PrivxFindOnchainPrivacyGroup(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;

@Deprecated(since = "24.11.0")
public class CreatePrivacyGroupParameter {

private final List<String> addresses;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@

import java.util.Map;

@Deprecated(since = "24.11.0")
public class PrivJsonRpcMethods extends PrivacyApiGroupJsonRpcMethods {

private final FilterManager filterManager;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
import java.util.Optional;
import java.util.stream.Collectors;

@Deprecated(since = "24.11.0")
public abstract class PrivacyApiGroupJsonRpcMethods extends ApiGroupJsonRpcMethods {

private final BlockchainQueries blockchainQueries;
Expand Down
Loading