Keyboard shortcuts

Press or to navigate between chapters

Press ? to show this help

Press Esc to hide this help

ImmutableConfig

Constants expected to be defined at the contract level used to configure the component behavior.

  • DEFAULT_ADMIN_DELAY_INCREASE_WAIT: Returns the maximum number of seconds to wait for a delay increase.
  • MAXIMUM_DEFAULT_ADMIN_TRANSFER_DELAY: Returns the maximum number of seconds for a transfer delay.

IMPORTANT:

When overriding DEFAULT_ADMIN_DELAY_INCREASE_WAIT, choose a value that provides a safe buffer. If set too low, a mistakenly high new delay (e.g., entering milliseconds instead of seconds) could be activated almost instantly, leaving no opportunity for manual correction.

The maximum time you have to recover from an accidental delay increase is controlled by MAXIMUM_DEFAULT_ADMIN_TRANSFER_DELAY. See the delay_change_wait function for details on how these constants interact.

If MAXIMUM_DEFAULT_ADMIN_TRANSFER_DELAY is set too high, you might be unable to recover from an accidental increase for an extended period. Too low, and it unnecessarily restricts how much security delay you can impose for admin transfers. As a best practice, consider setting it in the 30-60 day range for a good balance between security and recoverability.

Fully qualified path: openzeppelin_access::accesscontrol::extensions::accesscontrol_default_admin_rules::AccessControlDefaultAdminRulesComponent::ImmutableConfig

pub trait ImmutableConfig

Trait constants

DEFAULT_ADMIN_DELAY_INCREASE_WAIT

Fully qualified path: openzeppelin_access::accesscontrol::extensions::accesscontrol_default_admin_rules::AccessControlDefaultAdminRulesComponent::ImmutableConfig::DEFAULT_ADMIN_DELAY_INCREASE_WAIT

const DEFAULT_ADMIN_DELAY_INCREASE_WAIT: u64;

MAXIMUM_DEFAULT_ADMIN_TRANSFER_DELAY

Fully qualified path: openzeppelin_access::accesscontrol::extensions::accesscontrol_default_admin_rules::AccessControlDefaultAdminRulesComponent::ImmutableConfig::MAXIMUM_DEFAULT_ADMIN_TRANSFER_DELAY

const MAXIMUM_DEFAULT_ADMIN_TRANSFER_DELAY: u64;