-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(filter): waku filter rpc codec support optional fields
- Loading branch information
Lorenzo Delgado
committed
Nov 18, 2022
1 parent
f89e686
commit fb60021
Showing
5 changed files
with
74 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,27 @@ | ||
import ../waku_message | ||
when (NimMajor, NimMinor) < (1, 4): | ||
{.push raises: [Defect].} | ||
else: | ||
{.push raises: [].} | ||
|
||
import | ||
std/options | ||
import | ||
../waku_message | ||
|
||
|
||
type | ||
ContentFilter* = object | ||
contentTopic*: ContentTopic | ||
contentTopic*: string | ||
|
||
FilterRequest* = object | ||
contentFilters*: seq[ContentFilter] | ||
pubSubTopic*: string | ||
pubsubTopic*: string | ||
subscribe*: bool | ||
|
||
MessagePush* = object | ||
messages*: seq[WakuMessage] | ||
|
||
FilterRPC* = object | ||
requestId*: string | ||
request*: FilterRequest | ||
push*: MessagePush | ||
request*: Option[FilterRequest] | ||
push*: Option[MessagePush] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters