#[derive(Debug, Clone)]
pub struct Config {
pub gas_per_deploy_byte: u64,
pub gas_per_blob: u64,
pub min_deploy_points: u64,
pub min_deploy_gas_price: u64,
pub with_public_sender: bool,
pub with_blob: bool,
pub disable_wasm64: bool,
pub disable_wasm32: bool,
pub disable_3rd_party: bool,
pub disable_phoenix: bool,
pub with_reference_types: bool,
pub phoenix_refund_check: bool,
pub deploy_remaining_gas_check: bool,
pub charge_init_gas: bool,
pub withdrawal_nullifier_check: bool,
}
impl Default for Config {
fn default() -> Self {
Self::DEFAULT
}
}
impl Config {
pub const DEFAULT: Config = Config {
gas_per_deploy_byte: 0,
gas_per_blob: 0,
min_deploy_points: 0,
min_deploy_gas_price: 0,
with_public_sender: false,
with_blob: false,
disable_wasm64: false,
disable_wasm32: false,
disable_3rd_party: false,
disable_phoenix: false,
with_reference_types: false,
phoenix_refund_check: false,
deploy_remaining_gas_check: false,
charge_init_gas: false,
withdrawal_nullifier_check: false,
};
}