Skip to content

Commit

Permalink
fix rebase artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
leoyvens committed Feb 14, 2024
1 parent 34a91f8 commit a15b1b5
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 10 deletions.
2 changes: 1 addition & 1 deletion chain/starknet/src/data_source.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use graph::{
link_resolver::LinkResolver, store::StoredDynamicDataSource,
subgraph::InstanceDSTemplateInfo,
},
data::subgraph::DataSourceContext,
data::subgraph::{DataSourceContext, SubgraphManifestValidationError},
prelude::{async_trait, BlockNumber, Deserialize, Link, Logger},
semver,
};
Expand Down
1 change: 0 additions & 1 deletion chain/starknet/src/trigger.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ use graph::{
runtime::{asc_new, gas::GasCounter, AscPtr, HostExportError},
};
use graph_runtime_wasm::module::ToAscPtr;
use starknet_ff::FieldElement;
use std::{cmp::Ordering, sync::Arc};

use crate::codec;
Expand Down
2 changes: 1 addition & 1 deletion runtime/wasm/src/host.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use async_trait::async_trait;
use futures::sync::mpsc::Sender;
use futures03::channel::oneshot::channel;

use graph::blockchain::{Blockchain, HostFn, RuntimeAdapter};
use graph::blockchain::{BlockTime, Blockchain, HostFn, RuntimeAdapter};
use graph::components::store::{EnsLookup, SubgraphFork};
use graph::components::subgraph::{MappingError, SharedProofOfIndexing};
use graph::data_source::{
Expand Down
7 changes: 4 additions & 3 deletions runtime/wasm/src/host_exports.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ use never::Never;
use semver::Version;
use web3::types::H160;

use graph::blockchain::BlockTime;
use graph::blockchain::Blockchain;
use graph::components::store::{EnsLookup, GetScope, LoadRelatedRequest};
use graph::components::subgraph::{
Expand Down Expand Up @@ -351,7 +352,7 @@ impl HostExports {
let entity_type = state.entity_cache.schema.entity_type(&entity_type)?;
Self::expect_object_type(&entity_type, "remove")?;

let key = entity_type.parse_key_in(entity_id, self.data_source_causality_region)?;
let key = entity_type.parse_key_in(entity_id, self.data_source.causality_region)?;
self.check_entity_type_access(&key.entity_type)?;

gas.consume_host_fn_with_metrics(
Expand All @@ -375,7 +376,7 @@ impl HostExports {
let entity_type = state.entity_cache.schema.entity_type(&entity_type)?;
Self::expect_object_type(&entity_type, "get")?;

let store_key = entity_type.parse_key_in(entity_id, self.data_source_causality_region)?;
let store_key = entity_type.parse_key_in(entity_id, self.data_source.causality_region)?;
self.check_entity_type_access(&store_key.entity_type)?;

let result = state.entity_cache.get(&store_key, scope)?;
Expand Down Expand Up @@ -1113,7 +1114,7 @@ pub mod test_support {
use std::{collections::HashMap, sync::Arc};

use graph::{
blockchain::{BlockTime, Blockchain},
blockchain::BlockTime,
components::{
store::{BlockNumber, GetScope},
subgraph::SharedProofOfIndexing,
Expand Down
2 changes: 1 addition & 1 deletion runtime/wasm/src/mapping.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use crate::gas_rules::GasRules;
use crate::module::{ExperimentalFeatures, ToAscPtr, WasmInstance};
use futures::sync::mpsc;
use futures03::channel::oneshot::Sender;
use graph::blockchain::{Blockchain, HostFn};
use graph::blockchain::{BlockTime, Blockchain, HostFn};
use graph::components::store::SubgraphFork;
use graph::components::subgraph::{MappingError, SharedProofOfIndexing};
use graph::data_source::{MappingTrigger, TriggerWithHandler};
Expand Down
1 change: 1 addition & 0 deletions runtime/wasm/src/module/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,7 @@ impl WasmInstanceContext<'_> {
block_number,
&mut ctx.state,
&ctx.proof_of_indexing,
ctx.timestamp,
entity,
id,
data,
Expand Down
6 changes: 3 additions & 3 deletions store/postgres/src/relational.rs
Original file line number Diff line number Diff line change
Expand Up @@ -362,9 +362,9 @@ impl Layout {
qualified_name: SqlName::qualified_name(&catalog.site.namespace, &table_name),
name: table_name,
columns,
/// The position of this table in all the tables for this layout; this
/// is really only needed for the tests to make the names of indexes
/// predictable
// The position of this table in all the tables for this layout; this
// is really only needed for the tests to make the names of indexes
// predictable
position: position as u32,
is_account_like: false,
immutable: false,
Expand Down

0 comments on commit a15b1b5

Please sign in to comment.