Skip to content

Commit

Permalink
Subgraph Composition: Support declared calls for subgraph datasources
Browse files Browse the repository at this point in the history
  • Loading branch information
incrypto32 committed Jan 31, 2025
1 parent 24583df commit 11de62e
Show file tree
Hide file tree
Showing 11 changed files with 953 additions and 429 deletions.
13 changes: 2 additions & 11 deletions chain/ethereum/src/adapter.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
use anyhow::Error;
use ethabi::{Error as ABIError, Function, ParamType, Token};
use ethabi::{Error as ABIError, ParamType, Token};
use graph::blockchain::ChainIdentifier;
use graph::components::subgraph::MappingError;
use graph::data::store::ethereum::call;
use graph::data_source::common::ContractCall;
use graph::firehose::CallToFilter;
use graph::firehose::CombinedFilter;
use graph::firehose::LogFilter;
Expand Down Expand Up @@ -93,16 +94,6 @@ impl EventSignatureWithTopics {
}
}

#[derive(Clone, Debug)]
pub struct ContractCall {
pub contract_name: String,
pub address: Address,
pub block_ptr: BlockPtr,
pub function: Function,
pub args: Vec<Token>,
pub gas: Option<u32>,
}

#[derive(Error, Debug)]
pub enum EthereumRpcError {
#[error("call error: {0}")]
Expand Down
Loading

0 comments on commit 11de62e

Please sign in to comment.