Skip to content

Commit

Permalink
chore: update reveal schema (#500)
Browse files Browse the repository at this point in the history
Co-authored-by: Ludo Galabru <[email protected]>
  • Loading branch information
MicaiahReid and lgalabru committed Feb 14, 2024
1 parent 50dd26f commit 384f94a
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 10 deletions.
6 changes: 3 additions & 3 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-cli/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "chainhook"
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
4 changes: 2 additions & 2 deletions 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.1"
version = "0.12.5"
description = "Stateless Transaction Indexing Engine for Stacks and Bitcoin"
license = "GPL-3.0"
edition = "2021"
Expand All @@ -16,7 +16,7 @@ stacks-rpc-client = "2"
hiro-system-kit = { version = "0.3.1", optional = true }
# stacks-rpc-client = { version = "1", path = "../../../clarinet/components/stacks-rpc-client" }
# hiro-system-kit = { version = "0.1.0", path = "../../../clarinet/components/hiro-system-kit" }
chainhook-types = { version = "1.3.0", path = "../chainhook-types-rs" }
chainhook-types = { version = "1.3.3", path = "../chainhook-types-rs" }
rocket = { version = "=0.5.0-rc.3", features = ["json"] }
bitcoincore-rpc = "0.18.0"
bitcoincore-rpc-json = "0.18.0"
Expand Down
6 changes: 5 additions & 1 deletion components/chainhook-sdk/src/observer/tests/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1146,8 +1146,12 @@ fn test_bitcoin_chainhook_through_reorg() {
inscription_output_value: cursor,
inscription_id: format!("{cursor}"),
inscription_input_index: 0,
inscription_pointer: 0,
inscription_pointer: None,
inscriber_address: None,
metadata: None,
metaprotocol: None,
delegate: None,
parent: None,
ordinal_number: cursor,
ordinal_block_height: b.block.block_identifier.index,
ordinal_offset: 0,
Expand Down
1 change: 1 addition & 0 deletions components/chainhook-sdk/src/observer/zmq.rs
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ pub async fn start_zeromq_runloop(
"Possible re-org detected, retrieving parent block {parent_block_hash}"
)
});
block_hashes.push_front(block_hash);
block_hashes.push_front(parent_block_hash);
}
}
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.1"
version = "1.3.3"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
Expand Down
7 changes: 6 additions & 1 deletion components/chainhook-types-rs/src/rosetta.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ use super::bitcoin::{TxIn, TxOut};
use crate::contract_interface::ContractInterface;
use crate::events::*;
use schemars::JsonSchema;
use serde_json::Value;
use std::cmp::Ordering;
use std::collections::HashSet;
use std::fmt::Display;
Expand Down Expand Up @@ -363,8 +364,12 @@ pub struct OrdinalInscriptionRevealData {
pub inscription_output_value: u64,
pub inscription_id: String,
pub inscription_input_index: usize,
pub inscription_pointer: u64,
pub inscription_pointer: Option<u64>,
pub inscriber_address: Option<String>,
pub delegate: Option<String>,
pub metaprotocol: Option<String>,
pub metadata: Option<Value>,
pub parent: Option<String>,
pub ordinal_number: u64,
pub ordinal_block_height: u64,
pub ordinal_offset: u64,
Expand Down
2 changes: 1 addition & 1 deletion docs/chainhook-openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"openapi": "3.0.0",
"info": {
"title": "chainhook",
"version": "1.3.0"
"version": "1.3.1"
},
"paths": {
"/ping": {
Expand Down

0 comments on commit 384f94a

Please sign in to comment.