pub type ContractsEvent = ContractsEvent;
Aliased Type§
pub enum ContractsEvent {
Instantiated {
deployer: AccountId,
contract: AccountId,
},
Terminated {
contract: AccountId,
beneficiary: AccountId,
},
CodeStored {
code_hash: H256,
},
ContractEmitted {
contract: AccountId,
data: Vec<u8>,
},
CodeRemoved {
code_hash: H256,
},
ContractCodeUpdated {
contract: AccountId,
new_code_hash: H256,
old_code_hash: H256,
},
Called {
caller: AccountId,
contract: AccountId,
},
DelegateCalled {
contract: AccountId,
code_hash: H256,
},
}
Variants§
Instantiated
Contract deployed by address at the specified address.
Terminated
Contract has been removed.
§Note
The only way for a contract to be removed and emitting this event is by calling
seal_terminate
.
Fields
CodeStored
Code with the specified hash has been stored.
ContractEmitted
A custom event emitted by the contract.
Fields
CodeRemoved
A code with the specified hash was removed.
ContractCodeUpdated
A contract’s code was updated.
Fields
Called
A contract was called either by a plain account or another contract.
§Note
Please keep in mind that like all events this is only emitted for successful calls. This is because on failure all storage changes including events are rolled back.
Fields
DelegateCalled
A contract delegate called a code hash.
§Note
Please keep in mind that like all events this is only emitted for successful calls. This is because on failure all storage changes including events are rolled back.