mirror of
https://github.com/logos-storage/nim-ethers.git
synced 2026-01-04 06:33:07 +00:00
chore(provider): add BlockNumber type alias
This commit is contained in:
parent
b5377d5874
commit
c2d2909936
@ -27,7 +27,7 @@ type
|
||||
FilterByBlockHash* {.serialize.} = ref object of EventFilter
|
||||
blockHash*: BlockHash
|
||||
Log* {.serialize.} = object
|
||||
blockNumber*: UInt256
|
||||
blockNumber*: BlockNumber
|
||||
data*: seq[byte]
|
||||
logIndex*: UInt256
|
||||
removed*: bool
|
||||
@ -52,7 +52,7 @@ type
|
||||
blockHash*: ?BlockHash
|
||||
transactionHash*: TransactionHash
|
||||
logs*: seq[Log]
|
||||
blockNumber*: ?UInt256
|
||||
blockNumber*: ?BlockNumber
|
||||
cumulativeGasUsed*: UInt256
|
||||
effectiveGasPrice*: ?UInt256
|
||||
status*: TransactionStatus
|
||||
@ -61,14 +61,15 @@ type
|
||||
BlockHandler* = proc(blck: ?!Block) {.gcsafe, raises:[].}
|
||||
Topic* = array[32, byte]
|
||||
Block* {.serialize.} = object
|
||||
number*: ?UInt256
|
||||
number*: ?BlockNumber
|
||||
timestamp*: UInt256
|
||||
hash*: ?BlockHash
|
||||
baseFeePerGas* : ?UInt256
|
||||
logsBloom*: ?StUint[2048]
|
||||
BlockNumber* = UInt256
|
||||
PastTransaction* {.serialize.} = object
|
||||
blockHash*: BlockHash
|
||||
blockNumber*: UInt256
|
||||
blockNumber*: BlockNumber
|
||||
sender* {.serialize("from"), deserialize("from").}: Address
|
||||
gas*: UInt256
|
||||
gasPrice*: UInt256
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user