|
@@ -42,7 +42,7 @@ pub fn event(
|
|
|
.unwrap_or_else(|| gen_discriminator("event", event_name));
|
|
|
|
|
|
let ret = quote! {
|
|
|
- #[derive(anchor_lang::__private::EventIndex, AnchorSerialize, AnchorDeserialize)]
|
|
|
+ #[derive(AnchorSerialize, AnchorDeserialize)]
|
|
|
#event_strct
|
|
|
|
|
|
impl anchor_lang::Event for #event_name {
|
|
@@ -72,14 +72,6 @@ pub fn event(
|
|
|
proc_macro::TokenStream::from(ret)
|
|
|
}
|
|
|
|
|
|
-// EventIndex is a marker macro. It functionally does nothing other than
|
|
|
-// allow one to mark fields with the `#[index]` inert attribute, which is
|
|
|
-// used to add metadata to IDLs.
|
|
|
-#[proc_macro_derive(EventIndex, attributes(index))]
|
|
|
-pub fn derive_event(_item: proc_macro::TokenStream) -> proc_macro::TokenStream {
|
|
|
- proc_macro::TokenStream::from(quote! {})
|
|
|
-}
|
|
|
-
|
|
|
/// Logs an event that can be subscribed to by clients.
|
|
|
/// Uses the [`sol_log_data`](https://docs.rs/solana-program/latest/solana_program/log/fn.sol_log_data.html)
|
|
|
/// syscall which results in the following log:
|