Skip to content

Commit eac264c

Browse files
Merge branch 'main' into 3640-configure-dependabotyml
2 parents 405ee29 + 0e189dc commit eac264c

File tree

190 files changed

+17121
-7204
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

190 files changed

+17121
-7204
lines changed

.env.http.example

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,7 @@ OPERATOR_KEY_MAIN= # Operator private key used to sign transaction
3232
# ========== ETH CALL CONFIGURATION ==========
3333
# CONTRACT_CALL_GAS_LIMIT=50000000 # Maximum gas limit applied to eth_call endpoint
3434
# ETH_CALL_CACHE_TTL=200 # Maximum time in ms to cache an eth_call response
35-
# ETH_CALL_DEFAULT_TO_CONSENSUS_NODE=false # If true, eth_call first queries consensus node instead of mirror
3635
# ETH_CALL_ACCEPTED_ERRORS=[] # List of acceptable error codes for eth_call requests for retry
37-
# ETH_CALL_CONSENSUS_SELECTORS=[] # Special transaction selectors always routed to Consensus node
3836

3937
# ========== FEE & GAS CONFIGURATION ==========
4038
# GAS_PRICE_TINY_BAR_BUFFER=10000000000 # Additional buffer for gas price fluctuations
@@ -61,11 +59,11 @@ OPERATOR_KEY_MAIN= # Operator private key used to sign transaction
6159
# LIMIT_DURATION=60000 # Duration in ms for rate limits
6260

6361
# ========== HBAR RATE LIMITING ==========
64-
# HBAR_RATE_LIMIT_TINYBAR=800000000000 # Total HBAR budget (8000 HBARs)
62+
# HBAR_RATE_LIMIT_TINYBAR=25000000000 # Total HBAR budget (250 HBARs)
6563
# HBAR_RATE_LIMIT_DURATION=86400000 # HBAR budget limit duration (1 day)
66-
# HBAR_RATE_LIMIT_BASIC=1120000000 # Individual limit for BASIC tier (11.2 HBARs)
67-
# HBAR_RATE_LIMIT_EXTENDED=3200000000 # Individual limit for EXTENDED tier (32 HBARs)
68-
# HBAR_RATE_LIMIT_PRIVILEGED=8000000000 # Individual limit for PRIVILEGED tier (80 HBARs)
64+
# HBAR_RATE_LIMIT_BASIC=30000000 # Individual limit for BASIC tier (3 HBARs)
65+
# HBAR_RATE_LIMIT_EXTENDED=100000000 # Individual limit for EXTENDED tier (1 HBAR)
66+
# HBAR_RATE_LIMIT_PRIVILEGED=270000000 # Individual limit for PRIVILEGED tier (2.7 HBARs)
6967
# HBAR_SPENDING_PLANS_CONFIG=spendingPlansConfig.json # Spending plans configuration
7068

7169
# ========== MIRROR NODE CONFIGURATION ==========

.env.ws.example

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ SUBSCRIPTIONS_ENABLED=true # Must be true for the WebSocket server to func
4646
# MIRROR_NODE_AGENT_CACHEABLE_DNS=true # Enable DNS caching for mirror node
4747

4848
# ========== ETH CALL CONFIGURATION ==========
49-
# ETH_CALL_DEFAULT_TO_CONSENSUS_NODE=false # If true, eth_call first queries consensus node instead of mirror
5049
# CONSENSUS_MAX_EXECUTION_TIME=15000 # Max time in ms before TIMEOUT error
5150
# SDK_REQUEST_TIMEOUT=10000 # Timeout for SDK execute() method
5251
# CONTRACT_QUERY_TIMEOUT_RETRIES=3 # Maximum retries for failed contract call queries

.github/workflows/acceptance-public.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ jobs:
2828
testfilter: release_light
2929
envfile: ${{ inputs.network }}Acceptance.env
3030
operator_id: ${{ inputs.operator_id }}
31-
maxAttempts: 1
3231
secrets:
3332
operator_key: ${{ inputs.operator_key }}
3433
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

.github/workflows/acceptance-workflow.yml

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,6 @@ on:
2626
relayTag:
2727
required: false
2828
type: string
29-
maxAttempts:
30-
required: false
31-
type: number
32-
default: 3
3329
secrets:
3430
operator_key:
3531
description: 'The ED25519, ECDSA, or DER encoded private key of the operator'
@@ -95,11 +91,7 @@ jobs:
9591
run: docker stop json-rpc-relay json-rpc-relay-ws
9692

