Skip to content

Commit

Permalink
Refactor events.rs.
Browse files Browse the repository at this point in the history
  • Loading branch information
ray-kast committed Jul 19, 2023
1 parent a100069 commit d52f726
Show file tree
Hide file tree
Showing 5 changed files with 428 additions and 647 deletions.
17 changes: 16 additions & 1 deletion consumer/src/backend.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use holaplex_hub_nfts_solana_entity::{collection_mints, collections};

use holaplex_hub_nfts_solana_core::proto::{
MetaplexMasterEditionTransaction, MintMetaplexEditionTransaction,
TransferMetaplexAssetTransaction,
TransferMetaplexAssetTransaction, SolanaPendingTransaction,
};
use hub_core::prelude::*;
use solana_program::pubkey::Pubkey;
Expand Down Expand Up @@ -54,6 +54,21 @@ pub struct TransactionResponse<A> {
pub addresses: A,
}

impl<A> From<TransactionResponse<A>> for SolanaPendingTransaction {
fn from(
TransactionResponse {
serialized_message,
signatures_or_signers_public_keys,
..
}: TransactionResponse<A>,
) -> Self {
Self {
serialized_message,
signatures_or_signers_public_keys,
}
}
}

// TODO: include this in collections::Model
pub enum CollectionType {
Legacy,
Expand Down
Loading

0 comments on commit d52f726

Please sign in to comment.