[][src]Trait pallet_contract_operator::TransferOperator

pub trait TransferOperator<AccountId: Parameter>: OperatorFinder<AccountId> {
    fn force_transfer_operator(
        current_operator: AccountId,
        contracts: Vec<AccountId>,
        new_operator: AccountId
    ); fn transfer_operator(
        current_operator: AccountId,
        contracts: Vec<AccountId>,
        new_operator: AccountId
    ) -> Result<(), DispatchError> { ... }
fn verify_transfer_operator(
        current_operator: &AccountId,
        contracts: &Vec<AccountId>
    ) -> Result<(), DispatchError> { ... } }

Required methods

fn force_transfer_operator(
    current_operator: AccountId,
    contracts: Vec<AccountId>,
    new_operator: AccountId
)

Force Changes an operator for identified contracts without verify.

Loading content...

Provided methods

fn transfer_operator(
    current_operator: AccountId,
    contracts: Vec<AccountId>,
    new_operator: AccountId
) -> Result<(), DispatchError>

Changes an operator for identified contracts with verify.

fn verify_transfer_operator(
    current_operator: &AccountId,
    contracts: &Vec<AccountId>
) -> Result<(), DispatchError>

Loading content...

Implementors

impl<T: Trait> TransferOperator<<T as Trait>::AccountId> for Module<T>[src]

fn force_transfer_operator(
    current_operator: T::AccountId,
    contracts: Vec<T::AccountId>,
    new_operator: T::AccountId
)
[src]

Force Changes an operator for identified contracts without verify.

Loading content...