Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
HenryNguyen5 committed Oct 25, 2024
1 parent a01f3bc commit 9864099
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 17 deletions.
2 changes: 1 addition & 1 deletion core/scripts/keystone/src/01_deploy_contracts_cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ func (g *deployContracts) Run(args []string) {
os.Setenv("ETH_CHAIN_ID", fmt.Sprintf("%d", *chainID))
os.Setenv("ACCOUNT_KEY", *accountKey)
os.Setenv("INSECURE_SKIP_VERIFY", "true")
deploy( *nodeSetsPath, *ocrConfigFile, *skipFunding, *dryRun, *onlySetConfig, *artefactsDir, *nodeSetSize)
deploy(*nodeSetsPath, *ocrConfigFile, *skipFunding, *dryRun, *onlySetConfig, *artefactsDir, *nodeSetSize)
}

// deploy does the following:
Expand Down
2 changes: 1 addition & 1 deletion core/scripts/keystone/src/02_deploy_jobspecs_cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ func (g *deployJobSpecs) Run(args []string) {
deployedContracts, err := LoadDeployedContracts(*artefactsDir)
PanicErr(err)

jobspecs := genSpecs(
jobspecs := generateOCR3JobSpecs(
*nodeSetsPath,
*templatesLocation,
*chainID, *p2pPort, deployedContracts.OCRContract.Hex(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ func TestCreateMercuryV3Job(t *testing.T) {

func TestCreateMercuryBootstrapJob(t *testing.T) {
jobConfigData := MercuryV3BootstrapJobSpecData{
FeedName: feedName,
FeedName: feedName,
FeedID: feedID,
ChainID: chainID,
VerifierAddress: verifierAddress,
Expand All @@ -68,4 +68,3 @@ func TestCreateKeystoneWorkflowJob(t *testing.T) {

snaps.MatchSnapshot(t, output)
}

2 changes: 1 addition & 1 deletion core/scripts/keystone/src/88_gen_jobspecs.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ type donHostSpec struct {
oracles []hostSpec
}

func genSpecs(
func generateOCR3JobSpecs(
nodeSetsPath string,
templatesDir string,
chainID int64,
Expand Down
2 changes: 1 addition & 1 deletion core/scripts/keystone/src/88_gen_jobspecs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,6 @@ func TestGenSpecs(t *testing.T) {
p2pPort := int64(6690)
contractAddress := "0xB29934624cAe3765E33115A9530a13f5aEC7fa8A"

specs := genSpecs(nodeSetsPath, "../templates", chainID, p2pPort, contractAddress, 4)
specs := generateOCR3JobSpecs(nodeSetsPath, "../templates", chainID, p2pPort, contractAddress, 4)
snaps.MatchSnapshot(t, specs.ToString())
}
10 changes: 5 additions & 5 deletions core/scripts/keystone/src/99_files.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ import (
)

const (
defaultArtefactsDir = "artefacts"
defaultNodeSetsPath = ".cache/node_sets.json"
deployedContractsJSON = "deployed_contracts.json"
bootstrapSpecTemplate = "bootstrap.toml"
oracleSpecTemplate = "oracle.toml"
defaultArtefactsDir = "artefacts"
defaultNodeSetsPath = ".cache/node_sets.json"
deployedContractsJSON = "deployed_contracts.json"
bootstrapSpecTemplate = "bootstrap.toml"
oracleSpecTemplate = "oracle.toml"
)

func writeLines(lines []string, path string) error {
Expand Down
12 changes: 6 additions & 6 deletions core/scripts/keystone/src/99_k8s_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,9 @@ func MustNewK8sClient() *K8sClient {

type DeploymentWithConfigMap struct {
apps.Deployment
ServiceName string
ConfigMap v1.ConfigMap
Host string
ServiceName string
ConfigMap v1.ConfigMap
Host string
}

func (m *K8sClient) GetDeploymentsWithConfigMap() ([]DeploymentWithConfigMap, error) {
Expand Down Expand Up @@ -117,10 +117,10 @@ func (m *K8sClient) GetDeploymentsWithConfigMap() ([]DeploymentWithConfigMap, er
}

deploymentWithConfigMap := DeploymentWithConfigMap{
Host: host,
Host: host,
ServiceName: serviceName,
Deployment: deployment,
ConfigMap: *cm,
Deployment: deployment,
ConfigMap: *cm,
}
deploymentsWithConfigMaps = append(deploymentsWithConfigMaps, deploymentWithConfigMap)
}
Expand Down

0 comments on commit 9864099

Please sign in to comment.