mirror of
https://github.com/logos-storage/nim-ethers.git
synced 2026-01-06 23:53:10 +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
|
FilterByBlockHash* {.serialize.} = ref object of EventFilter
|
||||||
blockHash*: BlockHash
|
blockHash*: BlockHash
|
||||||
Log* {.serialize.} = object
|
Log* {.serialize.} = object
|
||||||
blockNumber*: UInt256
|
blockNumber*: BlockNumber
|
||||||
data*: seq[byte]
|
data*: seq[byte]
|
||||||
logIndex*: UInt256
|
logIndex*: UInt256
|
||||||
removed*: bool
|
removed*: bool
|
||||||
@ -52,7 +52,7 @@ type
|
|||||||
blockHash*: ?BlockHash
|
blockHash*: ?BlockHash
|
||||||
transactionHash*: TransactionHash
|
transactionHash*: TransactionHash
|
||||||
logs*: seq[Log]
|
logs*: seq[Log]
|
||||||
blockNumber*: ?UInt256
|
blockNumber*: ?BlockNumber
|
||||||
cumulativeGasUsed*: UInt256
|
cumulativeGasUsed*: UInt256
|
||||||
effectiveGasPrice*: ?UInt256
|
effectiveGasPrice*: ?UInt256
|
||||||
status*: TransactionStatus
|
status*: TransactionStatus
|
||||||
@ -61,14 +61,15 @@ type
|
|||||||
BlockHandler* = proc(blck: ?!Block) {.gcsafe, raises:[].}
|
BlockHandler* = proc(blck: ?!Block) {.gcsafe, raises:[].}
|
||||||
Topic* = array[32, byte]
|
Topic* = array[32, byte]
|
||||||
Block* {.serialize.} = object
|
Block* {.serialize.} = object
|
||||||
number*: ?UInt256
|
number*: ?BlockNumber
|
||||||
timestamp*: UInt256
|
timestamp*: UInt256
|
||||||
hash*: ?BlockHash
|
hash*: ?BlockHash
|
||||||
baseFeePerGas* : ?UInt256
|
baseFeePerGas* : ?UInt256
|
||||||
logsBloom*: ?StUint[2048]
|
logsBloom*: ?StUint[2048]
|
||||||
|
BlockNumber* = UInt256
|
||||||
PastTransaction* {.serialize.} = object
|
PastTransaction* {.serialize.} = object
|
||||||
blockHash*: BlockHash
|
blockHash*: BlockHash
|
||||||
blockNumber*: UInt256
|
blockNumber*: BlockNumber
|
||||||
sender* {.serialize("from"), deserialize("from").}: Address
|
sender* {.serialize("from"), deserialize("from").}: Address
|
||||||
gas*: UInt256
|
gas*: UInt256
|
||||||
gasPrice*: UInt256
|
gasPrice*: UInt256
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user