status-im/status-go

View on GitHub

Showing 515 of 515 total issues

HopL2OptimismBridgeCaller has 27 methods (exceeds 21 allowed). Consider refactoring.
Open

type HopL2OptimismBridgeCaller struct {
    contract *bind.BoundContract // Generic contract wrapper for the low level calls
}
Severity: Minor
Found in contracts/hop/l2Contracts/l2OptimismBridge/l2OptimismBridge.go - About 3 hrs to fix

    HopL1HopBridgeCaller has 27 methods (exceeds 21 allowed). Consider refactoring.
    Open

    type HopL1HopBridgeCaller struct {
        contract *bind.BoundContract // Generic contract wrapper for the low level calls
    }
    Severity: Minor
    Found in contracts/hop/l1Contracts/l1HopBridge/l1HopBridge.go - About 3 hrs to fix

      HopL2OptimismBridgeCallerSession has 27 methods (exceeds 21 allowed). Consider refactoring.
      Open

      type HopL2OptimismBridgeCallerSession struct {
          Contract *HopL2OptimismBridgeCaller // Generic contract caller binding to set the session for
          CallOpts bind.CallOpts              // Call options to use throughout this session
      }
      Severity: Minor
      Found in contracts/hop/l2Contracts/l2OptimismBridge/l2OptimismBridge.go - About 3 hrs to fix

        Uniswapv3Filterer has 27 methods (exceeds 21 allowed). Consider refactoring.
        Open

        type Uniswapv3Filterer struct {
            contract *bind.BoundContract // Generic contract wrapper for the low level calls
        }
        Severity: Minor
        Found in contracts/uniswapV3/uniswapv3pool.go - About 3 hrs to fix

          Uniswapv2Session has 27 methods (exceeds 21 allowed). Consider refactoring.
          Open

          type Uniswapv2Session struct {
              Contract     *Uniswapv2        // Generic contract binding to set the session for
              CallOpts     bind.CallOpts     // Call options to use throughout this session
              TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
          }
          Severity: Minor
          Found in contracts/uniswapV2/uniswapv2pair.go - About 3 hrs to fix

            PublicWakuAPI has 27 methods (exceeds 21 allowed). Consider refactoring.
            Open

            type PublicWakuAPI struct {
                w *Waku
            
                mu       sync.Mutex
                lastUsed map[string]time.Time // keeps track when a filter was polled for the last time.
            Severity: Minor
            Found in waku/api.go - About 3 hrs to fix

              HopL1HopBridgeCallerSession has 27 methods (exceeds 21 allowed). Consider refactoring.
              Open

              type HopL1HopBridgeCallerSession struct {
                  Contract *HopL1HopBridgeCaller // Generic contract caller binding to set the session for
                  CallOpts bind.CallOpts         // Call options to use throughout this session
              }
              Severity: Minor
              Found in contracts/hop/l1Contracts/l1HopBridge/l1HopBridge.go - About 3 hrs to fix

                PersistenceSuite has 27 methods (exceeds 21 allowed). Consider refactoring.
                Open

                type PersistenceSuite struct {
                    suite.Suite
                
                    db       *Persistence
                    identity *ecdsa.PrivateKey
                Severity: Minor
                Found in protocol/communities/persistence_test.go - About 3 hrs to fix

                  FiltersManager has 27 methods (exceeds 21 allowed). Consider refactoring.
                  Open

                  type FiltersManager struct {
                      service     FiltersService
                      persistence KeysPersistence
                      privateKey  *ecdsa.PrivateKey
                      keys        map[string][]byte // a cache of symmetric manager derived from passwords
                  Severity: Minor
                  Found in protocol/transport/filters_manager.go - About 3 hrs to fix

                    Messenger has 27 methods (exceeds 21 allowed). Consider refactoring.
                    Open

                    func (m *Messenger) retrieveWalletBalances() error {
                        if m.walletAPI == nil {
                            m.logger.Warn("wallet api not enabled")
                        }
                        accounts, err := m.settings.GetActiveAccounts()
                    Severity: Minor
                    Found in protocol/messenger_wallet.go - About 3 hrs to fix

                      File defaults.go has 939 lines of code (exceeds 900 allowed). Consider refactoring.
                      Open

                      package api
                      
                      import (
                          "crypto/rand"
                          "encoding/json"
                      Severity: Major
                      Found in api/defaults.go - About 2 hrs to fix

                        Uniswapv3Session has 26 methods (exceeds 21 allowed). Consider refactoring.
                        Open

                        type Uniswapv3Session struct {
                            Contract     *Uniswapv3        // Generic contract binding to set the session for
                            CallOpts     bind.CallOpts     // Call options to use throughout this session
                            TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
                        }
                        Severity: Minor
                        Found in contracts/uniswapV3/uniswapv3pool.go - About 2 hrs to fix

                          CelerCallerSession has 26 methods (exceeds 21 allowed). Consider refactoring.
                          Open

                          type CelerCallerSession struct {
                              Contract *CelerCaller  // Generic contract caller binding to set the session for
                              CallOpts bind.CallOpts // Call options to use throughout this session
                          }
                          Severity: Minor
                          Found in contracts/celer/bridge.go - About 2 hrs to fix

                            MasterTokenSession has 26 methods (exceeds 21 allowed). Consider refactoring.
                            Open

                            type MasterTokenSession struct {
                                Contract     *MasterToken      // Generic contract binding to set the session for
                                CallOpts     bind.CallOpts     // Call options to use throughout this session
                                TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
                            }
                            Severity: Minor
                            Found in contracts/community-tokens/mastertoken/MasterToken.go - About 2 hrs to fix

                              HopL2ArbitrumBridgeCallerSession has 26 methods (exceeds 21 allowed). Consider refactoring.
                              Open

                              type HopL2ArbitrumBridgeCallerSession struct {
                                  Contract *HopL2ArbitrumBridgeCaller // Generic contract caller binding to set the session for
                                  CallOpts bind.CallOpts              // Call options to use throughout this session
                              }
                              Severity: Minor
                              Found in contracts/hop/l2Contracts/l2ArbitrumBridge/l2ArbitrumBridge.go - About 2 hrs to fix

                                CollectiblesSession has 26 methods (exceeds 21 allowed). Consider refactoring.
                                Open

                                type CollectiblesSession struct {
                                    Contract     *Collectibles     // Generic contract binding to set the session for
                                    CallOpts     bind.CallOpts     // Call options to use throughout this session
                                    TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
                                }
                                Severity: Minor
                                Found in contracts/community-tokens/collectibles/Collectibles.go - About 2 hrs to fix

                                  SNTSession has 26 methods (exceeds 21 allowed). Consider refactoring.
                                  Open

                                  type SNTSession struct {
                                      Contract     *SNT              // Generic contract binding to set the session for
                                      CallOpts     bind.CallOpts     // Call options to use throughout this session
                                      TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
                                  }
                                  Severity: Minor
                                  Found in contracts/snt/snt.go - About 2 hrs to fix

                                    CelerCaller has 26 methods (exceeds 21 allowed). Consider refactoring.
                                    Open

                                    type CelerCaller struct {
                                        contract *bind.BoundContract // Generic contract wrapper for the low level calls
                                    }
                                    Severity: Minor
                                    Found in contracts/celer/bridge.go - About 2 hrs to fix

                                      HopL1Erc20BridgeCallerSession has 26 methods (exceeds 21 allowed). Consider refactoring.
                                      Open

                                      type HopL1Erc20BridgeCallerSession struct {
                                          Contract *HopL1Erc20BridgeCaller // Generic contract caller binding to set the session for
                                          CallOpts bind.CallOpts           // Call options to use throughout this session
                                      }
                                      Severity: Minor
                                      Found in contracts/hop/l1Contracts/l1Erc20Bridge/l1Erc20Bridge.go - About 2 hrs to fix

                                        MiniMeTokenSession has 26 methods (exceeds 21 allowed). Consider refactoring.
                                        Open

                                        type MiniMeTokenSession struct {
                                            Contract     *MiniMeToken      // Generic contract binding to set the session for
                                            CallOpts     bind.CallOpts     // Call options to use throughout this session
                                            TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
                                        }
                                        Severity: Minor
                                        Found in contracts/snt/snt.go - About 2 hrs to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language