refactor: rename to helios #70)

This commit is contained in:
Noah Citron 2022-10-25 18:23:43 -04:00 committed by GitHub
parent 4757fa06ff
commit 56d0ce5a72
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 38 additions and 34 deletions

View File

@ -24,7 +24,7 @@ jobs:
run: cargo build --all --release --target aarch64-apple-darwin
- name: archive
run: gtar -czvf "lightclient_darwin_arm64.tar.gz" -C ./target/aarch64-apple-darwin/release lightclient
run: gtar -czvf "helios_darwin_arm64.tar.gz" -C ./target/aarch64-apple-darwin/release lightclient
- name: generate tag name
id: tag
@ -37,7 +37,7 @@ jobs:
tag_name: ${{ steps.tag.outputs.release_tag }}
prerelease: true
files: |
lightclient_darwin_arm64.tar.gz
helios_darwin_arm64.tar.gz
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@ -61,7 +61,7 @@ jobs:
run: cargo build --all --release --target x86_64-apple-darwin
- name: archive
run: gtar -czvf "lightclient_darwin_amd64.tar.gz" -C ./target/x86_64-apple-darwin/release lightclient
run: gtar -czvf "helios_darwin_amd64.tar.gz" -C ./target/x86_64-apple-darwin/release lightclient
- name: generate tag name
id: tag
@ -74,7 +74,7 @@ jobs:
tag_name: ${{ steps.tag.outputs.release_tag }}
prerelease: true
files: |
lightclient_darwin_amd64.tar.gz
helios_darwin_amd64.tar.gz
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@ -104,7 +104,7 @@ jobs:
run: cargo build --all --release --target aarch64-unknown-linux-gnu
- name: archive
run: tar -czvf "lightclient_linux_arm64.tar.gz" -C ./target/aarch64-unknown-linux-gnu/release lightclient
run: tar -czvf "helios_linux_arm64.tar.gz" -C ./target/aarch64-unknown-linux-gnu/release lightclient
- name: generate tag name
id: tag
@ -117,7 +117,7 @@ jobs:
tag_name: ${{ steps.tag.outputs.release_tag }}
prerelease: true
files: |
lightclient_linux_arm64.tar.gz
helios_linux_arm64.tar.gz
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@ -141,7 +141,7 @@ jobs:
run: cargo build --all --release --target x86_64-unknown-linux-gnu
- name: archive
run: tar -czvf "lightclient_linux_amd64.tar.gz" -C ./target/x86_64-unknown-linux-gnu/release lightclient
run: tar -czvf "helios_linux_amd64.tar.gz" -C ./target/x86_64-unknown-linux-gnu/release lightclient
- name: generate tag name
id: tag
@ -154,6 +154,6 @@ jobs:
tag_name: ${{ steps.tag.outputs.release_tag }}
prerelease: true
files: |
lightclient_linux_amd64.tar.gz
helios_linux_amd64.tar.gz
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

34
Cargo.lock generated
View File

@ -1479,6 +1479,23 @@ version = "0.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2540771e65fc8cb83cd6e8a237f70c319bd5c29f78ed1084ba5d50eeac86f7f9"
[[package]]
name = "helios"
version = "0.1.0"
dependencies = [
"clap",
"client",
"common",
"config",
"ctrlc",
"dirs",
"env_logger",
"eyre",
"futures",
"log",
"tokio",
]
[[package]]
name = "hermit-abi"
version = "0.1.19"
@ -1978,23 +1995,6 @@ version = "0.2.132"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8371e4e5341c3a96db127eb2465ac681ced4c433e01dd0e938adbef26ba93ba5"
[[package]]
name = "lightclient"
version = "0.1.0"
dependencies = [
"clap",
"client",
"common",
"config",
"ctrlc",
"dirs",
"env_logger",
"eyre",
"futures",
"log",
"tokio",
]
[[package]]
name = "lock_api"
version = "0.4.8"

View File

@ -1,5 +1,5 @@
[package]
name = "lightclient"
name = "helios"
version = "0.1.0"
edition = "2021"

View File

@ -63,7 +63,7 @@ fn register_shutdown_handler(client: Client<FileDB>) {
fn get_config() -> Config {
let cli = Cli::parse();
let config_path = home_dir().unwrap().join(".lightclient/lightclient.toml");
let config_path = home_dir().unwrap().join(".helios/helios.toml");
let cli_config = cli.as_cli_config();
@ -118,6 +118,6 @@ impl Cli {
fn get_data_dir(&self) -> PathBuf {
home_dir()
.unwrap()
.join(format!(".lightclient/data/{}", self.network))
.join(format!(".helios/data/{}", self.network))
}
}

View File

@ -52,15 +52,19 @@ impl Config {
Err(err) => {
match err.kind {
figment::error::Kind::MissingField(field) => {
let field = field.replace("_", "-");
println!(
"\x1b[91merror\x1b[0m: missing configuration field: {}",
field
);
println!(
"\n\ttry supplying the propoper command line argument: --{}",
field
);
println!("\talternatively, you can add the field to your lightclient.toml file or as an environment variable");
println!("\talternatively, you can add the field to your helios.toml file or as an environment variable");
println!("\nfor more information, check the github README");
}
_ => println!("cannot parse configuration: {}", err),

View File

@ -18,7 +18,7 @@ pub struct BaseConfig {
pub fn mainnet() -> BaseConfig {
BaseConfig {
checkpoint: hex_str_to_bytes(
"0xb0fe0394e2ed1a96b758b67fad1942371db5f7070502d10937fa65dacfc2ea4b",
"0x6d41048663adafa064bae3b3768a8448fa1f1b003118fa5887d06da266530cff",
)
.unwrap(),
rpc_port: 8545,

View File

@ -3,8 +3,8 @@ set -e
# modified from https://github.com/foundry-rs/foundry/blob/master/foundryup/foundryup
REPO="a16z/lightclient"
NAME=lightclient
REPO="a16z/helios"
NAME=helios
DIR=$HOME/.$NAME
BIN_DIR=$DIR/bin

View File

@ -3,8 +3,8 @@ set -e
# modified from https://github.com/foundry-rs/foundry/blob/master/foundryup/install
REPO="a16z/lightclient"
NAME=lightclient
REPO="a16z/helios"
NAME=helios
INSTALLER_NAME=${NAME}up