Skip to content

Commit 9235212

Browse files
committed
Subgraph Composition: Support declared calls for subgraph datasources
1 parent fb51bf1 commit 9235212

File tree

11 files changed

+953
-429
lines changed

11 files changed

+953
-429
lines changed

chain/ethereum/src/adapter.rs

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
use anyhow::Error;
2-
use ethabi::{Error as ABIError, Function, ParamType, Token};
2+
use ethabi::{Error as ABIError, ParamType, Token};
33
use graph::blockchain::ChainIdentifier;
44
use graph::components::subgraph::MappingError;
55
use graph::data::store::ethereum::call;
6+
use graph::data_source::common::ContractCall;
67
use graph::firehose::CallToFilter;
78
use graph::firehose::CombinedFilter;
89
use graph::firehose::LogFilter;
@@ -93,16 +94,6 @@ impl EventSignatureWithTopics {
9394
}
9495
}
9596

96-
#[derive(Clone, Debug)]
97-
pub struct ContractCall {
98-
pub contract_name: String,
99-
pub address: Address,
100-
pub block_ptr: BlockPtr,
101-
pub function: Function,
102-
pub args: Vec<Token>,
103-
pub gas: Option<u32>,
104-
}
105-
10697
#[derive(Error, Debug)]
10798
pub enum EthereumRpcError {
10899
#[error("call error: {0}")]

0 commit comments

Comments
 (0)