Skip to content

Commit

Permalink
chore: revisit ordinals schema
Browse files Browse the repository at this point in the history
  • Loading branch information
Ludovic Galabru authored and Ludovic Galabru committed Jan 11, 2024
1 parent 20314d9 commit 3379109
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion components/chainhook-sdk/Cargo.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
1 change: 1 addition & 0 deletions components/chainhook-sdk/src/observer/tests/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion components/chainhook-types-rs/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion components/chainhook-types-rs/src/rosetta.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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<String>,
pub ordinal_number: u64,
pub ordinal_block_height: u64,
Expand Down

0 comments on commit 3379109

Please sign in to comment.