Skip to content

feat: add --duplicate-nonce-rate flag to loadtest

66199e2
Select commit
Loading
Failed to load commit list.
Draft

feat: adding heimdall commands to polycli #904

feat: add --duplicate-nonce-rate flag to loadtest
66199e2
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis failed May 19, 2026 in 51s

Quality Gate failed

Failed conditions
1 Security Hotspot
13.8% Duplication on New Code (required ≤ 3%)
E Security Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

Annotations

Check failure on line 31 in cmd/heimdall/tx/msgs/checkpoint.go

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this method to reduce its Cognitive Complexity from 20 to the 15 allowed.

See more on https://sonarcloud.io/project/issues?id=0xPolygon_polygon-cli&issues=AZ2sun-AMEXeMQGE-yIf&open=AZ2sun-AMEXeMQGE-yIf&pullRequest=904

Check failure on line 29 in cmd/heimdall/checkpoint/next.go

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this method to reduce its Cognitive Complexity from 20 to the 15 allowed.

See more on https://sonarcloud.io/project/issues?id=0xPolygon_polygon-cli&issues=AZ2suoEGMEXeMQGE-yJF&open=AZ2suoEGMEXeMQGE-yJF&pullRequest=904

Check warning on line 102 in cmd/heimdall/tx/integration_test.go

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Extract this nested anonymous struct into a named type for better readability and reusability.

See more on https://sonarcloud.io/project/issues?id=0xPolygon_polygon-cli&issues=AZ2sun_YMEXeMQGE-yIp&open=AZ2sun_YMEXeMQGE-yIp&pullRequest=904

Check failure on line 108 in cmd/heimdall/chain/findblock.go

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this method to reduce its Cognitive Complexity from 19 to the 15 allowed.

See more on https://sonarcloud.io/project/issues?id=0xPolygon_polygon-cli&issues=AZ2sun5gMEXeMQGE-yH_&open=AZ2sun5gMEXeMQGE-yH_&pullRequest=904

Check failure on line 39 in cmd/heimdall/milestone/get.go

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this method to reduce its Cognitive Complexity from 20 to the 15 allowed.

See more on https://sonarcloud.io/project/issues?id=0xPolygon_polygon-cli&issues=AZ2suoCvMEXeMQGE-yI9&open=AZ2suoCvMEXeMQGE-yI9&pullRequest=904

Check failure on line 58 in cmd/heimdall/validator/set.go

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this method to reduce its Cognitive Complexity from 18 to the 15 allowed.

See more on https://sonarcloud.io/project/issues?id=0xPolygon_polygon-cli&issues=AZ2suoGIMEXeMQGE-yJT&open=AZ2suoGIMEXeMQGE-yJT&pullRequest=904

Check failure on line 23 in cmd/heimdall/chainparams/addresses.go

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this method to reduce its Cognitive Complexity from 23 to the 15 allowed.

See more on https://sonarcloud.io/project/issues?id=0xPolygon_polygon-cli&issues=AZ2suoDmMEXeMQGE-yJC&open=AZ2suoDmMEXeMQGE-yJC&pullRequest=904

Check failure on line 119 in internal/heimdall/render/render.go

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this method to reduce its Cognitive Complexity from 26 to the 15 allowed.

See more on https://sonarcloud.io/project/issues?id=0xPolygon_polygon-cli&issues=AZ2suoHJMEXeMQGE-yJZ&open=AZ2suoHJMEXeMQGE-yJZ&pullRequest=904

Check warning on line 27 in cmd/heimdall/ops/commit.go

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Extract this nested anonymous struct into a named type for better readability and reusability.

See more on https://sonarcloud.io/project/issues?id=0xPolygon_polygon-cli&issues=AZ2sun6nMEXeMQGE-yIJ&open=AZ2sun6nMEXeMQGE-yIJ&pullRequest=904

Check failure on line 22 in cmd/heimdall/tx/msgs/span_propose.go

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this method to reduce its Cognitive Complexity from 23 to the 15 allowed.

See more on https://sonarcloud.io/project/issues?id=0xPolygon_polygon-cli&issues=AZ2sun93MEXeMQGE-yIe&open=AZ2sun93MEXeMQGE-yIe&pullRequest=904

Check warning on line 80 in cmd/heimdall/tx/integration_test.go

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Extract this nested anonymous struct into a named type for better readability and reusability.

See more on https://sonarcloud.io/project/issues?id=0xPolygon_polygon-cli&issues=AZ2sun_YMEXeMQGE-yIo&open=AZ2sun_YMEXeMQGE-yIo&pullRequest=904

Check failure on line 23 in cmd/heimdall/validator/proposers.go

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this method to reduce its Cognitive Complexity from 22 to the 15 allowed.

See more on https://sonarcloud.io/project/issues?id=0xPolygon_polygon-cli&issues=AZ2suoGyMEXeMQGE-yJX&open=AZ2suoGyMEXeMQGE-yJX&pullRequest=904

