From 337910962ccf4cc84f67657e8e4e3f61bb974c5f Mon Sep 17 00:00:00 2001 From: Ludovic Galabru Date: Wed, 10 Jan 2024 20:17:08 -0500 Subject: [PATCH] chore: revisit ordinals schema --- Cargo.lock | 4 ++-- components/chainhook-sdk/Cargo.toml | 2 +- components/chainhook-sdk/src/observer/tests/mod.rs | 1 + components/chainhook-types-rs/Cargo.toml | 2 +- components/chainhook-types-rs/src/rosetta.rs | 3 ++- 5 files changed, 7 insertions(+), 5 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 541a00672..cdff9471d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -446,7 +446,7 @@ dependencies = [ [[package]] name = "chainhook-sdk" -version = "0.12.0" +version = "0.12.1" dependencies = [ "base58 0.2.0", "base64 0.21.5", @@ -480,7 +480,7 @@ dependencies = [ [[package]] name = "chainhook-types" -version = "1.3.0" +version = "1.3.1" dependencies = [ "hex", "schemars", diff --git a/components/chainhook-sdk/Cargo.toml b/components/chainhook-sdk/Cargo.toml index c1701de26..c13ef839c 100644 --- a/components/chainhook-sdk/Cargo.toml +++ b/components/chainhook-sdk/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "chainhook-sdk" -version = "0.12.0" +version = "0.12.1" description = "Stateless Transaction Indexing Engine for Stacks and Bitcoin" license = "GPL-3.0" edition = "2021" diff --git a/components/chainhook-sdk/src/observer/tests/mod.rs b/components/chainhook-sdk/src/observer/tests/mod.rs index 698481afa..59405e0c6 100644 --- a/components/chainhook-sdk/src/observer/tests/mod.rs +++ b/components/chainhook-sdk/src/observer/tests/mod.rs @@ -1159,6 +1159,7 @@ fn test_bitcoin_chainhook_through_reorg() { inscription_output_value: cursor, inscription_id: format!("{cursor}"), inscription_input_index: 0, + inscription_pointer: 0, inscriber_address: None, ordinal_number: cursor, ordinal_block_height: b.block.block_identifier.index, diff --git a/components/chainhook-types-rs/Cargo.toml b/components/chainhook-types-rs/Cargo.toml index 1a35bc0e6..da83955e0 100644 --- a/components/chainhook-types-rs/Cargo.toml +++ b/components/chainhook-types-rs/Cargo.toml @@ -2,7 +2,7 @@ name = "chainhook-types" description = "Bitcoin and Stacks data schemas, based on the Rosetta specification" license = "MIT" -version = "1.3.0" +version = "1.3.1" edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/components/chainhook-types-rs/src/rosetta.rs b/components/chainhook-types-rs/src/rosetta.rs index dffe7a4b7..88d98535d 100644 --- a/components/chainhook-types-rs/src/rosetta.rs +++ b/components/chainhook-types-rs/src/rosetta.rs @@ -323,7 +323,7 @@ pub enum OrdinalOperation { #[derive(Debug, Clone, PartialEq, Deserialize, Serialize)] pub struct OrdinalInscriptionTransferData { - pub inscription_id: String, + pub ordinal_number: u64, pub destination: OrdinalInscriptionTransferDestination, pub satpoint_pre_transfer: String, pub satpoint_post_transfer: String, @@ -363,6 +363,7 @@ pub struct OrdinalInscriptionRevealData { pub inscription_output_value: u64, pub inscription_id: String, pub inscription_input_index: usize, + pub inscription_pointer: u64, pub inscriber_address: Option, pub ordinal_number: u64, pub ordinal_block_height: u64,