Skip to content

Commit

Permalink
Merge branch 'main' into stereumAlert
Browse files Browse the repository at this point in the history
  • Loading branch information
mabasian committed Jan 2, 2024
2 parents 1294c91 + e96c695 commit bd4cb90
Show file tree
Hide file tree
Showing 183 changed files with 7,866 additions and 1,727 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/electron.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -155,19 +155,19 @@ jobs:
shell: bash

- name: Download ubuntu binary from build into dist
uses: actions/download-artifact@master
uses: actions/download-artifact@e9ef242655d12993efdcda9058dee2db83a2cb9b
with:
name: app-ubuntu-latest
path: dist
if: ${{ !contains(github.event.head_commit.message, '[NOCI]') }}
- name: Download windows binary from build into dist
uses: actions/download-artifact@master
uses: actions/download-artifact@e9ef242655d12993efdcda9058dee2db83a2cb9b
with:
name: app-windows-latest
path: dist
if: ${{ !contains(github.event.head_commit.message, '[NOCI]') }}
- name: Download macos binary from build into dist
uses: actions/download-artifact@master
uses: actions/download-artifact@e9ef242655d12993efdcda9058dee2db83a2cb9b
with:
name: app-macos-latest
path: dist
Expand Down
5 changes: 4 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,8 @@
"editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"vue3snippets.enable-compile-vue-file-on-did-save-code": true
"editor.autoIndent": "none",
"vue3snippets.enable-compile-vue-file-on-did-save-code": true,
"javascript.format.insertSpaceAfterOpeningAndBeforeClosingEmptyBraces": false,
"typescript.format.insertSpaceAfterOpeningAndBeforeClosingEmptyBraces": false
}
10 changes: 10 additions & 0 deletions controls/roles/update-changes/molecule/202/converge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
- name: Converge
hosts: all
vars_files:
- ../../../../defaults/stereum_defaults.yaml

tasks:
- name: "Include update-changes"
include_role:
name: "update-changes"
27 changes: 27 additions & 0 deletions controls/roles/update-changes/molecule/202/molecule.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
#dependency:
# name: galaxy
driver:
name: docker
platforms:
- name: "update-changes--2.0.2--ubuntu-23.04"
image: ubuntu:lunar
# - name: "configure-updates--default--centos-8"
# image: geerlingguy/docker-centos8-ansible
provisioner:
name: ansible
env:
ANSIBLE_PIPELINING: "True"
lint: |
set -e
yamllint .
ansible-lint .
scenario:
test_sequence:
- destroy
- create
- prepare
- converge
- idempotence
- verify
- destroy
7 changes: 7 additions & 0 deletions controls/roles/update-changes/molecule/202/playbook.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
- name: Converge
hosts: all
tasks:
- name: "Include update-changes"
include_role:
name: "update-changes"
116 changes: 116 additions & 0 deletions controls/roles/update-changes/molecule/202/prepare.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,116 @@
---
- name: Prepare
hosts: all
tasks:
- name: Make sure Stereum's config path exists
file:
path: "/etc/stereum/services"
state: directory
owner: "root"
group: "root"
mode: 0644
become: yes

