crate::ix!();
pub const MAX_GETUTXOS_OUTPOINTS: usize = 15;
pub enum RetFormat {
UNDEF,
BINARY,
HEX,
JSON,
}
pub struct RfName {
rf: RetFormat,
name: &'static str,
}
pub const RF_NAMES: &[RfName] = &[
RfName {rf: RetFormat::UNDEF, name: ""},
RfName {rf: RetFormat::BINARY, name: "bin"},
RfName {rf: RetFormat::HEX, name: "hex"},
RfName {rf: RetFormat::JSON, name: "json"},
];
pub struct Coin {
pub n_height: u32,
pub out: TxOut,
}
impl Default for Coin {
fn default() -> Self {
todo!();
}
}
lazy_static!{
}
pub fn resterr(
req: *mut HTTPRequest,
status: HTTPStatusCode,
message: String) -> bool {
todo!();
}
pub fn get_node_context(
context: &dyn Any,
req: *mut HTTPRequest) -> *mut NodeContext {
todo!();
}
pub fn get_mem_pool(
context: &dyn Any,
req: *mut HTTPRequest) -> *mut TxMemPool {
todo!();
}
pub fn get_chainman(
context: &dyn Any,
req: *mut HTTPRequest) -> *mut ChainstateManager {
todo!();
}
pub fn parse_data_format(
param: &mut String,
str_req: &String) -> RetFormat {
todo!();
}
pub fn available_data_formats_string() -> String {
todo!();
}
pub fn check_warmup(req: *mut HTTPRequest) -> bool {
todo!();
}
pub fn rest_headers(
context: &dyn Any,
req: *mut HTTPRequest,
str_uri_part: &String) -> bool {
todo!();
}
pub fn rest_block(
context: &dyn Any,
req: *mut HTTPRequest,
str_uri_part: &String,
tx_verbosity: TxVerbosity) -> bool {
todo!();
}
pub fn rest_block_extended(
context: &dyn Any,
req: *mut HTTPRequest,
str_uri_part: &String) -> bool {
todo!();
}
pub fn rest_block_notxdetails(
context: &dyn Any,
req: *mut HTTPRequest,
str_uri_part: &String) -> bool {
todo!();
}
pub fn getblockchaininfo() -> RPCHelpMan {
todo!();
}
pub fn rest_chaininfo(
context: &dyn Any,
req: *mut HTTPRequest,
str_uri_part: &String) -> bool {
todo!();
}
pub fn rest_mempool_info(
context: &dyn Any,
req: *mut HTTPRequest,
str_uri_part: &String) -> bool {
todo!();
}
pub fn rest_mempool_contents(
context: &dyn Any,
req: *mut HTTPRequest,
str_uri_part: &String) -> bool {
todo!();
}
pub fn rest_tx(
context: &dyn Any,
req: *mut HTTPRequest,
str_uri_part: &String) -> bool {
todo!();
}
pub fn rest_getutxos(
context: &dyn Any,
req: *mut HTTPRequest,
str_uri_part: &String) -> bool {
todo!();
}
pub fn rest_blockhash_by_height(
context: &dyn Any,
req: *mut HTTPRequest,
str_uri_part: &String) -> bool {
todo!();
}
pub struct UriPrefix {
prefix: &'static str,
handler: fn(
context: &dyn Any,
req: *mut HTTPRequest,
str_req: &String
) -> bool,
}
pub const uri_prefixes: &[UriPrefix] = &[
UriPrefix {prefix: "/rest/tx/", handler: rest_tx},
UriPrefix {prefix: "/rest/block/notxdetails/", handler: rest_block_notxdetails},
UriPrefix {prefix: "/rest/block/", handler: rest_block_extended},
UriPrefix {prefix: "/rest/chaininfo", handler: rest_chaininfo},
UriPrefix {prefix: "/rest/mempool/info", handler: rest_mempool_info},
UriPrefix {prefix: "/rest/mempool/contents", handler: rest_mempool_contents},
UriPrefix {prefix: "/rest/headers/", handler: rest_headers},
UriPrefix {prefix: "/rest/getutxos", handler: rest_getutxos},
UriPrefix {prefix: "/rest/blockhashbyheight/", handler: rest_blockhash_by_height},
];
pub fn startrest(context: &dyn Any) {
todo!();
}
pub fn interruptrest() {
todo!();
}
pub fn stoprest() {
todo!();
}