Skip to content

Commit 0216822

Browse files
committed
Subgraph Composition: Use Firehose endpoint to load blocks for subgraph triggers
1 parent 2833bee commit 0216822

File tree

6 files changed

+652
-143
lines changed

6 files changed

+652
-143
lines changed

chain/ethereum/src/adapter.rs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
use anyhow::Error;
22
use ethabi::{Error as ABIError, Function, ParamType, Token};
33
use graph::blockchain::ChainIdentifier;
4-
use graph::blockchain::ExtendedBlockPtr;
54
use graph::components::subgraph::MappingError;
65
use graph::data::store::ethereum::call;
76
use graph::firehose::CallToFilter;
@@ -1110,13 +1109,6 @@ pub trait EthereumAdapter: Send + Sync + 'static {
11101109
block_hash: H256,
11111110
) -> Box<dyn Future<Item = LightEthereumBlock, Error = Error> + Send>;
11121111

1113-
async fn load_block_ptrs_by_numbers(
1114-
&self,
1115-
_logger: Logger,
1116-
_chain_store: Arc<dyn ChainStore>,
1117-
_block_numbers: HashSet<BlockNumber>,
1118-
) -> Box<dyn Stream<Item = Arc<ExtendedBlockPtr>, Error = Error> + Send>;
1119-
11201112
/// Load Ethereum blocks in bulk, returning results as they come back as a Stream.
11211113
/// May use the `chain_store` as a cache.
11221114
async fn load_blocks(

0 commit comments

Comments
 (0)