Change some FeeHistoryResult field types from Quantity to UInt256

This commit is contained in:
jangko 2024-04-15 17:20:33 +07:00
parent a31bc63448
commit 9620fee53f
No known key found for this signature in database
GPG Key ID: 31702AE10541E6B9
1 changed files with 4 additions and 4 deletions

View File

@ -248,16 +248,16 @@ type
of bidAlias:
alias*: string
FeeHistoryReward* = array[2, Quantity]
FeeHistoryReward* = seq[UInt256]
# https://github.com/ethereum/execution-apis/blob/90a46e9137c89d58e818e62fa33a0347bba50085/src/eth/fee_market.yaml#L50
FeeHistoryResult* = object
oldestBlock*: Quantity
baseFeePerGas*: seq[Quantity]
baseFeePerBlobGas*: seq[Quantity]
baseFeePerGas*: seq[UInt256]
baseFeePerBlobGas*: seq[UInt256]
gasUsedRatio*: seq[float64]
blobGasUsedRatio*: seq[float64]
reward*: seq[FeeHistoryReward]
reward*: Option[seq[FeeHistoryReward]]
{.push raises: [].}