Add WhisperFilterOptions

This commit is contained in:
coffeepots 2018-12-05 16:06:41 +00:00 committed by zah
parent ef172a857a
commit 51df75a296
1 changed files with 4 additions and 0 deletions

View File

@ -119,6 +119,10 @@ type
toBlock*: Option[string] # (optional, default: "latest") integer block number, or "latest" for the last mined block or "pending", "earliest" for not yet mined transactions. toBlock*: Option[string] # (optional, default: "latest") integer block number, or "latest" for the last mined block or "pending", "earliest" for not yet mined transactions.
address*: Option[EthAddress] # (optional) contract address or a list of addresses from which logs should originate. address*: Option[EthAddress] # (optional) contract address or a list of addresses from which logs should originate.
topics*: Option[seq[FilterData]] # (optional) list of DATA topics. Topics are order-dependent. Each topic can also be a list of DATA with "or" options. topics*: Option[seq[FilterData]] # (optional) list of DATA topics. Topics are order-dependent. Each topic can also be a list of DATA with "or" options.
WhisperFilterOptions* = object
to*: Option[WhisperIdentityStr]
topics*: seq[HexDataStr]
WhisperPost* = object WhisperPost* = object
# Parameter from user # Parameter from user