common_runtime/
proxy.rs

1use parity_scale_codec::{Decode, DecodeWithMemTracking, Encode, MaxEncodedLen};
2use sp_core::RuntimeDebug;
3
4// Proxy Pallet Config
5/// The type used to represent the kinds of proxying allowed.
6#[derive(
7	Copy,
8	Clone,
9	Eq,
10	PartialEq,
11	Ord,
12	PartialOrd,
13	Encode,
14	Decode,
15	DecodeWithMemTracking,
16	RuntimeDebug,
17	MaxEncodedLen,
18	scale_info::TypeInfo,
19)]
20pub enum ProxyType {
21	/// Fully permissioned proxy. Can execute any call on behalf of _proxied_.
22	Any = 0,
23	/// Can execute any call that does not transfer funds or assets.
24	NonTransfer = 1,
25	Governance = 2,
26	Staking = 3,
27	// Skip: SudoBalances = 4, IdentityJudgement = 5,
28	/// Proxy with the ability to reject time-delay proxy announcements.
29	CancelProxy = 6,
30	// Skip: Auction = 7, NominationPools = 8,
31}
32
33impl Default for ProxyType {
34	fn default() -> Self {
35		Self::Any
36	}
37}