Skip to content

Commit

Permalink
clean up evm 20 (#9741)
Browse files Browse the repository at this point in the history
  • Loading branch information
FelixFan1992 authored Jul 4, 2023
1 parent 9229d28 commit 68e49f6
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 79 deletions.
55 changes: 0 additions & 55 deletions core/services/ocr2/plugins/ocr2keeper/evm20/mocks/http_client.go

This file was deleted.

18 changes: 0 additions & 18 deletions core/services/ocr2/plugins/ocr2keeper/evm20/registry.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"context"
"fmt"
"math/big"
"net/http"
"strings"
"sync"
"time"
Expand All @@ -16,7 +15,6 @@ import (

"github.com/ethereum/go-ethereum/common/hexutil"
"github.com/ethereum/go-ethereum/rpc"
"github.com/patrickmn/go-cache"
ocr2keepers "github.com/smartcontractkit/ocr2keepers/pkg"
"go.uber.org/multierr"

Expand All @@ -26,7 +24,6 @@ import (
"github.com/smartcontractkit/chainlink/v2/core/gethwrappers/generated"
"github.com/smartcontractkit/chainlink/v2/core/gethwrappers/generated/keeper_registry_wrapper2_0"
"github.com/smartcontractkit/chainlink/v2/core/logger"
"github.com/smartcontractkit/chainlink/v2/core/services/ocr2/models"
"github.com/smartcontractkit/chainlink/v2/core/services/pg"
"github.com/smartcontractkit/chainlink/v2/core/utils"
)
Expand Down Expand Up @@ -69,11 +66,6 @@ type Registry interface {
ParseLog(log coreTypes.Log) (generated.AbigenLog, error)
}

//go:generate mockery --quiet --name HttpClient --output ./mocks/ --case=underscore
type HttpClient interface {
Do(req *http.Request) (*http.Response, error)
}

type LatestBlockGetter interface {
LatestBlock() int64
}
Expand Down Expand Up @@ -106,7 +98,6 @@ func NewEVMRegistryService(addr common.Address, client evm.Chain, lggr logger.Lo
packer: &evmRegistryPackerV2_0{abi: keeperRegistryABI},
headFunc: func(ocr2keepers.BlockKey) {},
chLog: make(chan logpoller.Log, 1000),
hc: http.DefaultClient,
enc: EVMAutomationEncoder20{},
}

Expand Down Expand Up @@ -142,14 +133,6 @@ type activeUpkeep struct {
CheckData []byte
}

type MercuryConfig struct {
cred *models.MercuryCredentials
abi abi.ABI
upkeepCache *cache.Cache
cooldownCache *cache.Cache
apiErrCache *cache.Cache
}

type EvmRegistry struct {
HeadProvider
sync utils.StartStopOnce
Expand All @@ -171,7 +154,6 @@ type EvmRegistry struct {
headFunc func(ocr2keepers.BlockKey)
runState int
runError error
hc HttpClient
enc EVMAutomationEncoder20
}

Expand Down

This file was deleted.

This file was deleted.

0 comments on commit 68e49f6

Please sign in to comment.