SafeMode::Event
Variant 72 v393pallet_safe_mode::pallet::Event
The `Event` enum of this pallet
About This Type
Event enum for the Event pallet.
Contains all possible events emitted by the Event pallet. Each variant represents a different event type with its own data fields.
Variants (8)
| Index | Name | Fields | Docs |
|---|---|---|---|
| 0 | Entered | until: u32 | The safe-mode was entered until inclusively this block. |
| 1 | Extended | until: u32 | The safe-mode was extended until inclusively this block. |
| 2 | Exited | reason: ExitReason | Exited the safe-mode for a specific reason. |
| 3 | DepositPlaced | An account reserved funds for either entering or extending the safe-mode. | |
| 4 | DepositReleased | An account had a reserve released that was reserved. | |
| 5 | DepositSlashed | An account had reserve slashed that was reserved. | |
| 6 | CannotDeposit | none | Could not hold funds for entering or extending the safe-mode. This error comes from the underlying `Currency`. |
| 7 | CannotRelease | none | Could not release funds for entering or extending the safe-mode. This error comes from the underlying `Currency`. |
SCALE Encoding
- Rule
- 1-byte variant index followed by variant-specific field data. 8 possible variants.
- Size
- variable (1+ bytes)
Examples
Entered = Entered(until)
0x00<field0>00 Variant index 0 = Enteredfield 0 until: u32Extended = Extended(until)
0x01<field0>01 Variant index 1 = Extendedfield 0 until: u32Exited = Exited(reason)
0x02<field0>02 Variant index 2 = Exitedfield 0 reason: ExitReasonCode Examples
import { TypeRegistry } from "@polkadot/types";
const registry = new TypeRegistry();
// Encode SafeMode::Event — variant "Entered"
const value = registry.createType("SafeMode::Event", { Entered: { until: 1000000 } });
console.log("Hex:", value.toHex());Type Parameters
T
Referenced By (23)
#21 RuntimeEvent via System#21 RuntimeEvent via Grandpa#21 RuntimeEvent via Balances#21 RuntimeEvent via TransactionPayment#21 RuntimeEvent via SubtensorModule#21 RuntimeEvent via Utility#21 RuntimeEvent via Sudo#21 RuntimeEvent via Multisig#21 RuntimeEvent via Preimage#21 RuntimeEvent via Scheduler#21 RuntimeEvent via Proxy#21 RuntimeEvent via Registry#21 RuntimeEvent via Commitments#21 RuntimeEvent via AdminUtils#21 RuntimeEvent via SafeMode#21 RuntimeEvent via Ethereum#21 RuntimeEvent via EVM#21 RuntimeEvent via BaseFee#21 RuntimeEvent via Drand#21 RuntimeEvent via Crowdloan
and 3 more...
Also See
Type Information
- Type ID
- 72
- Kind
- Variant
- Path
- pallet_safe_mode::pallet::Event
- Runtime
- v393