Skip to content

Commit 384f94a

Browse files
MicaiahReidlgalabru
andcommitted
chore: update reveal schema (#500)
Co-authored-by: Ludo Galabru <[email protected]>
1 parent 50dd26f commit 384f94a

File tree

8 files changed

+20
-10
lines changed

8 files changed

+20
-10
lines changed

Cargo.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

components/chainhook-cli/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "chainhook"
3-
version = "1.3.0"
3+
version = "1.3.1"
44
edition = "2021"
55

66
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

components/chainhook-sdk/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "chainhook-sdk"
3-
version = "0.12.1"
3+
version = "0.12.5"
44
description = "Stateless Transaction Indexing Engine for Stacks and Bitcoin"
55
license = "GPL-3.0"
66
edition = "2021"
@@ -16,7 +16,7 @@ stacks-rpc-client = "2"
1616
hiro-system-kit = { version = "0.3.1", optional = true }
1717
# stacks-rpc-client = { version = "1", path = "../../../clarinet/components/stacks-rpc-client" }
1818
# hiro-system-kit = { version = "0.1.0", path = "../../../clarinet/components/hiro-system-kit" }
19-
chainhook-types = { version = "1.3.0", path = "../chainhook-types-rs" }
19+
chainhook-types = { version = "1.3.3", path = "../chainhook-types-rs" }
2020
rocket = { version = "=0.5.0-rc.3", features = ["json"] }
2121
bitcoincore-rpc = "0.18.0"
2222
bitcoincore-rpc-json = "0.18.0"

components/chainhook-sdk/src/observer/tests/mod.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1146,8 +1146,12 @@ fn test_bitcoin_chainhook_through_reorg() {
11461146
inscription_output_value: cursor,
11471147
inscription_id: format!("{cursor}"),
11481148
inscription_input_index: 0,
1149-
inscription_pointer: 0,
1149+
inscription_pointer: None,
11501150
inscriber_address: None,
1151+
metadata: None,
1152+
metaprotocol: None,
1153+
delegate: None,
1154+
parent: None,
11511155
ordinal_number: cursor,
11521156
ordinal_block_height: b.block.block_identifier.index,
11531157
ordinal_offset: 0,

components/chainhook-sdk/src/observer/zmq.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@ pub async fn start_zeromq_runloop(
148148
"Possible re-org detected, retrieving parent block {parent_block_hash}"
149149
)
150150
});
151+
block_hashes.push_front(block_hash);
151152
block_hashes.push_front(parent_block_hash);
152153
}
153154
}

components/chainhook-types-rs/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "chainhook-types"
33
description = "Bitcoin and Stacks data schemas, based on the Rosetta specification"
44
license = "MIT"
5-
version = "1.3.1"
5+
version = "1.3.3"
66
edition = "2021"
77

88
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

components/chainhook-types-rs/src/rosetta.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ use super::bitcoin::{TxIn, TxOut};
22
use crate::contract_interface::ContractInterface;
33
use crate::events::*;
44
use schemars::JsonSchema;
5+
use serde_json::Value;
56
use std::cmp::Ordering;
67
use std::collections::HashSet;
78
use std::fmt::Display;
@@ -363,8 +364,12 @@ pub struct OrdinalInscriptionRevealData {
363364
pub inscription_output_value: u64,
364365
pub inscription_id: String,
365366
pub inscription_input_index: usize,
366-
pub inscription_pointer: u64,
367+
pub inscription_pointer: Option<u64>,
367368
pub inscriber_address: Option<String>,
369+
pub delegate: Option<String>,
370+
pub metaprotocol: Option<String>,
371+
pub metadata: Option<Value>,
372+
pub parent: Option<String>,
368373
pub ordinal_number: u64,
369374
pub ordinal_block_height: u64,
370375
pub ordinal_offset: u64,

docs/chainhook-openapi.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"openapi": "3.0.0",
33
"info": {
44
"title": "chainhook",
5-
"version": "1.3.0"
5+
"version": "1.3.1"
66
},
77
"paths": {
88
"/ping": {

0 commit comments

Comments
 (0)