Skip to main content

Calls

blockAccount

Blocks an account from transacting on the network Namespace
Type

blockCall

Blocks a call from being executed pallet_name: The name of the pallet as per the runtime file. i.e. FeeProxy call_name: The snake_case name for the call. i.e. set_fee Both pallet and call names are not case sensitive Namespace
Type

blockEvmTarget

Blocks an account from transacting on the network Can be used to block individual precompile addresses or contracts Namespace
Type

blockPallet

Blocks an entire pallets calls from being executed pallet_name: The name of the pallet as per the runtime file. i.e. FeeProxy Pallet names are not case sensitive Namespace
Type

enableMaintenanceMode

Enable maintenance mode which prevents all non sudo calls Namespace
Type

Storage

blockedAccounts

Map from account to blocked status Namespace
Type

blockedCalls

Map from call to blocked status map (PalletNameBytes, FunctionNameBytes) => bool Namespace
Type

blockedEVMAddresses

Map from EVM target address to blocked status Namespace
Type

blockedPallets

Map from pallet to blocked status map PalletNameBytes => bool Namespace
Type

maintenanceModeActive

Determines whether maintenance mode is currently active Namespace
Type

Events

AccountBlocked

An account was blocked Namespace
Type

CallBlocked

An account was blocked Namespace
Type

EVMTargetBlocked

An account was blocked Namespace
Type

MaintenanceModeActivated

Maintenance mode was activated Namespace
Type

PalletBlocked

An account was blocked Namespace
Type

Errors

AccountBlocked

This account is not authorized to execute this transaction Namespace

CannotBlock

This pallet or call cannot be blocked Namespace

InvalidCallName

The call name is not valid utf-8 characters Namespace

InvalidPalletName

The pallet name is not valid utf-8 characters Namespace

MaintenanceModeActive

This call is disabled as the chain is in maintenance mode Namespace

Constants

stringLimit

The maximum length of a pallet or call name, stored on-chain Namespace
Type