@@ -3,12 +3,13 @@ use std::str::FromStr;
3
3
use graph:: prelude:: {
4
4
lazy_static,
5
5
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 } ,
12
13
} ;
13
14
// web3 version 0.18 does not expose this; once the graph crate updates to
14
15
// version 0.19, we can use web3::signing::SecretKey from the graph crate
@@ -161,16 +162,16 @@ impl Contract {
161
162
if contract. name == "DeclaredCallsContract" {
162
163
status ! ( "contracts" , "Emitting transfers from DeclaredCallsContract" ) ;
163
164
let addr1 = "0x1111111111111111111111111111111111111111"
164
- . parse :: < graph :: prelude :: web3:: types:: Address > ( )
165
+ . parse :: < web3:: types:: Address > ( )
165
166
. unwrap ( ) ;
166
167
let addr2 = "0x2222222222222222222222222222222222222222"
167
- . parse :: < graph :: prelude :: web3:: types:: Address > ( )
168
+ . parse :: < web3:: types:: Address > ( )
168
169
. unwrap ( ) ;
169
170
let addr3 = "0x3333333333333333333333333333333333333333"
170
- . parse :: < graph :: prelude :: web3:: types:: Address > ( )
171
+ . parse :: < web3:: types:: Address > ( )
171
172
. unwrap ( ) ;
172
173
let addr4 = "0x4444444444444444444444444444444444444444"
173
- . parse :: < graph :: prelude :: web3:: types:: Address > ( )
174
+ . parse :: < web3:: types:: Address > ( )
174
175
. unwrap ( ) ;
175
176
176
177
contract
0 commit comments