pendzl_contracts 1.0.2

Reusable implementations of contracts and traits for interaction with them.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
// Copyright (c) 2024 C Forge. All Rights Reserved.
// SPDX-License-Identifier: MIT

/// Represents errors that occur in Pausable operations.
#[derive(Debug, PartialEq, Eq, scale::Encode, scale::Decode)]
#[cfg_attr(feature = "std", derive(scale_info::TypeInfo))]
pub enum PausableError {
    /// Error indicating the contract is already paused.
    Paused,
    /// Error indicating the contract is not currently paused.
    NotPaused,
}