Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
chray-zhang committed Jan 2, 2025
1 parent 5bad425 commit a7d1ba0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
3 changes: 2 additions & 1 deletion integration-tests/common/test_common.go
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +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 @@ -174,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
3 changes: 3 additions & 0 deletions integration-tests/soak/ocr2_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,9 @@ func TestOCRBasicSoak(t *testing.T) {
require.NoError(t, err, "Setting up gauntlet should not fail")
err = state.Clients.GauntletClient.SetupNetwork(state.Common.RPCDetails.RPCL2External, state.Account.Account, state.Account.PrivateKey)
require.NoError(t, err, "Setting up gauntlet network should not fail")
fmt.Println("External URL" + state.Common.RPCDetails.RPCL2External)
fmt.Println("Internal URL" + state.Common.RPCDetails.RPCL2Internal)

err = state.DeployGauntletPP(0, 100000000000, decimals, "auto", 1, 1)
require.NoError(t, err, "Deploying contracts should not fail")

Expand Down
4 changes: 1 addition & 3 deletions ops/test_helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ type OffchainConfig struct {
MaxDurationShouldAcceptFinalizedReport string `json:"maxDurationShouldAcceptFinalizedReport"`
MaxDurationShouldTransmitAcceptedReport string `json:"maxDurationShouldTransmitAcceptedReport"`
ConfigPublicKeys []string `json:"configPublicKeys"`
ConfigEncodingSecret string `json:"configEncodingSecret"`
SignerSecret string `json:"signerSecret"`
}

Expand Down Expand Up @@ -77,8 +76,7 @@ var TestOCR2Config = OCR2Config{
MaxDurationShouldTransmitAcceptedReport: "10000000000ns",
// ConfigPublicKeys: cfgKeys, // user defined
// https://github.com/smartcontractkit/gauntlet-plus-plus/blob/5faf35e1d372e3ae5388c295554aa4f87bc0ece0/packages-starknet/operations-data-feeds/tests/fixtures/offchain-config.fixture.ts#L23
ConfigEncodingSecret: "abandon ability able about above absent absorb abstract absurd abuse access accident",
SignerSecret: "glue fortune female wheat tooth network major price they merry cabin position",
SignerSecret: "awe accuse polygon tonic depart acuity onyx inform bound gilbert expire",
},
OffchainConfigVersion: 2,
Secret: "awe accuse polygon tonic depart acuity onyx inform bound gilbert expire",
Expand Down

0 comments on commit a7d1ba0

Please sign in to comment.