1414 InstanceExt ,
1515 UniswapV2Factory ,
1616 UniswapV2Router02 ,
17+ support:: Signatures ,
1718 } ,
18- support:: { Balances , Signatures } ,
19+ support:: Balances ,
1920 } ,
2021 ethcontract:: { Address , H256 , U256 , errors:: DeployError } ,
2122 ethrpc:: alloy:: conversions:: IntoAlloy ,
@@ -33,7 +34,7 @@ pub struct Contracts {
3334 pub chain_id : u64 ,
3435 pub balancer_vault : BalancerV2Vault ,
3536 pub gp_settlement : GPv2Settlement ,
36- pub signatures : Signatures ,
37+ pub signatures : Signatures :: Instance ,
3738 pub gp_authenticator : GPv2AllowListAuthentication ,
3839 pub balances : Balances ,
3940 pub uniswap_v2_factory : UniswapV2Factory :: Instance ,
@@ -71,8 +72,8 @@ impl Contracts {
7172 . expect ( "failed to find balances contract" ) ,
7273 } ;
7374 let signatures = match deployed. signatures {
74- Some ( address) => Signatures :: at ( web3 , address ) ,
75- None => Signatures :: deployed ( web3)
75+ Some ( address) => Signatures :: Instance :: new ( address . into_alloy ( ) , web3 . alloy . clone ( ) ) ,
76+ None => Signatures :: Instance :: deployed ( & web3. alloy )
7677 . await
7778 . expect ( "failed to find signatures contract" ) ,
7879 } ;
@@ -169,7 +170,9 @@ impl Contracts {
169170 GPv2Settlement ( gp_authenticator. address( ) , balancer_vault. address( ) , )
170171 ) ;
171172 let balances = deploy ! ( web3, Balances ( ) ) ;
172- let signatures = deploy ! ( web3, Signatures ( ) ) ;
173+ let signatures = Signatures :: Instance :: deploy ( web3. alloy . clone ( ) )
174+ . await
175+ . unwrap ( ) ;
173176
174177 contracts:: vault:: grant_required_roles (
175178 & balancer_authorizer,
0 commit comments