From bac2017321c5ff14402051e68fef1f775f804bad Mon Sep 17 00:00:00 2001 From: Simon Warta Date: Fri, 10 Nov 2023 23:35:31 +0100 Subject: [PATCH] Deprecate cw_utils::Event --- src/event.rs | 3 +++ src/lib.rs | 1 + 2 files changed, 4 insertions(+) diff --git a/src/event.rs b/src/event.rs index 79abed5a..96eeb2a8 100644 --- a/src/event.rs +++ b/src/event.rs @@ -1,6 +1,9 @@ use cosmwasm_std::Response; /// This defines a set of attributes which should be added to `Response`. +#[deprecated( + note = "This is probably not needed anymore. If you use it, please share in https://github.com/CosmWasm/cw-utils/issues/17." +)] pub trait Event { /// Append attributes to response fn add_attributes(&self, response: &mut Response); diff --git a/src/lib.rs b/src/lib.rs index d88e6592..b195932a 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -29,6 +29,7 @@ pub use payment::{may_pay, must_pay, nonpayable, one_coin, PaymentError}; pub use threshold::{Threshold, ThresholdError, ThresholdResponse}; pub use crate::balance::NativeBalance; +#[allow(deprecated)] pub use crate::event::Event; pub use crate::expiration::{Duration, Expiration, DAY, HOUR, WEEK}; pub use crate::scheduled::Scheduled;