synapsecns/sanguine

View on GitHub

Showing 1,971 of 13,422 total issues

Method Manager.generateQuotes has 5 arguments (exceeds 4 allowed). Consider refactoring.
Open

func (m *Manager) generateQuotes(parentCtx context.Context, chainID int, address common.Address, balance *big.Int, inv map[int]map[common.Address]*big.Int) (quotes []model.PutRelayerQuoteRequest, err error) {
Severity: Minor
Found in services/rfq/relayer/quoter/quoter.go - About 35 mins to fix

    Method inboxContract.SubmitStateReportWithSnapshot has 5 arguments (exceeds 4 allowed). Consider refactoring.
    Open

    func (a inboxContract) SubmitStateReportWithSnapshot(transactor *bind.TransactOpts, stateIndex uint8, signature signer.Signature, snapPayload []byte, snapSignature []byte) (tx *ethTypes.Transaction, err error) {
    Severity: Minor
    Found in agents/domains/evm/inbox.go - About 35 mins to fix

      Method DeployManager.AddAgentsToLightManagerHarnessContract has 5 arguments (exceeds 4 allowed). Consider refactoring.
      Open

          ctx context.Context,
          backend backends.SimulatedTestBackend,
          agents []common.Address,
          agentProofs [][][32]byte,
          agentStatuses []bondingmanagerharness.AgentStatus) error {
      Severity: Minor
      Found in agents/testutil/typecast.go - About 35 mins to fix

        Method DeployManager.AddAgentsToLightManagerContract has 5 arguments (exceeds 4 allowed). Consider refactoring.
        Open

            ctx context.Context,
            backend backends.SimulatedTestBackend,
            agents []common.Address,
            agentProofs [][][32]byte,
            agentStatuses []bondingmanager.AgentStatus) error {
        Severity: Minor
        Found in agents/testutil/typecast.go - About 35 mins to fix

          Method pingPongClientContract.DoPing has 5 arguments (exceeds 4 allowed). Consider refactoring.
          Open

          func (a pingPongClientContract) DoPing(ctx context.Context, signer signer.Signer, destination uint32, recipient common.Address, pings uint16) error {
          Severity: Minor
          Found in agents/domains/evm/pingpongtestclient.go - About 35 mins to fix

            Function NewHeader has 5 arguments (exceeds 4 allowed). Consider refactoring.
            Open

            func NewHeader(flag MessageFlag, originDomain uint32, nonce uint32, destinationDomain uint32, optimisticSeconds uint32) Header {
            Severity: Minor
            Found in agents/types/header.go - About 35 mins to fix

              Method Manager.GenerateQuotes has 5 arguments (exceeds 4 allowed). Consider refactoring.
              Open

              func (m *Manager) GenerateQuotes(ctx context.Context, chainID int, address common.Address, balance *big.Int, inv map[int]map[common.Address]*big.Int) ([]model.PutRelayerQuoteRequest, error) {
              Severity: Minor
              Found in services/rfq/relayer/quoter/export_test.go - About 35 mins to fix

                Method DeployManager.MintToAddress has 5 arguments (exceeds 4 allowed). Consider refactoring.
                Open

                func (d *DeployManager) MintToAddress(ctx context.Context, backend backends.SimulatedTestBackend, token contracts.ContractType, mintToAddress common.Address, amount *big.Int) (adjustedAmount *big.Int) {
                Severity: Minor
                Found in services/rfq/testutil/deployers.go - About 35 mins to fix

                  Method DeployManager.LoadContractsOnChains has 5 arguments (exceeds 4 allowed). Consider refactoring.
                  Open

                      ctx context.Context,
                      synChainBackend backends.SimulatedTestBackend,
                      backends []backends.SimulatedTestBackend,
                      agents []common.Address,
                      agentDomains []uint32) error {
                  Severity: Minor
                  Found in agents/testutil/typecast.go - About 35 mins to fix

                    Function NewChain has 5 arguments (exceeds 4 allowed). Consider refactoring.
                    Open

                    func NewChain(ctx context.Context, cfg relconfig.Config, chainClient client.EVM, chainListener listener.ContractListener, ts submitter.TransactionSubmitter) (*Chain, error) {
                    Severity: Minor
                    Found in services/rfq/relayer/chain/chain.go - About 35 mins to fix

                      Function NewHandler has 5 arguments (exceeds 4 allowed). Consider refactoring.
                      Open

                      func NewHandler(metricsHelper metrics.Handler, db reldb.Service, chains map[uint32]*chain.Chain, cfg relconfig.Config, txSubmitter submitter.TransactionSubmitter) *Handler {
                      Severity: Minor
                      Found in services/rfq/relayer/relapi/handler.go - About 35 mins to fix

                        Method DeployManager.LoadHarnessContractsOnChains has 5 arguments (exceeds 4 allowed). Consider refactoring.
                        Open

                            ctx context.Context,
                            synChainBackend backends.SimulatedTestBackend,
                            backends []backends.SimulatedTestBackend,
                            agents []common.Address,
                            agentDomains []uint32) error {
                        Severity: Minor
                        Found in agents/testutil/typecast.go - About 35 mins to fix

                          Function getRebalanceForMethod has 5 arguments (exceeds 4 allowed). Consider refactoring.
                          Open

                          func getRebalanceForMethod(ctx context.Context, cfg relconfig.Config, inv map[int]map[common.Address]*TokenMetadata, method relconfig.RebalanceMethod, tokenName string) (rebalance *RebalanceData, err error) {
                          Severity: Minor
                          Found in services/rfq/relayer/inventory/rebalance.go - About 35 mins to fix

                            Method Store.GetQuotesByOriginAndDestination has 5 arguments (exceeds 4 allowed). Consider refactoring.
                            Open

                            func (s *Store) GetQuotesByOriginAndDestination(ctx context.Context, originChainID uint64, originTokenAddr string, destChainID uint64, destTokenAddr string) ([]*db.Quote, error) {
                            Severity: Minor
                            Found in services/rfq/api/db/sql/base/store.go - About 35 mins to fix

                              Method Client.GetOriginBridgeTx has 5 arguments (exceeds 4 allowed). Consider refactoring.
                              Open

                              func (c *Client) GetOriginBridgeTx(ctx context.Context, chainID int, txnHash string, bridgeType model.BridgeType, httpRequestOptions ...client.HTTPRequestOption) (*GetOriginBridgeTx, error) {
                              Severity: Minor
                              Found in services/explorer/graphql/client/client.go - About 35 mins to fix

                                Function generateSingleSpecifierI32ArrSQLMv has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                Open

                                func generateSingleSpecifierI32ArrSQLMv(values []*int, field string, firstFilter *bool, firstInLocale *bool, tablePrefix string) string {
                                Severity: Minor
                                Found in services/explorer/graphql/server/graph/queryutils.go - About 35 mins to fix

                                  Method queryResolver.Leaderboard has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                  Open

                                  func (r *queryResolver) Leaderboard(ctx context.Context, duration *model.Duration, chainID *int, useMv *bool, page *int) ([]*model.Leaderboard, error) {
                                  Severity: Minor
                                  Found in services/explorer/graphql/server/graph/queries.resolvers.go - About 35 mins to fix

                                    Function generateEqualitySpecifierSQL has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                    Open

                                    func generateEqualitySpecifierSQL(value *int, field string, firstFilter *bool, tablePrefix string, greaterThan bool) string {
                                    Severity: Minor
                                    Found in services/explorer/graphql/server/graph/queryutils.go - About 35 mins to fix

                                      Function generateSingleSpecifierStringSQLMv has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                      Open

                                      func generateSingleSpecifierStringSQLMv(value *string, field string, firstFilter *bool, firstLocale *bool, tablePrefix string) string {
                                      Severity: Minor
                                      Found in services/explorer/graphql/server/graph/queryutils.go - About 35 mins to fix

                                        Function generateSingleSpecifierStringArrSQLMv has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                        Open

                                        func generateSingleSpecifierStringArrSQLMv(values []*string, field string, firstFilter *bool, firstInLocale *bool, tablePrefix string) string {
                                        Severity: Minor
                                        Found in services/explorer/graphql/server/graph/queryutils.go - About 35 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language