status-im/status-go

View on GitHub

Showing 515 of 515 total issues

Method HopL2ArbitrumBridgeTransactor.Send has 7 arguments (exceeds 6 allowed). Consider refactoring.
Open

func (_HopL2ArbitrumBridge *HopL2ArbitrumBridgeTransactor) Send(opts *bind.TransactOpts, chainId *big.Int, recipient common.Address, amount *big.Int, bonderFee *big.Int, amountOutMin *big.Int, deadline *big.Int) (*types.Transaction, error) {
Severity: Major
Found in contracts/hop/l2Contracts/l2ArbitrumBridge/l2ArbitrumBridge.go - About 35 mins to fix

    Method HopL2OptimismBridgeSession.SettleBondedWithdrawal has 7 arguments (exceeds 6 allowed). Consider refactoring.
    Open

    func (_HopL2OptimismBridge *HopL2OptimismBridgeSession) SettleBondedWithdrawal(bonder common.Address, transferId [32]byte, rootHash [32]byte, transferRootTotalAmount *big.Int, transferIdTreeIndex *big.Int, siblings [][32]byte, totalLeaves *big.Int) (*types.Transaction, error) {
    Severity: Major
    Found in contracts/hop/l2Contracts/l2OptimismBridge/l2OptimismBridge.go - About 35 mins to fix

      Method HopL1EthBridgeTransactorSession.SendToL2 has 7 arguments (exceeds 6 allowed). Consider refactoring.
      Open

      func (_HopL1EthBridge *HopL1EthBridgeTransactorSession) SendToL2(chainId *big.Int, recipient common.Address, amount *big.Int, amountOutMin *big.Int, deadline *big.Int, relayer common.Address, relayerFee *big.Int) (*types.Transaction, error) {
      Severity: Major
      Found in contracts/hop/l1Contracts/l1EthBridge/l1EthBridge.go - About 35 mins to fix

        Method HopL2OptimismBridgeCallerSession.GetTransferId has 7 arguments (exceeds 6 allowed). Consider refactoring.
        Open

        func (_HopL2OptimismBridge *HopL2OptimismBridgeCallerSession) GetTransferId(chainId *big.Int, recipient common.Address, amount *big.Int, transferNonce [32]byte, bonderFee *big.Int, amountOutMin *big.Int, deadline *big.Int) ([32]byte, error) {
        Severity: Major
        Found in contracts/hop/l2Contracts/l2OptimismBridge/l2OptimismBridge.go - About 35 mins to fix

          Method HopL1EthBridgeCallerSession.GetTransferId has 7 arguments (exceeds 6 allowed). Consider refactoring.
          Open

          func (_HopL1EthBridge *HopL1EthBridgeCallerSession) GetTransferId(chainId *big.Int, recipient common.Address, amount *big.Int, transferNonce [32]byte, bonderFee *big.Int, amountOutMin *big.Int, deadline *big.Int) ([32]byte, error) {
          Severity: Major
          Found in contracts/hop/l1Contracts/l1EthBridge/l1EthBridge.go - About 35 mins to fix

            Method HopL1EthBridgeSession.SendToL2 has 7 arguments (exceeds 6 allowed). Consider refactoring.
            Open

            func (_HopL1EthBridge *HopL1EthBridgeSession) SendToL2(chainId *big.Int, recipient common.Address, amount *big.Int, amountOutMin *big.Int, deadline *big.Int, relayer common.Address, relayerFee *big.Int) (*types.Transaction, error) {
            Severity: Major
            Found in contracts/hop/l1Contracts/l1EthBridge/l1EthBridge.go - About 35 mins to fix

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

              func (api *API) MintTokens(ctx context.Context, chainID uint64, contractAddress string, txArgs transactions.SendTxArgs, password string, walletAddresses []string, amount *bigint.BigInt) (string, error) {
              Severity: Major
              Found in services/communitytokens/api.go - About 35 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

                  Function checkRangesWithStartBlock has 7 arguments (exceeds 6 allowed). Consider refactoring.
                  Open

                  func checkRangesWithStartBlock(parent context.Context, client balance.Reader, cache balance.Cacher,
                      account common.Address, ranges [][]*big.Int, threadLimit uint32, startBlock *big.Int) (
                  Severity: Major
                  Found in services/wallet/transfer/concurrent.go - About 35 mins to fix

                    Method HopBridgeProcessor.sendL1BridgeTx has 7 arguments (exceeds 6 allowed). Consider refactoring.
                    Open

                    func (h *HopBridgeProcessor) sendL1BridgeTx(contractAddress common.Address, ethClient chain.ClientInterface, toChainID uint64,
                        to common.Address, txOpts *bind.TransactOpts, token *token.Token, bonderFee *BonderFee) (tx *ethTypes.Transaction, err error) {
                    Severity: Major
                    Found in services/wallet/router/pathprocessor/processor_bridge_hop.go - About 35 mins to fix

                      Method ArchiveFileManager.CreateHistoryArchiveTorrentFromMessages has 7 arguments (exceeds 6 allowed). Consider refactoring.
                      Open

                      func (m *ArchiveFileManager) CreateHistoryArchiveTorrentFromMessages(communityID types.HexBytes, messages []*types.Message, topics []types.TopicType, startDate time.Time, endDate time.Time, partition time.Duration, encrypt bool) ([]string, error) {
                      Severity: Major
                      Found in protocol/communities/manager_archive_file.go - About 35 mins to fix

                        Function NewController has 7 arguments (exceeds 6 allowed). Consider refactoring.
                        Open

                            db *sql.DB,
                            walletFeed *event.Feed,
                            accountsDB *accounts.Database,
                            accountsFeed *event.Feed,
                            settingsFeed *event.Feed,
                        Severity: Major
                        Found in services/wallet/collectibles/controller.go - About 35 mins to fix

                          Function ExportDB has 7 arguments (exceeds 6 allowed). Consider refactoring.
                          Open

                          func ExportDB(encryptedPath string, key string, kdfIterationsNumber int, newPath string, newKey string, onStart func(), onEnd func()) error {
                          Severity: Major
                          Found in sqlite/sqlite.go - About 35 mins to fix

                            Function findBlocksWithEthTransfers has 7 arguments (exceeds 6 allowed). Consider refactoring.
                            Open

                            func findBlocksWithEthTransfers(parent context.Context, client balance.Reader, cache balance.Cacher,
                                account common.Address, low, high *big.Int, noLimit bool, threadLimit uint32) (
                            Severity: Major
                            Found in services/wallet/transfer/concurrent.go - About 35 mins to fix

                              Function recordBundleToCommunity has 7 arguments (exceeds 6 allowed). Consider refactoring.
                              Open

                              func recordBundleToCommunity(r *CommunityRecordBundle, memberIdentity *ecdsa.PublicKey, installationID string,
                                  logger *zap.Logger, timesource common.TimeSource, encryptor DescriptionEncryptor, initializer func(*Community) error) (*Community, error) {
                              Severity: Major
                              Found in protocol/communities/persistence_mapping.go - About 35 mins to fix

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

                                func (api *API) RemoteBurn(ctx context.Context, chainID uint64, contractAddress string, txArgs transactions.SendTxArgs, password string, tokenIds []*bigint.BigInt, additionalData string) (string, error) {
                                Severity: Major
                                Found in services/communitytokens/api.go - About 35 mins to fix

                                  Method ArchiveFileManager.createHistoryArchiveTorrent has 7 arguments (exceeds 6 allowed). Consider refactoring.
                                  Open

                                  func (m *ArchiveFileManager) createHistoryArchiveTorrent(communityID types.HexBytes, msgs []*types.Message, topics []types.TopicType, startDate time.Time, endDate time.Time, partition time.Duration, encrypt bool) ([]string, error) {
                                  Severity: Major
                                  Found in protocol/communities/manager_archive_file.go - About 35 mins to fix

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

                                    func (api *API) DeployOwnerToken(ctx context.Context, chainID uint64,
                                        ownerTokenParameters DeploymentParameters, masterTokenParameters DeploymentParameters,
                                        signerPubKey string, txArgs transactions.SendTxArgs, password string) (DeploymentDetails, error) {
                                    Severity: Major
                                    Found in services/communitytokens/api.go - About 35 mins to fix

                                      Function toChainBalance has 7 arguments (exceeds 6 allowed). Consider refactoring.
                                      Open

                                          balances map[uint64]map[common.Address]map[common.Address]*hexutil.Big,
                                          tok *token.Token,
                                          address common.Address,
                                          decimals uint,
                                          cachedTokens map[common.Address][]token.StorageToken,
                                      Severity: Major
                                      Found in services/wallet/reader.go - About 35 mins to fix

                                        Method Service.deployOwnerTokenEstimate has 7 arguments (exceeds 6 allowed). Consider refactoring.
                                        Open

                                        func (s *Service) deployOwnerTokenEstimate(ctx context.Context, chainID uint64, fromAddress string,
                                            ownerTokenParameters DeploymentParameters, masterTokenParameters DeploymentParameters,
                                            communityID string, signerPubKey string) (*CommunityTokenFees, error) {
                                        Severity: Major
                                        Found in services/communitytokens/estimations.go - About 35 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language