rpc: filter subscriptions' notifications by name

Closes #1263
This commit is contained in:
Anna Shaleva 2020-08-04 16:24:32 +03:00
parent e9d41c78c9
commit 4ff3a9e9a7
7 changed files with 90 additions and 19 deletions

View file

@ -44,9 +44,10 @@ type (
}
// NotificationFilter is a wrapper structure representing filter used for
// notifications generated during transaction execution. Notifications can
// only be filtered by contract hash.
// be filtered by contract hash and by name.
NotificationFilter struct {
Contract util.Uint160 `json:"contract"`
Contract *util.Uint160 `json:"contract,omitempty"`
Name *string `json:"name,omitempty"`
}
// ExecutionFilter is a wrapper structure used for transaction execution
// events. It allows to choose failing or successful transactions based