synapsecns/sanguine

View on GitHub

Showing 1,971 of 13,422 total issues

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

func (_m *EventDB) RetrieveLogsInRangeAsc(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

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

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

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

      func (s Store) retrieveLogsInRangeQuery(ctx context.Context, logFilter db.LogFilter, startBlock, endBlock uint64, page int, order string) (logs []*types.Log, err error) {
      Severity: Minor
      Found in services/scribe/db/datastore/sql/base/log.go - About 35 mins to fix

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

        func (s Store) RetrieveReceiptsFromHeadRangeQuery(ctx context.Context, receiptFilter db.ReceiptFilter, startBlock uint64, endBlock uint64, page int) ([]types.Receipt, error) {
        Severity: Minor
        Found in services/scribe/db/datastore/sql/base/athead.go - About 35 mins to fix

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

          func getLogAmount(ctx context.Context, db db.EventDB, filter db.LogFilter, startBlock uint64, endBlock uint64) (int, []*types.Log, error) {
          Severity: Minor
          Found in services/scribe/service/scribe_test.go - About 35 mins to fix

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

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

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

              func (_m *EventDB) StoreLastIndexed(ctx context.Context, contractAddress common.Address, chainID uint32, blockNumber uint64, livefillAtHead bool) error {
              Severity: Minor
              Found in services/scribe/db/mocks/event_db.go - About 35 mins to fix

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

                func getDeployBlock(ctx context.Context, cg ClientGenerator, omniRPCUrl string, txhash common.Hash, chainID uint32) (block uint64, err error) {
                Severity: Minor
                Found in services/scribe/config/generate.go - About 35 mins to fix

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

                  func (_m *EventDB) RetrieveReceiptsWithStaleBlockHash(ctx context.Context, chainID uint32, blockHashes []string, startBlock uint64, endBlock uint64) ([]types.Receipt, error) {
                  Severity: Minor
                  Found in services/scribe/db/mocks/event_db.go - About 35 mins to fix

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

                    func (s Store) RetrieveLogsFromHeadRangeQuery(ctx context.Context, logFilter db.LogFilter, startBlock uint64, endBlock uint64, page int) ([]*types.Log, error) {
                    Severity: Minor
                    Found in services/scribe/db/datastore/sql/base/athead.go - About 35 mins to fix

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

                      func (_m *EventDB) RetrieveLogsInRange(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

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

                        func (c *Client) GetReceipts(ctx context.Context, chainID int, page int, blockNumber int, httpRequestOptions ...client.HTTPRequestOption) (*GetReceipts, error) {
                        Severity: Minor
                        Found in services/scribe/graphql/client/client.go - About 35 mins to fix

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

                          func (_m *EventDB) RetrieveReceiptsInRange(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

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

                            func (s Store) StoreLastIndexed(parentCtx context.Context, contractAddress common.Address, chainID uint32, blockNumber uint64, livefillAtHead bool) (err error) {
                            Severity: Minor
                            Found in services/scribe/db/datastore/sql/base/lastindexed.go - About 35 mins to fix

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

                              func performRequest(ctx context.Context, r http.Handler, method, contentType string, path string, body io.Reader) *httptest.ResponseRecorder {
                              Severity: Minor
                              Found in core/ginhelper/gindump_test.go - About 35 mins to fix

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

                                func (s Store) RetrieveReceiptsWithStaleBlockHash(ctx context.Context, chainID uint32, blockHashes []string, startBlock uint64, endBlock uint64) ([]types.Receipt, error) {
                                Severity: Minor
                                Found in services/scribe/db/datastore/sql/base/receipt.go - About 35 mins to fix

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

                                  func InitDB(ctx context.Context, databaseType string, path string, metrics metrics.Handler, skipMigrations bool) (db.EventDB, error) {
                                  Severity: Minor
                                  Found in services/scribe/api/server.go - About 35 mins to fix

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

                                    func saveElementState(m *HistoricalTree, h uint32, x uint32, count uint32, item []byte) {
                                    Severity: Minor
                                    Found in core/merkle/merkle.go - About 35 mins to fix

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

                                      func newBaseHandlerWithTracerProvider(rsr *resource.Resource, buildInfo config.BuildInfo, unwrappedTP *tracesdk.TracerProvider, tracerProvider trace.TracerProvider, propagator propagation.TextMapPropagator) *baseHandler {
                                      Severity: Minor
                                      Found in core/metrics/base.go - About 35 mins to fix

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

                                        func RPCClient(ctx context.Context, metrics Handler, url string, client *http.Client, opts ...otelhttp.Option) (*rpc.Client, error) {
                                        Severity: Minor
                                        Found in core/metrics/helper.go - About 35 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language