Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exec v1 jobs in LOOPP mode #1152

Closed
wants to merge 102 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
102 commits
Select commit Hold shift + click to select a range
f03236d
WIP: moving a large amount of NewCommitServices into evm relay NewCCI…
patrickhuie19 Apr 30, 2024
4f9e441
WIP: wrote a NewCommitServices2 that uses a source and dest provider
patrickhuie19 May 1, 2024
a064f30
WIP: Implementing provider on relayerset
patrickhuie19 May 17, 2024
d2d35c4
WIP
patrickhuie19 May 21, 2024
1de5fa5
Removing redundant top level GetStaticConfig provider implementation.…
patrickhuie19 May 21, 2024
e9d82db
WIP: using RelayerSet defined in core rather than common due to unblock
patrickhuie19 May 22, 2024
7ab347c
exported necessary from internal folder and moved x_internal back to …
patrickhuie19 May 22, 2024
960e345
Merge branch 'ccip-develop' into feature/CCIP-1249-merge
patrickhuie19 May 22, 2024
3c2c95c
WIP: implementing src + dst relayer provider approach
patrickhuie19 May 28, 2024
86e9d67
Merge branch 'ccip-develop' into feature/ccip-1249-merge-2
patrickhuie19 May 29, 2024
556029a
Fixing build issues by pulling from latest
patrickhuie19 May 29, 2024
8b73917
NewCommitServices argsNoPlugin uses src commit provider
patrickhuie19 May 29, 2024
94b889b
make gomodtidy and minor cleanup
patrickhuie19 May 30, 2024
803c56e
make generate
patrickhuie19 May 30, 2024
2acea48
Relayer ContractReader( chain reader) constructor (#13274)
ilija42 May 27, 2024
47718e8
fixing build issues
patrickhuie19 May 30, 2024
9b45f76
fixing broken tests from core
patrickhuie19 May 30, 2024
b621b9a
further fixes
patrickhuie19 May 30, 2024
e5dc7bf
bump solana + cleanup types (#13253)
aalu1418 May 23, 2024
4cace59
cleaning up go test -short from cherry-pick
patrickhuie19 May 30, 2024
6a0377a
bumping common
patrickhuie19 May 31, 2024
9378b94
bumping common again
patrickhuie19 May 31, 2024
361728f
bumping chainlink-* for cosmos solana starket with updated Relay
patrickhuie19 May 31, 2024
2f0e45c
make gomodtidy
patrickhuie19 May 31, 2024
7e1d03d
cleanup and bumping common
patrickhuie19 Jun 2, 2024
d3c516d
WIP: draft of implementing NewExecServices with providers
patrickhuie19 Jun 3, 2024
bd95c1b
bumping common + wiring through NewExecServices2 from delegate
patrickhuie19 Jun 4, 2024
90dc562
fixing provider type in delegate for exec
patrickhuie19 Jun 4, 2024
920374f
Merge branch 'ccip-develop' into feature/ccip-1250-merge
patrickhuie19 Jun 4, 2024
8540ea9
bumping common
patrickhuie19 Jun 4, 2024
e98bdbc
Initializing src provider from dst provider in exec delegate
patrickhuie19 Jun 4, 2024
07ccda7
Moving OffchainConfigDigester ContractConfigTracker and ContractTrans…
patrickhuie19 Jun 5, 2024
70a15aa
Moving OffchainConfigDigester ContractConfigTracker and ContractTrans…
patrickhuie19 Jun 5, 2024
b70d3d4
Fixing usdc reader instantiation when no AttestationAPI provided
patrickhuie19 Jun 5, 2024
0be8855
Merge branch 'ccip-develop' into feature/ccip-1250
patrickhuie19 Jun 5, 2024
8d0837e
cleanup
patrickhuie19 Jun 5, 2024
4519b80
Adding comments
patrickhuie19 Jun 6, 2024
2834b5f
Cleaninup errors.Wrap usage from exec provider
patrickhuie19 Jun 6, 2024
1613c32
responding to comments
patrickhuie19 Jun 7, 2024
d9b08b0
lint
patrickhuie19 Jun 10, 2024
e444f19
Merge branch 'ccip-develop' into feature/ccip-1250
patrickhuie19 Jun 10, 2024
d52dd00
removing dead evm/ccip.go code
patrickhuie19 Jun 12, 2024
bcdd10b
Merge branch 'ccip-develop' into feature/ccip-1250-merge-2
patrickhuie19 Jun 13, 2024
888f4a7
fixing nil return for HealthReport in providers
patrickhuie19 Jun 13, 2024
ee2d33f
goimports
patrickhuie19 Jun 13, 2024
1a17c6c
Merge branch 'ccip-develop' into feature/ccip-1250
patrickhuie19 Jun 20, 2024
179579e
removing fluff
patrickhuie19 Jun 20, 2024
96a35a7
Merge branch 'ccip-develop' into feature/ccip-1250
patrickhuie19 Jun 20, 2024
5f8d16d
bumping common and solana
patrickhuie19 Jun 21, 2024
fbc97ee
Adding setters to CommitStore for GasEstimator and SourceMaxGasPrice
patrickhuie19 Jun 18, 2024
557caaa
lint
patrickhuie19 Jun 18, 2024
a0726b6
WIP: adding IncompleteCommitStoreReader
patrickhuie19 Jun 20, 2024
3813786
WIP: sketch done
patrickhuie19 Jun 24, 2024
d249482
Implemented provider based commitstore approach
patrickhuie19 Jun 24, 2024
bb2211d
make generate + removing mutex from ChangeConfig
patrickhuie19 Jun 24, 2024
4b82947
Merge branch 'ccip-develop' into feature/ccip-1250
patrickhuie19 Jun 24, 2024
5c7746e
make generate
patrickhuie19 Jun 24, 2024
3fec276
fixing omission of priceService
patrickhuie19 Jun 25, 2024
f4d2f0a
Merge branch 'feature/ccip-1250' into feature/ccip-1250-commitstore
patrickhuie19 Jun 25, 2024
3adff7a
bumping chainlink-* dependencies
patrickhuie19 Jun 25, 2024
178df14
bumping chainlink-* dependencies
patrickhuie19 Jun 25, 2024
32ab382
bumping dependencies
patrickhuie19 Jun 25, 2024
2210061
bumping dependencies
patrickhuie19 Jun 25, 2024
c6807e4
Merge branch 'feature/ccip-1250' into feature/ccip-1250-commitstore
patrickhuie19 Jun 25, 2024
defd47b
bumping dependencies
patrickhuie19 Jun 25, 2024
e40f782
downgrading chainlink-common temporarily
patrickhuie19 Jun 25, 2024
b02afb2
Merge branch 'ccip-develop' into feature/ccip-1250-commitstore
patrickhuie19 Jun 27, 2024
b5ecbbb
Merge branch 'ccip-develop' into feature/ccip-1250-commitstore
patrickhuie19 Jun 28, 2024
0664631
Changed value to pointer receivers so ChangeConfig will work
patrickhuie19 Jul 2, 2024
39a7de7
removing unneeded toml dependency + minor refactoring
patrickhuie19 Jul 2, 2024
a4474ab
using multierr
patrickhuie19 Jul 3, 2024
36328d8
using provider based commitStoreReader for exec
patrickhuie19 Jul 7, 2024
90cb52e
lint + removing unused initializer chain args
patrickhuie19 Jul 8, 2024
e287088
WIP: sketch of exec loop binary
patrickhuie19 Jul 8, 2024
6d9f27d
bumping common
patrickhuie19 Jul 8, 2024
0b2c451
cleanup
patrickhuie19 Jul 8, 2024
c541016
using provider based commitStoreReader for exec
patrickhuie19 Jul 7, 2024
32f5b2b
lint + removing unused initializer chain args
patrickhuie19 Jul 8, 2024
b85b9ae
cleanup
patrickhuie19 Jul 8, 2024
25c734d
Merge branch 'ccip-develop' into feature/ccip-1250-commitstore-exec
patrickhuie19 Jul 8, 2024
34e360b
Merge branch 'feature/ccip-1250-commitstore-exec' into feature/ccip-2…
patrickhuie19 Jul 8, 2024
3f199a7
Updating execution factory to take sourceTokenAddress in constructor
patrickhuie19 Jul 8, 2024
db9a484
bumping common
patrickhuie19 Jul 8, 2024
3512d93
WIP
patrickhuie19 Jul 8, 2024
230a359
chainHealthcheck + token background worker now managed by reporting p…
patrickhuie19 Jul 9, 2024
c6f059d
removing core logger import from exec factory
patrickhuie19 Jul 10, 2024
240ce04
Merge branch 'ccip-develop' into feature/ccip-2715-exec-main
patrickhuie19 Jul 10, 2024
aac498a
make gomodtidy
patrickhuie19 Jul 10, 2024
5f8c04e
fixing usdc attestation API logic
patrickhuie19 Jul 10, 2024
f04e6cb
lint
patrickhuie19 Jul 10, 2024
4d82f3e
adding docker and make tooling to run integ tests locally
patrickhuie19 Jul 11, 2024
e309073
using unique plugin name per job
patrickhuie19 Jul 11, 2024
7a710de
fixing logger assignment
patrickhuie19 Jul 11, 2024
8089246
cleaning up job.ServiceCtx --> service.Service unimpls
patrickhuie19 Jul 11, 2024
db331e3
Merge branch 'ccip-develop' into feature/ccip-2715-exec-main
patrickhuie19 Jul 11, 2024
7cf27f5
Merge branch 'ccip-develop' into feature/ccip-2715-exec-main
patrickhuie19 Aug 12, 2024
adbc8cc
lint
patrickhuie19 Aug 12, 2024
f2823c4
Merge branch 'ccip-develop' into feature/ccip-2715-exec-main
patrickhuie19 Aug 24, 2024
1d9f964
bumping common
patrickhuie19 Aug 24, 2024
7b8ef63
bumping common
patrickhuie19 Aug 24, 2024
75ccca0
bumping common
patrickhuie19 Sep 25, 2024
56e4e7a
Merge branch 'ccip-develop' into feature/ccip-2715-exec-main
patrickhuie19 Sep 25, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,10 @@ install-medianpoc: ## Build & install the chainlink-medianpoc binary.
install-ocr3-capability: ## Build & install the chainlink-ocr3-capability binary.
go install $(GOFLAGS) ./plugins/cmd/chainlink-ocr3-capability

.PHONY: install-ccip-exec
install-ccip-exec:
go install $(GOFLAGS) ./plugins/cmd/chainlink-ccip-exec

.PHONY: docker ## Build the chainlink docker image
docker:
docker buildx build \
Expand Down
1 change: 1 addition & 0 deletions core/config/env/env.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ var (
MercuryPlugin = NewPlugin("mercury")
SolanaPlugin = NewPlugin("solana")
StarknetPlugin = NewPlugin("starknet")
CCIPExecPlugin = NewPlugin("ccip-exec")
// PrometheusDiscoveryHostName is the externally accessible hostname
// published by the node in the `/discovery` endpoint. Generally, it is expected to match
// the public hostname of node.
Expand Down
2 changes: 1 addition & 1 deletion core/scripts/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ require (
github.com/shopspring/decimal v1.4.0
github.com/smartcontractkit/chain-selectors v1.0.23
github.com/smartcontractkit/chainlink-automation v1.0.4
github.com/smartcontractkit/chainlink-common v0.2.2-0.20240723123524-e407ecd120b1
github.com/smartcontractkit/chainlink-common v0.2.2-0.20240925011859-eac77b0c392b
github.com/smartcontractkit/chainlink/v2 v2.0.0-00010101000000-000000000000
github.com/smartcontractkit/libocr v0.0.0-20240717100443-f6226e09bee7
github.com/spf13/cobra v1.8.0
Expand Down
4 changes: 2 additions & 2 deletions core/scripts/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -1074,8 +1074,8 @@ github.com/smartcontractkit/chain-selectors v1.0.23 h1:D2Eaex4Cw/O7Lg3tX6WklOqnj
github.com/smartcontractkit/chain-selectors v1.0.23/go.mod h1:d4Hi+E1zqjy9HqMkjBE5q1vcG9VGgxf5VxiRHfzi2kE=
github.com/smartcontractkit/chainlink-automation v1.0.4 h1:iyW181JjKHLNMnDleI8umfIfVVlwC7+n5izbLSFgjw8=
github.com/smartcontractkit/chainlink-automation v1.0.4/go.mod h1:u4NbPZKJ5XiayfKHD/v3z3iflQWqvtdhj13jVZXj/cM=
github.com/smartcontractkit/chainlink-common v0.2.2-0.20240723123524-e407ecd120b1 h1:pdEpjgbZ5w/Sd5lzg/XiuC5gVyrmSovOo+3nUD46SP8=
github.com/smartcontractkit/chainlink-common v0.2.2-0.20240723123524-e407ecd120b1/go.mod h1:Jg1sCTsbxg76YByI8ifpFby3FvVqISStHT8ypy9ocmY=
github.com/smartcontractkit/chainlink-common v0.2.2-0.20240925011859-eac77b0c392b h1:Dak5bYlqcDh3kUbmNZaV5ib+MykYuzAgPkWmtqkPj7U=
github.com/smartcontractkit/chainlink-common v0.2.2-0.20240925011859-eac77b0c392b/go.mod h1:Jg1sCTsbxg76YByI8ifpFby3FvVqISStHT8ypy9ocmY=
github.com/smartcontractkit/chainlink-cosmos v0.4.1-0.20240710121324-3ed288aa9b45 h1:NBQLtqk8zsyY4qTJs+NElI3aDFTcAo83JHvqD04EvB0=
github.com/smartcontractkit/chainlink-cosmos v0.4.1-0.20240710121324-3ed288aa9b45/go.mod h1:LV0h7QBQUpoC2UUi6TcUvcIFm1xjP/DtEcqV8+qeLUs=
github.com/smartcontractkit/chainlink-data-streams v0.0.0-20240718160222-2dc0c8136bfa h1:g75H8oh2ws52s8BekwvGQ9XvBVu3E7WM1rfiA0PN0zk=
Expand Down
43 changes: 26 additions & 17 deletions core/services/ocr2/delegate.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,19 @@ import (

"gopkg.in/guregu/null.v4"

cciptypes "github.com/smartcontractkit/chainlink-common/pkg/types/ccip"
"github.com/smartcontractkit/chainlink-common/pkg/types/core"
"github.com/smartcontractkit/chainlink/v2/core/services/ocr2/plugins/ccip/config"

"github.com/ethereum/go-ethereum/common"
"github.com/pkg/errors"
"github.com/prometheus/client_golang/prometheus"
"google.golang.org/grpc"

chainselectors "github.com/smartcontractkit/chain-selectors"
cciptypes "github.com/smartcontractkit/chainlink-common/pkg/types/ccip"
"github.com/smartcontractkit/chainlink-common/pkg/types/core"
"github.com/smartcontractkit/chainlink/v2/core/services/ocr2/plugins/ccip/config"
"github.com/smartcontractkit/libocr/commontypes"
libocr2 "github.com/smartcontractkit/libocr/offchainreporting2plus"
"github.com/smartcontractkit/libocr/offchainreporting2plus/ocr3types"
ocrtypes "github.com/smartcontractkit/libocr/offchainreporting2plus/types"
"google.golang.org/grpc"

ocr2keepers20 "github.com/smartcontractkit/chainlink-automation/pkg/v2"
ocr2keepers20config "github.com/smartcontractkit/chainlink-automation/pkg/v2/config"
Expand All @@ -41,7 +41,6 @@ import (
llotypes "github.com/smartcontractkit/chainlink-common/pkg/types/llo"
"github.com/smartcontractkit/chainlink-common/pkg/utils/mailbox"
datastreamsllo "github.com/smartcontractkit/chainlink-data-streams/llo"

"github.com/smartcontractkit/chainlink/v2/core/bridges"
"github.com/smartcontractkit/chainlink/v2/core/chains/legacyevm"
coreconfig "github.com/smartcontractkit/chainlink/v2/core/config"
Expand All @@ -52,8 +51,10 @@ import (
"github.com/smartcontractkit/chainlink/v2/core/services/keystore/chaintype"
"github.com/smartcontractkit/chainlink/v2/core/services/keystore/keys/ocr2key"
"github.com/smartcontractkit/chainlink/v2/core/services/llo"
"github.com/smartcontractkit/chainlink/v2/core/services/ocr2/plugins/ccip"
"github.com/smartcontractkit/chainlink/v2/core/services/ocr2/plugins/ccip/ccipcommit"
"github.com/smartcontractkit/chainlink/v2/core/services/ocr2/plugins/ccip/ccipexec"
ccipconfig "github.com/smartcontractkit/chainlink/v2/core/services/ocr2/plugins/ccip/config"
"github.com/smartcontractkit/chainlink/v2/core/services/ocr2/plugins/functions"
"github.com/smartcontractkit/chainlink/v2/core/services/ocr2/plugins/generic"
"github.com/smartcontractkit/chainlink/v2/core/services/ocr2/plugins/liquiditymanager"
Expand All @@ -63,7 +64,6 @@ import (
"github.com/smartcontractkit/chainlink/v2/core/services/ocr2/plugins/median"
"github.com/smartcontractkit/chainlink/v2/core/services/ocr2/plugins/mercury"
"github.com/smartcontractkit/chainlink/v2/core/services/ocr2/plugins/ocr2keeper"

"github.com/smartcontractkit/chainlink/v2/core/services/ocr2/plugins/ocr2keeper/evmregistry/v21/autotelemetry21"
ocr2keeper21core "github.com/smartcontractkit/chainlink/v2/core/services/ocr2/plugins/ocr2keeper/evmregistry/v21/core"
"github.com/smartcontractkit/chainlink/v2/core/services/ocr2/validate"
Expand All @@ -79,8 +79,6 @@ import (
"github.com/smartcontractkit/chainlink/v2/core/services/synchronization"
"github.com/smartcontractkit/chainlink/v2/core/services/telemetry"
"github.com/smartcontractkit/chainlink/v2/plugins"

ccipconfig "github.com/smartcontractkit/chainlink/v2/core/services/ocr2/plugins/ccip/config"
)

type ErrJobSpecNoRelayer struct {
Expand Down Expand Up @@ -1730,12 +1728,29 @@ func (d *Delegate) ccipCommitGetSrcProvider(ctx context.Context, jb job.Job, plu
}

func (d *Delegate) newServicesCCIPExecution(ctx context.Context, lggr logger.SugaredLogger, jb job.Job, bootstrapPeers []commontypes.BootstrapperLocator, kb ocr2key.KeyBundle, ocrDB *db, lc ocrtypes.LocalConfig, transmitterID string) ([]job.ServiceCtx, error) {
if jb.OCR2OracleSpec == nil {
return nil, fmt.Errorf("spec is nil")
}
spec := jb.OCR2OracleSpec
if spec.Relay != relay.NetworkEVM {
return nil, fmt.Errorf("non evm chains are not supported for CCIP execution")
}
dstRid, err := spec.RelayID()
var pluginJobSpecConfig ccipconfig.ExecPluginJobSpecConfig
err := json.Unmarshal(spec.PluginConfig.Bytes(), &pluginJobSpecConfig)
if err != nil {
return nil, err
}

if pluginJobSpecConfig.USDCConfig.AttestationAPI != "" {
err = pluginJobSpecConfig.USDCConfig.ValidateUSDCConfig()
}
if err != nil {
return nil, err
}

sourceTokenAddress := ccip.EvmAddrToGeneric(pluginJobSpecConfig.USDCConfig.SourceTokenAddress)

dstRid, err := spec.RelayID()
if err != nil {
return nil, ErrJobSpecNoRelayer{Err: err, PluginName: string(spec.PluginType)}
}
Expand All @@ -1746,12 +1761,6 @@ func (d *Delegate) newServicesCCIPExecution(ctx context.Context, lggr logger.Sug

// PROVIDER BASED ARG CONSTRUCTION
// Write PluginConfig bytes to send source/dest relayer provider + info outside of top level rargs/pargs over the wire
var pluginJobSpecConfig ccipconfig.ExecPluginJobSpecConfig
err = json.Unmarshal(spec.PluginConfig.Bytes(), &pluginJobSpecConfig)
if err != nil {
return nil, err
}

dstChainID, err := strconv.ParseInt(dstRid.ChainID, 10, 64)
if err != nil {
return nil, err
Expand Down Expand Up @@ -1786,7 +1795,7 @@ func (d *Delegate) newServicesCCIPExecution(ctx context.Context, lggr logger.Sug
MetricsRegisterer: prometheus.WrapRegistererWith(map[string]string{"job_name": jb.Name.ValueOrZero()}, prometheus.DefaultRegisterer),
}

return ccipexec.NewExecServices(ctx, lggr, jb, srcProvider, dstProvider, int64(srcChainID), dstChainID, d.isNewlyCreatedJob, oracleArgsNoPlugin2, logError)
return ccipexec.NewExecServices(ctx, lggr, d.cfg, jb, string(sourceTokenAddress), srcProvider, dstProvider, int64(srcChainID), dstChainID, d.isNewlyCreatedJob, oracleArgsNoPlugin2, logError)
}

func (d *Delegate) ccipExecGetDstProvider(ctx context.Context, jb job.Job, pluginJobSpecConfig ccipconfig.ExecPluginJobSpecConfig, transmitterID string) (types.CCIPExecProvider, error) {
Expand Down
8 changes: 5 additions & 3 deletions core/services/ocr2/plugins/ccip/ccipcommit/initializers.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,20 @@ import (
"strings"
"time"

"github.com/Masterminds/semver/v3"

commonlogger "github.com/smartcontractkit/chainlink-common/pkg/logger"
"github.com/smartcontractkit/chainlink/v2/core/logger"

"github.com/smartcontractkit/chainlink/v2/core/services/ocr2/plugins/ccip/internal/pricegetter"
"github.com/smartcontractkit/chainlink/v2/core/services/ocr2/plugins/ccip/internal/rpclib"

"github.com/Masterminds/semver/v3"
"github.com/ethereum/go-ethereum/common"
libocr2 "github.com/smartcontractkit/libocr/offchainreporting2plus"
"go.uber.org/multierr"

"github.com/smartcontractkit/chainlink-common/pkg/sqlutil"

commonlogger "github.com/smartcontractkit/chainlink-common/pkg/logger"
commontypes "github.com/smartcontractkit/chainlink-common/pkg/types"

cciporm "github.com/smartcontractkit/chainlink/v2/core/services/ccip"
Expand All @@ -28,7 +31,6 @@ import (

"github.com/smartcontractkit/chainlink/v2/core/chains/evm/txmgr"
"github.com/smartcontractkit/chainlink/v2/core/chains/legacyevm"
"github.com/smartcontractkit/chainlink/v2/core/logger"
"github.com/smartcontractkit/chainlink/v2/core/services/job"
"github.com/smartcontractkit/chainlink/v2/core/services/ocr2/plugins/ccip"
ccipconfig "github.com/smartcontractkit/chainlink/v2/core/services/ocr2/plugins/ccip/config"
Expand Down
4 changes: 2 additions & 2 deletions core/services/ocr2/plugins/ccip/ccipexec/batching.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
"github.com/smartcontractkit/chainlink-common/pkg/types"
cciptypes "github.com/smartcontractkit/chainlink-common/pkg/types/ccip"

"github.com/smartcontractkit/chainlink/v2/core/logger"
"github.com/smartcontractkit/chainlink-common/pkg/logger"
"github.com/smartcontractkit/chainlink/v2/core/services/ocr2/plugins/ccip"
"github.com/smartcontractkit/chainlink/v2/core/services/ocr2/plugins/ccip/abihelpers"
"github.com/smartcontractkit/chainlink/v2/core/services/ocr2/plugins/ccip/internal/ccipdata"
Expand All @@ -34,7 +34,7 @@ type BatchContext struct {
report commitReportWithSendRequests
inflight []InflightInternalExecutionReport
inflightAggregateValue *big.Int
lggr logger.Logger
lggr logger.SugaredLogger
availableDataLen int
availableGas uint64
expectedNonces map[cciptypes.Address]uint64
Expand Down
5 changes: 3 additions & 2 deletions core/services/ocr2/plugins/ccip/ccipexec/batching_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"bytes"
"context"
"encoding/binary"

"math"
"math/big"
"reflect"
Expand All @@ -14,10 +15,10 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/mock"

commonlogger "github.com/smartcontractkit/chainlink-common/pkg/logger"
"github.com/smartcontractkit/chainlink-common/pkg/types"
cciptypes "github.com/smartcontractkit/chainlink-common/pkg/types/ccip"
"github.com/smartcontractkit/chainlink/v2/core/internal/testutils"
"github.com/smartcontractkit/chainlink/v2/core/logger"
"github.com/smartcontractkit/chainlink/v2/core/services/ocr2/plugins/ccip"
"github.com/smartcontractkit/chainlink/v2/core/services/ocr2/plugins/ccip/internal/ccipcalc"
"github.com/smartcontractkit/chainlink/v2/core/services/ocr2/plugins/ccip/prices"
Expand Down Expand Up @@ -802,7 +803,7 @@ func runBatchingStrategyTests(t *testing.T, strategy BatchingStrategy, available
for _, tc := range testCases {
tc := tc
t.Run(tc.name, func(t *testing.T) {
lggr := logger.TestLogger(t)
lggr := commonlogger.TestSugared(t)

gasPriceEstimator := prices.NewMockGasPriceEstimatorExec(t)
if !tc.skipGasPriceEstimator {
Expand Down
Loading
Loading