pallet_revive/evm.rs
1// This file is part of Substrate.
2
3// Copyright (C) Parity Technologies (UK) Ltd.
4// SPDX-License-Identifier: Apache-2.0
5
6// Licensed under the Apache License, Version 2.0 (the "License");
7// you may not use this file except in compliance with the License.
8// You may obtain a copy of the License at
9//
10// http://www.apache.org/licenses/LICENSE-2.0
11//
12// Unless required by applicable law or agreed to in writing, software
13// distributed under the License is distributed on an "AS IS" BASIS,
14// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15// See the License for the specific language governing permissions and
16// limitations under the License.
17//!Types, and traits to integrate pallet-revive with EVM.
18#![warn(missing_docs)]
19
20mod api;
21pub use api::*;
22mod call;
23pub(crate) use call::*;
24mod tracing;
25pub use tracing::*;
26pub mod fees;
27pub mod runtime;
28pub mod tx_extension;
29pub use alloy_core::sol_types::decode_revert_reason;
30
31/// Ethereum block hash builder related types.
32pub(crate) mod block_hash;
33pub use block_hash::ReceiptGasInfo;
34
35/// Ethereum block storage module.
36pub(crate) mod block_storage;
37
38/// Transfer with dust functionality.
39mod transfer_with_dust;
40pub(crate) use transfer_with_dust::*;
41
42type OnChargeTransactionBalanceOf<T> = <<T as pallet_transaction_payment::Config>::OnChargeTransaction as pallet_transaction_payment::OnChargeTransaction<T>>::Balance;