Skip to content

Commit 392db6d

Browse files
adding org resolver service to standard cap dependencies in Initialise (#1597)
In #1590, we updated the Initialise iface to accept a struct that can be evolved without making backwards incompatible changes. Now, in order to source orgID for workflows in triggers, we are adding the org resolver service. The org resolver service is currently used in the engine and in the registry syncer to pull org ID at that instant for a given workflow owner.
1 parent 3cbebb2 commit 392db6d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pkg/types/core/standard_capabilities_dependencies.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
package core
22

3+
import "github.com/smartcontractkit/chainlink-common/pkg/services/orgresolver"
4+
35
// StandardCapabilitiesDependencies contains all the dependencies injected for capability initialization.
46
// We use a struct to evolve the interface without requiring updates to all implementors.
7+
// i.e. Initialise(ctx context.Context, dependencies core.StandardCapabilitiesDependencies) error
58
type StandardCapabilitiesDependencies struct {
69
Config string
710
TelemetryService TelemetryService
@@ -13,4 +16,5 @@ type StandardCapabilitiesDependencies struct {
1316
OracleFactory OracleFactory
1417
GatewayConnector GatewayConnector
1518
P2PKeystore Keystore
19+
OrgResolver orgresolver.OrgResolver
1620
}

0 commit comments

Comments
 (0)