crate::ix!();
pub const SERIALIZE_TRANSACTION_NO_WITNESS: i32 = 0x40000000;
#[inline] pub fn unserialize_transaction<Stream, TxType>(
tx: &mut TxType,
s: &mut Stream) {
todo!();
}
#[inline] pub fn serialize_transaction<Stream, TxType>(
tx: &TxType,
s: &mut Stream) {
todo!();
}
#[derive(Default,Serialize,Deserialize)]
pub struct Transaction {
pub vin: Vec<TxIn>,
pub vout: Vec<TxOut>,
pub n_version: i32,
pub n_lock_time: u32,
pub hash: u256,
pub witness_hash: u256,
}
impl RecursiveDynamicUsage for Transaction {
fn recursive_dynamic_usage(&self) -> usize {
todo!();
}
}
pub const TRANSACTION_CURRENT_VERSION: i32 = 2;
impl PartialEq<Transaction> for Transaction {
#[inline] fn eq(&self, other: &Transaction) -> bool {
todo!();
}
}
impl Eq for Transaction {}
impl Transaction {
#[inline] pub fn serialize<Stream>(&self, s: &mut Stream) {
todo!();
}
pub fn new<Stream>(
_0: DeserializeType,
s: &mut Stream) -> Self {
todo!();
}
pub fn is_null(&self) -> bool {
todo!();
}
pub fn get_hash(&self) -> &u256 {
todo!();
}
pub fn get_witness_hash(&self) -> &u256 {
todo!();
}
pub fn is_coinbase(&self) -> bool {
todo!();
}
pub fn has_witness(&self) -> bool {
todo!();
}
pub fn compute_hash(&self) -> u256 {
todo!();
}
pub fn compute_witness_hash(&self) -> u256 {
todo!();
}
pub fn get_value_out(&self) -> Amount {
todo!();
}
pub fn get_total_size(&self) -> u32 {
todo!();
}
pub fn to_string(&self) -> String {
todo!();
}
}
impl From<&MutableTransaction> for Transaction {
fn from(tx: &MutableTransaction) -> Self {
todo!();
}
}
pub struct MutableTransaction {
pub vin: Vec<TxIn>,
pub vout: Vec<TxOut>,
pub n_version: i32,
pub n_lock_time: u32,
}
impl RecursiveDynamicUsage for MutableTransaction {
fn recursive_dynamic_usage(&self) -> usize {
todo!();
}
}
impl Default for MutableTransaction {
fn default() -> Self {
todo!();
}
}
impl From<&Transaction> for MutableTransaction {
fn from(tx: &Transaction) -> Self {
todo!();
}
}
impl MutableTransaction {
#[inline] pub fn serialize<Stream>(&self, s: &mut Stream) {
todo!();
}
#[inline] pub fn unserialize<Stream>(&mut self, s: &mut Stream) {
todo!();
}
pub fn new<Stream>(
_0: DeserializeType,
s: &mut Stream) -> Self {
todo!();
}
pub fn has_witness(&self) -> bool {
todo!();
}
pub fn get_hash(&self) -> u256 {
todo!();
}
}
pub type TransactionRef = Amo<Transaction>;
#[inline] pub fn make_transaction_ref<Tx>(tx_in: Tx) -> TransactionRef {
todo!();
}