File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change 1
1
use crate :: contract;
2
+ use crate :: epoch_block_oracle_subgraph:: * ;
2
3
use crate :: ipfs:: * ;
3
4
use crate :: network_subgraph:: * ;
4
5
use crate :: util:: bytes32_to_cid_v0;
@@ -51,7 +52,7 @@ async fn test_reconcile() {
51
52
Arc :: new ( MockSubgraph ) ,
52
53
0 ,
53
54
Duration :: default ( ) ,
54
- & vec ! [ "mainnet" . into ( ) ] ,
55
+ Arc :: new ( MockEBOSubgraph ) ,
55
56
& vec ! [
56
57
"ethereum" . into( ) ,
57
58
"ethereum/contract" . into( ) ,
@@ -95,6 +96,14 @@ impl NetworkSubgraph for MockSubgraph {
95
96
}
96
97
}
97
98
99
+ struct MockEBOSubgraph ;
100
+
101
+ impl EpochBlockOracleSubgraph for MockEBOSubgraph {
102
+ fn supported_networks ( self : Arc < Self > ) -> Pin < Box < dyn Stream < Item = Result < String , Error > > > > {
103
+ futures:: stream:: iter ( vec ! [ Ok ( "mainnet" . to_string( ) ) ] ) . boxed ( )
104
+ }
105
+ }
106
+
98
107
struct MockIpfs ;
99
108
100
109
#[ async_trait]
You can’t perform that action at this time.
0 commit comments