From 67fde794ae10be7a0a437a4d946b3d0ea4e669f7 Mon Sep 17 00:00:00 2001 From: chray-zhang Date: Fri, 3 Jan 2025 17:21:34 -0500 Subject: [PATCH] lint formatting --- .../common/gauntlet_plus_plus_common.go | 2 +- integration-tests/common/test_common.go | 4 ++-- ops/gauntlet/gauntlet_starknet.go | 12 ---------- ops/test_helpers.go | 22 +++++++++---------- 4 files changed, 14 insertions(+), 26 deletions(-) diff --git a/integration-tests/common/gauntlet_plus_plus_common.go b/integration-tests/common/gauntlet_plus_plus_common.go index 902d6c67..39ebf87a 100644 --- a/integration-tests/common/gauntlet_plus_plus_common.go +++ b/integration-tests/common/gauntlet_plus_plus_common.go @@ -4,8 +4,8 @@ import ( "encoding/json" "errors" "fmt" - "os" "github.com/smartcontractkit/chainlink-starknet/integration-tests/utils" + "os" ) func (m *OCRv2TestState) fundNodesWithGPP() ([]string, error) { diff --git a/integration-tests/common/test_common.go b/integration-tests/common/test_common.go index a401fd02..58cd2500 100644 --- a/integration-tests/common/test_common.go +++ b/integration-tests/common/test_common.go @@ -147,7 +147,7 @@ func (m *OCRv2TestState) DeployCluster() { // Checking whether we are running in a remote runner since the forwarding is not working there and we need the public IP // In that case it is http://127.0.0.1:0 so we do a check and get the public IP - + if m.Common.RPCDetails.RPCL2External == "http://127.0.0.1:0" { m.Common.RPCDetails.RPCL2External = m.Common.Env.URLs["starknet-dev"][1] } @@ -175,7 +175,7 @@ func (m *OCRv2TestState) DeployCluster() { m.Common.RPCDetails.RPCL2External = *m.Common.TestConfig.Common.L2RPCUrl m.Common.RPCDetails.RPCL2Internal = *m.Common.TestConfig.Common.L2RPCUrl } - + // Creating docker containers b, err := test_env_integrations.NewCLTestEnvBuilder(). WithNonEVM(). diff --git a/ops/gauntlet/gauntlet_starknet.go b/ops/gauntlet/gauntlet_starknet.go index 043c7a81..dfb27cb9 100644 --- a/ops/gauntlet/gauntlet_starknet.go +++ b/ops/gauntlet/gauntlet_starknet.go @@ -105,15 +105,3 @@ func (sg *StarknetGauntlet) MintLinkToken(token, to, amount string) (string, err } return sg.gr.Responses[0].Contract, nil } - -func (sg *StarknetGauntlet) SetConfigDetails(cfg string, ocrAddress string) (string, error) { - _, err := sg.G.ExecCommand([]string{"ocr2:set_config", "--input=" + cfg, ocrAddress}, *sg.options) - if err != nil { - return "", err - } - sg.gr, err = sg.FetchGauntletJSONOutput() - if err != nil { - return "", err - } - return sg.gr.Responses[0].Contract, nil -} diff --git a/ops/test_helpers.go b/ops/test_helpers.go index 0dc935bf..ab708bb2 100644 --- a/ops/test_helpers.go +++ b/ops/test_helpers.go @@ -12,23 +12,23 @@ type OCR2Config struct { } type OffchainConfig struct { - DeltaProgressNanoseconds string `json:"deltaProgress"` - DeltaResendNanoseconds string `json:"deltaResend"` - DeltaRoundNanoseconds string `json:"deltaRound"` - DeltaGraceNanoseconds string `json:"deltaGrace"` - DeltaStageNanoseconds string `json:"deltaStage"` + DeltaProgressNanoseconds string `json:"deltaProgress"` + DeltaResendNanoseconds string `json:"deltaResend"` + DeltaRoundNanoseconds string `json:"deltaRound"` + DeltaGraceNanoseconds string `json:"deltaGrace"` + DeltaStageNanoseconds string `json:"deltaStage"` RMax int `json:"rMax"` S []int `json:"s"` OffchainPublicKeys []string `json:"offchainPublicKeys"` PeerIDs []string `json:"peerIds"` ReportingPluginConfig *ReportingPluginConfig `json:"reportingPluginConfig"` - MaxDurationQueryNanoseconds string `json:"maxDurationQuery"` - MaxDurationObservationNanoseconds string `json:"maxDurationObservation"` - MaxDurationReportNanoseconds string `json:"maxDurationReport"` - MaxDurationShouldAcceptFinalizedReportNanoseconds string `json:"maxDurationShouldAcceptFinalizedReport"` - MaxDurationShouldTransmitAcceptedReportNanoseconds string `json:"maxDurationShouldTransmitAcceptedReport"` + MaxDurationQueryNanoseconds string `json:"maxDurationQuery"` + MaxDurationObservationNanoseconds string `json:"maxDurationObservation"` + MaxDurationReportNanoseconds string `json:"maxDurationReport"` + MaxDurationShouldAcceptFinalizedReportNanoseconds string `json:"maxDurationShouldAcceptFinalizedReport"` + MaxDurationShouldTransmitAcceptedReportNanoseconds string `json:"maxDurationShouldTransmitAcceptedReport"` ConfigPublicKeys []string `json:"configPublicKeys"` - ConfigEncodingSecret string `json:"configEncodingSecret"` + ConfigEncodingSecret string `json:"configEncodingSecret"` } type ReportingPluginConfig struct {