From 7c1affc5c60940e8232d3d9c1a19ba889160a029 Mon Sep 17 00:00:00 2001 From: Brice Dobry Date: Wed, 20 Dec 2023 17:15:08 -0500 Subject: [PATCH] feat: add support for `TenureChange` transaction --- components/chainhook-sdk/src/indexer/stacks/mod.rs | 2 +- components/chainhook-types-rs/src/rosetta.rs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/components/chainhook-sdk/src/indexer/stacks/mod.rs b/components/chainhook-sdk/src/indexer/stacks/mod.rs index d8d521c68..26591ef15 100644 --- a/components/chainhook-sdk/src/indexer/stacks/mod.rs +++ b/components/chainhook-sdk/src/indexer/stacks/mod.rs @@ -745,7 +745,7 @@ pub fn get_tx_description( (format!("coinbase"), StacksTransactionKind::Coinbase) } TransactionPayload::TenureChange(_) => { - todo!("TenureChange") + (format!("tenure change"), StacksTransactionKind::TenureChange) } TransactionPayload::PoisonMicroblock(_, _) => { unimplemented!() diff --git a/components/chainhook-types-rs/src/rosetta.rs b/components/chainhook-types-rs/src/rosetta.rs index 024be5ab6..1f6d32947 100644 --- a/components/chainhook-types-rs/src/rosetta.rs +++ b/components/chainhook-types-rs/src/rosetta.rs @@ -162,6 +162,7 @@ pub enum StacksTransactionKind { ContractDeployment(StacksContractDeploymentData), NativeTokenTransfer, Coinbase, + TenureChange, BitcoinOp(BitcoinOpData), Unsupported, }