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 = "$OUT_DIR/revive_chain.scale",
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
38	substitute_type(
39		path = "pallet_revive::evm::api::rpc_types_gen::GenericTransaction",
40		with = "::subxt::utils::Static<::pallet_revive::evm::GenericTransaction>"
41	),
42	substitute_type(
43		path = "pallet_revive::evm::api::rpc_types::DryRunConfig<M>",
44		with = "::subxt::utils::Static<::pallet_revive::evm::DryRunConfig<M>>"
45	),
46	substitute_type(
47		path = "pallet_revive::evm::api::rpc_types::TracingConfig",
48		with = "::subxt::utils::Static<::pallet_revive::evm::TracingConfig>"
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	substitute_type(
67		path = "pallet_revive::evm::api::rpc_types_gen::Block",
68		with = "::subxt::utils::Static<::pallet_revive::evm::Block>"
69	),
70	substitute_type(
71		path = "pallet_revive::evm::block_hash::ReceiptGasInfo",
72		with = "::subxt::utils::Static<::pallet_revive::evm::ReceiptGasInfo>"
73	),
74
75	// Versioning replacements
76	substitute_type(
77		path = "pallet_revive_types::runtime_api::types::tracer::TracerTypeV1",
78		with = "::subxt::utils::Static<::pallet_revive_types::runtime_api::TracerTypeV1>"
79	),
80	substitute_type(
81		path = "pallet_revive_types::runtime_api::types::tracer::CallTracerConfigV1",
82		with = "::subxt::utils::Static<::pallet_revive_types::runtime_api::CallTracerConfigV1>"
83	),
84	substitute_type(
85		path = "pallet_revive_types::runtime_api::types::tracer::PrestateTracerConfigV1",
86		with = "::subxt::utils::Static<::pallet_revive_types::runtime_api::PrestateTracerConfigV1>"
87	),
88	substitute_type(
89		path = "pallet_revive_types::runtime_api::types::tracer::ExecutionTracerConfigV1",
90		with = "::subxt::utils::Static<::pallet_revive_types::runtime_api::ExecutionTracerConfigV1>"
91	),
92	substitute_type(
93		path = "pallet_revive_types::runtime_api::types::traces::TraceV1",
94		with = "::subxt::utils::Static<::pallet_revive_types::runtime_api::TraceV1>"
95	),
96	substitute_type(
97		path = "pallet_revive_types::runtime_api::types::traces::TraceV2",
98		with = "::subxt::utils::Static<::pallet_revive_types::runtime_api::TraceV2>"
99	),
100	substitute_type(
101		path = "pallet_revive_types::runtime_api::types::traces::CallTraceV1",
102		with = "::subxt::utils::Static<::pallet_revive_types::runtime_api::CallTraceV1>"
103	),
104	substitute_type(
105		path = "pallet_revive_types::runtime_api::types::traces::CallTraceV2",
106		with = "::subxt::utils::Static<::pallet_revive_types::runtime_api::CallTraceV2>"
107	),
108	substitute_type(
109		path = "pallet_revive_types::runtime_api::types::traces::PrestateTraceV1",
110		with = "::subxt::utils::Static<::pallet_revive_types::runtime_api::PrestateTraceV1>"
111	),
112	substitute_type(
113		path = "pallet_revive_types::runtime_api::types::traces::ExecutionTraceV1",
114		with = "::subxt::utils::Static<::pallet_revive_types::runtime_api::ExecutionTraceV1>"
115	),
116	substitute_type(
117		path = "pallet_revive_types::runtime_api::types::traces::CallLogV1",
118		with = "::subxt::utils::Static<::pallet_revive_types::runtime_api::CallLogV1>"
119	),
120	substitute_type(
121		path = "pallet_revive_types::runtime_api::types::traces::CallLogV2",
122		with = "::subxt::utils::Static<::pallet_revive_types::runtime_api::CallLogV2>"
123	),
124	substitute_type(
125		path = "pallet_revive_types::runtime_api::types::traces::CallTypeV1",
126		with = "::subxt::utils::Static<::pallet_revive_types::runtime_api::CallTypeV1>"
127	),
128	substitute_type(
129		path = "pallet_revive_types::runtime_api::types::traces::PrestateTraceInfoV1",
130		with = "::subxt::utils::Static<::pallet_revive_types::runtime_api::PrestateTraceInfoV1>"
131	),
132	substitute_type(
133		path = "pallet_revive_types::runtime_api::types::traces::ExecutionStepV1",
134		with = "::subxt::utils::Static<::pallet_revive_types::runtime_api::ExecutionStepV1>"
135	),
136	substitute_type(
137		path = "pallet_revive_types::runtime_api::types::traces::ExecutionStepKindV1",
138		with = "::subxt::utils::Static<::pallet_revive_types::runtime_api::ExecutionStepKindV1>"
139	),
140	substitute_type(
141		path = "pallet_revive_types::runtime_api::payloads::trace_block::TraceBlockInputPayloadV1<Block>",
142		with = "::subxt::utils::Static<::pallet_revive_types::runtime_api::TraceBlockInputPayloadV1<Block>>"
143	),
144	substitute_type(
145		path = "pallet_revive_types::runtime_api::payloads::trace_block::TraceBlockInputPayloadV2<Block>",
146		with = "::subxt::utils::Static<::pallet_revive_types::runtime_api::TraceBlockInputPayloadV2<Block>>"
147	),
148	substitute_type(
149		path = "pallet_revive_types::runtime_api::payloads::trace_block::TraceBlockVersionedInputPayload<Block>",
150		with = "::subxt::utils::Static<::pallet_revive_types::runtime_api::TraceBlockVersionedInputPayload<Block>>"
151	),
152	substitute_type(
153		path = "pallet_revive_types::runtime_api::payloads::trace_block::TraceBlockOutputPayloadV1",
154		with = "::subxt::utils::Static<::pallet_revive_types::runtime_api::TraceBlockOutputPayloadV1>"
155	),
156	substitute_type(
157		path = "pallet_revive_types::runtime_api::payloads::trace_block::TraceBlockOutputPayloadV2",
158		with = "::subxt::utils::Static<::pallet_revive_types::runtime_api::TraceBlockOutputPayloadV2>"
159	),
160	substitute_type(
161		path = "pallet_revive_types::runtime_api::payloads::trace_block::TraceBlockVersionedOutputPayload",
162		with = "::subxt::utils::Static<::pallet_revive_types::runtime_api::TraceBlockVersionedOutputPayload>"
163	),
164
165	derive_for_all_types = "codec::Encode, codec::Decode"
166)]
167mod src_chain {}
168pub use src_chain::*;