Function submit_application

Source
pub fn submit_application<T: Config>(
    payer: <T as Config>::AccountId,
    agent_key: <T as Config>::AccountId,
    data: Vec<u8>,
    removing: bool,
) -> DispatchResult
Expand description

Creates a new agent application if the key is not yet whitelisted. It withdraws a fee from the payer account, which is given back if the application is accepted. The fee avoids actors spamming applications.