diff --git a/core/capabilities/fakes/consensus_nodag.go b/core/capabilities/fakes/consensus_nodag.go index 5fe0cb39aab..87116bb277a 100644 --- a/core/capabilities/fakes/consensus_nodag.go +++ b/core/capabilities/fakes/consensus_nodag.go @@ -154,15 +154,7 @@ func (fc *fakeConsensusNoDAG) Description() string { func (fc *fakeConsensusNoDAG) Initialise( _ context.Context, - _ string, - _ core.TelemetryService, - _ core.KeyValueStore, - _ core.ErrorLog, - _ core.PipelineRunnerService, - _ core.RelayerSet, - _ core.OracleFactory, - _ core.GatewayConnector, - _ core.Keystore, + _ core.StandardCapabilitiesDependencies, ) error { return nil } diff --git a/core/capabilities/fakes/evm_chain.go b/core/capabilities/fakes/evm_chain.go index 99a5acf3a46..2b71780b3b7 100644 --- a/core/capabilities/fakes/evm_chain.go +++ b/core/capabilities/fakes/evm_chain.go @@ -85,14 +85,7 @@ func NewFakeEvmChain( return fc } -func (fc *FakeEVMChain) Initialise(ctx context.Context, config string, _ core.TelemetryService, - _ core.KeyValueStore, - _ core.ErrorLog, - _ core.PipelineRunnerService, - _ core.RelayerSet, - _ core.OracleFactory, - _ core.GatewayConnector, - _ core.Keystore) error { +func (fc *FakeEVMChain) Initialise(ctx context.Context, dependencies core.StandardCapabilitiesDependencies) error { // TODO: do validation of config here err := fc.Start(ctx) diff --git a/core/capabilities/fakes/http_action.go b/core/capabilities/fakes/http_action.go index 0df2d7ab07b..3876cdc5d6d 100644 --- a/core/capabilities/fakes/http_action.go +++ b/core/capabilities/fakes/http_action.go @@ -147,14 +147,7 @@ func (fh *DirectHTTPAction) Description() string { return directHTTPActionInfo.Description } -func (fh *DirectHTTPAction) Initialise(ctx context.Context, config string, _ core.TelemetryService, - _ core.KeyValueStore, - _ core.ErrorLog, - _ core.PipelineRunnerService, - _ core.RelayerSet, - _ core.OracleFactory, - _ core.GatewayConnector, - _ core.Keystore) error { +func (fh *DirectHTTPAction) Initialise(ctx context.Context, dependencies core.StandardCapabilitiesDependencies) error { // TODO: do validation of config here err := fh.Start(ctx) diff --git a/core/capabilities/fakes/manual_cron_trigger.go b/core/capabilities/fakes/manual_cron_trigger.go index ed703c6bedc..179cb112df7 100644 --- a/core/capabilities/fakes/manual_cron_trigger.go +++ b/core/capabilities/fakes/manual_cron_trigger.go @@ -57,21 +57,14 @@ func NewManualCronTriggerService(parentLggr logger.Logger) *ManualCronTriggerSer } } -func (f *ManualCronTriggerService) Initialise(ctx context.Context, config string, _ core.TelemetryService, - _ core.KeyValueStore, - _ core.ErrorLog, - _ core.PipelineRunnerService, - _ core.RelayerSet, - _ core.OracleFactory, - _ core.GatewayConnector, - _ core.Keystore) error { +func (f *ManualCronTriggerService) Initialise(ctx context.Context, dependencies core.StandardCapabilitiesDependencies) error { f.lggr.Debugf("Initialising %s", ServiceName) var cronConfig ManualCronConfig - if len(config) > 0 { - err := json.Unmarshal([]byte(config), &cronConfig) + if len(dependencies.Config) > 0 { + err := json.Unmarshal([]byte(dependencies.Config), &cronConfig) if err != nil { - return fmt.Errorf("failed to unmarshal config: %s %w", config, err) + return fmt.Errorf("failed to unmarshal config: %s %w", dependencies.Config, err) } } diff --git a/core/capabilities/fakes/manual_http_trigger.go b/core/capabilities/fakes/manual_http_trigger.go index e34c73fc47c..69148d19d0a 100644 --- a/core/capabilities/fakes/manual_http_trigger.go +++ b/core/capabilities/fakes/manual_http_trigger.go @@ -54,15 +54,7 @@ func (f *ManualHTTPTriggerService) UnregisterTrigger(ctx context.Context, trigge return nil } -func (f *ManualHTTPTriggerService) Initialise(ctx context.Context, config string, - _ core.TelemetryService, - _ core.KeyValueStore, - _ core.ErrorLog, - _ core.PipelineRunnerService, - _ core.RelayerSet, - _ core.OracleFactory, - _ core.GatewayConnector, - _ core.Keystore) error { +func (f *ManualHTTPTriggerService) Initialise(ctx context.Context, dependencies core.StandardCapabilitiesDependencies) error { f.lggr.Debugf("Initialising %s", HTTPTriggerServiceName) return f.Start(ctx) } diff --git a/core/scripts/go.mod b/core/scripts/go.mod index ed07dae1f70..3db1a0673fd 100644 --- a/core/scripts/go.mod +++ b/core/scripts/go.mod @@ -47,7 +47,7 @@ require ( github.com/shopspring/decimal v1.4.0 github.com/smartcontractkit/chainlink-automation v0.8.1 github.com/smartcontractkit/chainlink-ccip v0.1.1-solana.0.20251006204220-06f2720ee9a0 - github.com/smartcontractkit/chainlink-common v0.9.6-0.20251007140624-a242e4bbd3dc + github.com/smartcontractkit/chainlink-common v0.9.6-0.20251007200533-32ee550b9b37 github.com/smartcontractkit/chainlink-data-streams v0.1.5 github.com/smartcontractkit/chainlink-deployments-framework v0.54.0 github.com/smartcontractkit/chainlink-evm v0.3.4-0.20251007172225-ba2f4b5ef962 diff --git a/core/scripts/go.sum b/core/scripts/go.sum index 7cb646c3645..444e01dfc04 100644 --- a/core/scripts/go.sum +++ b/core/scripts/go.sum @@ -1599,8 +1599,8 @@ github.com/smartcontractkit/chainlink-ccip/chains/solana v0.0.0-20250912190424-f github.com/smartcontractkit/chainlink-ccip/chains/solana v0.0.0-20250912190424-fd2e35d7deb5/go.mod h1:Ve1xD71bl193YIZQEoJMmBqLGQJdNs29bwbuObwvbhQ= github.com/smartcontractkit/chainlink-ccip/chains/solana/gobindings v0.0.0-20250912190424-fd2e35d7deb5 h1:Z4t2ZY+ZyGWxtcXvPr11y4o3CGqhg3frJB5jXkCSvWA= github.com/smartcontractkit/chainlink-ccip/chains/solana/gobindings v0.0.0-20250912190424-fd2e35d7deb5/go.mod h1:xtZNi6pOKdC3sLvokDvXOhgHzT+cyBqH/gWwvxTxqrg= -github.com/smartcontractkit/chainlink-common v0.9.6-0.20251007140624-a242e4bbd3dc h1:6mfaXVqIxIp+yl41VLQZmEBhvIkXF+kRqnLI8tQLdmE= -github.com/smartcontractkit/chainlink-common v0.9.6-0.20251007140624-a242e4bbd3dc/go.mod h1:37kbNkl7i8GIVDX7ScdzxQCMGFYkaL6cX+P1wRG4D4U= +github.com/smartcontractkit/chainlink-common v0.9.6-0.20251007200533-32ee550b9b37 h1:20has9qym6hsGIXY/LnfiulB1ABv9wpsZwkpuZoevPk= +github.com/smartcontractkit/chainlink-common v0.9.6-0.20251007200533-32ee550b9b37/go.mod h1:37kbNkl7i8GIVDX7ScdzxQCMGFYkaL6cX+P1wRG4D4U= github.com/smartcontractkit/chainlink-common/pkg/chipingress v0.0.4 h1:hvqATtrZ0iMRTI80cpBot/3JFbjz2j+2tvpfooVhRHw= github.com/smartcontractkit/chainlink-common/pkg/chipingress v0.0.4/go.mod h1:eKGyfTKzr0/PeR7qKN4l2FcW9p+HzyKUwAfGhm/5YZc= github.com/smartcontractkit/chainlink-common/pkg/monitoring v0.0.0-20250415235644-8703639403c7 h1:9wh1G+WbXwPVqf0cfSRSgwIcaXTQgvYezylEAfwmrbw= diff --git a/core/services/standardcapabilities/delegate.go b/core/services/standardcapabilities/delegate.go index f5b0580170f..6cfaeb510f2 100644 --- a/core/services/standardcapabilities/delegate.go +++ b/core/services/standardcapabilities/delegate.go @@ -304,8 +304,19 @@ func (d *Delegate) ServicesForSpec(ctx context.Context, spec job.Job) ([]job.Ser return services, nil } - standardCapability := NewStandardCapabilities(log, spec.StandardCapabilitiesSpec, d.cfg, telemetryService, kvStore, d.registry, errorLog, - pr, relayerSet, oracleFactory, connector, ks) + dependencies := core.StandardCapabilitiesDependencies{ + Config: spec.StandardCapabilitiesSpec.Config, + TelemetryService: telemetryService, + Store: kvStore, + CapabilityRegistry: d.registry, + ErrorLog: errorLog, + PipelineRunner: pr, + RelayerSet: relayerSet, + OracleFactory: oracleFactory, + GatewayConnector: connector, + P2PKeystore: ks, + } + standardCapability := NewStandardCapabilities(log, spec.StandardCapabilitiesSpec, d.cfg, dependencies) return []job.ServiceCtx{standardCapability}, nil } diff --git a/core/services/standardcapabilities/standard_capabilities.go b/core/services/standardcapabilities/standard_capabilities.go index d5933270cb6..344ca4e2ec1 100644 --- a/core/services/standardcapabilities/standard_capabilities.go +++ b/core/services/standardcapabilities/standard_capabilities.go @@ -49,29 +49,21 @@ func NewStandardCapabilities( log logger.Logger, spec *job.StandardCapabilitiesSpec, pluginRegistrar plugins.RegistrarConfig, - telemetryService core.TelemetryService, - store core.KeyValueStore, - CapabilitiesRegistry core.CapabilitiesRegistry, - errorLog core.ErrorLog, - pipelineRunner core.PipelineRunnerService, - relayerSet core.RelayerSet, - oracleFactory core.OracleFactory, - gatewayConnector core.GatewayConnector, - keystore core.Keystore, + dependencies core.StandardCapabilitiesDependencies, ) *StandardCapabilities { return &StandardCapabilities{ log: log, spec: spec, pluginRegistrar: pluginRegistrar, - telemetryService: telemetryService, - store: store, - CapabilitiesRegistry: CapabilitiesRegistry, - errorLog: errorLog, - pipelineRunner: pipelineRunner, - relayerSet: relayerSet, - oracleFactory: oracleFactory, - gatewayConnector: gatewayConnector, - keystore: keystore, + telemetryService: dependencies.TelemetryService, + store: dependencies.Store, + CapabilitiesRegistry: dependencies.CapabilityRegistry, + errorLog: dependencies.ErrorLog, + pipelineRunner: dependencies.PipelineRunner, + relayerSet: dependencies.RelayerSet, + oracleFactory: dependencies.OracleFactory, + gatewayConnector: dependencies.GatewayConnector, + keystore: dependencies.P2PKeystore, stopChan: make(chan struct{}), readyChan: make(chan struct{}), } @@ -112,8 +104,19 @@ func (s *StandardCapabilities) Start(ctx context.Context) error { return } - if err = s.capabilitiesLoop.Service.Initialise(cctx, s.spec.Config, s.telemetryService, s.store, s.CapabilitiesRegistry, s.errorLog, - s.pipelineRunner, s.relayerSet, s.oracleFactory, s.gatewayConnector, s.keystore); err != nil { + dependencies := core.StandardCapabilitiesDependencies{ + Config: s.spec.Config, + TelemetryService: s.telemetryService, + Store: s.store, + CapabilityRegistry: s.CapabilitiesRegistry, + ErrorLog: s.errorLog, + PipelineRunner: s.pipelineRunner, + RelayerSet: s.relayerSet, + OracleFactory: s.oracleFactory, + GatewayConnector: s.gatewayConnector, + P2PKeystore: s.keystore, + } + if err = s.capabilitiesLoop.Service.Initialise(cctx, dependencies); err != nil { s.log.Errorf("error initialising standard capabilities service: %v", err) return } diff --git a/core/services/standardcapabilities/standard_capabilities_test.go b/core/services/standardcapabilities/standard_capabilities_test.go index 8afb297e2ed..5ea431b2f72 100644 --- a/core/services/standardcapabilities/standard_capabilities_test.go +++ b/core/services/standardcapabilities/standard_capabilities_test.go @@ -39,7 +39,19 @@ func TestStandardCapabilityStart(t *testing.T) { ChainID: "31337", }} - standardCapability := NewStandardCapabilities(lggr, spec, pluginRegistrar, &telemetryServiceMock{}, &kvstoreMock{}, registry, &errorLogMock{}, &pipelineRunnerServiceMock{}, &relayerSetMock{}, &oracleFactoryMock{}, &gatewayConnectorMock{}, &keystoreMock{}) + dependencies := core.StandardCapabilitiesDependencies{ + Config: spec.Config, + TelemetryService: &telemetryServiceMock{}, + Store: &kvstoreMock{}, + CapabilityRegistry: registry, + ErrorLog: &errorLogMock{}, + PipelineRunner: &pipelineRunnerServiceMock{}, + RelayerSet: &relayerSetMock{}, + OracleFactory: &oracleFactoryMock{}, + GatewayConnector: &gatewayConnectorMock{}, + P2PKeystore: &keystoreMock{}, + } + standardCapability := NewStandardCapabilities(lggr, spec, pluginRegistrar, dependencies) standardCapability.startTimeout = 1 * time.Second err := standardCapability.Start(ctx) require.NoError(t, err) diff --git a/core/services/workflows/cmd/cre/utils/standard_capabilities.go b/core/services/workflows/cmd/cre/utils/standard_capabilities.go index 9b0ed0030c7..2c01ed28ec8 100644 --- a/core/services/workflows/cmd/cre/utils/standard_capabilities.go +++ b/core/services/workflows/cmd/cre/utils/standard_capabilities.go @@ -7,6 +7,7 @@ import ( "github.com/smartcontractkit/chainlink-common/pkg/logger" "github.com/smartcontractkit/chainlink-common/pkg/loop" "github.com/smartcontractkit/chainlink-common/pkg/services" + "github.com/smartcontractkit/chainlink-common/pkg/types/core" "github.com/smartcontractkit/chainlink/v2/core/capabilities" "github.com/smartcontractkit/chainlink/v2/core/capabilities/fakes" "github.com/smartcontractkit/chainlink/v2/core/services/job" @@ -69,9 +70,18 @@ func newStandardCapabilities( } loop := standardcapabilities.NewStandardCapabilities(lggr, spec, - pluginRegistrar, &fakes.TelemetryServiceMock{}, &fakes.KVStoreMock{}, - registry, &fakes.ErrorLogMock{}, &fakes.PipelineRunnerServiceMock{}, - &fakes.RelayerSetMock{}, &fakes.OracleFactoryMock{}, &fakes.GatewayConnectorMock{}, &fakes.KeystoreMock{}) + pluginRegistrar, core.StandardCapabilitiesDependencies{ + Config: spec.Config, + TelemetryService: &fakes.TelemetryServiceMock{}, + Store: &fakes.KVStoreMock{}, + CapabilityRegistry: registry, + ErrorLog: &fakes.ErrorLogMock{}, + PipelineRunner: &fakes.PipelineRunnerServiceMock{}, + RelayerSet: &fakes.RelayerSetMock{}, + OracleFactory: &fakes.OracleFactoryMock{}, + GatewayConnector: &fakes.GatewayConnectorMock{}, + P2PKeystore: &fakes.KeystoreMock{}, + }) service := &standaloneLoopWrapper{ StandardCapabilities: loop, diff --git a/deployment/go.mod b/deployment/go.mod index 5cd33a37645..09471cf9b1d 100644 --- a/deployment/go.mod +++ b/deployment/go.mod @@ -40,7 +40,7 @@ require ( github.com/smartcontractkit/chainlink-ccip v0.1.1-solana.0.20251006204220-06f2720ee9a0 github.com/smartcontractkit/chainlink-ccip/chains/solana v0.0.0-20250912190424-fd2e35d7deb5 github.com/smartcontractkit/chainlink-ccip/chains/solana/gobindings v0.0.0-20250912190424-fd2e35d7deb5 - github.com/smartcontractkit/chainlink-common v0.9.6-0.20251007140624-a242e4bbd3dc + github.com/smartcontractkit/chainlink-common v0.9.6-0.20251007200533-32ee550b9b37 github.com/smartcontractkit/chainlink-deployments-framework v0.54.0 github.com/smartcontractkit/chainlink-evm v0.3.4-0.20251007172225-ba2f4b5ef962 github.com/smartcontractkit/chainlink-evm/gethwrappers v0.0.0-20251003185510-17234095940f diff --git a/deployment/go.sum b/deployment/go.sum index 89172a8513f..96fac38f964 100644 --- a/deployment/go.sum +++ b/deployment/go.sum @@ -1336,8 +1336,8 @@ github.com/smartcontractkit/chainlink-ccip/chains/solana v0.0.0-20250912190424-f github.com/smartcontractkit/chainlink-ccip/chains/solana v0.0.0-20250912190424-fd2e35d7deb5/go.mod h1:Ve1xD71bl193YIZQEoJMmBqLGQJdNs29bwbuObwvbhQ= github.com/smartcontractkit/chainlink-ccip/chains/solana/gobindings v0.0.0-20250912190424-fd2e35d7deb5 h1:Z4t2ZY+ZyGWxtcXvPr11y4o3CGqhg3frJB5jXkCSvWA= github.com/smartcontractkit/chainlink-ccip/chains/solana/gobindings v0.0.0-20250912190424-fd2e35d7deb5/go.mod h1:xtZNi6pOKdC3sLvokDvXOhgHzT+cyBqH/gWwvxTxqrg= -github.com/smartcontractkit/chainlink-common v0.9.6-0.20251007140624-a242e4bbd3dc h1:6mfaXVqIxIp+yl41VLQZmEBhvIkXF+kRqnLI8tQLdmE= -github.com/smartcontractkit/chainlink-common v0.9.6-0.20251007140624-a242e4bbd3dc/go.mod h1:37kbNkl7i8GIVDX7ScdzxQCMGFYkaL6cX+P1wRG4D4U= +github.com/smartcontractkit/chainlink-common v0.9.6-0.20251007200533-32ee550b9b37 h1:20has9qym6hsGIXY/LnfiulB1ABv9wpsZwkpuZoevPk= +github.com/smartcontractkit/chainlink-common v0.9.6-0.20251007200533-32ee550b9b37/go.mod h1:37kbNkl7i8GIVDX7ScdzxQCMGFYkaL6cX+P1wRG4D4U= github.com/smartcontractkit/chainlink-common/pkg/chipingress v0.0.4 h1:hvqATtrZ0iMRTI80cpBot/3JFbjz2j+2tvpfooVhRHw= github.com/smartcontractkit/chainlink-common/pkg/chipingress v0.0.4/go.mod h1:eKGyfTKzr0/PeR7qKN4l2FcW9p+HzyKUwAfGhm/5YZc= github.com/smartcontractkit/chainlink-common/pkg/monitoring v0.0.0-20250415235644-8703639403c7 h1:9wh1G+WbXwPVqf0cfSRSgwIcaXTQgvYezylEAfwmrbw= diff --git a/go.mod b/go.mod index 0248167fe63..4054d5dd706 100644 --- a/go.mod +++ b/go.mod @@ -85,7 +85,7 @@ require ( github.com/smartcontractkit/chainlink-ccip v0.1.1-solana.0.20251006204220-06f2720ee9a0 github.com/smartcontractkit/chainlink-ccip/chains/solana v0.0.0-20250912190424-fd2e35d7deb5 github.com/smartcontractkit/chainlink-ccip/chains/solana/gobindings v0.0.0-20250912190424-fd2e35d7deb5 - github.com/smartcontractkit/chainlink-common v0.9.6-0.20251007140624-a242e4bbd3dc + github.com/smartcontractkit/chainlink-common v0.9.6-0.20251007200533-32ee550b9b37 github.com/smartcontractkit/chainlink-data-streams v0.1.5 github.com/smartcontractkit/chainlink-evm v0.3.4-0.20251007172225-ba2f4b5ef962 github.com/smartcontractkit/chainlink-evm/gethwrappers v0.0.0-20251003185510-17234095940f diff --git a/go.sum b/go.sum index 45d6455192e..f8995a70383 100644 --- a/go.sum +++ b/go.sum @@ -1113,8 +1113,8 @@ github.com/smartcontractkit/chainlink-ccip/chains/solana v0.0.0-20250912190424-f github.com/smartcontractkit/chainlink-ccip/chains/solana v0.0.0-20250912190424-fd2e35d7deb5/go.mod h1:Ve1xD71bl193YIZQEoJMmBqLGQJdNs29bwbuObwvbhQ= github.com/smartcontractkit/chainlink-ccip/chains/solana/gobindings v0.0.0-20250912190424-fd2e35d7deb5 h1:Z4t2ZY+ZyGWxtcXvPr11y4o3CGqhg3frJB5jXkCSvWA= github.com/smartcontractkit/chainlink-ccip/chains/solana/gobindings v0.0.0-20250912190424-fd2e35d7deb5/go.mod h1:xtZNi6pOKdC3sLvokDvXOhgHzT+cyBqH/gWwvxTxqrg= -github.com/smartcontractkit/chainlink-common v0.9.6-0.20251007140624-a242e4bbd3dc h1:6mfaXVqIxIp+yl41VLQZmEBhvIkXF+kRqnLI8tQLdmE= -github.com/smartcontractkit/chainlink-common v0.9.6-0.20251007140624-a242e4bbd3dc/go.mod h1:37kbNkl7i8GIVDX7ScdzxQCMGFYkaL6cX+P1wRG4D4U= +github.com/smartcontractkit/chainlink-common v0.9.6-0.20251007200533-32ee550b9b37 h1:20has9qym6hsGIXY/LnfiulB1ABv9wpsZwkpuZoevPk= +github.com/smartcontractkit/chainlink-common v0.9.6-0.20251007200533-32ee550b9b37/go.mod h1:37kbNkl7i8GIVDX7ScdzxQCMGFYkaL6cX+P1wRG4D4U= github.com/smartcontractkit/chainlink-common/pkg/chipingress v0.0.4 h1:hvqATtrZ0iMRTI80cpBot/3JFbjz2j+2tvpfooVhRHw= github.com/smartcontractkit/chainlink-common/pkg/chipingress v0.0.4/go.mod h1:eKGyfTKzr0/PeR7qKN4l2FcW9p+HzyKUwAfGhm/5YZc= github.com/smartcontractkit/chainlink-common/pkg/monitoring v0.0.0-20250415235644-8703639403c7 h1:9wh1G+WbXwPVqf0cfSRSgwIcaXTQgvYezylEAfwmrbw= diff --git a/integration-tests/go.mod b/integration-tests/go.mod index a816818700c..19cd7e68718 100644 --- a/integration-tests/go.mod +++ b/integration-tests/go.mod @@ -50,7 +50,7 @@ require ( github.com/smartcontractkit/chainlink-ccip v0.1.1-solana.0.20251006204220-06f2720ee9a0 github.com/smartcontractkit/chainlink-ccip/chains/solana v0.0.0-20250912190424-fd2e35d7deb5 github.com/smartcontractkit/chainlink-ccip/chains/solana/gobindings v0.0.0-20250912190424-fd2e35d7deb5 - github.com/smartcontractkit/chainlink-common v0.9.6-0.20251007140624-a242e4bbd3dc + github.com/smartcontractkit/chainlink-common v0.9.6-0.20251007200533-32ee550b9b37 github.com/smartcontractkit/chainlink-deployments-framework v0.54.0 github.com/smartcontractkit/chainlink-evm v0.3.4-0.20251007172225-ba2f4b5ef962 github.com/smartcontractkit/chainlink-evm/gethwrappers v0.0.0-20251003185510-17234095940f diff --git a/integration-tests/go.sum b/integration-tests/go.sum index 5c141adbd6b..70f9def9d23 100644 --- a/integration-tests/go.sum +++ b/integration-tests/go.sum @@ -1580,8 +1580,8 @@ github.com/smartcontractkit/chainlink-ccip/chains/solana v0.0.0-20250912190424-f github.com/smartcontractkit/chainlink-ccip/chains/solana v0.0.0-20250912190424-fd2e35d7deb5/go.mod h1:Ve1xD71bl193YIZQEoJMmBqLGQJdNs29bwbuObwvbhQ= github.com/smartcontractkit/chainlink-ccip/chains/solana/gobindings v0.0.0-20250912190424-fd2e35d7deb5 h1:Z4t2ZY+ZyGWxtcXvPr11y4o3CGqhg3frJB5jXkCSvWA= github.com/smartcontractkit/chainlink-ccip/chains/solana/gobindings v0.0.0-20250912190424-fd2e35d7deb5/go.mod h1:xtZNi6pOKdC3sLvokDvXOhgHzT+cyBqH/gWwvxTxqrg= -github.com/smartcontractkit/chainlink-common v0.9.6-0.20251007140624-a242e4bbd3dc h1:6mfaXVqIxIp+yl41VLQZmEBhvIkXF+kRqnLI8tQLdmE= -github.com/smartcontractkit/chainlink-common v0.9.6-0.20251007140624-a242e4bbd3dc/go.mod h1:37kbNkl7i8GIVDX7ScdzxQCMGFYkaL6cX+P1wRG4D4U= +github.com/smartcontractkit/chainlink-common v0.9.6-0.20251007200533-32ee550b9b37 h1:20has9qym6hsGIXY/LnfiulB1ABv9wpsZwkpuZoevPk= +github.com/smartcontractkit/chainlink-common v0.9.6-0.20251007200533-32ee550b9b37/go.mod h1:37kbNkl7i8GIVDX7ScdzxQCMGFYkaL6cX+P1wRG4D4U= github.com/smartcontractkit/chainlink-common/pkg/chipingress v0.0.4 h1:hvqATtrZ0iMRTI80cpBot/3JFbjz2j+2tvpfooVhRHw= github.com/smartcontractkit/chainlink-common/pkg/chipingress v0.0.4/go.mod h1:eKGyfTKzr0/PeR7qKN4l2FcW9p+HzyKUwAfGhm/5YZc= github.com/smartcontractkit/chainlink-common/pkg/monitoring v0.0.0-20250415235644-8703639403c7 h1:9wh1G+WbXwPVqf0cfSRSgwIcaXTQgvYezylEAfwmrbw= diff --git a/integration-tests/load/go.mod b/integration-tests/load/go.mod index ef636d6e22e..d5503af6519 100644 --- a/integration-tests/load/go.mod +++ b/integration-tests/load/go.mod @@ -32,7 +32,7 @@ require ( github.com/smartcontractkit/chainlink-ccip v0.1.1-solana.0.20251006204220-06f2720ee9a0 github.com/smartcontractkit/chainlink-ccip/chains/solana v0.0.0-20250912190424-fd2e35d7deb5 github.com/smartcontractkit/chainlink-ccip/chains/solana/gobindings v0.0.0-20250912190424-fd2e35d7deb5 - github.com/smartcontractkit/chainlink-common v0.9.6-0.20251007140624-a242e4bbd3dc + github.com/smartcontractkit/chainlink-common v0.9.6-0.20251007200533-32ee550b9b37 github.com/smartcontractkit/chainlink-deployments-framework v0.54.0 github.com/smartcontractkit/chainlink-evm v0.3.4-0.20251007172225-ba2f4b5ef962 github.com/smartcontractkit/chainlink-evm/gethwrappers v0.0.0-20251003185510-17234095940f diff --git a/integration-tests/load/go.sum b/integration-tests/load/go.sum index eb899dd2a8c..949bd1f5a17 100644 --- a/integration-tests/load/go.sum +++ b/integration-tests/load/go.sum @@ -1559,8 +1559,8 @@ github.com/smartcontractkit/chainlink-ccip/chains/solana v0.0.0-20250912190424-f github.com/smartcontractkit/chainlink-ccip/chains/solana v0.0.0-20250912190424-fd2e35d7deb5/go.mod h1:Ve1xD71bl193YIZQEoJMmBqLGQJdNs29bwbuObwvbhQ= github.com/smartcontractkit/chainlink-ccip/chains/solana/gobindings v0.0.0-20250912190424-fd2e35d7deb5 h1:Z4t2ZY+ZyGWxtcXvPr11y4o3CGqhg3frJB5jXkCSvWA= github.com/smartcontractkit/chainlink-ccip/chains/solana/gobindings v0.0.0-20250912190424-fd2e35d7deb5/go.mod h1:xtZNi6pOKdC3sLvokDvXOhgHzT+cyBqH/gWwvxTxqrg= -github.com/smartcontractkit/chainlink-common v0.9.6-0.20251007140624-a242e4bbd3dc h1:6mfaXVqIxIp+yl41VLQZmEBhvIkXF+kRqnLI8tQLdmE= -github.com/smartcontractkit/chainlink-common v0.9.6-0.20251007140624-a242e4bbd3dc/go.mod h1:37kbNkl7i8GIVDX7ScdzxQCMGFYkaL6cX+P1wRG4D4U= +github.com/smartcontractkit/chainlink-common v0.9.6-0.20251007200533-32ee550b9b37 h1:20has9qym6hsGIXY/LnfiulB1ABv9wpsZwkpuZoevPk= +github.com/smartcontractkit/chainlink-common v0.9.6-0.20251007200533-32ee550b9b37/go.mod h1:37kbNkl7i8GIVDX7ScdzxQCMGFYkaL6cX+P1wRG4D4U= github.com/smartcontractkit/chainlink-common/pkg/chipingress v0.0.4 h1:hvqATtrZ0iMRTI80cpBot/3JFbjz2j+2tvpfooVhRHw= github.com/smartcontractkit/chainlink-common/pkg/chipingress v0.0.4/go.mod h1:eKGyfTKzr0/PeR7qKN4l2FcW9p+HzyKUwAfGhm/5YZc= github.com/smartcontractkit/chainlink-common/pkg/monitoring v0.0.0-20250415235644-8703639403c7 h1:9wh1G+WbXwPVqf0cfSRSgwIcaXTQgvYezylEAfwmrbw= diff --git a/plugins/cmd/capabilities/log-event-trigger/main.go b/plugins/cmd/capabilities/log-event-trigger/main.go index b523e8da846..ca8ec429860 100644 --- a/plugins/cmd/capabilities/log-event-trigger/main.go +++ b/plugins/cmd/capabilities/log-event-trigger/main.go @@ -85,27 +85,18 @@ func (cs *LogEventTriggerGRPCService) Infos(ctx context.Context) ([]capabilities func (cs *LogEventTriggerGRPCService) Initialise( ctx context.Context, - config string, - telemetryService core.TelemetryService, - store core.KeyValueStore, - capabilityRegistry core.CapabilitiesRegistry, - errorLog core.ErrorLog, - pipelineRunner core.PipelineRunnerService, - relayerSet core.RelayerSet, - oracleFactory core.OracleFactory, - gatewayConnector core.GatewayConnector, - keystore core.Keystore, + dependencies core.StandardCapabilitiesDependencies, ) error { cs.s.Logger.Debugf("Initialising %s", serviceName) var logEventConfig logevent.Config - err := json.Unmarshal([]byte(config), &logEventConfig) + err := json.Unmarshal([]byte(dependencies.Config), &logEventConfig) if err != nil { return fmt.Errorf("error decoding log_event_trigger config: %w", err) } relayID := types.NewRelayID(logEventConfig.Network, logEventConfig.ChainID) - relayer, err := relayerSet.Get(ctx, relayID) + relayer, err := dependencies.RelayerSet.Get(ctx, relayID) if err != nil { return fmt.Errorf("error fetching relayer for chainID %s from relayerSet: %w", logEventConfig.ChainID, err) } @@ -122,8 +113,8 @@ func (cs *LogEventTriggerGRPCService) Initialise( } cs.triggerService = triggerService - if err := capabilityRegistry.Add(ctx, cs.triggerService); err != nil { - return fmt.Errorf("error when adding cron trigger to the registry: %w", err) + if err := dependencies.CapabilityRegistry.Add(ctx, cs.triggerService); err != nil { + return fmt.Errorf("error when adding log event trigger to the registry: %w", err) } return nil diff --git a/system-tests/lib/go.mod b/system-tests/lib/go.mod index dd9da0b9aa7..28dcb07d2f2 100644 --- a/system-tests/lib/go.mod +++ b/system-tests/lib/go.mod @@ -33,7 +33,7 @@ require ( github.com/rs/zerolog v1.33.0 github.com/scylladb/go-reflectx v1.0.1 github.com/smartcontractkit/chain-selectors v1.0.72 - github.com/smartcontractkit/chainlink-common v0.9.6-0.20251007140624-a242e4bbd3dc + github.com/smartcontractkit/chainlink-common v0.9.6-0.20251007200533-32ee550b9b37 github.com/smartcontractkit/chainlink-deployments-framework v0.54.0 github.com/smartcontractkit/chainlink-evm v0.3.4-0.20251007172225-ba2f4b5ef962 github.com/smartcontractkit/chainlink-evm/gethwrappers v0.0.0-20251003185510-17234095940f diff --git a/system-tests/lib/go.sum b/system-tests/lib/go.sum index ae2162fa491..5c335f171fc 100644 --- a/system-tests/lib/go.sum +++ b/system-tests/lib/go.sum @@ -1577,8 +1577,8 @@ github.com/smartcontractkit/chainlink-ccip/chains/solana v0.0.0-20250912190424-f github.com/smartcontractkit/chainlink-ccip/chains/solana v0.0.0-20250912190424-fd2e35d7deb5/go.mod h1:Ve1xD71bl193YIZQEoJMmBqLGQJdNs29bwbuObwvbhQ= github.com/smartcontractkit/chainlink-ccip/chains/solana/gobindings v0.0.0-20250912190424-fd2e35d7deb5 h1:Z4t2ZY+ZyGWxtcXvPr11y4o3CGqhg3frJB5jXkCSvWA= github.com/smartcontractkit/chainlink-ccip/chains/solana/gobindings v0.0.0-20250912190424-fd2e35d7deb5/go.mod h1:xtZNi6pOKdC3sLvokDvXOhgHzT+cyBqH/gWwvxTxqrg= -github.com/smartcontractkit/chainlink-common v0.9.6-0.20251007140624-a242e4bbd3dc h1:6mfaXVqIxIp+yl41VLQZmEBhvIkXF+kRqnLI8tQLdmE= -github.com/smartcontractkit/chainlink-common v0.9.6-0.20251007140624-a242e4bbd3dc/go.mod h1:37kbNkl7i8GIVDX7ScdzxQCMGFYkaL6cX+P1wRG4D4U= +github.com/smartcontractkit/chainlink-common v0.9.6-0.20251007200533-32ee550b9b37 h1:20has9qym6hsGIXY/LnfiulB1ABv9wpsZwkpuZoevPk= +github.com/smartcontractkit/chainlink-common v0.9.6-0.20251007200533-32ee550b9b37/go.mod h1:37kbNkl7i8GIVDX7ScdzxQCMGFYkaL6cX+P1wRG4D4U= github.com/smartcontractkit/chainlink-common/pkg/chipingress v0.0.4 h1:hvqATtrZ0iMRTI80cpBot/3JFbjz2j+2tvpfooVhRHw= github.com/smartcontractkit/chainlink-common/pkg/chipingress v0.0.4/go.mod h1:eKGyfTKzr0/PeR7qKN4l2FcW9p+HzyKUwAfGhm/5YZc= github.com/smartcontractkit/chainlink-common/pkg/monitoring v0.0.0-20250415235644-8703639403c7 h1:9wh1G+WbXwPVqf0cfSRSgwIcaXTQgvYezylEAfwmrbw= diff --git a/system-tests/tests/go.mod b/system-tests/tests/go.mod index fdfe8a74c89..ae452fc211e 100644 --- a/system-tests/tests/go.mod +++ b/system-tests/tests/go.mod @@ -44,7 +44,7 @@ require ( github.com/rs/zerolog v1.33.0 github.com/shopspring/decimal v1.4.0 github.com/smartcontractkit/chain-selectors v1.0.72 - github.com/smartcontractkit/chainlink-common v0.9.6-0.20251007140624-a242e4bbd3dc + github.com/smartcontractkit/chainlink-common v0.9.6-0.20251007200533-32ee550b9b37 github.com/smartcontractkit/chainlink-data-streams v0.1.5 github.com/smartcontractkit/chainlink-deployments-framework v0.54.0 github.com/smartcontractkit/chainlink-evm/gethwrappers v0.0.0-20251003185510-17234095940f diff --git a/system-tests/tests/go.sum b/system-tests/tests/go.sum index a3eeeef92f6..4b6e2a3cd0a 100644 --- a/system-tests/tests/go.sum +++ b/system-tests/tests/go.sum @@ -1780,8 +1780,8 @@ github.com/smartcontractkit/chainlink-ccip/chains/solana v0.0.0-20250912190424-f github.com/smartcontractkit/chainlink-ccip/chains/solana v0.0.0-20250912190424-fd2e35d7deb5/go.mod h1:Ve1xD71bl193YIZQEoJMmBqLGQJdNs29bwbuObwvbhQ= github.com/smartcontractkit/chainlink-ccip/chains/solana/gobindings v0.0.0-20250912190424-fd2e35d7deb5 h1:Z4t2ZY+ZyGWxtcXvPr11y4o3CGqhg3frJB5jXkCSvWA= github.com/smartcontractkit/chainlink-ccip/chains/solana/gobindings v0.0.0-20250912190424-fd2e35d7deb5/go.mod h1:xtZNi6pOKdC3sLvokDvXOhgHzT+cyBqH/gWwvxTxqrg= -github.com/smartcontractkit/chainlink-common v0.9.6-0.20251007140624-a242e4bbd3dc h1:6mfaXVqIxIp+yl41VLQZmEBhvIkXF+kRqnLI8tQLdmE= -github.com/smartcontractkit/chainlink-common v0.9.6-0.20251007140624-a242e4bbd3dc/go.mod h1:37kbNkl7i8GIVDX7ScdzxQCMGFYkaL6cX+P1wRG4D4U= +github.com/smartcontractkit/chainlink-common v0.9.6-0.20251007200533-32ee550b9b37 h1:20has9qym6hsGIXY/LnfiulB1ABv9wpsZwkpuZoevPk= +github.com/smartcontractkit/chainlink-common v0.9.6-0.20251007200533-32ee550b9b37/go.mod h1:37kbNkl7i8GIVDX7ScdzxQCMGFYkaL6cX+P1wRG4D4U= github.com/smartcontractkit/chainlink-common/pkg/chipingress v0.0.4 h1:hvqATtrZ0iMRTI80cpBot/3JFbjz2j+2tvpfooVhRHw= github.com/smartcontractkit/chainlink-common/pkg/chipingress v0.0.4/go.mod h1:eKGyfTKzr0/PeR7qKN4l2FcW9p+HzyKUwAfGhm/5YZc= github.com/smartcontractkit/chainlink-common/pkg/monitoring v0.0.0-20250415235644-8703639403c7 h1:9wh1G+WbXwPVqf0cfSRSgwIcaXTQgvYezylEAfwmrbw=