mirror of
https://github.com/bitcoinresearchkit/brk.git
synced 2026-07-08 01:28:15 -07:00
global: fixes
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
use schemars::JsonSchema;
|
||||
use serde::Deserialize;
|
||||
|
||||
use brk_types::{Addr, Txid};
|
||||
|
||||
/// Bitcoin address + last-seen txid path parameters (Esplora-style pagination)
|
||||
#[derive(Deserialize, JsonSchema)]
|
||||
pub struct AddrAfterTxidParam {
|
||||
#[serde(rename = "address")]
|
||||
pub addr: Addr,
|
||||
|
||||
/// Last txid from the previous page (return transactions strictly older than this)
|
||||
pub after_txid: Txid,
|
||||
}
|
||||
@@ -1,11 +0,0 @@
|
||||
use schemars::JsonSchema;
|
||||
use serde::Deserialize;
|
||||
|
||||
use brk_types::Txid;
|
||||
|
||||
#[derive(Debug, Default, Deserialize, JsonSchema)]
|
||||
#[serde(deny_unknown_fields)]
|
||||
pub struct AddrTxidsParam {
|
||||
/// Txid to paginate from (return transactions before this one)
|
||||
pub after_txid: Option<Txid>,
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
mod addr_after_txid_param;
|
||||
mod addr_param;
|
||||
mod addr_txids_param;
|
||||
mod block_count_param;
|
||||
mod blockhash_param;
|
||||
mod blockhash_start_index;
|
||||
@@ -17,8 +17,8 @@ mod txids_param;
|
||||
mod urpd_params;
|
||||
mod validate_addr_param;
|
||||
|
||||
pub use addr_after_txid_param::*;
|
||||
pub use addr_param::*;
|
||||
pub use addr_txids_param::*;
|
||||
pub use block_count_param::*;
|
||||
pub use blockhash_param::*;
|
||||
pub use blockhash_start_index::*;
|
||||
|
||||
Reference in New Issue
Block a user