|
|
@ -26,13 +26,13 @@ public class WithdrawalRequest extends Request |
|
|
|
implements org.hyperledger.besu.plugin.data.WithdrawalRequest { |
|
|
|
implements org.hyperledger.besu.plugin.data.WithdrawalRequest { |
|
|
|
|
|
|
|
|
|
|
|
private final Address sourceAddress; |
|
|
|
private final Address sourceAddress; |
|
|
|
private final BLSPublicKey validatorPubKey; |
|
|
|
private final BLSPublicKey validatorPublicKey; |
|
|
|
private final GWei amount; |
|
|
|
private final GWei amount; |
|
|
|
|
|
|
|
|
|
|
|
public WithdrawalRequest( |
|
|
|
public WithdrawalRequest( |
|
|
|
final Address sourceAddress, final BLSPublicKey validatorPubKey, final GWei amount) { |
|
|
|
final Address sourceAddress, final BLSPublicKey validatorPublicKey, final GWei amount) { |
|
|
|
this.sourceAddress = sourceAddress; |
|
|
|
this.sourceAddress = sourceAddress; |
|
|
|
this.validatorPubKey = validatorPubKey; |
|
|
|
this.validatorPublicKey = validatorPublicKey; |
|
|
|
this.amount = amount; |
|
|
|
this.amount = amount; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -47,8 +47,8 @@ public class WithdrawalRequest extends Request |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public PublicKey getValidatorPubKey() { |
|
|
|
public PublicKey getValidatorPublicKey() { |
|
|
|
return validatorPubKey; |
|
|
|
return validatorPublicKey; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
@ -61,8 +61,8 @@ public class WithdrawalRequest extends Request |
|
|
|
return "WithdrawalRequest{" |
|
|
|
return "WithdrawalRequest{" |
|
|
|
+ "sourceAddress=" |
|
|
|
+ "sourceAddress=" |
|
|
|
+ sourceAddress |
|
|
|
+ sourceAddress |
|
|
|
+ " validatorPubKey=" |
|
|
|
+ " validatorPublicKey=" |
|
|
|
+ validatorPubKey |
|
|
|
+ validatorPublicKey |
|
|
|
+ " amount=" |
|
|
|
+ " amount=" |
|
|
|
+ amount |
|
|
|
+ amount |
|
|
|
+ '}'; |
|
|
|
+ '}'; |
|
|
@ -78,12 +78,12 @@ public class WithdrawalRequest extends Request |
|
|
|
} |
|
|
|
} |
|
|
|
final WithdrawalRequest that = (WithdrawalRequest) o; |
|
|
|
final WithdrawalRequest that = (WithdrawalRequest) o; |
|
|
|
return Objects.equals(sourceAddress, that.sourceAddress) |
|
|
|
return Objects.equals(sourceAddress, that.sourceAddress) |
|
|
|
&& Objects.equals(validatorPubKey, that.validatorPubKey) |
|
|
|
&& Objects.equals(validatorPublicKey, that.validatorPublicKey) |
|
|
|
&& Objects.equals(amount, that.amount); |
|
|
|
&& Objects.equals(amount, that.amount); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public int hashCode() { |
|
|
|
public int hashCode() { |
|
|
|
return Objects.hash(sourceAddress, validatorPubKey, amount); |
|
|
|
return Objects.hash(sourceAddress, validatorPublicKey, amount); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|