Struct noble_proxy::Module[][src]

pub struct Module<T: Config>(_);

Implementations

impl<T: Config + 'static> Module<T>[src]

pub fn proxies<K: EncodeLike<T::AccountId>>(
    key: K
) -> (Vec<ProxyDefinition<T::AccountId, T::ProxyType, T::BlockNumber>>, <<T as Config>::Currency as Currency<<T as Config>::AccountId>>::Balance)
[src]

The set of account proxies. Maps the account which has delegated to the accounts which are being delegated to, together with the amount held on deposit.

pub fn announcements<K: EncodeLike<T::AccountId>>(
    key: K
) -> (Vec<Announcement<T::AccountId, <<T as Config>::CallHasher as Hash>::Output, T::BlockNumber>>, <<T as Config>::Currency as Currency<<T as Config>::AccountId>>::Balance)
[src]

The announcements made by the proxy (key).

impl<T: Config> Module<T>[src]

pub fn anonymous_account(
    who: &T::AccountId,
    proxy_type: &T::ProxyType,
    index: u16,
    maybe_when: Option<(T::BlockNumber, u32)>
) -> T::AccountId
[src]

Calculate the address of an anonymous account.

  • who: The spawner account.
  • proxy_type: The type of the proxy that the sender will be registered as over the new account. This will almost always be the most permissive ProxyType possible to allow for maximum flexibility.
  • index: A disambiguation index, in case this is called multiple times in the same transaction (e.g. with utility::batch). Unless you’re using batch you probably just want to use 0.
  • maybe_when: The block height and extrinsic index of when the anonymous account was created. None to use current block height and extrinsic index.

pub fn add_proxy_delegate(
    delegator: &T::AccountId,
    delegatee: T::AccountId,
    proxy_type: T::ProxyType,
    delay: T::BlockNumber
) -> DispatchResult
[src]

Register a proxy account for the delegator that is able to make calls on its behalf.

Parameters:

  • delegator: The delegator account.
  • delegatee: The account that the delegator would like to make a proxy.
  • proxy_type: The permissions allowed for this proxy account.
  • delay: The announcement period required of the initial proxy. Will generally be zero.

pub fn remove_proxy_delegate(
    delegator: &T::AccountId,
    delegatee: T::AccountId,
    proxy_type: T::ProxyType,
    delay: T::BlockNumber
) -> DispatchResult
[src]

Unregister a proxy account for the delegator.

Parameters:

  • delegator: The delegator account.
  • delegatee: The account that the delegator would like to make a proxy.
  • proxy_type: The permissions allowed for this proxy account.
  • delay: The announcement period required of the initial proxy. Will generally be zero.

pub fn deposit(
    num_proxies: u32
) -> <<T as Config>::Currency as Currency<<T as Config>::AccountId>>::Balance
[src]

Trait Implementations

impl<T: Config> Callable<T> for Module<T>[src]

type Call = Call<T>

impl<T: Clone + Config> Clone for Module<T>[src]

impl<T: Copy + Config> Copy for Module<T>[src]

impl<T: Config> Debug for Module<T> where
    T: Debug
[src]

impl<T: Eq + Config> Eq for Module<T>[src]

impl<T: Config> GetNobleVersion for Module<T>[src]

impl<T: Config> IntegrityTest for Module<T>[src]

impl<T: Config> ModuleErrorMetadata for Module<T>[src]

impl<T: Config + Config> OffchainWorker<<T as Config>::BlockNumber> for Module<T>[src]

impl<T: Config + Config> OnFinalize<<T as Config>::BlockNumber> for Module<T>[src]

impl<T: Config> OnGenesis for Module<T>[src]

impl<T: Config + Config> OnInitialize<<T as Config>::BlockNumber> for Module<T>[src]

impl<T: Config> OnRuntimeUpgrade for Module<T>[src]

impl<T: PartialEq + Config> PartialEq<Module<T>> for Module<T>[src]

impl<T: Config> StructuralEq for Module<T>[src]

impl<T: Config> StructuralPartialEq for Module<T>[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for Module<T> where
    T: RefUnwindSafe

impl<T> Send for Module<T> where
    T: Send

impl<T> Sync for Module<T> where
    T: Sync

impl<T> Unpin for Module<T> where
    T: Unpin

impl<T> UnwindSafe for Module<T> where
    T: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> CheckedConversion for T[src]

impl<T> Downcast for T where
    T: Any

impl<T> DowncastSync for T where
    T: Any + Send + Sync

impl<T> DynClone for T where
    T: Clone
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IsType<T> for T[src]

impl<T, Outer> IsWrappedBy<Outer> for T where
    T: From<Outer>,
    Outer: AsRef<T> + AsMut<T> + From<T>, 
[src]

pub fn from_ref(outer: &Outer) -> &T[src]

Get a reference to the inner from the outer.

pub fn from_mut(outer: &mut Outer) -> &mut T[src]

Get a mutable reference to the inner from the outer.

impl<T> MaybeDebug for T where
    T: Debug

impl<T> MaybeDebug for T where
    T: Debug

impl<T> MaybeRefUnwindSafe for T where
    T: RefUnwindSafe

impl<T> Member for T where
    T: 'static + Send + Sync + Debug + Eq + PartialEq<T> + Clone
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> SaturatedConversion for T

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<S, T> UncheckedInto<T> for S where
    T: UncheckedFrom<S>, 
[src]

impl<T, S> UniqueSaturatedInto<T> for S where
    T: Bounded,
    S: TryInto<T>, 

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,