forked from informalsystems/hermes
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use
CosmosSdk
as the chain type if omitted, for backward compatibil…
…ity (informalsystems#3787) * Use `CosmosSdk` as the chain type if omitted, for backward compatibility Doing this requires a bit of hack, due to serde's lack of support for specifying a default variant when a tag is not provided. See the doc comment on the `ChainConfig` struct for more details. * Add parsing test for default chain type * Check we parse the correct default type --------- Co-authored-by: Luca Joss <[email protected]>
- Loading branch information
Showing
8 changed files
with
118 additions
and
5 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
56 changes: 56 additions & 0 deletions
56
crates/relayer/tests/config/fixtures/relayer_conf_example_default_chain_type.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
[global] | ||
log_level = 'error' | ||
|
||
[mode] | ||
|
||
[mode.clients] | ||
enabled = true | ||
refresh = true | ||
misbehaviour = true | ||
|
||
[mode.connections] | ||
enabled = false | ||
|
||
[mode.channels] | ||
enabled = false | ||
|
||
[mode.packets] | ||
enabled = true | ||
clear_interval = 100 | ||
clear_on_start = true | ||
tx_confirmation = true | ||
|
||
[[chains]] | ||
id = 'chain_A' | ||
rpc_addr = 'http://127.0.0.1:26657' | ||
grpc_addr = 'http://127.0.0.1:9090' | ||
event_source = { mode = 'push', url = 'ws://localhost:26657/websocket', batch_delay = '500ms' } | ||
rpc_timeout = '10s' | ||
account_prefix = 'cosmos' | ||
key_name = 'testkey' | ||
store_prefix = 'ibc' | ||
max_gas = 200000 | ||
gas_price = { price = 0.001, denom = 'stake' } | ||
max_msg_num = 4 | ||
max_tx_size = 1048576 | ||
max_grpc_decoding_size = '4MiB' | ||
clock_drift = '5s' | ||
trusting_period = '14days' | ||
trust_threshold = { numerator = '1', denominator = '3' } | ||
address_type = { derivation = 'cosmos' } | ||
|
||
[[chains]] | ||
id = 'chain_B' | ||
rpc_addr = 'http://127.0.0.1:26557' | ||
grpc_addr = 'http://127.0.0.1:9090' | ||
event_source = { mode = 'push', url = 'ws://localhost:26557/websocket', batch_delay = '500ms' } | ||
rpc_timeout = '10s' | ||
account_prefix = 'cosmos' | ||
key_name = 'testkey' | ||
store_prefix = 'ibc' | ||
gas_price = { price = 0.001, denom = 'stake' } | ||
max_grpc_decoding_size = '5.91 MB' | ||
clock_drift = '5s' | ||
trusting_period = '14days' | ||
trust_threshold = { numerator = '1', denominator = '3' } | ||
address_type = { derivation = 'ethermint', proto_type = { pk_type = '/injective.crypto.v1beta1.ethsecp256k1.PubKey' } } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters