global: fixes

This commit is contained in:
nym21
2026-05-04 16:57:21 +02:00
parent 4663d13194
commit dc32bd480f
121 changed files with 2996 additions and 2165 deletions
@@ -1,7 +1,7 @@
use schemars::JsonSchema;
use serde::Deserialize;
use brk_types::{BlockHash, TxIndex};
use brk_types::{BlockHash, BlockTxIndex};
/// Block hash + starting transaction index path parameters
#[derive(Deserialize, JsonSchema)]
@@ -11,5 +11,5 @@ pub struct BlockHashStartIndex {
/// Starting transaction index within the block (0-based)
#[schemars(example = 0)]
pub start_index: TxIndex,
pub start_index: BlockTxIndex,
}
@@ -1,7 +1,7 @@
use schemars::JsonSchema;
use serde::Deserialize;
use brk_types::{BlockHash, TxIndex};
use brk_types::{BlockHash, BlockTxIndex};
/// Block hash + transaction index path parameters
#[derive(Deserialize, JsonSchema)]
@@ -11,5 +11,5 @@ pub struct BlockHashTxIndex {
/// Transaction index within the block (0-based)
#[schemars(example = 0)]
pub index: TxIndex,
pub index: BlockTxIndex,
}