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

chore: change hermes to forcerelay #357

Merged
merged 3 commits into from
Oct 30, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ $ cargo install -p ibc-relayer-cli
$ forcerelay --version
```

Forcerelay can be executed by specifying a configuration file in the command line, otherwise it will access the `~/.hermes/config.toml`. We provide a pre-generated [example](https://github.com/synapseweb3/forcerelay/blob/main/config.toml) configuration file written for Axon and CKB (Testnet). To run Forcerelay, only minimal modifications are needed to this configuration:
Forcerelay can be executed by specifying a configuration file in the command line, otherwise it will access the `~/.forcerelay/config.toml`. We provide a pre-generated [example](https://github.com/synapseweb3/forcerelay/blob/main/config.toml) configuration file written for Axon and CKB (Testnet). To run Forcerelay, only minimal modifications are needed to this configuration:

```
websocket_addr = "ws://<YOUR_AXON_URL>:<WS_PORT>"
Expand Down
2 changes: 1 addition & 1 deletion crates/relayer-cli/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ fn main() {
// outputs consistent usage and help messages.
// https://github.com/informalsystems/hermes/issues/590
// Note: This can potentially break the normal cargo (or crates.io) workflow.
println!("cargo:rustc-env=CARGO_PKG_NAME=hermes");
println!("cargo:rustc-env=CARGO_PKG_NAME=forcerelay");
println!("cargo:rustc-env=CARGO_PKG_VERSION={}", version());
}

Expand Down
2 changes: 1 addition & 1 deletion crates/relayer-cli/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@ pub mod error;
pub mod prelude;

/// The path to the default configuration file, relative to the home directory.
pub const DEFAULT_CONFIG_PATH: &str = ".hermes/config.toml";
pub const DEFAULT_CONFIG_PATH: &str = ".forcerelay/config.toml";
4 changes: 2 additions & 2 deletions crates/relayer/src/chain/ckb4ibc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ use std::sync::RwLock;
use tendermint_rpc::endpoint::broadcast::tx_sync::Response;
use tokio::runtime::Runtime;
use tokio::sync::watch::Sender as WatchSender;
use tracing::log::{info, warn};
use tracing::log::{error, info, warn};

use self::extractor::{extract_connections_from_tx, extract_ibc_packet_from_tx};
use self::message::{convert_msg_to_ckb_tx, CkbTxInfo, Converter, MsgToTxConverter};
Expand Down Expand Up @@ -372,7 +372,7 @@ impl Ckb4IbcChain {
if let Ok(client_type) = self.config.lc_client_type(&client_id) {
resps.push((tx, cell_input, capacity, client_type));
} else {
warn!("skip local missing client_id found on-chain: {client_id}");
error!("skip local missing client_id found on-chain: {client_id}");
}
}
Ok(resps)
Expand Down
2 changes: 1 addition & 1 deletion crates/relayer/src/keyring.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ use serde::{Deserialize, Serialize};
use crate::{chain::ChainType, config::ChainConfig};
use errors::Error;

pub const KEYSTORE_DEFAULT_FOLDER: &str = ".hermes/keys/";
pub const KEYSTORE_DEFAULT_FOLDER: &str = ".forcerelay/keys/";
pub const KEYSTORE_DISK_BACKEND: &str = "keyring-test";
pub const KEYSTORE_FILE_EXTENSION: &str = "json";

Expand Down
Loading