referrerpolicy=no-referrer-when-downgrade

pallet_revive_eth_rpc/
subxt_client.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//! The generated subxt client.
18//! Generated against a substrate chain configured with [`pallet_revive`] using:
19//! subxt metadata  --url ws://localhost:9944 -o rpc/revive_chain.scale
20pub use subxt::config::PolkadotConfig as SrcChainConfig;
21
22#[subxt::subxt(
23	runtime_metadata_path = "revive_chain.metadata",
24	// TODO remove once subxt use the same U256 type
25	substitute_type(
26		path = "primitive_types::U256",
27		with = "::subxt::utils::Static<::sp_core::U256>"
28	),
29
30	substitute_type(
31		path = "sp_runtime::generic::block::Block<A, B, C, D, E>",
32		with = "::subxt::utils::Static<::sp_runtime::generic::Block<
33		::sp_runtime::generic::Header<u32, sp_runtime::traits::BlakeTwo256>,
34		::sp_runtime::OpaqueExtrinsic
35		>>"
36	),
37	substitute_type(
38		path = "pallet_revive::evm::api::debug_rpc_types::Trace",
39		with = "::subxt::utils::Static<::pallet_revive::evm::Trace>"
40	),
41	substitute_type(
42		path = "pallet_revive::evm::api::debug_rpc_types::TracerType",
43		with = "::subxt::utils::Static<::pallet_revive::evm::TracerType>"
44	),
45
46	substitute_type(
47		path = "pallet_revive::evm::api::rpc_types_gen::GenericTransaction",
48		with = "::subxt::utils::Static<::pallet_revive::evm::GenericTransaction>"
49	),
50	substitute_type(
51		path = "pallet_revive::primitives::EthTransactInfo<B>",
52		with = "::subxt::utils::Static<::pallet_revive::EthTransactInfo<B>>"
53	),
54	substitute_type(
55		path = "pallet_revive::primitives::EthTransactError",
56		with = "::subxt::utils::Static<::pallet_revive::EthTransactError>"
57	),
58	substitute_type(
59		path = "pallet_revive::primitives::ExecReturnValue",
60		with = "::subxt::utils::Static<::pallet_revive::ExecReturnValue>"
61	),
62	substitute_type(
63		path = "sp_weights::weight_v2::Weight",
64		with = "::subxt::utils::Static<::sp_weights::Weight>"
65	)
66)]
67mod src_chain {}
68pub use src_chain::*;