Keyboard shortcuts

Press or to navigate between chapters

Press ? to show this help

Press Esc to hide this help

InternalTrait

Fully qualified path: starkware_utils::components::pausable::pausable::PausableComponent::InternalTrait

pub trait InternalTrait<TContractState, +HasComponent<TContractState>>

Trait functions

assert_not_paused

Makes a function only callable when the contract is not paused.

Fully qualified path: starkware_utils::components::pausable::pausable::PausableComponent::InternalTrait::assert_not_paused

fn assert_not_paused(self: @ComponentState<TContractState>)

assert_paused

Makes a function only callable when the contract is paused.

Fully qualified path: starkware_utils::components::pausable::pausable::PausableComponent::InternalTrait::assert_paused

fn assert_paused(self: @ComponentState<TContractState>)