- name: Create Erigon service config
copy:
dest: "/etc/stereum/services/c3c822b5-5b0c-b779-8a04-fae3563ccfa1.yaml"
owner: "root"
group: "root"
mode: 0644
content: |
service: ErigonService
id: c3c822b5-5b0c-b779-8a04-fae3563ccfa1
configVersion: 1
command:
- erigon
- --chain=holesky
- --datadir=/opt/data/erigon
- --authrpc.addr=0.0.0.0
- --authrpc.vhosts=*
- --authrpc.port=8551
- --authrpc.jwtsecret=/engine.jwt
- --rpc.returndata.limit=1000000
- --ws
- --http
- --http.vhosts=*
- --http.corsdomain=*
- --http.addr=0.0.0.0
- --http.port=8545
- --http.api=engine,net,eth,web3
- --metrics
- --metrics.addr=0.0.0.0
- --metrics.port=6060
- --db.pagesize=16K
- --db.size.limit=4TB
- --prune=htc
entrypoint: []
env: {}
image: thorax/erigon:v2.54.0
ports:
- 0.0.0.0:30303:30303/tcp
- 0.0.0.0:30303:30303/udp
- 127.0.0.1:8545:8545/tcp
- 127.0.0.1:8546:8546/tcp
volumes:
- /opt/stereum/erigon-c3c822b5-5b0c-b779-8a04-fae3563ccfa1/data:/opt/data/erigon
- /opt/stereum/erigon-c3c822b5-5b0c-b779-8a04-fae3563ccfa1/engine.jwt:/engine.jwt
user: root
autoupdate: true
network: holesky
dependencies:
executionClients: []
consensusClients: []
mevboost: []
become: yes

- name: Create Erigon service config
copy:
dest: "/etc/stereum/services/da69776a-2468-4e2d-b3fb-7a6dfd9eabf1.yaml"
owner: "root"
group: "root"
mode: 0644
content: |
service: ErigonService
id: da69776a-2468-4e2d-b3fb-7a6dfd9eabf1
configVersion: 1
command:
- erigon
- --chain=holesky
- --datadir=/opt/data/erigon
- --authrpc.addr=0.0.0.0
- --authrpc.vhosts=*
- --authrpc.port=8551
- --authrpc.jwtsecret=/engine.jwt
- --rpc.returndata.limit=1000000
- --ws
- --http
- --http.vhosts=*
- --http.corsdomain=*
- --http.addr=0.0.0.0
- --http.port=8545
- --http.api=engine,net,eth,web3
- --metrics
- --metrics.addr=0.0.0.0
- --metrics.port=6060
- --db.pagesize=16K
- --prune=htc
entrypoint: []
env: {}
image: thorax/erigon:v2.54.0
ports:
- 0.0.0.0:30303:30303/tcp
- 0.0.0.0:30303:30303/udp
- 127.0.0.1:8545:8545/tcp
- 127.0.0.1:8546:8546/tcp
volumes:
- /opt/stereum/erigon-da69776a-2468-4e2d-b3fb-7a6dfd9eabf1/data:/opt/data/erigon
- /opt/stereum/erigon-da69776a-2468-4e2d-b3fb-7a6dfd9eabf1/engine.jwt:/engine.jwt
user: root
autoupdate: true
network: holesky
dependencies:
executionClients: []
consensusClients: []
mevboost: []
become: yes
# EOF
35 changes: 35 additions & 0 deletions controls/roles/update-changes/molecule/202/verify.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
---
- name: Verify
hosts: all
gather_facts: false
tasks:
# Erigon
- name: Read ErigonService file 1
slurp:
src: "/etc/stereum/services/c3c822b5-5b0c-b779-8a04-fae3563ccfa1.yaml"
register: erigon_service_configuration1_raw

# Erigon
- name: Read ErigonService file 2
slurp:
src: "/etc/stereum/services/da69776a-2468-4e2d-b3fb-7a6dfd9eabf1.yaml"
register: erigon_service_configuration2_raw

- name: Parse ErigonService configurations
set_fact:
erigon_service_configuration1: "{{ erigon_service_configuration1_raw['content'] | b64decode | from_yaml }}"
erigon_service_configuration2: "{{ erigon_service_configuration2_raw['content'] | b64decode | from_yaml }}"

- debug:
msg: "{{ erigon_service_configuration1 }}"

- debug:
msg: "{{ erigon_service_configuration2 }}"

