Showing 1,971 of 13,422 total issues
Method queryResolver.AmountStatistic
has 9 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
func (r *queryResolver) AmountStatistic(ctx context.Context, typeArg model.StatisticType, duration *model.Duration, platform *model.Platform, chainID *int, address *string, tokenAddress *string, useCache *bool, useMv *bool) (*model.ValueResult, error) {
Method Client.GetAmountStatistic
has 9 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
func (c *Client) GetAmountStatistic(ctx context.Context, typeArg model.StatisticType, platform *model.Platform, duration *model.Duration, chainID *int, address *string, tokenAddress *string, useMv *bool, httpRequestOptions ...client.HTTPRequestOption) (*GetAmountStatistic, error) {
Method queryResolver.Receipts
has 9 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
func (r *queryResolver) Receipts(ctx context.Context, chainID int, txHash *string, contractAddress *string, blockHash *string, blockNumber *int, txIndex *int, confirmed *bool, page int) ([]*model.Receipt, error) {
Method queryResolver.TransactionsRange
has 9 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
func (r *queryResolver) TransactionsRange(ctx context.Context, txHash *string, chainID int, blockNumber *int, blockHash *string, confirmed *bool, startBlock int, endBlock int, page int) ([]*model.Transaction, error) {
Function bridge
has 9 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
this: SynapseSDK,
to: string,
originRouterAddress: string,
originChainId: number,
destChainId: number,
Method UtilSuite.TestCopyTX
has 53 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func (u *UtilSuite) TestCopyTX() {
mockDynamicTXS := mocks.GetMockTxes(u.GetTestContext(), u.T(), 100, types.DynamicFeeTxType)
mockLegacyTXes := mocks.GetMockTxes(u.GetTestContext(), u.T(), 100, types.LegacyTxType)
// delete me
Method WatcherSuite.TestContractWatcherRetry
has 53 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func (s *WatcherSuite) TestContractWatcherRetry() {
if os.Getenv("CI") != "" {
s.T().Skip("this flakes on ci. TODO fix this. This should never fail locally.")
}
const requiredConfs = 3
Function BuildTemplates
has 53 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func BuildTemplates(version, file, pkg, filename string, optimizerRuns int, evmVersion *string) error {
// TODO ast
contracts, err := compileSolidity(version, file, optimizerRuns, evmVersion)
if err != nil {
return err
Method Guard.Start
has 53 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func (g Guard) Start(parentCtx context.Context) error {
// First initialize a map to track what was the last state signed by this guard
g.loadSummitLatestStates(parentCtx)
group, ctx := errgroup.WithContext(parentCtx)
Method Executor.streamLogs
has 53 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func (e Executor) streamLogs(ctx context.Context, grpcClient pbscribe.ScribeServiceClient, conn *grpc.ClientConn, chainID uint32, address string, contractType execTypes.ContractType) error {
lastStoredBlock, err := e.executorDB.GetLastBlockNumber(ctx, chainID, contractType)
if err != nil {
return fmt.Errorf("could not get last stored block: %w", err)
}
Method inventoryManagerImpl.Start
has 53 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func (i *inventoryManagerImpl) Start(ctx context.Context) error {
g, ctx := errgroup.WithContext(ctx)
for _, rebalanceManager := range i.rebalanceManagers {
rebalanceManager := rebalanceManager
g.Go(func() error {
Method executionContext._PartialInfo
has 53 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func (ec *executionContext) _PartialInfo(ctx context.Context, sel ast.SelectionSet, obj *model.PartialInfo) graphql.Marshaler {
fields := graphql.CollectFields(ec.OperationContext, sel, partialInfoImplementors)
out := graphql.NewFieldSet(fields)
deferred := make(map[string]*graphql.FieldSet)
Method ClientSuite.TestPutAndGetBulkQuotes
has 53 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func (c *ClientSuite) TestPutAndGetBulkQuotes() {
req := model.PutBulkQuotesRequest{
Quotes: []model.PutRelayerQuoteRequest{
{
OriginChainID: 1,
Method executionContext.fieldContext_Query_receiptsAtHeadRange
has 53 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func (ec *executionContext) fieldContext_Query_receiptsAtHeadRange(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Query",
Field: field,
IsMethod: true,
Method executionContext.fieldContext_Query_receiptsRange
has 53 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func (ec *executionContext) fieldContext_Query_receiptsRange(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Query",
Field: field,
IsMethod: true,
Method executionContext.fieldContext_Query_receipts
has 53 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func (ec *executionContext) fieldContext_Query_receipts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Query",
Field: field,
IsMethod: true,
Method executionContext.fieldContext_Query_receipts
has 53 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func (ec *executionContext) fieldContext_Query_receipts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Query",
Field: field,
IsMethod: true,
Method executionContext.fieldContext_Query_receiptsRange
has 53 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func (ec *executionContext) fieldContext_Query_receiptsRange(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Query",
Field: field,
IsMethod: true,
Method executionContext.fieldContext_Query_receiptsAtHeadRange
has 53 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func (ec *executionContext) fieldContext_Query_receiptsAtHeadRange(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Query",
Field: field,
IsMethod: true,
Function TestStartLogs
has 53 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func TestStartLogs(t *testing.T) {
// Create a new temporary directory.
tmpdir, err := os.MkdirTemp("", "example")
if err != nil {
t.Fatalf("unexpected error: %v", err)