Skip to content

Instantly share code, notes, and snippets.

@clemensgg
Created February 6, 2023 09:57
Show Gist options
  • Save clemensgg/501696d321ce939ad35ee10691e7fd11 to your computer and use it in GitHub Desktop.
Save clemensgg/501696d321ce939ad35ee10691e7fd11 to your computer and use it in GitHub Desktop.
### passed client substitiontion proposal on cmdx
https://www.mintscan.io/comdex/proposals/56
subject client id: 07-tendermint-34
sbstitute client id: 07-tendermint-107
### issue:
client wasn't substituted
### client state
hermes query client state --chain comdex-1 --client 07-tendermint-34
SUCCESS Tendermint(
ClientState {
chain_id: ChainId {
id: "gravity-bridge-3",
version: 3,
},
trust_threshold: TrustThreshold(
Ratio {
numer: 1,
denom: 3,
},
),
trusting_period: 1209600s,
unbonding_period: 1814400s,
max_clock_drift: 20s,
latest_height: Height {
revision: 3,
height: 5355466,
},
proof_specs: ProofSpecs(
[
ProofSpec(
ProofSpec {
leaf_spec: Some(
LeafOp {
hash: Sha256,
prehash_key: NoHash,
prehash_value: Sha256,
length: VarProto,
prefix: [
0,
],
},
),
inner_spec: Some(
InnerSpec {
child_order: [
0,
1,
],
child_size: 33,
min_prefix_length: 4,
max_prefix_length: 12,
empty_child: [],
hash: Sha256,
},
),
max_depth: 0,
min_depth: 0,
},
),
ProofSpec(
ProofSpec {
leaf_spec: Some(
LeafOp {
hash: Sha256,
prehash_key: NoHash,
prehash_value: Sha256,
length: VarProto,
prefix: [
0,
],
},
),
inner_spec: Some(
InnerSpec {
child_order: [
0,
1,
],
child_size: 32,
min_prefix_length: 1,
max_prefix_length: 1,
empty_child: [],
hash: Sha256,
},
),
max_depth: 0,
min_depth: 0,
},
),
],
),
upgrade_path: [
"upgrade",
"upgradedIBCState",
],
allow_update: AllowUpdate {
after_expiry: true,
after_misbehaviour: true,
},
frozen_height: None,
verifier: PredicateVerifier {
predicates: ProdPredicates,
voting_power_calculator: ProdVotingPowerCalculator,
commit_validator: ProdCommitValidator {
hasher: ProdHasher,
},
hasher: ProdHasher,
},
},
)
### diff of client states
diff <(hermes query client state --chain comdex-1 --client 07-tendermint-107) <(hermes query client state --chain comdex-1 --client 07-tendermint-34)
2023-02-06T09:47:08.786083Z INFO ThreadId(01) using default configuration from '/home/relay/.hermes/config.toml'
2023-02-06T09:47:08.786383Z INFO ThreadId(01) using default configuration from '/home/relay/.hermes/config.toml'
2023-02-06T09:47:08.787048Z INFO ThreadId(01) running Hermes v1.2.0+061f14f1
2023-02-06T09:47:08.787204Z INFO ThreadId(01) running Hermes v1.2.0+061f14f1
18c18
< height: 5670759,
---
> height: 5355466,
### channel state on comdex
hermes query channel ends --chain comdex-1 --channel channel-23 --port transfer
SUCCESS ChannelEndsSummary {
chain_id: ChainId {
id: "comdex-1",
version: 1,
},
client_id: ClientId(
"07-tendermint-34",
),
connection_id: ConnectionId(
"connection-23",
),
channel_id: ChannelId(
"channel-23",
),
port_id: PortId(
"transfer",
),
counterparty_chain_id: ChainId {
id: "gravity-bridge-3",
version: 3,
},
counterparty_client_id: ClientId(
"07-tendermint-36",
),
counterparty_connection_id: ConnectionId(
"connection-47",
),
counterparty_channel_id: ChannelId(
"channel-21",
),
counterparty_port_id: PortId(
"transfer",
),
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment