diff --git a/crates/bin/pindexer/src/dex_ex/mod.rs b/crates/bin/pindexer/src/dex_ex/mod.rs index 10ecd06dbb..27af8df5ac 100644 --- a/crates/bin/pindexer/src/dex_ex/mod.rs +++ b/crates/bin/pindexer/src/dex_ex/mod.rs @@ -1408,7 +1408,7 @@ impl Component { dbtx: &mut PgTransaction<'_>, time: DateTime, height: i32, - transaction_id: TransactionId, + transaction_id: [u8; 32], transaction: Transaction, ) -> anyhow::Result<()> { sqlx::query( diff --git a/crates/core/component/dex/src/event.rs b/crates/core/component/dex/src/event.rs index b8ba02677a..8b39d6a7e3 100644 --- a/crates/core/component/dex/src/event.rs +++ b/crates/core/component/dex/src/event.rs @@ -661,42 +661,3 @@ impl From for pb::EventCandlestickData { impl DomainType for EventCandlestickData { type Proto = pb::EventCandlestickData; } - -#[derive(Clone, Debug)] -pub struct EventBlockTransaction { - pub transaction_id: TransactionId, - pub transaction: Transaction, -} - -impl TryFrom for EventBlockTransaction { - type Error = anyhow::Error; - - fn try_from(value: pb::EventBlockTransaction) -> Result { - fn inner(value: pb::EventBlockTransaction) -> anyhow::Result { - Ok(EventBlockTransaction { - transaction_id: value - .transaction_id - .ok_or(anyhow!("missing `transaction_id`"))? - .try_into()?, - transaction: value - .transaction - .ok_or(anyhow!("missing `transaction`"))? - .try_into()?, - }) - } - inner(value).context(format!("parsing {}", pb::EventBlockTransaction::NAME)) - } -} - -impl From for pb::EventBlockTransaction { - fn from(value: EventBlockTransaction) -> Self { - Self { - transaction_id: Some(value.transaction_id.into()), - transaction: Some(value.transaction.into()), - } - } -} - -impl DomainType for EventBlockTransaction { - type Proto = pb::EventBlockTransaction; -} diff --git a/crates/proto/src/gen/proto_descriptor.bin.no_lfs b/crates/proto/src/gen/proto_descriptor.bin.no_lfs index f613403ab9..6dc78d95fc 100644 Binary files a/crates/proto/src/gen/proto_descriptor.bin.no_lfs and b/crates/proto/src/gen/proto_descriptor.bin.no_lfs differ