- assert:
that:
- erigon_service_configuration1.command | select('match', '--db.size.limit.*') | length == 1
- erigon_service_configuration2.command | select('match', '--db.size.limit.*') | length == 1
- erigon_service_configuration1.command | select('match', '--db.size.limit=4TB') | length == 1
- erigon_service_configuration2.command | select('match', '--db.size.limit.8TB') | length == 1
# EOF
19 changes: 19 additions & 0 deletions controls/roles/update-changes/tasks/2.0.2/erigon_dbTag.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
- name: Read service file
slurp:
src: "{{ item.path }}"
register: service_configuration_raw

- name: Parse service's configuration
set_fact:
service_configuration: "{{ service_configuration_raw['content'] | b64decode | from_yaml }}"
service_configuration_text: "{{ service_configuration_raw['content'] | b64decode }}"

- name: Add DB Tag to Erigon
lineinfile:
path: "{{ item.path }}"
insertafter: "- erigon"
line: "{{ service_configuration_text | split('\n') | select('match', '^\\s*- --datadir.*') | first | split('-') | first }}- --db.size.limit=8TB"
when:
- service_configuration.service == "ErigonService"
- service_configuration.command | select('match', '--db.size.limit.*') | length == 0
9 changes: 9 additions & 0 deletions controls/roles/update-changes/tasks/2.0.2/updates-202.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
- name: Find service configs
find:
paths: "/etc/stereum/services"
register: service_config_files

- name: Include Erigon DB Tag
include_tasks: erigon_dbTag.yaml
loop: "{{ service_config_files.files }}"
4 changes: 4 additions & 0 deletions controls/roles/update-changes/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,8 @@
- name: Include RC23 Update Scripts
include_tasks: "2.0-rc23/updates-20-rc23.yaml"
ignore_errors: yes

- name: Include 2.0.2 Update Scripts
include_tasks: "2.0.2/updates-202.yaml"
ignore_errors: yes
# EOF
8 changes: 4 additions & 4 deletions launcher/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "stereum-launcher",
"version": "2.0.2",
"version": "2.0.3",
"private": true,
"description": "Stereum Ethereum Node Setup Launcher",
"author": "stereum.net",
Expand All @@ -18,7 +18,7 @@
"test-coverage": "jest --coverage",
"watch:css": "npx tailwindcss -i ./src/main.css -o ./public/output.css --watch",
"lint:fix": "eslint --ext .js,.vue --ignore-path ../.gitignore --fix src",
"max": "concurrently \"npm:electron:serve\" \"npm:watch:css\"",
"stereum": "concurrently \"npm:electron:serve\" \"npm:watch:css\"",
"format": "prettier . --write"
},
"dependencies": {
Expand All @@ -44,6 +44,7 @@
"pinia": "^2.0.33",
"qrcode": "^1.5.1",
"ssh2": "^1.1.0",
"uuid": "^9.0.1",
"vue": "^3.2.33",
"vue-i18n": "9.2.2",
"vue-router": "^4.0.15",
Expand Down Expand Up @@ -88,5 +89,4 @@
"type": "git",
"url": "[email protected]:stereum-dev/ethereum-node.git"
}
}

}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added launcher/public/img/icon/node-icons/copied.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified launcher/public/img/icon/node-icons/resync.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added launcher/public/img/icon/service-icons/ssv.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

This file was deleted.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added launcher/public/img/icon/the-staking/cancel.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added launcher/public/img/icon/the-staking/check.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added launcher/public/img/icon/the-staking/filter.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added launcher/public/img/icon/the-staking/group.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added launcher/public/img/icon/the-staking/hide.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added launcher/public/img/icon/the-staking/key-sign.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified launcher/public/img/icon/the-staking/keyIcon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added launcher/public/img/icon/the-staking/list1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added launcher/public/img/icon/the-staking/list2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added launcher/public/img/icon/the-staking/reset.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added launcher/public/img/icon/the-staking/search.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added launcher/public/img/icon/the-staking/select-key.png
Binary file added launcher/public/img/icon/the-staking/ungroup.png
Diff not rendered.
Binary file added launcher/public/img/icon/the-staking/visible.png
Loading

0 comments on commit bd4cb90

Please sign in to comment.