Skip to content

Commit

Permalink
Move more files
Browse files Browse the repository at this point in the history
  • Loading branch information
connorwstein committed Nov 20, 2024
1 parent e6653a3 commit 95fd35a
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 10 deletions.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion deployment/ccip/changeset/initial_deploy.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ func InitialDeploy(env deployment.Environment, c ccipdeployment.DeployCCIPContra
env.Logger.Errorw("Failed to deploy CCIP contracts", "err", err, "newAddresses", newAddresses)
return deployment.ChangesetOutput{AddressBook: newAddresses}, deployment.MaybeDataErr(err)
}
js, err := ccipdeployment.NewCCIPJobSpecs(env.NodeIDs, env.Offchain)
js, err := NewCCIPJobSpecs(env.NodeIDs, env.Offchain)
if err != nil {
return deployment.ChangesetOutput{AddressBook: newAddresses}, err
}
Expand Down
11 changes: 5 additions & 6 deletions deployment/ccip/jobs.go → deployment/ccip/changeset/jobs.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
package ccipdeployment
package changeset

import (
"github.com/smartcontractkit/chainlink/deployment"
"github.com/smartcontractkit/chainlink/deployment/ccip/changeset"
"github.com/smartcontractkit/chainlink/v2/core/capabilities/ccip/validate"
"github.com/smartcontractkit/chainlink/v2/core/services/relay"
)
Expand All @@ -27,8 +26,8 @@ func NewCCIPJobSpecs(nodeIds []string, oc deployment.OffchainClient) (map[string
if !node.IsBootstrap {
spec, err = validate.NewCCIPSpecToml(validate.SpecArgs{
P2PV2Bootstrappers: nodes.BootstrapLocators(),
CapabilityVersion: changeset.CapabilityVersion,
CapabilityLabelledName: changeset.CapabilityLabelledName,
CapabilityVersion: CapabilityVersion,
CapabilityLabelledName: CapabilityLabelledName,
OCRKeyBundleIDs: map[string]string{
// TODO: Validate that that all EVM chains are using the same keybundle.
relay.NetworkEVM: node.FirstOCRKeybundle().KeyBundleID,
Expand All @@ -40,8 +39,8 @@ func NewCCIPJobSpecs(nodeIds []string, oc deployment.OffchainClient) (map[string
} else {
spec, err = validate.NewCCIPSpecToml(validate.SpecArgs{
P2PV2Bootstrappers: []string{}, // Intentionally empty for bootstraps.
CapabilityVersion: changeset.CapabilityVersion,
CapabilityLabelledName: changeset.CapabilityLabelledName,
CapabilityVersion: CapabilityVersion,
CapabilityLabelledName: CapabilityLabelledName,
OCRKeyBundleIDs: map[string]string{},
// TODO: validate that all EVM chains are using the same keybundle
P2PKeyID: node.PeerID.String(),
Expand Down
3 changes: 1 addition & 2 deletions deployment/ccip/changeset/jobspec.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,10 @@ import (
"github.com/smartcontractkit/ccip-owner-contracts/pkg/proposal/timelock"

"github.com/smartcontractkit/chainlink/deployment"
ccipdeployment "github.com/smartcontractkit/chainlink/deployment/ccip"
)

func Jobspec(env deployment.Environment, _ any) (deployment.ChangesetOutput, error) {
js, err := ccipdeployment.NewCCIPJobSpecs(env.NodeIDs, env.Offchain)
js, err := NewCCIPJobSpecs(env.NodeIDs, env.Offchain)
if err != nil {
return deployment.ChangesetOutput{}, errors.Wrapf(err, "failed to create job specs")
}
Expand Down
2 changes: 1 addition & 1 deletion deployment/ccip/changeset/test_helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ type DeployedEnv struct {

func (e *DeployedEnv) SetupJobs(t *testing.T) {
ctx := testcontext.Get(t)
jbs, err := ccipdeployment.NewCCIPJobSpecs(e.Env.NodeIDs, e.Env.Offchain)
jbs, err := NewCCIPJobSpecs(e.Env.NodeIDs, e.Env.Offchain)
require.NoError(t, err)
for nodeID, jobs := range jbs {
for _, job := range jobs {
Expand Down

0 comments on commit 95fd35a

Please sign in to comment.