Skip to content

Commit

Permalink
[refactor] #1981, #4195, #3068: Use the auto-generated event sets ins…
Browse files Browse the repository at this point in the history
…tead of handwritten matchers

Signed-off-by: Nikita Strygin <[email protected]>
  • Loading branch information
DCNick3 committed Mar 1, 2024
1 parent bb9746d commit 6676b37
Show file tree
Hide file tree
Showing 4 changed files with 147 additions and 382 deletions.
20 changes: 11 additions & 9 deletions data_model/src/events/data/events.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#![allow(missing_docs)]

use getset::Getters;
use iroha_data_model_derive::{model, HasOrigin};
use iroha_data_model_derive::{model, EventSet, HasOrigin};

pub use self::model::*;
use super::*;
Expand All @@ -18,6 +18,7 @@ macro_rules! data_event {
PartialOrd,
Ord,
HasOrigin,
EventSet,
parity_scale_codec::Decode,
parity_scale_codec::Encode,
serde::Deserialize,
Expand Down Expand Up @@ -642,18 +643,19 @@ impl DataEvent {

pub mod prelude {
pub use super::{
account::{AccountEvent, AccountPermissionChanged, AccountRoleChanged},
account::{AccountEvent, AccountEventSet, AccountPermissionChanged, AccountRoleChanged},
asset::{
AssetChanged, AssetDefinitionEvent, AssetDefinitionOwnerChanged,
AssetDefinitionTotalQuantityChanged, AssetEvent,
AssetChanged, AssetDefinitionEvent, AssetDefinitionEventSet,
AssetDefinitionOwnerChanged, AssetDefinitionTotalQuantityChanged, AssetEvent,
AssetEventSet,
},
config::ConfigurationEvent,
domain::{DomainEvent, DomainOwnerChanged},
config::{ConfigurationEvent, ConfigurationEventSet},
domain::{DomainEvent, DomainEventSet, DomainOwnerChanged},
executor::{ExecutorEvent, ExecutorFilter},
peer::PeerEvent,
peer::{PeerEvent, PeerEventSet},
permission::PermissionTokenSchemaUpdateEvent,
role::{PermissionRemoved, RoleEvent},
trigger::{TriggerEvent, TriggerNumberOfExecutionsChanged},
role::{PermissionRemoved, RoleEvent, RoleEventSet},
trigger::{TriggerEvent, TriggerEventSet, TriggerNumberOfExecutionsChanged},
DataEvent, HasOrigin, MetadataChanged,
};
}
Loading

0 comments on commit 6676b37

Please sign in to comment.