|
|
|
@ -25,12 +25,6 @@ import com.fasterxml.jackson.annotation.JsonCreator; |
|
|
|
|
import com.fasterxml.jackson.annotation.JsonProperty; |
|
|
|
|
import org.apache.tuweni.bytes.Bytes32; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* parentHash: DATA, 32 Bytes feeRecipient: DATA, 20 Bytes stateRoot: DATA, 32 Bytes receiptsRoot: |
|
|
|
|
* DATA, 32 Bytes logsBloom: DATA, 256 Bytes prevRandao: DATA, 32 Bytes blockNumber: QUANTITY |
|
|
|
|
* gasLimit: QUANTITY gasUsed: QUANTITY timestamp: QUANTITY baseFeePerGas: QUANTITY blockHash: DATA, |
|
|
|
|
* 32 Bytes transactions: Array of TypedTransaction |
|
|
|
|
*/ |
|
|
|
|
public class EnginePayloadParameter { |
|
|
|
|
private final Hash blockHash; |
|
|
|
|
private final Hash parentHash; |
|
|
|
@ -49,9 +43,30 @@ public class EnginePayloadParameter { |
|
|
|
|
private final List<WithdrawalParameter> withdrawals; |
|
|
|
|
private final Long blobGasUsed; |
|
|
|
|
private final String excessBlobGas; |
|
|
|
|
private final List<Bytes32> versionedHashes; |
|
|
|
|
private final List<DepositParameter> deposits; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Creates an instance of EnginePayloadParameter. |
|
|
|
|
* |
|
|
|
|
* @param blockHash DATA, 32 Bytes |
|
|
|
|
* @param parentHash DATA, 32 Bytes |
|
|
|
|
* @param feeRecipient DATA, 20 Bytes |
|
|
|
|
* @param stateRoot DATA, 32 Bytes |
|
|
|
|
* @param blockNumber QUANTITY, 64 Bits |
|
|
|
|
* @param baseFeePerGas QUANTITY, 256 Bits |
|
|
|
|
* @param gasLimit QUANTITY, 64 Bits |
|
|
|
|
* @param gasUsed QUANTITY, 64 Bits |
|
|
|
|
* @param timestamp QUANTITY, 64 Bits |
|
|
|
|
* @param extraData DATA, 0 to 32 Bytes |
|
|
|
|
* @param receiptsRoot DATA, 32 Bytes |
|
|
|
|
* @param logsBloom DATA, 256 Bytes |
|
|
|
|
* @param prevRandao DATA, 32 Bytes |
|
|
|
|
* @param transactions Array of DATA |
|
|
|
|
* @param withdrawals Array of Withdrawal |
|
|
|
|
* @param blobGasUsed QUANTITY, 64 Bits |
|
|
|
|
* @param excessBlobGas QUANTITY, 64 Bits |
|
|
|
|
* @param deposits List of deposit parameters. |
|
|
|
|
*/ |
|
|
|
|
@JsonCreator |
|
|
|
|
public EnginePayloadParameter( |
|
|
|
|
@JsonProperty("blockHash") final Hash blockHash, |
|
|
|
@ -71,7 +86,6 @@ public class EnginePayloadParameter { |
|
|
|
|
@JsonProperty("withdrawals") final List<WithdrawalParameter> withdrawals, |
|
|
|
|
@JsonProperty("blobGasUsed") final UnsignedLongParameter blobGasUsed, |
|
|
|
|
@JsonProperty("excessBlobGas") final String excessBlobGas, |
|
|
|
|
@JsonProperty("versionedHashes") final List<Bytes32> versionedHashes, |
|
|
|
|
@JsonProperty("deposits") final List<DepositParameter> deposits) { |
|
|
|
|
this.blockHash = blockHash; |
|
|
|
|
this.parentHash = parentHash; |
|
|
|
@ -90,7 +104,6 @@ public class EnginePayloadParameter { |
|
|
|
|
this.withdrawals = withdrawals; |
|
|
|
|
this.blobGasUsed = blobGasUsed == null ? null : blobGasUsed.getValue(); |
|
|
|
|
this.excessBlobGas = excessBlobGas; |
|
|
|
|
this.versionedHashes = versionedHashes; |
|
|
|
|
this.deposits = deposits; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -165,8 +178,4 @@ public class EnginePayloadParameter { |
|
|
|
|
public List<DepositParameter> getDeposits() { |
|
|
|
|
return deposits; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public List<Bytes32> getVersionedHashes() { |
|
|
|
|
return versionedHashes; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|