1pub mod converter;
2pub mod tx_builder;
3pub mod tx_parser;
4pub mod utils;
5pub mod wrapper;
6
7pub use utils::address::*;
8
9use crate::tx_builder::core_pallas::CorePallas;
10use whisky_common::{Protocol, TxBuilderBody};
11
12#[derive(Clone, Debug)]
13pub struct WhiskyPallas {
14 pub core: CorePallas,
15 pub tx_builder_body: TxBuilderBody,
16 pub tx_evaluation_multiplier_percentage: u64,
17 pub tx_hex: String,
18}
19
20impl WhiskyPallas {
21 pub fn new(protocol_params: Option<Protocol>) -> Self {
22 Self {
23 core: CorePallas::new(match protocol_params {
24 Some(params) => params,
25 None => Protocol::default(),
26 }),
27 tx_builder_body: TxBuilderBody::new(),
28 tx_evaluation_multiplier_percentage: 110,
29 tx_hex: String::new(),
30 }
31 }
32}