9793
- name: Run acceptance tests
98-
uses: step-security/retry@2ab886c0de89f68f146c9b43f53e61abc59c46dc # v3.0.1
99-
with:
100-
max_attempts: ${{ inputs.maxAttempts }}
101-
timeout_minutes: 30
102-
command: |
94+
run: |
10395
if [[ -n "$OPERATOR_KEY" ]] && [[ "$OPERATOR_KEY" != "" ]]; then
10496
echo "Overriding OPERATOR_KEY_MAIN with the secret value"
10597
export OPERATOR_KEY_MAIN="$OPERATOR_KEY"

.github/workflows/dev-tool-workflow.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,4 @@ jobs:
6868
run: cd ${{ inputs.directory }}/ && npm ci
6969

7070
- name: Run the tests
71-
uses: step-security/retry@2ab886c0de89f68f146c9b43f53e61abc59c46dc # v3.0.1
72-
with:
73-
max_attempts: 10
74-
timeout_minutes: 10
75-
retry_wait_seconds: 45
76-
command: ${{ inputs.command }}
71+
run: ${{ inputs.command }}

.github/workflows/gh-pages-sync.yaml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ defaults:
1111
shell: bash
1212

1313
permissions:
14-
contents: write
14+
contents: read
1515

1616
jobs:
1717
sync:
@@ -32,6 +32,18 @@ jobs:
3232
fetch-depth: "0"
3333
token: ${{ secrets.GH_ACCESS_TOKEN_HG }}
3434

35+
- name: Import GPG Key
36+
id: gpg_importer
37+
uses: step-security/ghaction-import-gpg@a7c87df2279f2bf2e69ba8289dfbf35fe05a4e08 # v1.0.0
38+
with:
39+
git_commit_gpgsign: true
40+
git_committer_email: ${{ vars.GIT_USER_EMAIL }}
41+
git_committer_name: ${{ vars.GIT_USER_NAME }}
42+
git_tag_gpgsign: true
43+
git_user_signingkey: true
44+
gpg_private_key: ${{ secrets.GPG_KEY_CONTENTS }}
45+
passphrase: ${{ secrets.GPG_KEY_PASSPHRASE }}
46+
3547
- name: Add Remote
3648
run: git remote add HIERO https://github.com/hiero-ledger/hiero-json-rpc-relay.git
3749

