mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 22:11:02 +00:00
Rename Ethereum Headers to AuraHeader (#354)
* Rename Header to AuraHeader This prevents some type conflicts with the PolkadotJS Apps types. * Fix test and benchmark builds * Update AuraHeader in types.json
This commit is contained in:
committed by
Bastian Köcher
parent
750a369273
commit
5163f62df4
@@ -17,7 +17,6 @@
|
||||
//! RPC Module
|
||||
|
||||
#![warn(missing_docs)]
|
||||
|
||||
// The compiler doesn't think we're using the
|
||||
// code from rpc_api!
|
||||
#![allow(dead_code)]
|
||||
@@ -35,7 +34,7 @@ use crate::substrate_types::{
|
||||
};
|
||||
|
||||
use async_trait::async_trait;
|
||||
use bp_eth_poa::Header as SubstrateEthereumHeader;
|
||||
use bp_eth_poa::AuraHeader as SubstrateEthereumHeader;
|
||||
|
||||
type Result<T> = result::Result<T, RpcError>;
|
||||
type GrandpaAuthorityList = Vec<u8>;
|
||||
|
||||
@@ -23,7 +23,7 @@ use crate::sync_types::SubmittedHeaders;
|
||||
use crate::utils::HeaderId;
|
||||
|
||||
use async_trait::async_trait;
|
||||
use bp_eth_poa::Header as SubstrateEthereumHeader;
|
||||
use bp_eth_poa::AuraHeader as SubstrateEthereumHeader;
|
||||
use codec::{Decode, Encode};
|
||||
use jsonrpsee::raw::RawClient;
|
||||
use jsonrpsee::transport::http::HttpTransportClient;
|
||||
|
||||
@@ -23,7 +23,7 @@ use crate::utils::HeaderId;
|
||||
use codec::Encode;
|
||||
|
||||
pub use bp_eth_poa::{
|
||||
Address, Bloom, Bytes, Header as SubstrateEthereumHeader, LogEntry as SubstrateEthereumLogEntry,
|
||||
Address, AuraHeader as SubstrateEthereumHeader, Bloom, Bytes, LogEntry as SubstrateEthereumLogEntry,
|
||||
Receipt as SubstrateEthereumReceipt, TransactionOutcome as SubstrateEthereumTransactionOutcome, H256, U256,
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user