Skip to content

Commit

Permalink
lint formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
chray-zhang committed Jan 3, 2025
1 parent d901269 commit 67fde79
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 26 deletions.
2 changes: 1 addition & 1 deletion integration-tests/common/gauntlet_plus_plus_common.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
4 changes: 2 additions & 2 deletions integration-tests/common/test_common.go
Original file line number Diff line number Diff line change
Expand Up @@ -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]
}
Expand Down Expand Up @@ -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().
Expand Down
12 changes: 0 additions & 12 deletions ops/gauntlet/gauntlet_starknet.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
22 changes: 11 additions & 11 deletions ops/test_helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 67fde79

Please sign in to comment.