pub trait ContractDepositForDoc {
    // Required method
    fn change_deposit(
        &mut self,
        contract_id: AccountId,
        deposit: Balance
    ) -> Result<(), DriverError>;
}
Expand description

This is the clean version doc of ContractDeposit

Contracts receiving processing deposit events. Can be a driver and the system.

Required Methods§

source

fn change_deposit( &mut self, contract_id: AccountId, deposit: Balance ) -> Result<(), DriverError>

Change deposit of a contract. A driver should set the contract weight according to the new deposit.

Implementors§