EVM::Event
Variant 83 v393pallet_evm::pallet::Event
The `Event` enum of this pallet
About This Type
Event enum for the Event pallet.
Contains all possible events emitted by the Event pallet. Each variant represents a different event type with its own data fields.
Variants (5)
| Index | Name | Fields | Docs |
|---|---|---|---|
| 0 | Log | log: Log | Ethereum events from contracts. |
| 1 | Created | address: H160 | A contract has been created at given address. |
| 2 | CreatedFailed | address: H160 | A contract was attempted to be created, but the execution failed. |
| 3 | Executed | address: H160 | A contract has been executed successfully with states applied. |
| 4 | ExecutedFailed | address: H160 | A contract has been executed with errors. States are reverted with only gas fees applied. |
SCALE Encoding
- Rule
- 1-byte variant index followed by variant-specific field data. 5 possible variants.
- Size
- variable (1+ bytes)
Examples
Log = Log(log)
0x00<field0>00 Variant index 0 = Logfield 0 log: LogCreated = Created(address)
0x01<field0>01 Variant index 1 = Createdfield 0 address: H160CreatedFailed = CreatedFailed(address)
0x02<field0>02 Variant index 2 = CreatedFailedfield 0 address: H160Code Examples
import { TypeRegistry } from "@polkadot/types";
const registry = new TypeRegistry();
// Encode EVM::Event — variant "Log"
const value = registry.createType("EVM::Event", { Log: { log: 0 } });
console.log("Hex:", value.toHex());Type Parameters
T
Referenced By (23)
#21 RuntimeEvent via System#21 RuntimeEvent via Grandpa#21 RuntimeEvent via Balances#21 RuntimeEvent via TransactionPayment#21 RuntimeEvent via SubtensorModule#21 RuntimeEvent via Utility#21 RuntimeEvent via Sudo#21 RuntimeEvent via Multisig#21 RuntimeEvent via Preimage#21 RuntimeEvent via Scheduler#21 RuntimeEvent via Proxy#21 RuntimeEvent via Registry#21 RuntimeEvent via Commitments#21 RuntimeEvent via AdminUtils#21 RuntimeEvent via SafeMode#21 RuntimeEvent via Ethereum#21 RuntimeEvent via EVM#21 RuntimeEvent via BaseFee#21 RuntimeEvent via Drand#21 RuntimeEvent via Crowdloan
and 3 more...
Also See
Type Information
- Type ID
- 83
- Kind
- Variant
- Path
- pallet_evm::pallet::Event
- Runtime
- v393