pub struct ParsedConfig {Show 14 fields
pub blackhole_addr: Option<HashBytes>,
pub mc_gas_prices: GasLimitsPrices,
pub gas_prices: GasLimitsPrices,
pub mc_fwd_prices: MsgForwardPrices,
pub fwd_prices: MsgForwardPrices,
pub size_limits: SizeLimitsConfig,
pub storage_prices: Vec<StoragePrices>,
pub global_id: i32,
pub global: GlobalVersion,
pub workchains: HashMap<i32, WorkchainDescription>,
pub special_accounts: HashSet<HashBytes>,
pub authority_marks: Option<ParsedAuthorityMarksConfig>,
pub raw: BlockchainConfig,
pub unpacked: UnpackedConfig,
}Expand description
Parsed BlockchainConfigParams.
Fields§
§blackhole_addr: Option<HashBytes>§mc_gas_prices: GasLimitsPrices§gas_prices: GasLimitsPrices§mc_fwd_prices: MsgForwardPrices§fwd_prices: MsgForwardPrices§size_limits: SizeLimitsConfig§storage_prices: Vec<StoragePrices>§global_id: i32§global: GlobalVersion§workchains: HashMap<i32, WorkchainDescription>§special_accounts: HashSet<HashBytes>§raw: BlockchainConfig§unpacked: UnpackedConfigImplementations§
Source§impl ParsedConfig
impl ParsedConfig
pub const DEFAULT_SIZE_LIMITS_CONFIG: SizeLimitsConfig
pub fn parse(config: BlockchainConfig, now: u32) -> Result<Self, Error>
pub fn update_storage_prices(&mut self, now: u32) -> Result<(), Error>
pub fn is_blackhole(&self, addr: &StdAddr) -> bool
pub fn is_special(&self, addr: &StdAddr) -> bool
pub fn fwd_prices(&self, is_masterchain: bool) -> &MsgForwardPrices
pub fn gas_prices(&self, is_masterchain: bool) -> &GasLimitsPrices
Sourcepub fn compute_storage_fees(
&self,
storage_stat: &StorageInfo,
now: u32,
is_special: bool,
is_masterchain: bool,
) -> Tokens
pub fn compute_storage_fees( &self, storage_stat: &StorageInfo, now: u32, is_special: bool, is_masterchain: bool, ) -> Tokens
Computes fees of storing storage_stat.used bits and refs
since storage_stat.last_paid and up until now.
NOTE: These fees don’t include due_payment.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ParsedConfig
impl !RefUnwindSafe for ParsedConfig
impl !Send for ParsedConfig
impl !Sync for ParsedConfig
impl Unpin for ParsedConfig
impl UnsafeUnpin for ParsedConfig
impl !UnwindSafe for ParsedConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more