Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update develop with hotfix #479

Merged
merged 25 commits into from
Nov 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
8543b6e
[docs] update changelog
stdevMac Dec 10, 2023
a47c62f
[docs] update docs for version v1.3.0
stdevMac Dec 10, 2023
8041378
docs: update main docs page to holds holesky
stdevMac Dec 11, 2023
0081a9f
docs: add new info section on latest comment at quickstart page
stdevMac Dec 11, 2023
0a3e6a9
docs: update CHANGELOG
stdevMac Dec 11, 2023
840b14a
Merge pull request #341 from NethermindEth/release-v1.3.0
stdevMac Dec 11, 2023
baeec11
fix: golang version for release
stdevMac Dec 11, 2023
1409206
Merge pull request #342 from NethermindEth/fix/windows
stdevMac Dec 11, 2023
5805758
Release v1.3.1 (#359)
stdevMac Feb 14, 2024
e303442
Fix homebrew (#360)
stdevMac Feb 14, 2024
51fb724
Release v1.3.2 (#365)
stdevMac Mar 8, 2024
3fe83fd
Release v1.4.0 (#394)
stdevMac Jul 10, 2024
1af8ed7
fix: set golang to 1.21 on actions (#395)
stdevMac Jul 10, 2024
1527f6f
fix: update go version on dockerfile for buildx (#396)
stdevMac Jul 10, 2024
3e2a32d
fix: update go version on actions for ppa (#397)
stdevMac Jul 10, 2024
77ede4a
Release v1.5.0
stdevMac Sep 9, 2024
f7c7d5c
Release v1.6.0 (#456)
khalifaa55 Oct 18, 2024
7ceb31f
fix: rollback to use repository dispatch (#457)
stdevMac Oct 18, 2024
8069086
Release v1.7.0 (#461)
khalifaa55 Oct 24, 2024
7bcafbf
Release v1.7.1 (#471)
stdevMac Nov 1, 2024
bd7babb
fix: remove reviewer (#472)
stdevMac Nov 1, 2024
81f66e7
Hot Fix: v1.7.2 (#478)
stdevMac Nov 11, 2024
451cd1e
merge hotfix into develop
khalifaa55 Nov 14, 2024
bbc8200
merge develop into branch
khalifaa55 Nov 15, 2024
fddec15
Merge branch 'develop' into update-with-hotfix
khalifaa55 Nov 18, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added
- New cli flag --distributed for running cluster with Charon distributed validator

## [v1.7.2] - 2024-11-12

### Fixed
- Fix Erigon image source
- Fix installation script path

## [v1.7.1] - 2024-11-1

### Added
Expand Down
4 changes: 2 additions & 2 deletions configs/client_images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ execution:
name: nethermind/nethermind
version: 1.29.1
erigon:
name: thorax/erigon
version: v2.60.9
name: erigontech/erigon
version: v2.60.10
consensus:
lighthouse:
name: sigp/lighthouse
Expand Down
2 changes: 1 addition & 1 deletion docs/docs/commands/cli.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ This is an example of what you can expect:
```
$ sedge cli
2024-10-16 17:51:44 -- [INFO] [Logger Init] Log level: info
2024-10-16 17:51:46 -- [INFO] You are running the latest version of sedge. Version: v1.7.1
2024-10-16 17:51:46 -- [INFO] You are running the latest version of sedge. Version: v1.7.2
? Select node setup ethereum-node
? Select network mainnet
? Select node type full-node
Expand Down
2 changes: 1 addition & 1 deletion docs/docs/commands/deps.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ The execution of `sedge deps check` will result in an output like this if everyt
```
$ sedge deps check
2023-03-21 02:56:04 -- [INFO] [Logger Init] Log level: info
2023-03-21 02:56:05 -- [INFO] You are running the latest version of sedge. Version: v1.7.1
2023-03-21 02:56:05 -- [INFO] You are running the latest version of sedge. Version: v1.7.2
2023-03-21 02:56:05 -- [INFO] docker is installed
2023-03-21 02:56:06 -- [INFO] All dependencies are installed and running
```
2 changes: 1 addition & 1 deletion docs/docs/commands/down.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ The execution of `sedge down` will close and remove all the opened containers an
```
$ sedge down
2022-00-00 00:00:00 -- [INFO] [Logger Init] Log level: info
2022-00-00 00:00:00 -- [INFO] You are running the latest version of sedge. Version: v1.7.1
2022-00-00 00:00:00 -- [INFO] You are running the latest version of sedge. Version: v1.7.2
[sudo] password for maceo:
[+] Running 7/7
⠿ Container execution-client Removed 93.8s
Expand Down
2 changes: 1 addition & 1 deletion docs/docs/commands/importKey.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ To import the validator keys, and start the validator client after the import, r
```shell
$ sedge import-key --from keystore -n sepolia --start-validator prysm
2023-01-26 11:59:34 -- [INFO] [Logger Init] Log level: info
2023-01-26 11:59:34 -- [INFO] You are running the latest version of sedge. Version: v1.7.1
2023-01-26 11:59:34 -- [INFO] You are running the latest version of sedge. Version: v1.7.2
# highlight-next-line
2023-01-26 11:59:34 -- [WARN] The keys path is not the default one, copying the keys to the default path /root/sedge/example/sedge-data/keystore
2023-01-26 11:59:34 -- [INFO] Importing validator keys
Expand Down
2 changes: 1 addition & 1 deletion docs/docs/commands/networks.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Global Flags:
```
$ sedge networks
2024-07-09 12:23:02 -- [INFO] [Logger Init] Log level: info
2024-07-09 12:23:03 -- [INFO] You are running the latest version of sedge. Version: v1.7.1
2024-07-09 12:23:03 -- [INFO] You are running the latest version of sedge. Version: v1.7.2
2024-07-09 12:23:03 -- [INFO] Listing supported networks


Expand Down
6 changes: 3 additions & 3 deletions docs/docs/commands/run.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ the following command to start all services in the default generation path
$ sedge run
Using config file: /root/.sedge.yaml
2022-12-29 19:55:55 -- [INFO] [Logger Init] Logging configuration: {Level:debug}
2022-12-29 19:55:55 -- [INFO] You are running the latest version of sedge. Version: v1.7.1
2022-12-29 19:55:55 -- [INFO] You are running the latest version of sedge. Version: v1.7.2
2022-12-29 20:40:24 -- [INFO] Checking dependencies: docker
2022-12-29 20:40:24 -- [INFO] All dependencies are installed on host machine
2022-12-29 19:55:55 -- [INFO] Setting up containers
Expand Down Expand Up @@ -110,7 +110,7 @@ start the validator.
$ sedge run --services execution,consensus
Using config file: /root/.sedge.yaml
2022-12-29 21:03:29 -- [INFO] [Logger Init] Logging configuration: {Level:debug}
2022-12-29 21:03:29 -- [INFO] You are running the latest version of sedge. Version: v1.7.1
2022-12-29 21:03:29 -- [INFO] You are running the latest version of sedge. Version: v1.7.2
2022-12-29 21:03:29 -- [INFO] Checking dependencies: docker
2022-12-29 21:03:29 -- [INFO] All dependencies are installed on host machine
2022-12-29 21:03:29 -- [INFO] Setting up containers
Expand Down Expand Up @@ -155,7 +155,7 @@ Now you can start the validator client like follow:
$ sedge run --services validator
Using config file: /root/.sedge.yaml
2022-12-29 21:24:12 -- [INFO] [Logger Init] Logging configuration: {Level:debug}
2022-12-29 21:24:12 -- [INFO] You are running the latest version of sedge. Version: v1.7.1
2022-12-29 21:24:12 -- [INFO] You are running the latest version of sedge. Version: v1.7.2
2022-12-29 21:24:12 -- [INFO] Checking dependencies: docker
2022-12-29 21:24:12 -- [INFO] All dependencies are installed on host machine
2022-12-29 21:24:12 -- [INFO] Setting up containers
Expand Down
2 changes: 1 addition & 1 deletion docs/docs/commands/show.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Global Flags:
```
$ sedge show
2023-00-00 00:00:00 -- [INFO] [Logger Init] Log level: info
2023-00-00 00:00:00 -- [INFO] You are running the latest version of sedge. Version: v1.7.1
2023-00-00 00:00:00 -- [INFO] You are running the latest version of sedge. Version: v1.7.2
2023-00-00 00:00:00 -- [INFO] Showing existing containers information
2023-00-00 00:00:00 -- [INFO] containers:
- name: sedge-execution-client
Expand Down
8 changes: 4 additions & 4 deletions docs/docs/commands/slashingExport.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ This is an example of exporting slashing protection data from a setup using sepo
```shell
$ sedge slashing-export lighthouse -n sepolia --out slashing-protection.json
2023-01-06 15:47:56 -- [INFO] [Logger Init] Log level: info
2023-01-06 15:47:57 -- [INFO] You are running the latest version of sedge. Version: v1.7.1
2023-01-06 15:47:57 -- [INFO] You are running the latest version of sedge. Version: v1.7.2
2023-01-06 15:47:57 -- [INFO] Exporting slashing data from client lighthouse
# highlight-next-line
2023-01-06 15:47:57 -- [INFO] The slashing protection container is starting...
Expand All @@ -71,7 +71,7 @@ Notice in this case the validator client remains stopped because it has been sto
```shell
$ sedge slashing-export lighthouse -n sepolia --out slashing-protection.json --start-validator
2023-01-06 15:51:11 -- [INFO] [Logger Init] Log level: info
2023-01-06 15:51:11 -- [INFO] You are running the latest version of sedge. Version: v1.7.1
2023-01-06 15:51:11 -- [INFO] You are running the latest version of sedge. Version: v1.7.2
2023-01-06 15:51:11 -- [INFO] Exporting slashing data from client lighthouse
2023-01-06 15:51:11 -- [INFO] The slashing protection container is starting...
2023-01-06 15:51:12 -- [INFO] The slashing container ends successfully.
Expand All @@ -86,7 +86,7 @@ Another case may be exporting the slashing data protection when the validator is
```shell
$ sedge slashing-export lighthouse -n sepolia --out slashing-protection.json
2023-01-06 15:51:46 -- [INFO] [Logger Init] Log level: info
2023-01-06 15:51:46 -- [INFO] You are running the latest version of sedge. Version: v1.7.1
2023-01-06 15:51:46 -- [INFO] You are running the latest version of sedge. Version: v1.7.2
# highlight-next-line
2023-01-06 15:51:46 -- [INFO] Stopping validator client
# highlight-next-line
Expand All @@ -107,7 +107,7 @@ In this case, the validator client is stopped before the export and started agai
```shell
$ sedge slashing-export lighthouse -n sepolia --out slashing-protection.json --stop-validator
2023-01-06 15:52:07 -- [INFO] [Logger Init] Log level: info
2023-01-06 15:52:07 -- [INFO] You are running the latest version of sedge. Version: v1.7.1
2023-01-06 15:52:07 -- [INFO] You are running the latest version of sedge. Version: v1.7.2
# highlight-next-line
2023-01-06 15:52:07 -- [INFO] Stopping validator client
# highlight-next-line
Expand Down
8 changes: 4 additions & 4 deletions docs/docs/commands/slashingImport.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ This is an example of importing slashing protection data to a setup using sepoli
```shell
$ sedge slashing-import prysm -f slashing-export.json -n sepolia
2023-01-06 14:59:11 -- [INFO] [Logger Init] Log level: info
2023-01-06 14:59:11 -- [INFO] You are running the latest version of sedge. Version: v1.7.1
2023-01-06 14:59:11 -- [INFO] You are running the latest version of sedge. Version: v1.7.2
# highlight-next-line
2023-01-06 14:59:11 -- [INFO] Importing slashing data to client prysm from slashing-export.json
# highlight-next-line
Expand All @@ -70,7 +70,7 @@ Notice in this case the validator client remains stopped because it has been sto
```shell
$ sedge slashing-import prysm -f slashing-export.json -n sepolia --start-validator
2023-01-06 15:08:05 -- [INFO] [Logger Init] Log level: info
2023-01-06 15:08:06 -- [INFO] You are running the latest version of sedge. Version: v1.7.1
2023-01-06 15:08:06 -- [INFO] You are running the latest version of sedge. Version: v1.7.2
2023-01-06 15:08:06 -- [INFO] Importing slashing data to client prysm from slashing-export.json
2023-01-06 15:08:06 -- [INFO] The slashing protection container is starting...
2023-01-06 15:08:06 -- [INFO] The slashing container ends successfully.
Expand All @@ -85,7 +85,7 @@ Another case may be importing the slashing data protection when the validator is
```shell
$ sedge slashing-import prysm -f slashing-export.json -n sepolia
2023-01-06 15:10:27 -- [INFO] [Logger Init] Log level: info
2023-01-06 15:10:27 -- [INFO] You are running the latest version of sedge. Version: v1.7.1
2023-01-06 15:10:27 -- [INFO] You are running the latest version of sedge. Version: v1.7.2
# highlight-next-line
2023-01-06 15:10:27 -- [INFO] Stopping validator client...
# highlight-next-line
Expand All @@ -106,7 +106,7 @@ In this case, the validator client is stopped before the import and started agai
```shell
$ sedge slashing-import prysm -f slashing-export.json -n sepolia --stop-validator
2023-01-06 15:12:22 -- [INFO] [Logger Init] Log level: info
2023-01-06 15:12:22 -- [INFO] You are running the latest version of sedge. Version: v1.7.1
2023-01-06 15:12:22 -- [INFO] You are running the latest version of sedge. Version: v1.7.2
# highlight-next-line
2023-01-06 15:12:22 -- [INFO] Stopping validator client...
# highlight-next-line
Expand Down
2 changes: 1 addition & 1 deletion docs/docs/commands/version.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@ Global Flags:
```
$ sedge version
2022-00-00 00:00:00 -- [INFO] [Logger Init] Log level: info
2022-00-00 00:00:00 -- [INFO] You are running the latest version of sedge. Version: v1.7.1
2022-00-00 00:00:00 -- [INFO] You are running the latest version of sedge. Version: v1.7.2
sedge v0.5.1
```
4 changes: 2 additions & 2 deletions docs/docs/quickstart/complete-guide.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,14 @@ want to use another installation method:
<TabItem value="curl" label="curl">

```
curl -L https://github.com/NethermindEth/sedge/releases/download/v1.7.1/sedge-v1.7.1-linux-amd64 --output sedge
curl -L https://github.com/NethermindEth/sedge/releases/download/v1.7.2/sedge-v1.7.2-linux-amd64 --output sedge
```

</TabItem>
<TabItem value="wget" label="wget">

```
wget https://github.com/NethermindEth/sedge/releases/download/v1.7.1/sedge-v1.7.1-linux-amd64 -O sedge
wget https://github.com/NethermindEth/sedge/releases/download/v1.7.2/sedge-v1.7.2-linux-amd64 -O sedge
```

</TabItem>
Expand Down
2 changes: 1 addition & 1 deletion internal/pkg/clients/types_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ func TestSetImageOrDefault_Execution(t *testing.T) {
Name: "erigon",
Type: "execution",
},
expectedImage: *regexp.MustCompile(`^thorax/erigon:v\d+\.\d+\.\d+$`),
expectedImage: *regexp.MustCompile(`^erigontech/erigon:v\d+\.\d+\.\d+$`),
},
}
for _, test := range tests {
Expand Down
54 changes: 54 additions & 0 deletions scripts/install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
#!/bin/bash

set -e

# Function to get the latest release tag from GitHub
get_latest_release() {
curl --silent "https://api.github.com/repos/NethermindEth/sedge/releases/latest" | # Get latest release from GitHub API
grep '"tag_name":' | # Get tag line
sed -E 's/.*"([^"]+)".*/\1/' # Extract version number
}

# Detect OS and architecture
OS="$(uname -s)"
ARCH="$(uname -m)"

# Normalize OS and ARCH
if [[ "$OS" == "Linux" ]]; then
PLATFORM="linux"
elif [[ "$OS" == "Darwin" ]]; then
PLATFORM="darwin"
else
echo "Unsupported OS: $OS"
exit 1
fi

if [[ "$ARCH" == "x86_64" ]]; then
ARCH="amd64"
elif [[ "$ARCH" == "arm64" || "$ARCH" == "aarch64" ]]; then
ARCH="arm64"
else
echo "Unsupported architecture: $ARCH"
exit 1
fi

# Get the latest version
VERSION=$(get_latest_release)
echo "Latest version is $VERSION"

# Construct the download URL
BINARY_NAME="sedge-${VERSION}-${PLATFORM}-${ARCH}"
DOWNLOAD_URL="https://github.com/NethermindEth/sedge/releases/download/${VERSION}/${BINARY_NAME}"

# Download the binary
echo "Downloading ${BINARY_NAME} from ${DOWNLOAD_URL}..."
curl -L -o sedge "${DOWNLOAD_URL}"

# Make it executable
chmod +x sedge

# Move to /usr/local/bin or another directory in PATH
echo "Installing sedge to /usr/local/bin..."
sudo mv sedge /usr/local/bin/

echo "Installation complete. You can now run 'sedge version' from the command line."