-
Notifications
You must be signed in to change notification settings - Fork 62
feat: tendermint client and relayer #485
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
base: main
Are you sure you want to change the base?
Conversation
commitment: StateCommitment { | ||
timestamp: updated_state.verified_timestamp, | ||
overlay_root: None, | ||
// Is finalized header hash the same as the state root? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no
// match id { | ||
// StateMachine::Tendermint(chain_id) => { | ||
// Ok(Box::new(TendermintStateMachine::<H, T>::default())) | ||
// }, | ||
// _ => Err(Error::Custom("Unsupported state machine or chain ID".to_string())), | ||
// } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make it a pallet and read from pallet storage if we support said chain Id
pub consensus_state_id: ConsensusStateId, | ||
pub state_machine: StateMachine, | ||
pub host: HostConfig, | ||
pub provider: Arc<dyn IsmpProvider>, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just use evm provider for now
overlay_root: None, | ||
// Is finalized header hash the same as the state root? | ||
state_root: primitive_types::H256( | ||
updated_state.trusted_state.finalized_header_hash, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
State root is the apphash
[WIP] A configurable tendermint based client and relayer. Closes #481