Lines changed: 138 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,138 @@
1+
2+
name: OpenRPC JSON Updater
3+
4+
on:
5+
push:
6+
branches:
7+
- main
8+
paths:
9+
- 'docs/openrpc.json'
10+
workflow_dispatch:
11+
12+
jobs:
13+
clone-and-build-execution-apis:
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- name: Checkout execution-apis repo
18+
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
19+
with:
20+
ref: main
21+
repository: 'ethereum/execution-apis'
22+
path: 'execution-apis'
23+
24+
- name: Use Node.js TLS 20
25+
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
26+
with:
27+
node-version: 20
28+
29+
- name: Install dependencies
30+
run: npm install
31+
working-directory: ./execution-apis
32+
33+
- name: Build project
34+
run: npm run build
35+
working-directory: ./execution-apis
36+
37+
- name: Upload openrpc.json as an artifact
38+
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
39+
with:
40+
name: openrpc
41+
path: ./execution-apis/refs-openrpc.json
42+
43+
update-openrpc:
44+
runs-on: ubuntu-latest
45+
needs: clone-and-build-execution-apis
46+
steps:
47+
- name: Checkout repository
48+
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
49+
with:
50+
ref: 'main'
51+
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
52+
53+
- name: Download openrpc.json artifact
54+
uses: actions/download-artifact@v4
55+
with:
56+
name: openrpc
57+
path: ./downloaded-artifacts/
58+
59+
- name: Copy generated openrpc.json to scripts directory
60+
run: |
61+
mkdir -p scripts/openrpc-json-updater
62+
cp ./downloaded-artifacts/refs-openrpc.json scripts/openrpc-json-updater/original-openrpc.json
63+
64+
- name: Setup Node.js
65+
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
66+
with:
67+
node-version: '22'
68+
69+
- name: Install dependencies
70+
working-directory: scripts/openrpc-json-updater
71+
run: npm install
72+
73+
- name: Generate comparison report
74+
id: generate-report
75+
working-directory: scripts/openrpc-json-updater
76+
run: |
77+
REPORT_OUTPUT=$(node cli.js --original ./original-openrpc.json --modified ../../docs/openrpc.json)
78+
echo "REPORT_OUTPUT<<EOF" >> $GITHUB_ENV
79+
echo "$REPORT_OUTPUT" >> $GITHUB_ENV
80+
echo "EOF" >> $GITHUB_ENV
81+
82+
# This workflow automatically creates PRs when the OpenRPC JSON file differs from the upstream source.
83+
# PRs are only created when actual changes are detected (SKIP_PR=false), ensuring that
84+
# maintainers can review and approve schema updates before they're merged into the main branch.
85+
# This provides a safety mechanism for tracking OpenRPC specification changes over time.
86+
- name: Perform merge
87+
id: merge
88+
working-directory: scripts/openrpc-json-updater
89+
run: |
90+
MERGE_OUTPUT=$(node cli.js --merge --original ./original-openrpc.json --modified ../../docs/openrpc.json)
91+
MERGE_EXIT_CODE=$?
92+
echo "$MERGE_OUTPUT"
93+
94+
if [ $MERGE_EXIT_CODE -eq 0 ]; then
95+
if [[ "$MERGE_OUTPUT" =~ No\ differences\ found\ after\ merge ]]; then
96+
echo "No differences found. Skipping PR creation."
97+
echo "SKIP_PR=true" >> $GITHUB_ENV
98+
exit 0
99+
elif [[ "$MERGE_OUTPUT" == *"Merge completed"* ]]; then
100+
echo "Successfully updated openrpc.json"
101+
echo "SKIP_PR=false" >> $GITHUB_ENV
102+
else
103+
echo "Unexpected output. Output was: $MERGE_OUTPUT"
104+
exit 1
105+
fi
106+
else
107+
echo "Failed to update file. Output was: $MERGE_OUTPUT"
108+
exit 1
109+
fi
110+
111+
- name: Generate unique branch name
112+
id: branch-name
113+
run: |
114+
TIMESTAMP=$(date +%Y%m%d%H%M%S)
115+
UNIQUE_BRANCH="update-openrpc-${TIMESTAMP}"
116+
echo "UNIQUE_BRANCH=${UNIQUE_BRANCH}" >> $GITHUB_ENV
117+
echo "Generated unique branch name: ${UNIQUE_BRANCH}"
118+
119+
- name: Create Pull Request
120+
if: env.SKIP_PR != 'true'
121+
uses: peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e # v7.0.8
122+
with:
123+
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
124+
commit-message: Update OpenRPC JSON
125+
title: 'Update OpenRPC JSON'
126+
body: |
127+
# OpenRPC JSON Update
128+
129+
This PR updates the OpenRPC JSON specification with the latest changes from Ethereum JSON-RPC specification.
130+
131+
## Comparison Report
132+
```
133+
${{ env.REPORT_OUTPUT }}
134+
```
135+
branch: ${{ env.UNIQUE_BRANCH }}
136+
base: 'main'
137+
add-paths: docs/openrpc.json
138+
delete-branch: true

.github/workflows/postman.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,4 @@ jobs:
6363
run: npm install -g newman
6464

6565
- name: Run the newman script
66-
uses: step-security/retry@2ab886c0de89f68f146c9b43f53e61abc59c46dc # v3.0.1
67-
with:
68-
max_attempts: 10
69-
timeout_minutes: 10
70-
retry_wait_seconds: 45
71-
command: newman run packages/server/tests/postman.json
66+
run: newman run packages/server/tests/postman.json

.github/workflows/release-acceptance.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -75,11 +75,7 @@ jobs:
7575
run: npm install @hashgraph/hedera-local -g
7676

7777
- name: Run acceptance tests
78-
uses: step-security/retry@2ab886c0de89f68f146c9b43f53e61abc59c46dc # v3.0.1
79-
with:
80-
max_attempts: 3
81-
timeout_minutes: 20
82-
command: npm run acceptancetest:release
78+
run: npm run acceptancetest:release
8379

8480
- name: Run hedera local
8581
run: hedera restart -d

.github/workflows/release-automation.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@ jobs:
6262
uses: step-security/ghaction-import-gpg@a7c87df2279f2bf2e69ba8289dfbf35fe05a4e08 # v1.0.0
6363
with:
6464
git_commit_gpgsign: true
65+
git_committer_email: ${{ vars.GIT_USER_EMAIL }}
66+
git_committer_name: ${{ vars.GIT_USER_NAME }}
6567
git_tag_gpgsign: true
6668
git_user_signingkey: true
6769
gpg_private_key: ${{ secrets.GPG_KEY_CONTENTS }}

0 commit comments

Comments
 (0)