diff --git a/contracts/mock/contracts.go b/contracts/mock/contracts.go index 0bc640a24..aaec70c6d 100644 --- a/contracts/mock/contracts.go +++ b/contracts/mock/contracts.go @@ -12,10 +12,11 @@ package mock_contracts import ( reflect "reflect" + gomock "go.uber.org/mock/gomock" + common "github.com/ethereum/go-ethereum/common" ethscan "github.com/status-im/status-go/contracts/ethscan" ierc20 "github.com/status-im/status-go/contracts/ierc20" - gomock "go.uber.org/mock/gomock" ) // MockContractMakerIface is a mock of ContractMakerIface interface. diff --git a/multiaccounts/settings/mocks/database_settings_manager_mock.go b/multiaccounts/settings/mocks/database_settings_manager_mock.go index 600e99b63..731ff54c8 100644 --- a/multiaccounts/settings/mocks/database_settings_manager_mock.go +++ b/multiaccounts/settings/mocks/database_settings_manager_mock.go @@ -14,10 +14,11 @@ import ( json "encoding/json" reflect "reflect" + gomock "go.uber.org/mock/gomock" + types "github.com/status-im/status-go/eth-node/types" settings "github.com/status-im/status-go/multiaccounts/settings" params "github.com/status-im/status-go/params" - gomock "go.uber.org/mock/gomock" ) // MockDatabaseSettingsManager is a mock of DatabaseSettingsManager interface. diff --git a/rpc/chain/mock/client/client.go b/rpc/chain/mock/client/client.go index 18d28f648..6dae98c32 100644 --- a/rpc/chain/mock/client/client.go +++ b/rpc/chain/mock/client/client.go @@ -14,13 +14,14 @@ import ( big "math/big" reflect "reflect" + gomock "go.uber.org/mock/gomock" + ethereum "github.com/ethereum/go-ethereum" common "github.com/ethereum/go-ethereum/common" types "github.com/ethereum/go-ethereum/core/types" rpc "github.com/ethereum/go-ethereum/rpc" circuitbreaker "github.com/status-im/status-go/circuitbreaker" rpclimiter "github.com/status-im/status-go/rpc/chain/rpclimiter" - gomock "go.uber.org/mock/gomock" ) // MockClientInterface is a mock of ClientInterface interface. diff --git a/rpc/chain/mock/client/ethclient/eth_client.go b/rpc/chain/mock/client/ethclient/eth_client.go index 5245f0557..373fd285b 100644 --- a/rpc/chain/mock/client/ethclient/eth_client.go +++ b/rpc/chain/mock/client/ethclient/eth_client.go @@ -14,11 +14,12 @@ import ( big "math/big" reflect "reflect" + gomock "go.uber.org/mock/gomock" + ethereum "github.com/ethereum/go-ethereum" common "github.com/ethereum/go-ethereum/common" types "github.com/ethereum/go-ethereum/core/types" rpc "github.com/ethereum/go-ethereum/rpc" - gomock "go.uber.org/mock/gomock" ) // MockChainReader is a mock of ChainReader interface. diff --git a/rpc/chain/mock/client/ethclient/rps_limited_eth_client.go b/rpc/chain/mock/client/ethclient/rps_limited_eth_client.go index f71272032..d80bfaebc 100644 --- a/rpc/chain/mock/client/ethclient/rps_limited_eth_client.go +++ b/rpc/chain/mock/client/ethclient/rps_limited_eth_client.go @@ -14,13 +14,14 @@ import ( big "math/big" reflect "reflect" + gomock "go.uber.org/mock/gomock" + ethereum "github.com/ethereum/go-ethereum" common "github.com/ethereum/go-ethereum/common" types "github.com/ethereum/go-ethereum/core/types" rpc "github.com/ethereum/go-ethereum/rpc" ethclient "github.com/status-im/status-go/rpc/chain/ethclient" rpclimiter "github.com/status-im/status-go/rpc/chain/rpclimiter" - gomock "go.uber.org/mock/gomock" ) // MockRPSLimitedEthClientInterface is a mock of RPSLimitedEthClientInterface interface. diff --git a/rpc/mock/client/client.go b/rpc/mock/client/client.go index 91f87bda7..268493da4 100644 --- a/rpc/mock/client/client.go +++ b/rpc/mock/client/client.go @@ -13,11 +13,12 @@ import ( context "context" reflect "reflect" + gomock "go.uber.org/mock/gomock" + chain "github.com/status-im/status-go/rpc/chain" ethclient "github.com/status-im/status-go/rpc/chain/ethclient" network "github.com/status-im/status-go/rpc/network" common "github.com/status-im/status-go/services/wallet/common" - gomock "go.uber.org/mock/gomock" ) // MockClientInterface is a mock of ClientInterface interface. diff --git a/rpc/network/mock/network.go b/rpc/network/mock/network.go index 36e3999c2..422497d10 100644 --- a/rpc/network/mock/network.go +++ b/rpc/network/mock/network.go @@ -12,8 +12,9 @@ package mock_network import ( reflect "reflect" - params "github.com/status-im/status-go/params" gomock "go.uber.org/mock/gomock" + + params "github.com/status-im/status-go/params" ) // MockManagerInterface is a mock of ManagerInterface interface. diff --git a/services/wallet/collectibles/mock/collectible_data_db.go b/services/wallet/collectibles/mock/collectible_data_db.go index 77c9e86c6..f1022d798 100644 --- a/services/wallet/collectibles/mock/collectible_data_db.go +++ b/services/wallet/collectibles/mock/collectible_data_db.go @@ -12,8 +12,9 @@ package mock_collectibles import ( reflect "reflect" - thirdparty "github.com/status-im/status-go/services/wallet/thirdparty" gomock "go.uber.org/mock/gomock" + + thirdparty "github.com/status-im/status-go/services/wallet/thirdparty" ) // MockCollectibleDataStorage is a mock of CollectibleDataStorage interface. diff --git a/services/wallet/collectibles/mock/collection_data_db.go b/services/wallet/collectibles/mock/collection_data_db.go index 1609e229a..17885e040 100644 --- a/services/wallet/collectibles/mock/collection_data_db.go +++ b/services/wallet/collectibles/mock/collection_data_db.go @@ -12,8 +12,9 @@ package mock_collectibles import ( reflect "reflect" - thirdparty "github.com/status-im/status-go/services/wallet/thirdparty" gomock "go.uber.org/mock/gomock" + + thirdparty "github.com/status-im/status-go/services/wallet/thirdparty" ) // MockCollectionDataStorage is a mock of CollectionDataStorage interface. diff --git a/services/wallet/onramp/mock/types.go b/services/wallet/onramp/mock/types.go index d00ab03ea..d739cefbb 100644 --- a/services/wallet/onramp/mock/types.go +++ b/services/wallet/onramp/mock/types.go @@ -13,8 +13,9 @@ import ( context "context" reflect "reflect" - onramp "github.com/status-im/status-go/services/wallet/onramp" gomock "go.uber.org/mock/gomock" + + onramp "github.com/status-im/status-go/services/wallet/onramp" ) // MockProvider is a mock of Provider interface. diff --git a/services/wallet/router/pathprocessor/mock_pathprocessor/processor.go b/services/wallet/router/pathprocessor/mock_pathprocessor/processor.go index 8c99858af..25a9e3ab9 100644 --- a/services/wallet/router/pathprocessor/mock_pathprocessor/processor.go +++ b/services/wallet/router/pathprocessor/mock_pathprocessor/processor.go @@ -13,12 +13,13 @@ import ( big "math/big" reflect "reflect" + gomock "go.uber.org/mock/gomock" + common "github.com/ethereum/go-ethereum/common" types "github.com/ethereum/go-ethereum/core/types" account "github.com/status-im/status-go/account" types0 "github.com/status-im/status-go/eth-node/types" pathprocessor "github.com/status-im/status-go/services/wallet/router/pathprocessor" - gomock "go.uber.org/mock/gomock" ) // MockPathProcessor is a mock of PathProcessor interface. diff --git a/services/wallet/thirdparty/mock/collectible_types.go b/services/wallet/thirdparty/mock/collectible_types.go index 6c27af8aa..d61d8edbd 100644 --- a/services/wallet/thirdparty/mock/collectible_types.go +++ b/services/wallet/thirdparty/mock/collectible_types.go @@ -13,10 +13,11 @@ import ( context "context" reflect "reflect" + gomock "go.uber.org/mock/gomock" + common "github.com/ethereum/go-ethereum/common" common0 "github.com/status-im/status-go/services/wallet/common" thirdparty "github.com/status-im/status-go/services/wallet/thirdparty" - gomock "go.uber.org/mock/gomock" ) // MockCollectibleProvider is a mock of CollectibleProvider interface. diff --git a/services/wallet/thirdparty/mock/types.go b/services/wallet/thirdparty/mock/types.go index b34c2f78b..ff71af0a8 100644 --- a/services/wallet/thirdparty/mock/types.go +++ b/services/wallet/thirdparty/mock/types.go @@ -12,8 +12,9 @@ package mock_thirdparty import ( reflect "reflect" - thirdparty "github.com/status-im/status-go/services/wallet/thirdparty" gomock "go.uber.org/mock/gomock" + + thirdparty "github.com/status-im/status-go/services/wallet/thirdparty" ) // MockMarketDataProvider is a mock of MarketDataProvider interface. diff --git a/services/wallet/thirdparty/paraswap/mock/types.go b/services/wallet/thirdparty/paraswap/mock/types.go index 07b052cf6..b1403de2d 100644 --- a/services/wallet/thirdparty/paraswap/mock/types.go +++ b/services/wallet/thirdparty/paraswap/mock/types.go @@ -15,9 +15,10 @@ import ( big "math/big" reflect "reflect" + gomock "go.uber.org/mock/gomock" + common "github.com/ethereum/go-ethereum/common" paraswap "github.com/status-im/status-go/services/wallet/thirdparty/paraswap" - gomock "go.uber.org/mock/gomock" ) // MockClientInterface is a mock of ClientInterface interface. diff --git a/services/wallet/token/mock/balance_persistence/balance_persistence.go b/services/wallet/token/mock/balance_persistence/balance_persistence.go index 91e173430..bd5d9bf00 100644 --- a/services/wallet/token/mock/balance_persistence/balance_persistence.go +++ b/services/wallet/token/mock/balance_persistence/balance_persistence.go @@ -12,9 +12,10 @@ package mock_balance_persistence import ( reflect "reflect" + gomock "go.uber.org/mock/gomock" + common "github.com/ethereum/go-ethereum/common" token "github.com/status-im/status-go/services/wallet/token" - gomock "go.uber.org/mock/gomock" ) // MockTokenBalancesStorage is a mock of TokenBalancesStorage interface. diff --git a/services/wallet/token/mock/token/tokenmanager.go b/services/wallet/token/mock/token/tokenmanager.go index 07baf19a7..a8d43781c 100644 --- a/services/wallet/token/mock/token/tokenmanager.go +++ b/services/wallet/token/mock/token/tokenmanager.go @@ -14,11 +14,12 @@ import ( big "math/big" reflect "reflect" + gomock "go.uber.org/mock/gomock" + common "github.com/ethereum/go-ethereum/common" hexutil "github.com/ethereum/go-ethereum/common/hexutil" chain "github.com/status-im/status-go/rpc/chain" token "github.com/status-im/status-go/services/wallet/token" - gomock "go.uber.org/mock/gomock" ) // MockManagerInterface is a mock of ManagerInterface interface. diff --git a/telemetry/client.go b/telemetry/client.go index 0aa07dd4d..43c9b7a52 100644 --- a/telemetry/client.go +++ b/telemetry/client.go @@ -16,9 +16,10 @@ import ( "github.com/status-im/status-go/protocol/transport" "github.com/status-im/status-go/wakuv2" - v1protocol "github.com/status-im/status-go/protocol/v1" wps "github.com/waku-org/go-waku/waku/v2/peerstore" v2protocol "github.com/waku-org/go-waku/waku/v2/protocol" + + v1protocol "github.com/status-im/status-go/protocol/v1" ) type TelemetryType string diff --git a/transactions/fake/mock.go b/transactions/fake/mock.go index 8362e9886..56a204aab 100644 --- a/transactions/fake/mock.go +++ b/transactions/fake/mock.go @@ -13,10 +13,11 @@ import ( context "context" reflect "reflect" + gomock "go.uber.org/mock/gomock" + common "github.com/ethereum/go-ethereum/common" hexutil "github.com/ethereum/go-ethereum/common/hexutil" rpc "github.com/ethereum/go-ethereum/rpc" - gomock "go.uber.org/mock/gomock" ) // MockPublicTransactionPoolAPI is a mock of PublicTransactionPoolAPI interface. diff --git a/transactions/mock_transactor/transactor.go b/transactions/mock_transactor/transactor.go index 548d156e8..4c3dd5f15 100644 --- a/transactions/mock_transactor/transactor.go +++ b/transactions/mock_transactor/transactor.go @@ -13,6 +13,8 @@ import ( big "math/big" reflect "reflect" + gomock "go.uber.org/mock/gomock" + common "github.com/ethereum/go-ethereum/common" types "github.com/ethereum/go-ethereum/core/types" account "github.com/status-im/status-go/account" @@ -21,7 +23,6 @@ import ( rpc "github.com/status-im/status-go/rpc" common0 "github.com/status-im/status-go/services/wallet/common" transactions "github.com/status-im/status-go/transactions" - gomock "go.uber.org/mock/gomock" ) // MockTransactorIface is a mock of TransactorIface interface.