Check failure on line 20 in cmd/heimdall/validator/total_power.go

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this method to reduce its Cognitive Complexity from 16 to the 15 allowed.

See more on https://sonarcloud.io/project/issues?id=0xPolygon_polygon-cli&issues=AZ2suoGcMEXeMQGE-yJV&open=AZ2suoGcMEXeMQGE-yJV&pullRequest=904

Check failure on line 16 in cmd/heimdall/chain/block.go

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this method to reduce its Cognitive Complexity from 19 to the 15 allowed.

See more on https://sonarcloud.io/project/issues?id=0xPolygon_polygon-cli&issues=AZ2sun5WMEXeMQGE-yH9&open=AZ2sun5WMEXeMQGE-yH9&pullRequest=904

Check failure on line 93 in scripts/capture-heimdall-fixtures.sh

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use '[[' instead of '[' for conditional tests. The '[[' construct is safer and more feature-rich.

See more on https://sonarcloud.io/project/issues?id=0xPolygon_polygon-cli&issues=AZ2suoJrMEXeMQGE-yJu&open=AZ2suoJrMEXeMQGE-yJu&pullRequest=904

Check warning on line 25 in cmd/heimdall/topup/topup.go

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Add a comment explaining why this blank import is needed.

See more on https://sonarcloud.io/project/issues?id=0xPolygon_polygon-cli&issues=AZ2sun7EMEXeMQGE-yIM&open=AZ2sun7EMEXeMQGE-yIM&pullRequest=904

Check warning on line 12 in cmd/heimdall/checkpoint/checkpoint.go

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Add a comment explaining why this blank import is needed.

See more on https://sonarcloud.io/project/issues?id=0xPolygon_polygon-cli&issues=AZ2suoEaMEXeMQGE-yJI&open=AZ2suoEaMEXeMQGE-yJI&pullRequest=904

Check failure on line 185 in loadtest/config/config.go

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this method to reduce its Cognitive Complexity from 16 to the 15 allowed.

See more on https://sonarcloud.io/project/issues?id=0xPolygon_polygon-cli&issues=AZ5A6cf4_5KGQq1TdAr-&open=AZ5A6cf4_5KGQq1TdAr-&pullRequest=904

Check failure on line 37 in internal/heimdall/wallet/dir.go

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Define a constant instead of duplicating this literal "heimdall keystore dir" 4 times.

See more on https://sonarcloud.io/project/issues?id=0xPolygon_polygon-cli&issues=AZ2suoIUMEXeMQGE-yJf&open=AZ2suoIUMEXeMQGE-yJf&pullRequest=904

Check warning on line 12 in cmd/heimdall/util/util.go

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Add a comment explaining why this blank import is needed.

See more on https://sonarcloud.io/project/issues?id=0xPolygon_polygon-cli&issues=AZ2suoFRMEXeMQGE-yJO&open=AZ2suoFRMEXeMQGE-yJO&pullRequest=904

Check failure on line 3 in internal/heimdall/client/testdata/rest/bor_spans_seed.json

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

"auth" detected here, make sure this is not a hard-coded secret.

See more on https://sonarcloud.io/project/issues?id=0xPolygon_polygon-cli&issues=AZ2suoHZMEXeMQGE-yJb&open=AZ2suoHZMEXeMQGE-yJb&pullRequest=904

Check warning on line 20 in cmd/heimdall/wallet/wallet.go

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Add a comment explaining why this blank import is needed.

See more on https://sonarcloud.io/project/issues?id=0xPolygon_polygon-cli&issues=AZ2sun80MEXeMQGE-yIX&open=AZ2sun80MEXeMQGE-yIX&pullRequest=904

Check failure on line 57 in scripts/capture-heimdall-fixtures.sh

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use '[[' instead of '[' for conditional tests. The '[[' construct is safer and more feature-rich.

See more on https://sonarcloud.io/project/issues?id=0xPolygon_polygon-cli&issues=AZ2suoJrMEXeMQGE-yJt&open=AZ2suoJrMEXeMQGE-yJt&pullRequest=904

Check failure on line 35 in cmd/heimdall/ops/validators_cometbft.go

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this method to reduce its Cognitive Complexity from 36 to the 15 allowed.

See more on https://sonarcloud.io/project/issues?id=0xPolygon_polygon-cli&issues=AZ2sun5tMEXeMQGE-yIA&open=AZ2sun5tMEXeMQGE-yIA&pullRequest=904

Check failure on line 21 in cmd/heimdall/wallet/address.go

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this method to reduce its Cognitive Complexity from 17 to the 15 allowed.

See more on https://sonarcloud.io/project/issues?id=0xPolygon_polygon-cli&issues=AZ2sun8qMEXeMQGE-yIW&open=AZ2sun8qMEXeMQGE-yIW&pullRequest=904