mirror of
https://github.com/bisq-network/bisq.git
synced 2025-02-23 23:06:39 +01:00
Add RestrictedByContractJson interface
This commit is contained in:
parent
791c16a2e6
commit
091e766e21
4 changed files with 7 additions and 4 deletions
|
@ -20,6 +20,7 @@ package io.bisq.common.crypto;
|
|||
import com.google.protobuf.ByteString;
|
||||
import io.bisq.common.proto.network.NetworkPayload;
|
||||
import io.bisq.common.util.Utilities;
|
||||
import io.bisq.consensus.RestrictedByContractJson;
|
||||
import io.bisq.generated.protobuffer.PB;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.Getter;
|
||||
|
@ -36,7 +37,7 @@ import java.security.PublicKey;
|
|||
@Slf4j
|
||||
@EqualsAndHashCode
|
||||
@Getter
|
||||
public final class PubKeyRing implements NetworkPayload {
|
||||
public final class PubKeyRing implements NetworkPayload, RestrictedByContractJson {
|
||||
private final byte[] signaturePubKeyBytes;
|
||||
private final byte[] encryptionPubKeyBytes;
|
||||
@Nullable
|
||||
|
|
|
@ -20,7 +20,7 @@ package io.bisq.consensus;
|
|||
/**
|
||||
* Market interface for classes which are used in the trade contract.
|
||||
* Any change of the class fields would breaking backward compatibility.
|
||||
* If a field needs to gets added it need to be be annotated with @JsonExclude (thus excluded from the contract JSON).
|
||||
* If a field needs to gets added it needs to be annotated with @JsonExclude (thus excluded from the contract JSON).
|
||||
*/
|
||||
public interface RestrictedByContractJson {
|
||||
}
|
||||
|
|
|
@ -18,6 +18,7 @@
|
|||
package io.bisq.core.payment.payload;
|
||||
|
||||
import io.bisq.common.proto.network.NetworkPayload;
|
||||
import io.bisq.consensus.RestrictedByContractJson;
|
||||
import io.bisq.generated.protobuffer.PB;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.Getter;
|
||||
|
@ -32,7 +33,7 @@ import lombok.extern.slf4j.Slf4j;
|
|||
@EqualsAndHashCode
|
||||
@ToString
|
||||
@Slf4j
|
||||
public abstract class PaymentAccountPayload implements NetworkPayload {
|
||||
public abstract class PaymentAccountPayload implements NetworkPayload, RestrictedByContractJson {
|
||||
protected final String paymentMethodId;
|
||||
protected final String id;
|
||||
|
||||
|
|
|
@ -4,6 +4,7 @@ import io.bisq.common.crypto.Hash;
|
|||
import io.bisq.common.proto.network.NetworkPayload;
|
||||
import io.bisq.common.proto.persistable.PersistablePayload;
|
||||
import io.bisq.common.util.JsonExclude;
|
||||
import io.bisq.consensus.RestrictedByContractJson;
|
||||
import io.bisq.generated.protobuffer.PB;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.Getter;
|
||||
|
@ -16,7 +17,7 @@ import static com.google.common.base.Preconditions.checkArgument;
|
|||
@Getter
|
||||
@EqualsAndHashCode
|
||||
@Slf4j
|
||||
public final class NodeAddress implements PersistablePayload, NetworkPayload {
|
||||
public final class NodeAddress implements PersistablePayload, NetworkPayload, RestrictedByContractJson {
|
||||
private final String hostName;
|
||||
private final int port;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue