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

Introduce crate ibc-chain-registry and hermes config auto to automatically generate a config file #2533

Merged
merged 96 commits into from
Aug 24, 2022
Merged
Changes from 1 commit
Commits
Show all changes
96 commits
Select commit Hold shift + click to select a range
37c2152
tmp
Aug 3, 2022
f512415
read from chain registry
Aug 4, 2022
72fdbe8
add crate to load data from chain registry
Aug 4, 2022
954cb99
dependencies
Aug 4, 2022
adc33e9
incomplete
Aug 4, 2022
ba6a704
chain-registry crate ready
Aug 5, 2022
6043300
chain-registry ready
Aug 5, 2022
2b94a33
minor changes
Aug 5, 2022
c1b4a08
command implemented, todo: tests and doc
Aug 5, 2022
379dfed
added test, fixed empty grpc issue
Aug 5, 2022
b025210
fmt
Aug 5, 2022
cc4acac
minor change
Aug 5, 2022
65f7d0b
Update top level comments
AlianBenabdallah Aug 5, 2022
5cd088c
Update relayer-cli/src/commands/config/auto.rs
AlianBenabdallah Aug 5, 2022
4d6fed4
Update chain-registry/src/relayer_config.rs
AlianBenabdallah Aug 5, 2022
97d4a3d
Update relayer-cli/src/commands/config/auto.rs
AlianBenabdallah Aug 5, 2022
a969949
Update chain-registry/src/relayer_config.rs
AlianBenabdallah Aug 5, 2022
ad46b80
Update chain-registry/src/relayer_config.rs
AlianBenabdallah Aug 5, 2022
5ddfc3b
Apply suggestions from code review
AlianBenabdallah Aug 5, 2022
55302b1
async trait
Aug 5, 2022
b5b4510
renamed parameters
Aug 5, 2022
9e13023
small improvement
Aug 6, 2022
d68524e
fixed chain_id
Aug 6, 2022
95d3510
use websocketclient
Aug 8, 2022
05c8c21
better error handling
Aug 8, 2022
d468555
merge trait fetch and filename -> fetchable, use tokio::test
Aug 8, 2022
3726db0
wss instead of ws
Aug 9, 2022
136145e
Apply suggestions from code review
AlianBenabdallah Aug 9, 2022
54a261b
sort error in alphabetical order
Aug 9, 2022
4087cf7
Apply suggestions from code review
AlianBenabdallah Aug 9, 2022
4f4d87b
use PathBuf, remove &str instead of String, replace unwrap by error
Aug 9, 2022
2ab2c2f
Merge branch 'master' into ali/auto_config
AlianBenabdallah Aug 9, 2022
8b4a10d
fix dependency issues, better error handling
Aug 9, 2022
19da7c0
support fetch ibc path
Aug 9, 2022
bbd3a0b
Flesh our relayer_config docs a bit
seanchen1991 Aug 9, 2022
bfcbdc6
Merge branch 'ali/auto_config' of https://github.com/informalsystems/…
seanchen1991 Aug 9, 2022
df8cf1f
minor changes
Aug 9, 2022
d0f824f
Merge branch 'ali/auto_config' of github.com:informalsystems/ibc-rs i…
Aug 9, 2022
c99c7a7
Document the `AutoCmd` type
seanchen1991 Aug 9, 2022
0ecc9d7
support PacketFilters + documentation
Aug 10, 2022
e66389a
Merge branch 'ali/auto_config' of github.com:informalsystems/ibc-rs i…
Aug 10, 2022
6265dcd
fmt
Aug 10, 2022
1bce0b8
new tests
Aug 10, 2022
2bbedb5
fmt
Aug 10, 2022
2b41b9d
context oriented query
Aug 11, 2022
331d02d
different code structure
Aug 11, 2022
361184c
add comments
Aug 11, 2022
2acdef5
remove todo statement
Aug 11, 2022
788d47c
even more tests
Aug 11, 2022
f5de759
add tests for formatter
Aug 11, 2022
ec6fd6c
clippy + fmt
Aug 11, 2022
296e4d0
more and more tests
Aug 11, 2022
6b65133
update comment to add constraint on get_configs
Aug 11, 2022
42265e2
check filter len
Aug 11, 2022
e9289f4
documentation improvements
Aug 12, 2022
52b22a4
fmt and add is_empty to ChannelFilters
Aug 12, 2022
7e54891
changelog update
Aug 12, 2022
4d0512f
Formatting nits
seanchen1991 Aug 12, 2022
cd50085
More formatting nits
seanchen1991 Aug 12, 2022
fdccc80
auto key support
Aug 12, 2022
36c6ae0
Merge branch 'ali/auto_config' of github.com:informalsystems/ibc-rs i…
Aug 12, 2022
33e7ab5
More formatting nits
seanchen1991 Aug 12, 2022
de7e968
Merge branch 'ali/auto_config' of https://github.com/informalsystems/…
seanchen1991 Aug 12, 2022
f04e4bc
Clean up changelog entries a bit
seanchen1991 Aug 12, 2022
7984980
Split utils.rs into fetchable.rs and constants.rs. Fixed tests + appl…
Aug 12, 2022
ee9fa2b
Merge branch 'ali/auto_config' of github.com:informalsystems/ibc-rs i…
Aug 12, 2022
0b043dc
bug fix + removed keys argument from get_config + guide/doc update
Aug 12, 2022
abb2d82
delete example_config.toml, update log info and doc
Aug 12, 2022
7031c28
renamed chain-registry to ibc-chain-registry, moved relayer_config.rs…
Aug 15, 2022
5cfa977
fetch more data from chain.json
Aug 15, 2022
66cc992
changelog update
Aug 15, 2022
422625b
remove explorers because it can be duplicated and cause an error, add…
Aug 15, 2022
7938e7d
rename tests
Aug 15, 2022
d7f5f7c
fix doc
Aug 15, 2022
6416a04
update doc
Aug 16, 2022
7921f28
Merge branch 'master' into ali/auto_config
AlianBenabdallah Aug 16, 2022
fcfc813
remove keys argument, read from last commit
Aug 16, 2022
dc130d6
Merge branch 'ali/auto_config' of github.com:informalsystems/ibc-rs i…
Aug 16, 2022
91f3440
change --path to --output
Aug 17, 2022
428382a
Fix clippy warnings
romac Aug 17, 2022
62e126d
Skip serialiazing `proof_specs` setting if default by turning it into…
romac Aug 17, 2022
a7de369
Typo
romac Aug 17, 2022
9bcc427
Fix clippy warning
romac Aug 17, 2022
8aa0db2
Formatting and case
romac Aug 17, 2022
052b615
Refactor `config auto` code a bit
romac Aug 17, 2022
4bdbcfa
Add tracing to chain-registry
romac Aug 17, 2022
39ec5da
Refactor chain_registry in Hermes CLI
romac Aug 17, 2022
4564b5f
Refactor `hermes_config` a little
romac Aug 17, 2022
6e26f6e
Revert "Refactor chain_registry in Hermes CLI"
Aug 19, 2022
9dd6788
revert commit 39ec5da50d070a8e3c9a158b0f38991a9e32df0b and code refac…
Aug 19, 2022
ac79c4c
update guide
Aug 19, 2022
1985bfe
Merge branch 'master' into ali/auto_config
AlianBenabdallah Aug 22, 2022
8ad1e05
fix cargo toml
Aug 22, 2022
fa79bc8
Merge branch 'master' into ali/auto_config
AlianBenabdallah Aug 24, 2022
7521da9
add new config params
Aug 24, 2022
c54f7ea
Remove an unneeded `?`
seanchen1991 Aug 24, 2022
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
Prev Previous commit
Next Next commit
Update chain-registry/src/relayer_config.rs
Co-authored-by: Sean Chen <seanchen11235@gmail.com>
  • Loading branch information
AlianBenabdallah and seanchen1991 authored Aug 5, 2022
commit ad46b8033456a6a40a29f0844faf02bc2568ae54
6 changes: 2 additions & 4 deletions chain-registry/src/relayer_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,8 @@ async fn health_check_grpc(grpc_address: &str) -> Result<tendermint_rpc::Url, Re

/// Select a healthy grpc address from a list of grpc addresses
async fn select_healthy_grpc(grpcs: &[String]) -> Result<tendermint_rpc::Url, RegistryError> {
let mut futures = FuturesUnordered::new();
grpcs.iter().for_each(|grpc| {
futures.push(health_check_grpc(grpc));
});
let mut futures: FuturesUnordered<_> =
grpcs.iter().map(|grpc| health_check_grpc(grpc)).collect();

while let Some(result) = futures.next().await {
if result.is_ok() {
Expand Down