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:
Hernando Castano
2020-09-17 07:31:22 -04:00
committed by Bastian Köcher
parent 750a369273
commit 5163f62df4
16 changed files with 94 additions and 91 deletions
+1 -2
View File
@@ -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,
};