status-im/status-go

View on GitHub
services/wallet/api.go

Summary

Maintainability
D
1 day
Test Coverage
F
4%

API has 83 methods (exceeds 21 allowed). Consider refactoring.
Open

type API struct {
    s      *Service
    reader *Reader
    router *router.Router
}
Severity: Major
Found in services/wallet/api.go - About 1 day to fix

    Method API.GetSuggestedRoutes has 10 arguments (exceeds 6 allowed). Consider refactoring.
    Open

        ctx context.Context,
        sendType router.SendType,
        addrFrom common.Address,
        addrTo common.Address,
        amountIn *hexutil.Big,
    Severity: Major
    Found in services/wallet/api.go - About 1 hr to fix

      Method API.GetOwnedCollectiblesAsync has 8 arguments (exceeds 6 allowed). Consider refactoring.
      Open

      func (api *API) GetOwnedCollectiblesAsync(requestID int32, chainIDs []wcommon.ChainID, addresses []common.Address, filter collectibles.Filter, offset int, limit int, dataType collectibles.CollectibleDataType, fetchCriteria collectibles.FetchCriteria) error {
      Severity: Major
      Found in services/wallet/api.go - About 45 mins to fix

        Method API.GetBalanceHistoryRange has 7 arguments (exceeds 6 allowed). Consider refactoring.
        Open

        func (api *API) GetBalanceHistoryRange(ctx context.Context, chainIDs []uint64, addresses []common.Address, tokenSymbol string, currencySymbol string, fromTimestamp uint64, _ uint64) ([]*history.ValuePoint, error) {
        Severity: Major
        Found in services/wallet/api.go - About 35 mins to fix

          There are no issues that match your filters.

          Category
          Status