39 lines
1.2 KiB
Rust
Raw Normal View History

2024-12-03 09:32:35 +02:00
use std::path::PathBuf;
2025-08-15 14:27:36 +03:00
use key_protocol::key_protocol_core::NSSAUserData;
2024-12-03 09:32:35 +02:00
use serde::{Deserialize, Serialize};
2025-02-28 12:32:54 +02:00
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct GasConfig {
/// Gas spent per deploying one byte of data
pub gas_fee_per_byte_deploy: u64,
/// Gas spent per reading one byte of data in VM
pub gas_fee_per_input_buffer_runtime: u64,
/// Gas spent per one byte of contract data in runtime
pub gas_fee_per_byte_runtime: u64,
/// Cost of one gas of runtime in public balance
pub gas_cost_runtime: u64,
/// Cost of one gas of deployment in public balance
pub gas_cost_deploy: u64,
/// Gas limit for deployment
pub gas_limit_deploy: u64,
/// Gas limit for runtime
pub gas_limit_runtime: u64,
}
2024-12-03 09:32:35 +02:00
#[derive(Debug, Clone, Serialize, Deserialize)]
2025-08-11 08:55:08 +03:00
pub struct WalletConfig {
2024-12-03 09:32:35 +02:00
///Home dir of sequencer storage
pub home: PathBuf,
///Override rust log (env var logging level)
pub override_rust_log: Option<String>,
2024-12-05 13:05:58 +02:00
///Sequencer URL
pub sequencer_addr: String,
///Sequencer polling duration for new blocks in seconds
pub seq_poll_timeout_secs: u64,
2025-07-29 14:20:03 +03:00
///Initial accounts for wallet
2025-08-18 16:15:25 +03:00
///
2025-08-15 14:27:36 +03:00
/// TODO: NOT USRE DATA, ACCOUNT
pub initial_accounts: Vec<NSSAUserData>,
2024-12-03 09:32:35 +02:00
}