1- use alloy_consensus:: SignableTransaction ;
1+ use alloy:: consensus:: SignableTransaction ;
2+ use alloy:: signers:: aws:: { AwsSigner , AwsSignerError } ;
3+ use alloy:: signers:: local:: { LocalSignerError , PrivateKeySigner } ;
4+ use alloy:: signers:: Signature ;
25use alloy_primitives:: { Address , ChainId , B256 } ;
3- use alloy_signer:: Signature ;
4- use alloy_signer_aws:: { AwsSigner , AwsSignerError } ;
5- use alloy_signer_local:: { LocalSignerError , PrivateKeySigner } ;
66use aws_config:: BehaviorVersion ;
77
88/// Abstraction over local signer or
@@ -55,7 +55,7 @@ impl LocalOrAws {
5555}
5656
5757#[ async_trait:: async_trait]
58- impl alloy_network :: TxSigner < Signature > for LocalOrAws {
58+ impl alloy :: network :: TxSigner < Signature > for LocalOrAws {
5959 fn address ( & self ) -> Address {
6060 match self {
6161 LocalOrAws :: Local ( signer) => signer. address ( ) ,
@@ -66,7 +66,7 @@ impl alloy_network::TxSigner<Signature> for LocalOrAws {
6666 async fn sign_transaction (
6767 & self ,
6868 tx : & mut dyn SignableTransaction < Signature > ,
69- ) -> alloy_signer :: Result < Signature > {
69+ ) -> alloy :: signers :: Result < Signature > {
7070 match self {
7171 LocalOrAws :: Local ( signer) => signer. sign_transaction ( tx) . await ,
7272 LocalOrAws :: Aws ( signer) => signer. sign_transaction ( tx) . await ,
@@ -75,9 +75,9 @@ impl alloy_network::TxSigner<Signature> for LocalOrAws {
7575}
7676
7777#[ async_trait:: async_trait]
78- impl alloy_signer :: Signer < Signature > for LocalOrAws {
78+ impl alloy :: signers :: Signer < Signature > for LocalOrAws {
7979 /// Signs the given hash.
80- async fn sign_hash ( & self , hash : & B256 ) -> alloy_signer :: Result < Signature > {
80+ async fn sign_hash ( & self , hash : & B256 ) -> alloy :: signers :: Result < Signature > {
8181 match self {
8282 LocalOrAws :: Local ( signer) => signer. sign_hash ( hash) . await ,
8383 LocalOrAws :: Aws ( signer) => signer. sign_hash ( hash) . await ,
0 commit comments