Gnosis network support

This commit is contained in:
Zahary Karadjov 2022-02-18 18:26:07 +02:00
parent 0012deda79
commit 63d586bd9d
No known key found for this signature in database
GPG Key ID: C8936F8A3073D609
1 changed files with 5 additions and 3 deletions

View File

@ -83,8 +83,9 @@ type
gasLimit*: Quantity
gasUsed*: Quantity
timestamp*: Quantity
nonce*: Quantity
mixHash*: BlockHash
when not defined(gnosisChainBinary):
nonce*: Quantity
mixHash*: BlockHash
## A block object, or null when no block was found
BlockObject* = ref object
@ -102,7 +103,8 @@ type
gasLimit*: Quantity # the maximum gas allowed in this block.
gasUsed*: Quantity # the total used gas by all transactions in this block.
timestamp*: Quantity # the unix timestamp for when the block was collated.
nonce*: Quantity # hash of the generated proof-of-work. null when its pending block.
when not defined(gnosisChainBinary):
nonce*: Option[Quantity] # hash of the generated proof-of-work. null when its pending block.
size*: Quantity # integer the size of this block in bytes.
totalDifficulty*: UInt256 # integer of the total difficulty of the chain until this block.
transactions*: seq[TxHash] # list of transaction objects, or 32 Bytes transaction hashes depending on the last given parameter.