Skip to content

Commit

Permalink
Merge pull request #8 from Firdous2307/2-add-json-rpc-relay
Browse files Browse the repository at this point in the history
2 add json rpc relay
  • Loading branch information
hendrikebbers authored Oct 14, 2024
2 parents 6b3f42b + 915d747 commit 7e04603
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,13 @@ The GitHub action takes the following inputs:
If set to `true`, the action will install a mirror node in addition to the main node.
The mirror node can be accessed at `localhost:8080`.

| Input | Description | Required | Default |
|----------------|-------------------------------|----------|---------|
| `installRelay` | Install JSON-RPC-Relay | false | false |

- `installRelay`: A boolean parameter that is `false` by default.
If set to `true`, the action will install the JSON-RPC-Relay as part of the setup process. This allows you to easily add a relay to your Hedera network setup. The relay is installed using the `solo relay deploy` command.

## Outputs

The GitHub action outputs the following information:
Expand Down
14 changes: 14 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ inputs:
required: true
default: false
type: boolean
installRelay:
description: 'Install JSON-RPC-Relay'
required: false
default: false
type: boolean
mirrorNodePort :
description : 'Port for Mirror Node'
required: false
Expand Down Expand Up @@ -79,6 +84,15 @@ runs:
solo mirror-node deploy
kubectl port-forward svc/fullstack-deployment-hedera-explorer -n solo-test ${{ inputs.mirrorNodePort }}:80 &
- name: Deploy JSON-RPC-Relay
if: ${{ inputs.installRelay == 'true' }}
shell: bash
run: |
echo "Installing JSON-RPC-Relay..."
solo relay deploy
echo "JSON-RPC-Relay installed successfully"
- name: Create account
id: create-account
shell: bash
Expand Down

0 comments on commit 7e04603

Please sign in to comment.