-
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.
Reimplement Cosmos chain methods as generic chain components (#60)
* Implement chain traits directly on CosmosChain * Refactor MessageSender and ChainStatusQuerier in Cosmos as generic components * Refactor WriteAckQuerier * Refactor create client payload and message builders * Refactor ClientStateQuerier * Refactor consensus state querier * Implement cosmos packet field reader * Refactor CounterpartyChainIdQuerier * Refactor connection handshake payload builder * Refactor connection handshake message builder * Refactor received packet querier * Refactor ConsensusStateHeightQuerier * Refactor update client payload builder * Refactor update client message builder * Reactor packet commitment querier * Fix clippy * Use new delegate_components! macro syntax * Componentize Cosmos receive packet payload/message builder * Use back cgp in main branch * Componentize Cosmos ack packet payload/message builder * Componentize Cosmos timeout packet payload/message builder * Componentize channel handshake payload builder * Componentize Cosmos channel handshake message builder * Componentize Cosmos unreceived packet querier * Implement Cosmos query send packet component * Componentize Cosmos query send packets
1 parent
3f1d2e1
commit 4b1c302
Showing
91 changed files
with
3,085 additions
and
1,760 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.
10 changes: 5 additions & 5 deletions
10
crates/relayer-components-extra/src/components/extra/birelay.rs
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 |
---|---|---|
@@ -1,13 +1,13 @@ | ||
use core::marker::PhantomData; | ||
|
||
use cgp_core::delegate_component; | ||
use cgp_core::prelude::*; | ||
use cgp_core::RunnerComponent; | ||
use ibc_relayer_components::components::default::birelay::DefaultBiRelayComponents; | ||
|
||
pub struct ExtraBiRelayComponents<BaseComponents>(pub PhantomData<BaseComponents>); | ||
|
||
delegate_component!( | ||
RunnerComponent, | ||
ExtraBiRelayComponents<BaseComponents>, | ||
DefaultBiRelayComponents<BaseComponents>, | ||
delegate_components!( | ||
ExtraBiRelayComponents<BaseComponents>; | ||
RunnerComponent: | ||
DefaultBiRelayComponents<BaseComponents>, | ||
); |
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
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
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
Oops, something went wrong.