synapsecns/sanguine

View on GitHub

Showing 1,971 of 13,422 total issues

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

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

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

    func (r *queryResolver) getDateResultByChainMv(ctx context.Context, chainID *int, typeArg *model.DailyStatisticType, platform *model.Platform, duration *model.Duration) ([]*model.DateResultByChain, error) {
    Severity: Minor
    Found in services/explorer/graphql/server/graph/queryutils.go - About 35 mins to fix

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

      func (r *queryResolver) CountByTokenAddress(ctx context.Context, chainID *int, address *string, direction *model.Direction, hours *int) ([]*model.TokenCountResult, error) {
      Severity: Minor
      Found in services/explorer/graphql/server/graph/queries.resolvers.go - About 35 mins to fix

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

        func (r *queryResolver) CountByChainID(ctx context.Context, chainID *int, address *string, direction *model.Direction, hours *int) ([]*model.TransactionCountResult, error) {
        Severity: Minor
        Found in services/explorer/graphql/server/graph/queries.resolvers.go - About 35 mins to fix

          Method Resolver.getAndParseLogs has 5 arguments (exceeds 4 allowed). Consider refactoring.
          Open

          func (r Resolver) getAndParseLogs(ctx context.Context, logFetcher *indexer.LogFetcher, chainID uint32, kappa string, bridgeType model.BridgeType) (interface{}, error) {
          Severity: Minor
          Found in services/explorer/graphql/server/graph/fetcher.go - About 35 mins to fix

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

            func generateKappaSpecifierSQLMv(value *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

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

              func (s *Store) StoreTokenIndex(ctx context.Context, chainID uint32, tokenIndex uint8, tokenAddress string, contractAddress string) error {
              Severity: Minor
              Found in services/explorer/db/sql/writer.go - About 35 mins to fix

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

                func request_ScribeService_Check_0(ctx context.Context, marshaler runtime.Marshaler, client ScribeServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
                Severity: Minor
                Found in services/scribe/grpc/types/types/v1/service.pb.gw.go - About 35 mins to fix

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

                  func createParsers(ctx context.Context, db db.ConsumerDB, fetcher fetcherpkg.ScribeFetcher, clients map[uint32]etherClient.EVM, config serverConfig.Config) (*types.ServerParsers, *types.ServerRefs, map[string]*swap.SwapFlashLoanFilterer, error) {
                  Severity: Minor
                  Found in services/explorer/api/server.go - About 35 mins to fix

                    Method NodeSuite.fillBlocks has 5 arguments (exceeds 4 allowed). Consider refactoring.
                    Open

                    func (c NodeSuite) fillBlocks(bridgeRef *testbridge.TestBridgeRef, swapRefA *testswap.TestSwapRef, swapRefB *testswap.TestSwapRef, transactOpts backends.AuthType, chainID uint32) {
                    Severity: Minor
                    Found in services/explorer/node/explorer_test.go - About 35 mins to fix

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

                      func (c *Client) GetTransactions(ctx context.Context, chainID int, page int, txHash *string, httpRequestOptions ...client.HTTPRequestOption) (*GetTransactions, error) {
                      Severity: Minor
                      Found in services/explorer/consumer/client/client.go - About 35 mins to fix

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

                        func request_ScribeService_Watch_0(ctx context.Context, marshaler runtime.Marshaler, client ScribeServiceClient, req *http.Request, pathParams map[string]string) (ScribeService_WatchClient, runtime.ServerMetadata, error) {
                        Severity: Minor
                        Found in services/scribe/grpc/types/types/v1/service.pb.gw.go - About 35 mins to fix

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

                          func request_ScribeService_StreamLogs_0(ctx context.Context, marshaler runtime.Marshaler, client ScribeServiceClient, req *http.Request, pathParams map[string]string) (ScribeService_StreamLogsClient, runtime.ServerMetadata, error) {
                          Severity: Minor
                          Found in services/scribe/grpc/types/types/v1/service.pb.gw.go - About 35 mins to fix

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

                            func local_request_ScribeService_Check_0(ctx context.Context, marshaler runtime.Marshaler, server ScribeServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
                            Severity: Minor
                            Found in services/scribe/grpc/types/types/v1/service.pb.gw.go - About 35 mins to fix

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

                              func request_ScribeService_FilterLogs_0(ctx context.Context, marshaler runtime.Marshaler, client ScribeServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
                              Severity: Minor
                              Found in services/scribe/grpc/types/types/v1/service.pb.gw.go - About 35 mins to fix

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

                                func local_request_ScribeService_FilterLogs_0(ctx context.Context, marshaler runtime.Marshaler, server ScribeServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
                                Severity: Minor
                                Found in services/scribe/grpc/types/types/v1/service.pb.gw.go - About 35 mins to fix

                                  Method EventDB.RetrieveReceiptsFromHeadRangeQuery has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                  Open

                                  func (_m *EventDB) RetrieveReceiptsFromHeadRangeQuery(ctx context.Context, receiptFilter db.ReceiptFilter, startBlock uint64, endBlock uint64, page int) ([]types.Receipt, error) {
                                  Severity: Minor
                                  Found in services/scribe/db/mocks/event_db.go - About 35 mins to fix

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

                                    func GenerateConfig(ctx context.Context, omniRPCUrl, deployPath string, outputPath string, skippedChainIDS []int, cg ClientGenerator) error {
                                    Severity: Minor
                                    Found in services/scribe/config/generate.go - About 35 mins to fix

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

                                      func EmitEvents(ctx context.Context, t *testing.T, backend backends.SimulatedTestBackend, desiredBlockHeight uint64, testChainHandler *TestChainHandler) error {
                                      Severity: Minor
                                      Found in services/scribe/testutil/utils.go - About 35 mins to fix

                                        Method EventDB.RetrieveLogsFromHeadRangeQuery has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                        Open

                                        func (_m *EventDB) RetrieveLogsFromHeadRangeQuery(ctx context.Context, logFilter db.LogFilter, startBlock uint64, endBlock uint64, page int) ([]*types.Log, error) {
                                        Severity: Minor
                                        Found in services/scribe/db/mocks/event_db.go - About 35 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language