@@ -3,12 +3,13 @@ use std::str::FromStr;
33use graph:: prelude:: {
44 lazy_static,
55 serde_json:: { self , Value } ,
6- web3:: {
7- api:: { Eth , Namespace } ,
8- contract:: { tokens:: Tokenize , Contract as Web3Contract , Options } ,
9- transports:: Http ,
10- types:: { Address , Block , BlockId , BlockNumber , Bytes , TransactionReceipt , H256 } ,
11- } ,
6+ } ;
7+
8+ use web3:: {
9+ api:: { Eth , Namespace } ,
10+ contract:: { tokens:: Tokenize , Contract as Web3Contract , Options } ,
11+ transports:: Http ,
12+ types:: { Address , Block , BlockId , BlockNumber , Bytes , TransactionReceipt , H256 } ,
1213} ;
1314// web3 version 0.18 does not expose this; once the graph crate updates to
1415// version 0.19, we can use web3::signing::SecretKey from the graph crate
@@ -161,16 +162,16 @@ impl Contract {
161162 if contract. name == "DeclaredCallsContract" {
162163 status ! ( "contracts" , "Emitting transfers from DeclaredCallsContract" ) ;
163164 let addr1 = "0x1111111111111111111111111111111111111111"
164- . parse :: < graph :: prelude :: web3:: types:: Address > ( )
165+ . parse :: < web3:: types:: Address > ( )
165166 . unwrap ( ) ;
166167 let addr2 = "0x2222222222222222222222222222222222222222"
167- . parse :: < graph :: prelude :: web3:: types:: Address > ( )
168+ . parse :: < web3:: types:: Address > ( )
168169 . unwrap ( ) ;
169170 let addr3 = "0x3333333333333333333333333333333333333333"
170- . parse :: < graph :: prelude :: web3:: types:: Address > ( )
171+ . parse :: < web3:: types:: Address > ( )
171172 . unwrap ( ) ;
172173 let addr4 = "0x4444444444444444444444444444444444444444"
173- . parse :: < graph :: prelude :: web3:: types:: Address > ( )
174+ . parse :: < web3:: types:: Address > ( )
174175 . unwrap ( ) ;
175176
176177 contract
0 commit comments